Merge "Default to not generating modules.dep for system side" am: 8a9dffb96e
Original change: https://android-review.googlesource.com/c/platform/build/+/2332648 Change-Id: I13f75e085be2526441c53f8df2e200a29991c36d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
9c3e22139d
1 changed files with 8 additions and 0 deletions
|
@ -558,6 +558,14 @@ else
|
|||
endif
|
||||
|
||||
BOARD_KERNEL_MODULE_DIRS += top
|
||||
|
||||
# Default to not generating modules.dep for kernel modules on system
|
||||
# side. We should only load these modules if they are depended by vendor
|
||||
# side modules.
|
||||
ifeq ($(BOARD_SYSTEM_KERNEL_MODULES_LOAD),)
|
||||
BOARD_SYSTEM_KERNEL_MODULES_LOAD := false
|
||||
endif
|
||||
|
||||
$(foreach kmd,$(BOARD_KERNEL_MODULE_DIRS), \
|
||||
$(eval ALL_DEFAULT_INSTALLED_MODULES += $(call build-image-kernel-modules-dir,RECOVERY,$(TARGET_RECOVERY_ROOT_OUT),,modules.load.recovery,$(RECOVERY_STRIPPED_MODULE_STAGING_DIR),$(kmd))) \
|
||||
$(eval vendor_ramdisk_fragment := $(KERNEL_MODULE_DIR_VENDOR_RAMDISK_FRAGMENT_$(kmd))) \
|
||||
|
|
Loading…
Reference in a new issue