Add a kernel module blocklist file

Kernel modules on the blocklist are not automatically loaded during
second stage init. Modules are often put on the blocklist if we want
them to get loaded only under certain circumstances.

Bug: 190652328
Change-Id: Ib67463555f498f4dc85d5d175e0bf9e4150771dd
This commit is contained in:
Daniel Mentz 2021-05-13 17:26:39 -07:00
parent 56978d9961
commit 24b12e2935
2 changed files with 11 additions and 0 deletions

View file

@ -379,6 +379,8 @@ BOARD_BUILD_SYSTEM_ROOT_IMAGE := false
# Vendor ramdisk image for kernel development
BOARD_BUILD_VENDOR_RAMDISK_IMAGE := true
BOARD_VENDOR_KERNEL_MODULES_BLOCKLIST_FILE := device/google/gs101/vendor_dlkm.blocklist
KERNEL_MODULE_DIR := $(TARGET_KERNEL_DIR)
KERNEL_MODULES := $(wildcard $(KERNEL_MODULE_DIR)/*.ko)

9
vendor_dlkm.blocklist Normal file
View file

@ -0,0 +1,9 @@
blocklist bcmdhd43752
blocklist bcmdhd4389
blocklist drv2624
blocklist ftm5
blocklist sec_touch
blocklist snd-soc-cs35l41-i2c
blocklist snd-soc-cs35l41-spi
blocklist st33spi
blocklist st54spi