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: 192241728
Change-Id: I05d55f8a2854619b92defcf3fb11cc2b87a8dab6
This commit is contained in:
Robin Peng 2021-06-29 00:42:11 +08:00
parent 5728c951c8
commit 955f808124
2 changed files with 4 additions and 0 deletions

View file

@ -373,6 +373,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/gs201/vendor_dlkm.blocklist
KERNEL_MODULE_DIR := $(TARGET_KERNEL_DIR)
KERNEL_MODULES := $(wildcard $(KERNEL_MODULE_DIR)/*.ko)

2
vendor_dlkm.blocklist Normal file
View file

@ -0,0 +1,2 @@
blocklist bcmdhd4389
blocklist sec_touch