How to put generated loadable kernel modules (*.ko) into system.img?

137 views
Skip to first unread message

hamleter

unread,
Dec 7, 2010, 5:52:13 AM12/7/10
to android-porting
Hi all,

I try to build divers which under \kernel\drivers into loadable
modules (*.ko), how do I put these generated *.ko files into
system.img?
Currently, I push these files in ADB manually.

Thanks.

Deva R

unread,
Dec 7, 2010, 1:29:03 PM12/7/10
to chunl...@gmail.com, android-porting

We add few product files in .mk files like below


44 PRODUCT_COPY_FILES += device/ti/blaze/apns.xml:system/etc/apns-conf.xml \
45         frameworks/base/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
46         packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:/system/etc/permissions/android.software.live_wallpaper.xml \
47         frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
48         frameworks/base/data/etc/android.hardware.touchscreen.multitouch.distinct.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.distinct.xml


or like in opencore, you can do simple copy with some add call routine (havent tried, but u can explore)

9 $(call add-prebuilt-files, ETC, pvplayer.cfg)




--
Regards,
Deva

Reply all
Reply to author
Forward
0 new messages