summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Schmidt <yath@yath.de>2011-07-29 11:24:19 +0200
committerSebastian Schmidt <yath@yath.de>2011-07-29 11:24:19 +0200
commitf97bccadcec6e6b1235674e43a221a9e8ff0a8ff (patch)
treeb9019177f6cbf7027c5ae9aac9ff892d0ada72fa
parentc94ad85aceb653141bfe17e482aa611d2ec53644 (diff)
downloaddevice_samsung_galaxysmtd-f97bccadcec6e6b1235674e43a221a9e8ff0a8ff.zip
device_samsung_galaxysmtd-f97bccadcec6e6b1235674e43a221a9e8ff0a8ff.tar.gz
device_samsung_galaxysmtd-f97bccadcec6e6b1235674e43a221a9e8ff0a8ff.tar.bz2
Add kernel modules by wildcard
Add kernel modules matching device/samsung/galaxysmtd/*.ko into the OTA package instead of hard-coding them, this makes adding additional modules a lot easier. Change-Id: I9ae8fcc267724bff4494a07d049df28daa2c1e58
-rw-r--r--galaxysmtd.mk7
1 files changed, 3 insertions, 4 deletions
diff --git a/galaxysmtd.mk b/galaxysmtd.mk
index 2198c26..6243c8b 100644
--- a/galaxysmtd.mk
+++ b/galaxysmtd.mk
@@ -157,10 +157,9 @@ PRODUCT_TAGS += dalvik.gc.type-precise
PRODUCT_LOCALES := hdpi
# kernel modules
-PRODUCT_COPY_FILES += \
- device/samsung/galaxysmtd/bcm4329.ko:system/lib/modules/bcm4329.ko \
- device/samsung/galaxysmtd/cifs.ko:system/lib/modules/cifs.ko \
- device/samsung/galaxysmtd/tun.ko:system/lib/modules/tun.ko
+PRODUCT_COPY_FILES += $(foreach module,\
+ $(wildcard device/samsung/galaxysmtd/*.ko),\
+ $(module):system/lib/modules/$(notdir $(module)))
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/samsung/galaxysmtd/kernel