From 395358edae83aaa58d7700e3f33e1c8e364d8c6b Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Wed, 4 Mar 2020 23:50:53 +0000 Subject: [PATCH] Trim down dont_bother_goals This had caused the nodeps targets to break when I added the auto-cleanup feature, as we wrote out smaller lists of what was installed. The functionality of dont_bother_goals is also being fixed in https://android-review.googlesource.com/c/platform/build/+/1250929/ But there's also no reason to have all of these targets in dont_bother_goals, as they can just re-use the cached kati build graph. Bug: 149460609 Test: m systemimage && m snod Test: m snod Test: codesearch for uses of MAKECMDGOALS and these targets Change-Id: Ib8e7ba67e5ad980be4bdcf521c5156eea7941f97 --- core/Makefile | 5 +---- core/config.mk | 17 ----------------- core/ninja_config.mk | 2 -- 3 files changed, 1 insertion(+), 23 deletions(-) diff --git a/core/Makefile b/core/Makefile index 64fbe22c14..d39f9de8d2 100644 --- a/core/Makefile +++ b/core/Makefile @@ -2730,11 +2730,8 @@ systemimage-nodeps snod: $(filter-out systemimage-nodeps snod,$(MAKECMDGOALS)) \ @echo "make $@: ignoring dependencies" $(call build-systemimage-target,$(INSTALLED_SYSTEMIMAGE_TARGET)) $(hide) $(call assert-max-image-size,$(INSTALLED_SYSTEMIMAGE_TARGET),$(BOARD_SYSTEMIMAGE_PARTITION_SIZE)) - -ifneq (,$(filter systemimage-nodeps snod, $(MAKECMDGOALS))) ifeq (true,$(WITH_DEXPREOPT)) -$(warning Warning: with dexpreopt enabled, you may need a full rebuild.) -endif + $(warning Warning: with dexpreopt enabled, you may need a full rebuild.) endif endif # BUILDING_SYSTEM_IMAGE diff --git a/core/config.mk b/core/config.mk index ba77990da0..b329b0d687 100644 --- a/core/config.mk +++ b/core/config.mk @@ -1219,23 +1219,6 @@ endif # These goals don't need to collect and include Android.mks/CleanSpec.mks # in the source tree. dont_bother_goals := out \ - snod systemimage-nodeps \ - userdataimage-nodeps \ - cacheimage-nodeps \ - bptimage-nodeps \ - vnod vendorimage-nodeps \ - pnod productimage-nodeps \ - senod systemextimage-nodeps \ - onod odmimage-nodeps \ - systemotherimage-nodeps \ - ramdisk-nodeps \ - ramdisk_debug-nodeps \ - ramdisk_test_harness-nodeps \ - bootimage-nodeps \ - bootimage_debug-nodeps \ - bootimage_test_harness-nodeps \ - recoveryimage-nodeps \ - vbmetaimage-nodeps \ product-graph dump-products ifeq ($(CALLED_FROM_SETUP),true) diff --git a/core/ninja_config.mk b/core/ninja_config.mk index b1f4b03862..c2d2a5bda1 100644 --- a/core/ninja_config.mk +++ b/core/ninja_config.mk @@ -40,9 +40,7 @@ PARSE_TIME_MAKE_GOALS := \ sdk \ sdk_addon \ sdk_repo \ - snod \ stnod \ - systemimage-nodeps \ target-files-package \ test-art% \ user \