makefile:strip generic ramdisk kernel modules in android build system.
Buganizer: 298884633 Test: manual test Change-Id: I72b21d806ab18e8274dff04445415fe8d2613729
This commit is contained in:
parent
44a7f9ccb3
commit
d2d30f6baf
1 changed files with 7 additions and 1 deletions
|
@ -657,6 +657,12 @@ ifneq ($(strip $(BOARD_GENERIC_RAMDISK_KERNEL_MODULES)),)
|
|||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(BOARD_DO_NOT_STRIP_GENERIC_RAMDISK_MODULES),true)
|
||||
GENERIC_RAMDISK_STRIPPED_MODULE_STAGING_DIR := $(call intermediates-dir-for,PACKAGING,depmod_generic_ramdisk_kernel_stripped)
|
||||
else
|
||||
GENERIC_RAMDISK_STRIPPED_MODULE_STAGING_DIR :=
|
||||
endif
|
||||
|
||||
ifneq ($(BOARD_DO_NOT_STRIP_RECOVERY_MODULES),true)
|
||||
RECOVERY_STRIPPED_MODULE_STAGING_DIR := $(call intermediates-dir-for,PACKAGING,depmod_recovery_stripped)
|
||||
else
|
||||
|
@ -711,7 +717,7 @@ $(foreach kmd,$(BOARD_KERNEL_MODULE_DIRS), \
|
|||
$(eval ALL_DEFAULT_INSTALLED_MODULES += $(call build-image-kernel-modules-dir,SYSTEM,$(if $(filter true,$(BOARD_USES_SYSTEM_DLKMIMAGE)),$(TARGET_OUT_SYSTEM_DLKM),$(TARGET_OUT_SYSTEM)),system,modules.load,,$(kmd))) \
|
||||
$(if $(filter true,$(BOARD_USES_RECOVERY_AS_BOOT)),\
|
||||
$(eval ALL_DEFAULT_INSTALLED_MODULES += $(call build-recovery-as-boot-load,$(kmd))),\
|
||||
$(eval ALL_DEFAULT_INSTALLED_MODULES += $(call build-image-kernel-modules-dir,GENERIC_RAMDISK,$(TARGET_RAMDISK_OUT),,modules.load,,$(kmd)))))
|
||||
$(eval ALL_DEFAULT_INSTALLED_MODULES += $(call build-image-kernel-modules-dir,GENERIC_RAMDISK,$(TARGET_RAMDISK_OUT),,modules.load,$(GENERIC_RAMDISK_STRIPPED_MODULE_STAGING_DIR),$(kmd)))))
|
||||
|
||||
ifeq ($(BOARD_SYSTEM_KERNEL_MODULES),)
|
||||
ifneq ($(BOARD_SYSTEM_DLKM_SRC),)
|
||||
|
|
Loading…
Reference in a new issue