summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2019-08-01 18:28:36 +0000
committerJohn Stultz <john.stultz@linaro.org>2019-10-09 20:49:05 +0000
commit092e043238e38b95af737eadb3bbb4a10427a1c0 (patch)
tree00875f2b9c292088db9ead0630d1bace1ae2c52a
parent34da58f235f314dbe1deb8677991a43a5d8fd537 (diff)
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>
-rw-r--r--db845c.mk10
-rw-r--r--ueventd.common.rc2
2 files changed, 12 insertions, 0 deletions
diff --git a/db845c.mk b/db845c.mk
index 48f7875..3d44eb3 100644
--- a/db845c.mk
+++ b/db845c.mk
@@ -8,3 +8,13 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
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