From dc6c216476a2d7530be1cbfaf1f898b3fa69d408 Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Fri, 9 Nov 2018 13:32:12 +0000 Subject: [PATCH] Support disabling artifact path requirements Path requirements can get in the way when developing, so provide a way to disable them on the command line. Bug: 80410283 Bug: 119025354 Test: lunch mainline_arm64; DISABLE_ARTIFACT_PATH_REQUIREMENTS=true m nothing Change-Id: Ia44b73f3013a0ea218bd9a361037269c7557da9e --- core/main.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/main.mk b/core/main.mk index fdf14de5a..0bccfb7df 100644 --- a/core/main.mk +++ b/core/main.mk @@ -1075,7 +1075,7 @@ ifdef FULL_BUILD product_MODULES := $(_pif_modules) # Verify the artifact path requirements made by included products. - + ifneq (true,$(DISABLE_ARTIFACT_PATH_REQUIREMENTS)) # Fakes don't get installed, and host files are irrelevant. static_whitelist_patterns := $(TARGET_OUT_FAKE)/% $(HOST_OUT)/% # RROs become REQUIRED by the source module, but are always placed on the vendor partition. @@ -1119,6 +1119,7 @@ ifdef FULL_BUILD $(PRODUCT_OUT)/offending_artifacts.txt: rm -f $@ $(foreach f,$(sort $(all_offending_files)),echo $(f) >> $@;) + endif else # We're not doing a full build, and are probably only including # a subset of the module makefiles. Don't try to build any modules