From b73ccb7a25a175396fe451db1ecb33793ad877d9 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Mon, 17 Sep 2018 14:36:37 -0700 Subject: [PATCH] Fix installclean incremental builds w/veridex $(HOST_OUT)/obj/PACKAGING is cleaned via `installclean`, so regular built modules should not be depending on it. Explicitly call out the dependencies instead. Test: m; m installclean; m Change-Id: I0f318257e4742d6b7bd099dc06958ca8aba0cfb8 --- core/definitions.mk | 11 +++++++++++ core/package_internal.mk | 2 +- core/prebuilt_internal.mk | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/core/definitions.mk b/core/definitions.mk index 6c163df09..2c2489618 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -2479,10 +2479,21 @@ $(hide) \ echo "appcompat.sh output:" >> $(PRODUCT_OUT)/appcompat/$(PRIVATE_MODULE).log && \ art/tools/veridex/appcompat.sh --dex-file=$@ 2>&1 >> $(PRODUCT_OUT)/appcompat/$(PRIVATE_MODULE).log endef +appcompat-files = \ + art/tools/veridex/appcompat.sh \ + $(INTERNAL_PLATFORM_HIDDENAPI_WHITELIST) \ + $(INTERNAL_PLATFORM_HIDDENAPI_LIGHT_GREYLIST) \ + $(INTERNAL_PLATFORM_HIDDENAPI_DARK_GREYLIST) \ + $(INTERNAL_PLATFORM_HIDDENAPI_BLACKLIST) \ + $(HOST_OUT_EXECUTABLES)/veridex \ + $(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/core_dex_intermediates/classes.dex \ + $(TARGET_OUT_COMMON_INTERMEDIATES)/PACKAGING/oahl_dex_intermediates/classes.dex else appcompat-header = run-appcompat = +appcompat-files = endif # HOST_OS == linux +.KATI_READONLY: appcompat-header run-appcompat appcompat-files # Remove dynamic timestamps from packages # diff --git a/core/package_internal.mk b/core/package_internal.mk index 7f74cc903..51f5f0aeb 100644 --- a/core/package_internal.mk +++ b/core/package_internal.mk @@ -604,7 +604,7 @@ endif endif ifeq ($(module_run_appcompat),true) -$(LOCAL_BUILT_MODULE) : $(call intermediates-dir-for,PACKAGING,veridex,HOST)/veridex.zip +$(LOCAL_BUILT_MODULE) : $(appcompat-files) $(LOCAL_BUILT_MODULE): PRIVATE_INSTALLED_MODULE := $(LOCAL_INSTALLED_MODULE) endif diff --git a/core/prebuilt_internal.mk b/core/prebuilt_internal.mk index 256c59846..4d1aebc4f 100644 --- a/core/prebuilt_internal.mk +++ b/core/prebuilt_internal.mk @@ -368,7 +368,7 @@ $(built_module) : $(MINIGZIP) endif ifeq ($(module_run_appcompat),true) -$(built_module) : $(call intermediates-dir-for,PACKAGING,veridex,HOST)/veridex.zip +$(built_module) : $(appcompat-files) $(LOCAL_BUILT_MODULE): PRIVATE_INSTALLED_MODULE := $(LOCAL_INSTALLED_MODULE) endif