HiKey960: Add BOARD_VENDOR_RAMDISK_KERNEL_MODULES for modules am: 849254646d am: 89041a2d68
am: 991bbe2c22
Change-Id: Ie05a63d6b513db0029cec76d89a6dbc41e57a0ba
diff --git a/hikey960.mk b/hikey960.mk
index c7e4e6a..2e338e9 100644
--- a/hikey960.mk
+++ b/hikey960.mk
@@ -39,7 +39,13 @@
PRODUCT_BRAND := Android
PRODUCT_MODEL := AOSP on hikey960
-HIKEY_MODS := $(wildcard device/linaro/hikey-kernel/hikey960/$(TARGET_KERNEL_USE)/*.ko)
-ifneq ($(HIKEY_MODS),)
- BOARD_VENDOR_KERNEL_MODULES += $(HIKEY_MODS)
+ifneq ($(HIKEY_USES_GKI),)
+ HIKEY_MOD_DIR := device/linaro/hikey-kernel/hikey960/$(TARGET_KERNEL_USE)
+ HIKEY_MODS := $(wildcard $(HIKEY_MOD_DIR)/*.ko)
+ ifneq ($(HIKEY_MODS),)
+ BOARD_VENDOR_KERNEL_MODULES += $(HIKEY_MODS)
+ BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
+ $(HIKEY_MOD_DIR)/ion_cma_heap.ko \
+ $(HIKEY_MOD_DIR)/ufs-hisi.ko
+ endif
endif