sdm845-common: Load qcacld from system

* This will implicitly add every kernel module to system

Change-Id: I1fb827536a7cd6cb0d46c9dbb78da4f19e80492b
This commit is contained in:
Luca Stefani 2018-07-11 10:13:11 +02:00 committed by Danny Baumann
parent 646a48d17f
commit 9850301224
4 changed files with 8 additions and 0 deletions

View file

@ -44,6 +44,7 @@ BOARD_KERNEL_BASE := 0x80000000
BOARD_KERNEL_CMDLINE := androidboot.hardware=qcom androidboot.console=ttyMSM0 video=vfb:640x400,bpp=32,memsize=3072000 msm_rtb.filter=0x237 ehci-hcd.park=3 lpm_levels.sleep_disabled=1 service_locator.enable=1 swiotlb=2048 androidboot.configfs=true androidboot.usbcontroller=a600000.dwc3 androidboot.avb_version=0.0 androidboot.vbmeta.avb_version=0.0
BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb
BOARD_KERNEL_PAGESIZE := 4096
NEED_KERNEL_MODULE_SYSTEM := true
TARGET_KERNEL_ARCH := arm64
TARGET_KERNEL_SOURCE := kernel/oneplus/sdm845
TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android-

View file

@ -2,6 +2,8 @@ on init
mount none /system/lib64/hw/power.qcom.so /vendor/lib64/hw/power.qcom.so bind
mount none /system/lib/hw/power.qcom.so /vendor/lib/hw/power.qcom.so bind
mount none /system/lib64/hw/hwcomposer.qcom.so /vendor/lib64/hw/hwcomposer.sdm845.so bind
mount none /system/lib/modules/wlan.ko /vendor/lib/modules-aging/qca_cld3_wlan.ko bind
mount none /system/lib/modules/wlan.ko /vendor/lib/modules/qca_cld3_wlan.ko bind
on boot
# Touchpanel

View file

@ -9,6 +9,9 @@
# Lights
/system/bin/hw/android\.hardware\.light@2\.0-service\.oneplus_sdm845 u:object_r:hal_light_sdm845_exec:s0
# Modules
/system/lib/modules/wlan\.ko u:object_r:vendor_file:s0
# Power HAL
/system/lib64/hw/power\.qcom\.so u:object_r:vendor_file:s0
/system/lib/hw/power\.qcom\.so u:object_r:vendor_file:s0

2
sepolicy/private/init.te Normal file
View file

@ -0,0 +1,2 @@
# Allow init to mount wlan kernel module
allow init vendor_file:file mounton;