Merge "db845c: Move msm.ko from ramdisk to vendor partition" am: 17129b3ed4 am: 26a9bfd048 am: dbf3569270

Original change: https://android-review.googlesource.com/c/device/linaro/dragonboard/+/1352624

Change-Id: Id07816b8718141aa38eb803b3a90ccf5917cd0dc
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