HiKey960/HiKey: Enable kernel module loading am: 3d2ce4cd56 am: 3af3873613 am: 774d3b6f14
am: 3e892cbe18
Change-Id: Ie8dceff5841cae8ec32b37cf518628e8236c0b6a
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