From 5478754cd67d6c0ec1190c4012b556fe9dba8af9 Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Fri, 29 Mar 2019 14:44:06 -0700 Subject: [PATCH] Move super.img to obj/PACKAGING To avoid the confusion. super.img isn't intended to be flashed during day-to-day development. Test: m superimage Bug: 128891161 Change-Id: I9d62e5929b415343b2d890ab21e6ae51175af2ae --- CleanSpec.mk | 2 ++ core/Makefile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CleanSpec.mk b/CleanSpec.mk index 3d9a1ef59..76bc0c510 100644 --- a/CleanSpec.mk +++ b/CleanSpec.mk @@ -613,6 +613,8 @@ $(call add-clean-step, rm -rf $(HOST_OUT)/framework/vts-tradefed.jar) # Clean up old location of system_other.avbpubkey $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/etc/security/avb/) + +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/super.img) # ************************************************ # NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST # ************************************************ diff --git a/core/Makefile b/core/Makefile index 7e62ad4bb..3213edb64 100644 --- a/core/Makefile +++ b/core/Makefile @@ -4417,7 +4417,7 @@ define dump-super-image-info endef ifneq (true,$(PRODUCT_RETROFIT_DYNAMIC_PARTITIONS)) -INSTALLED_SUPERIMAGE_TARGET := $(PRODUCT_OUT)/super.img +INSTALLED_SUPERIMAGE_TARGET := $(call intermediates-dir-for,PACKAGING,super.img)/super.img $(INSTALLED_SUPERIMAGE_TARGET): extracted_input_target_files := $(patsubst %.zip,%,$(BUILT_TARGET_FILES_PACKAGE)) $(INSTALLED_SUPERIMAGE_TARGET): $(LPMAKE) $(BUILT_TARGET_FILES_PACKAGE) $(BUILD_SUPER_IMAGE) $(call pretty,"Target super fs image: $@")