move BOARD_RECOVERY_KERNEL_MODULES_LOAD default
Moving this makes each of the partition's kernel module Makefile generation more similar, enabling a forthcoming cleanup/refactoring. If recovery-is-boot and there are kernel modules defined in BOARD_GENERIC_RAMDISK_KERNEL_MODULES, those kernel modules will now be included in the default assignment to BOARD_RECOVERY_KERNEL_MODULES_LOAD. If this is not desired then BOARD_RECOVERY_KERNEL_MODULES_LOAD may simply be set to BOARD_RECOVERY_KERNEL_MODULES (or a custom list of recovery kernel modules to load). Bug: 157645635 Change-Id: Ia1392b7d20d07cee75420edd95dcee1dc825516e
This commit is contained in:
@@ -305,9 +305,6 @@ ifneq ($(BUILDING_VENDOR_BOOT_IMAGE),true)
|
||||
BOARD_GENERIC_RAMDISK_KERNEL_MODULES_LOAD += $(BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD)
|
||||
endif
|
||||
|
||||
ifeq ($(BOARD_RECOVERY_KERNEL_MODULES_LOAD),)
|
||||
BOARD_RECOVERY_KERNEL_MODULES_LOAD := $(BOARD_RECOVERY_KERNEL_MODULES)
|
||||
endif
|
||||
ifeq ($(BOARD_GENERIC_RAMDISK_KERNEL_MODULES_LOAD),)
|
||||
BOARD_GENERIC_RAMDISK_KERNEL_MODULES_LOAD := $(BOARD_GENERIC_RAMDISK_KERNEL_MODULES)
|
||||
endif
|
||||
@@ -319,6 +316,9 @@ ifneq ($(strip $(BOARD_GENERIC_RAMDISK_KERNEL_MODULES)),)
|
||||
endif
|
||||
|
||||
ifneq ($(strip $(BOARD_RECOVERY_KERNEL_MODULES))$(strip $(BOARD_RECOVERY_KERNEL_MODULES_ARCHIVE)),)
|
||||
ifeq ($(BOARD_RECOVERY_KERNEL_MODULES_LOAD),)
|
||||
BOARD_RECOVERY_KERNEL_MODULES_LOAD := $(BOARD_RECOVERY_KERNEL_MODULES)
|
||||
endif
|
||||
ALL_DEFAULT_INSTALLED_MODULES += $(call copy-many-files,$(call build-image-kernel-modules,$(BOARD_RECOVERY_KERNEL_MODULES),$(TARGET_RECOVERY_ROOT_OUT),,$(call intermediates-dir-for,PACKAGING,depmod_recovery),$(BOARD_RECOVERY_KERNEL_MODULES_LOAD),modules.load.recovery,$(BOARD_RECOVERY_KERNEL_MODULES_ARCHIVE),))
|
||||
endif
|
||||
ifeq ($(BOARD_USES_RECOVERY_AS_BOOT), true)
|
||||
|
Reference in New Issue
Block a user