From f282f5521da2c2cdb77ef85852a6244044abecc6 Mon Sep 17 00:00:00 2001 From: Yi-Yo Chiang Date: Tue, 11 Jan 2022 17:19:23 +0800 Subject: [PATCH] Add boot*.img to default dist target if PRODUCT_EXPORT_BOOT_IMAGE_TO_DIST Right now if PRODUCT_EXPORT_BOOT_IMAGE_TO_DIST is given, $ m dist bootimage would copy boot*.img to the dist dir. After this change, both $ m dist # droidcore $ m dist bootimage would copy boot*.img to the dist dir, the difference is that the latter builds & copies *only* the boot images. Bug: 212486689 Test: m dist bootimage Test: m dist => boot*.img are copied to dist dir Change-Id: I1c714ce5d75eba93e32078b1ac291a181b05405a --- core/main.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/main.mk b/core/main.mk index d17f0cbe5b..9a797f24ef 100644 --- a/core/main.mk +++ b/core/main.mk @@ -1877,6 +1877,10 @@ else ifeq ($(TARGET_BUILD_UNBUNDLED),$(TARGET_BUILD_UNBUNDLED_IMAGE)) ) endif + ifeq ($(PRODUCT_EXPORT_BOOT_IMAGE_TO_DIST),true) + $(call dist-for-goals, droidcore-unbundled, $(INSTALLED_BOOTIMAGE_TARGET)) + endif + ifeq ($(BOARD_USES_RECOVERY_AS_BOOT),true) $(call dist-for-goals, droidcore-unbundled, \ $(recovery_ramdisk) \