HiKey960/HiKey: Enable kernel module loading
In preparation for GKI support, add some initial support for
kernel module loading during bootup.
Thanks to YongQin and Sam for pointers on an improved way of
doing this.
NOTE: This does not yet deal with initramfs modules
Change-Id: Ie802f2b62267fbd93e550ef30c4e479f44ba94b6
Signed-off-by: John Stultz <john.stultz@linaro.org>
diff --git a/hikey960.mk b/hikey960.mk
index a473949..c7e4e6a 100644
--- a/hikey960.mk
+++ b/hikey960.mk
@@ -38,3 +38,8 @@
PRODUCT_DEVICE := hikey960
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)
+endif