From f97bccadcec6e6b1235674e43a221a9e8ff0a8ff Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Fri, 29 Jul 2011 11:24:19 +0200 Subject: 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 --- galaxysmtd.mk | 7 +++---- 1 file 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 -- cgit v1.1