db845c: Enable kernel module loading
In preparation for GKI support, add some initial support for
kernel module loading during bootup.
For now, this is set to be conditional on DB845C_USE_GKI being
set while building
Thanks to YongQin and Sam for pointers on an improved way of
doing this.
Change-Id: I197dc83a63fc5aea2eb906beed95ff9bdff3d688
Signed-off-by: John Stultz <john.stultz@linaro.org>
diff --git a/db845c.mk b/db845c.mk
index 48f7875..3d44eb3 100644
--- a/db845c.mk
+++ b/db845c.mk
@@ -8,3 +8,13 @@
PRODUCT_NAME := db845c
PRODUCT_DEVICE := db845c
PRODUCT_BRAND := Android
+
+ifneq ($(DB845C_USES_GKI),)
+# The path here need to be finalized (ideally in the dragonboard-kernel dir)
+DB845C_MOD_DIR := device/linaro/dragonboard/db845c-mods/
+DB845C_MODS := $(wildcard $(DB845C_MOD_DIR)/*.ko)
+ifneq ($(DB845C_MODS),)
+ BOARD_VENDOR_KERNEL_MODULES += $(DB845C_MODS)
+ BOARD_VENDOR_RAMDISK_KERNEL_MODULES += $(DB845C_MODS)
+endif
+endif
diff --git a/ueventd.common.rc b/ueventd.common.rc
index 173b6f4..b87dccf 100644
--- a/ueventd.common.rc
+++ b/ueventd.common.rc
@@ -1,3 +1,5 @@
+modalias_handling enabled
+
/dev/sw_sync 0660 root graphics
# gpu