From: Michael Scott Date: Fri, 23 Jan 2015 00:22:47 +0000 (-0800) Subject: greybus: build: android: add all greybus modules to the build X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=58b978c48bcde959c81f0501be1fdee4b2823687;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git greybus: build: android: add all greybus modules to the build We now have several modules generated by the greybus build. Let's add any *.ko files we find to the buid. Signed-off-by: Michael Scott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/Android.mk b/drivers/staging/greybus/Android.mk index 5d96a24c6838..6f13d35f4cf7 100644 --- a/drivers/staging/greybus/Android.mk +++ b/drivers/staging/greybus/Android.mk @@ -29,4 +29,6 @@ build-greybus: android_kernel cd $(GREYBUS_SRC_PATH) &&\ $(MAKE) -j$(MAKE_JOBS) CROSS_COMPILE=$(KERNEL_TOOLS_PREFIX) $(ARGS) mkdir -p $(GREYBUS_MODULE_OUT_PATH) - cp $(GREYBUS_SRC_PATH)/greybus.ko $(GREYBUS_MODULE_OUT_PATH) + ko=`find $$GREYBUS_SRC_PATH -type f -name *.ko`;\ + for i in $$ko; do $(KERNEL_TOOLCHAIN_PATH)strip --strip-unneeded $$i;\ + mv $$i $(GREYBUS_MODULE_OUT_PATH)/; done;