summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2020-06-26 00:39:36 +0000
committerJohn Stultz <john.stultz@linaro.org>2020-06-29 18:18:27 +0000
commitb59e05d450e992c70205998ef372312837810829 (patch)
treeb17687542f7105881e39dea34323294ca89549b0
parent50b8daeaa58887a66aee2a9b90f366af5ce4db37 (diff)
db845c: Move msm.ko from ramdisk to vendor partition
Unfortuantely the msm.ko object is 32 megs which takes about half of the 64m boot partition. With android-mainline we end up running out of space, so lets move this largest module off to the vendor partition to allow the build to continue to work Change-Id: I866394abf7da9bb681f1738c8996ec23a048118c Signed-off-by: John Stultz <john.stultz@linaro.org>
-rw-r--r--db845c.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/db845c.mk b/db845c.mk
index 8145405..e91d412 100644
--- a/db845c.mk
+++ b/db845c.mk
@@ -19,5 +19,10 @@ DB845C_USES_GKI := true
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