Merge "db845c: Move msm.ko from ramdisk to vendor partition" am: 17129b3ed4 am: 26a9bfd048 am: dbf3569270 am: 566c20ca83 am: cd4b282134
Original change: https://android-review.googlesource.com/c/device/linaro/dragonboard/+/1352624
Change-Id: I596cd14fad45a84e29828f9050dbb6cff56728c7
diff --git a/db845c.mk b/db845c.mk
index 8145405..e91d412 100644
--- a/db845c.mk
+++ b/db845c.mk
@@ -19,5 +19,10 @@
endif
ifeq ($(DB845C_USES_GKI), true)
-BOARD_GENERIC_RAMDISK_KERNEL_MODULES := $(wildcard $(DB845C_KERNEL_DIR)/*.ko)
+ DB845C_MODS := $(wildcard $(DB845C_KERNEL_DIR)/*.ko)
+ ifneq ($(DB845C_MODS),)
+ BOARD_VENDOR_KERNEL_MODULES += $(DB845C_MODS)
+ DB845C_ONLY_VENDOR := %/msm.ko
+ BOARD_VENDOR_RAMDISK_KERNEL_MODULES := $(filter-out $(DB845C_ONLY_VENDOR),$(DB845C_MODS))
+ endif
endif