AndroidKernel: Add all generated dlkm to vendor image

Currently, the modules that are needed to be used should be
explicitly mentioned in the Android's target configuration
to copy the modules into vendor partition for the users to
access/insert it. Hence, auto add all the modules that are
generated as a part of kernel compilation to the vendor partition.

Change-Id: I2b59a2e3c08a5be39b0eeca377cd945beaf4a792
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
This commit is contained in:
Raghavendra Rao Ananta
2018-07-25 20:06:19 -07:00
committed by Gerrit - the friendly Code Review server
parent 0986781374
commit f9bb0b7fea

View File

@@ -121,6 +121,8 @@ KERNEL_MODULES_OUT ?= $(PRODUCT_OUT)/$(KERNEL_MODULES_INSTALL)/lib/modules
TARGET_PREBUILT_KERNEL := $(TARGET_PREBUILT_INT_KERNEL)
BOARD_VENDOR_KERNEL_MODULES += $(shell ls $(KERNEL_MODULES_OUT)/*.ko)
define mv-modules
mdpath=`find $(KERNEL_MODULES_OUT) -type f -name modules.dep`;\
if [ "$$mdpath" != "" ];then\