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/hikey.mk b/hikey.mk
index c723f2d..9e29243 100644
--- a/hikey.mk
+++ b/hikey.mk
@@ -13,3 +13,8 @@
 PRODUCT_NAME := hikey
 PRODUCT_DEVICE := hikey
 PRODUCT_BRAND := Android
+
+HIKEY_MODS := $(wildcard device/linaro/hikey-kernel/hikey/$(TARGET_KERNEL_USE)/*.ko)
+ifneq ($(HIKEY_MODS),)
+  BOARD_VENDOR_KERNEL_MODULES += $(HIKEY_MODS)
+endif
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
diff --git a/ueventd.common.rc b/ueventd.common.rc
index ff82f70..b7dd505 100644
--- a/ueventd.common.rc
+++ b/ueventd.common.rc
@@ -1,3 +1,5 @@
+modalias_handling enabled
+
 subsystem usbmisc
     devname uevent_devname