Merge "Move old installed file cleanup logic below build/make/core/Makefile" am: 4cd2568acc
Original change: https://android-review.googlesource.com/c/platform/build/+/2544890 Change-Id: Iea367fd221a07576cdbbfea86479961bb22fb11c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
45
core/main.mk
45
core/main.mk
@@ -1386,29 +1386,6 @@ modules_to_install := $(sort \
|
|||||||
$(CUSTOM_MODULES) \
|
$(CUSTOM_MODULES) \
|
||||||
)
|
)
|
||||||
|
|
||||||
ifdef FULL_BUILD
|
|
||||||
#
|
|
||||||
# Used by the cleanup logic in soong_ui to remove files that should no longer
|
|
||||||
# be installed.
|
|
||||||
#
|
|
||||||
|
|
||||||
# Include all tests, so that we remove them from the test suites / testcase
|
|
||||||
# folders when they are removed.
|
|
||||||
test_files := $(foreach ts,$(ALL_COMPATIBILITY_SUITES),$(COMPATIBILITY.$(ts).FILES))
|
|
||||||
|
|
||||||
$(shell mkdir -p $(PRODUCT_OUT) $(HOST_OUT))
|
|
||||||
|
|
||||||
$(file >$(PRODUCT_OUT)/.installable_files$(if $(filter address,$(SANITIZE_TARGET)),_asan), \
|
|
||||||
$(sort $(patsubst $(PRODUCT_OUT)/%,%,$(filter $(PRODUCT_OUT)/%, \
|
|
||||||
$(modules_to_install) $(test_files)))))
|
|
||||||
|
|
||||||
$(file >$(HOST_OUT)/.installable_test_files,$(sort \
|
|
||||||
$(patsubst $(HOST_OUT)/%,%,$(filter $(HOST_OUT)/%, \
|
|
||||||
$(test_files)))))
|
|
||||||
|
|
||||||
test_files :=
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Dedpulicate compatibility suite dist files across modules and packages before
|
# Dedpulicate compatibility suite dist files across modules and packages before
|
||||||
# copying them to their requested locations. Assign the eval result to an unused
|
# copying them to their requested locations. Assign the eval result to an unused
|
||||||
# var to prevent Make from trying to make a sense of it.
|
# var to prevent Make from trying to make a sense of it.
|
||||||
@@ -1467,6 +1444,28 @@ endif
|
|||||||
modules_to_install := $(sort $(ALL_DEFAULT_INSTALLED_MODULES))
|
modules_to_install := $(sort $(ALL_DEFAULT_INSTALLED_MODULES))
|
||||||
ALL_DEFAULT_INSTALLED_MODULES :=
|
ALL_DEFAULT_INSTALLED_MODULES :=
|
||||||
|
|
||||||
|
ifdef FULL_BUILD
|
||||||
|
#
|
||||||
|
# Used by the cleanup logic in soong_ui to remove files that should no longer
|
||||||
|
# be installed.
|
||||||
|
#
|
||||||
|
|
||||||
|
# Include all tests, so that we remove them from the test suites / testcase
|
||||||
|
# folders when they are removed.
|
||||||
|
test_files := $(foreach ts,$(ALL_COMPATIBILITY_SUITES),$(COMPATIBILITY.$(ts).FILES))
|
||||||
|
|
||||||
|
$(shell mkdir -p $(PRODUCT_OUT) $(HOST_OUT))
|
||||||
|
|
||||||
|
$(file >$(PRODUCT_OUT)/.installable_files$(if $(filter address,$(SANITIZE_TARGET)),_asan), \
|
||||||
|
$(sort $(patsubst $(PRODUCT_OUT)/%,%,$(filter $(PRODUCT_OUT)/%, \
|
||||||
|
$(modules_to_install) $(test_files)))))
|
||||||
|
|
||||||
|
$(file >$(HOST_OUT)/.installable_test_files,$(sort \
|
||||||
|
$(patsubst $(HOST_OUT)/%,%,$(filter $(HOST_OUT)/%, \
|
||||||
|
$(test_files)))))
|
||||||
|
|
||||||
|
test_files :=
|
||||||
|
endif
|
||||||
|
|
||||||
# Some notice deps refer to module names without prefix or arch suffix where
|
# Some notice deps refer to module names without prefix or arch suffix where
|
||||||
# only the variants with them get built.
|
# only the variants with them get built.
|
||||||
|
Reference in New Issue
Block a user