Merge "Patch zips makefile to properly use private variables" into main am: 4caa319d36
Original change: https://android-review.googlesource.com/c/platform/build/+/3101478 Change-Id: I66453294d22382146a71b90e31a0ccdb01113638 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
30d7c0b8af
2 changed files with 38 additions and 33 deletions
|
@ -15,20 +15,23 @@
|
|||
|
||||
.PHONY: device-platinum-tests
|
||||
|
||||
device-platinum-tests-zip := $(PRODUCT_OUT)/device-platinum-tests.zip
|
||||
device_platinum_tests_zip := $(PRODUCT_OUT)/device-platinum-tests.zip
|
||||
# Create an artifact to include a list of test config files in device-platinum-tests.
|
||||
device-platinum-tests-list-zip := $(PRODUCT_OUT)/device-platinum-tests_list.zip
|
||||
device_platinum_tests_list_zip := $(PRODUCT_OUT)/device-platinum-tests_list.zip
|
||||
# Create an artifact to include all test config files in device-platinum-tests.
|
||||
device-platinum-tests-configs-zip := $(PRODUCT_OUT)/device-platinum-tests_configs.zip
|
||||
device_platinum_tests_configs_zip := $(PRODUCT_OUT)/device-platinum-tests_configs.zip
|
||||
my_host_shared_lib_for_device_platinum_tests := $(call copy-many-files,$(COMPATIBILITY.device-platinum-tests.HOST_SHARED_LIBRARY.FILES))
|
||||
device_platinum_tests_host_shared_libs_zip := $(PRODUCT_OUT)/device-platinum-tests_host-shared-libs.zip
|
||||
|
||||
$(device-platinum-tests-zip) : .KATI_IMPLICIT_OUTPUTS := $(device-platinum-tests-list-zip) $(device-platinum-tests-configs-zip) $(device_platinum_tests_host_shared_libs_zip)
|
||||
$(device-platinum-tests-zip) : PRIVATE_device_platinum_tests_list := $(PRODUCT_OUT)/device-platinum-tests_list
|
||||
$(device-platinum-tests-zip) : PRIVATE_HOST_SHARED_LIBS := $(my_host_shared_lib_for_device_platinum_tests)
|
||||
$(device-platinum-tests-zip) : PRIVATE_device_host_shared_libs_zip := $(device_platinum_tests_host_shared_libs_zip)
|
||||
$(device-platinum-tests-zip) : $(COMPATIBILITY.device-platinum-tests.FILES) $(my_host_shared_lib_for_device_platinum_tests) $(SOONG_ZIP)
|
||||
$(device_platinum_tests_zip) : .KATI_IMPLICIT_OUTPUTS := $(device_platinum_tests_list_zip) $(device_platinum_tests_configs_zip) $(device_platinum_tests_host_shared_libs_zip)
|
||||
$(device_platinum_tests_zip) : PRIVATE_device_platinum_tests_list_zip := $(device_platinum_tests_list_zip)
|
||||
$(device_platinum_tests_zip) : PRIVATE_device_platinum_tests_configs_zip := $(device_platinum_tests_configs_zip)
|
||||
$(device_platinum_tests_zip) : PRIVATE_device_platinum_tests_list := $(PRODUCT_OUT)/device-platinum-tests_list
|
||||
$(device_platinum_tests_zip) : PRIVATE_HOST_SHARED_LIBS := $(my_host_shared_lib_for_device_platinum_tests)
|
||||
$(device_platinum_tests_zip) : PRIVATE_device_host_shared_libs_zip := $(device_platinum_tests_host_shared_libs_zip)
|
||||
$(device_platinum_tests_zip) : $(COMPATIBILITY.device-platinum-tests.FILES) $(my_host_shared_lib_for_device_platinum_tests) $(SOONG_ZIP)
|
||||
rm -f $@-shared-libs.list
|
||||
rm -f $(PRIVATE_device_platinum_tests_list_zip)
|
||||
echo $(sort $(COMPATIBILITY.device-platinum-tests.FILES)) | tr " " "\n" > $@.list
|
||||
grep $(HOST_OUT_TESTCASES) $@.list > $@-host.list || true
|
||||
grep -e .*\\.config$$ $@-host.list > $@-host-test-configs.list || true
|
||||
|
@ -40,7 +43,7 @@ $(device-platinum-tests-zip) : $(COMPATIBILITY.device-platinum-tests.FILES) $(my
|
|||
grep $(TARGET_OUT_TESTCASES) $@.list > $@-target.list || true
|
||||
grep -e .*\\.config$$ $@-target.list > $@-target-test-configs.list || true
|
||||
$(hide) $(SOONG_ZIP) -d -o $@ -P host -C $(HOST_OUT) -l $@-host.list -P target -C $(PRODUCT_OUT) -l $@-target.list -sha256
|
||||
$(hide) $(SOONG_ZIP) -d -o $(device-platinum-tests-configs-zip) \
|
||||
$(hide) $(SOONG_ZIP) -d -o $(PRIVATE_device_platinum_tests_configs_zip) \
|
||||
-P host -C $(HOST_OUT) -l $@-host-test-configs.list \
|
||||
-P target -C $(PRODUCT_OUT) -l $@-target-test-configs.list
|
||||
$(SOONG_ZIP) -d -o $(PRIVATE_device_host_shared_libs_zip) \
|
||||
|
@ -48,21 +51,21 @@ $(device-platinum-tests-zip) : $(COMPATIBILITY.device-platinum-tests.FILES) $(my
|
|||
rm -f $(PRIVATE_device_platinum_tests_list)
|
||||
$(hide) grep -e .*\\.config$$ $@-host.list | sed s%$(HOST_OUT)%host%g > $(PRIVATE_device_platinum_tests_list)
|
||||
$(hide) grep -e .*\\.config$$ $@-target.list | sed s%$(PRODUCT_OUT)%target%g >> $(PRIVATE_device_platinum_tests_list)
|
||||
$(hide) $(SOONG_ZIP) -d -o $(device-platinum-tests-list-zip) -C $(dir $@) -f $(PRIVATE_device_platinum_tests_list)
|
||||
$(hide) $(SOONG_ZIP) -d -o $(PRIVATE_device_platinum_tests_list_zip) -C $(dir $@) -f $(PRIVATE_device_platinum_tests_list)
|
||||
rm -f $@.list $@-host.list $@-target.list $@-host-test-configs.list $@-target-test-configs.list \
|
||||
$@-shared-libs.list $@-host-shared-libs.list $(PRIVATE_device_platinum_tests_list)
|
||||
|
||||
device-platinum-tests: $(device-platinum-tests-zip)
|
||||
$(call dist-for-goals, device-platinum-tests, $(device-platinum-tests-zip) $(device-platinum-tests-list-zip) $(device-platinum-tests-configs-zip) $(device_platinum_tests_host_shared_libs_zip))
|
||||
device-platinum-tests: $(device_platinum_tests_zip)
|
||||
$(call dist-for-goals, device-platinum-tests, $(device_platinum_tests_zip) $(device_platinum_tests_list_zip) $(device_platinum_tests_configs_zip) $(device_platinum_tests_host_shared_libs_zip))
|
||||
|
||||
$(call declare-1p-container,$(device-platinum-tests-zip),)
|
||||
$(call declare-container-license-deps,$(device-platinum-tests-zip),$(COMPATIBILITY.device-platinum-tests.FILES) $(my_host_shared_lib_for_device_platinum_tests),$(PRODUCT_OUT)/:/)
|
||||
$(call declare-1p-container,$(device_platinum_tests_zip),)
|
||||
$(call declare-container-license-deps,$(device_platinum_tests_zip),$(COMPATIBILITY.device-platinum-tests.FILES) $(my_host_shared_lib_for_device_platinum_tests),$(PRODUCT_OUT)/:/)
|
||||
|
||||
tests: device-platinum-tests
|
||||
|
||||
# Reset temp vars
|
||||
device-platinum-tests-zip :=
|
||||
device-platinum-tests-list-zip :=
|
||||
device-platinum-tests-configs-zip :=
|
||||
device_platinum_tests_zip :=
|
||||
device_platinum_tests_list_zip :=
|
||||
device_platinum_tests_configs_zip :=
|
||||
my_host_shared_lib_for_device_platinum_tests :=
|
||||
device_platinum_tests_host_shared_libs_zip :=
|
||||
device_platinum_tests_host_shared_libs_zip :=
|
||||
|
|
|
@ -15,40 +15,42 @@
|
|||
|
||||
.PHONY: performance-tests
|
||||
|
||||
performance-tests-zip := $(PRODUCT_OUT)/performance-tests.zip
|
||||
performance_tests_zip := $(PRODUCT_OUT)/performance-tests.zip
|
||||
# Create an artifact to include a list of test config files in performance-tests.
|
||||
performance-tests-list-zip := $(PRODUCT_OUT)/performance-tests_list.zip
|
||||
performance_tests_list_zip := $(PRODUCT_OUT)/performance-tests_list.zip
|
||||
# Create an artifact to include all test config files in performance-tests.
|
||||
performance-tests-configs-zip := $(PRODUCT_OUT)/performance-tests_configs.zip
|
||||
performance_tests_configs_zip := $(PRODUCT_OUT)/performance-tests_configs.zip
|
||||
|
||||
$(performance-tests-zip) : .KATI_IMPLICIT_OUTPUTS := $(performance-tests-list-zip) $(performance-tests-configs-zip)
|
||||
$(performance-tests-zip) : PRIVATE_performance_tests_list := $(PRODUCT_OUT)/performance-tests_list
|
||||
$(performance-tests-zip) : $(COMPATIBILITY.performance-tests.FILES) $(SOONG_ZIP)
|
||||
$(performance_tests_zip) : .KATI_IMPLICIT_OUTPUTS := $(performance_tests_list_zip) $(performance_tests_configs_zip)
|
||||
$(performance_tests_zip) : PRIVATE_performance_tests_list_zip := $(performance_tests_list_zip)
|
||||
$(performance_tests_zip) : PRIVATE_performance_tests_configs_zip := $(performance_tests_configs_zip)
|
||||
$(performance_tests_zip) : PRIVATE_performance_tests_list := $(PRODUCT_OUT)/performance-tests_list
|
||||
$(performance_tests_zip) : $(COMPATIBILITY.performance-tests.FILES) $(SOONG_ZIP)
|
||||
echo $(sort $(COMPATIBILITY.performance-tests.FILES)) | tr " " "\n" > $@.list
|
||||
grep $(HOST_OUT_TESTCASES) $@.list > $@-host.list || true
|
||||
grep -e .*\\.config$$ $@-host.list > $@-host-test-configs.list || true
|
||||
grep $(TARGET_OUT_TESTCASES) $@.list > $@-target.list || true
|
||||
grep -e .*\\.config$$ $@-target.list > $@-target-test-configs.list || true
|
||||
$(hide) $(SOONG_ZIP) -d -o $@ -P host -C $(HOST_OUT) -l $@-host.list -P target -C $(PRODUCT_OUT) -l $@-target.list -sha256
|
||||
$(hide) $(SOONG_ZIP) -d -o $(performance-tests-configs-zip) \
|
||||
$(hide) $(SOONG_ZIP) -d -o $(PRIVATE_performance_tests_configs_zip) \
|
||||
-P host -C $(HOST_OUT) -l $@-host-test-configs.list \
|
||||
-P target -C $(PRODUCT_OUT) -l $@-target-test-configs.list
|
||||
rm -f $(PRIVATE_performance_tests_list)
|
||||
$(hide) grep -e .*\\.config$$ $@-host.list | sed s%$(HOST_OUT)%host%g > $(PRIVATE_performance_tests_list)
|
||||
$(hide) grep -e .*\\.config$$ $@-target.list | sed s%$(PRODUCT_OUT)%target%g >> $(PRIVATE_performance_tests_list)
|
||||
$(hide) $(SOONG_ZIP) -d -o $(performance-tests-list-zip) -C $(dir $@) -f $(PRIVATE_performance_tests_list)
|
||||
$(hide) $(SOONG_ZIP) -d -o $(PRIVATE_performance_tests_list_zip) -C $(dir $@) -f $(PRIVATE_performance_tests_list)
|
||||
rm -f $@.list $@-host.list $@-target.list $@-host-test-configs.list $@-target-test-configs.list \
|
||||
$(PRIVATE_performance_tests_list)
|
||||
|
||||
performance-tests: $(performance-tests-zip)
|
||||
$(call dist-for-goals, performance-tests, $(performance-tests-zip) $(performance-tests-list-zip) $(performance-tests-configs-zip))
|
||||
performance-tests: $(performance_tests_zip)
|
||||
$(call dist-for-goals, performance-tests, $(performance_tests_zip) $(performance_tests_list_zip) $(performance_tests_configs_zip))
|
||||
|
||||
$(call declare-1p-container,$(performance-tests-zip),)
|
||||
$(call declare-container-license-deps,$(performance-tests-zip),$(COMPATIBILITY.performance-tests.FILES),$(PRODUCT_OUT)/:/)
|
||||
$(call declare-1p-container,$(performance_tests_zip),)
|
||||
$(call declare-container-license-deps,$(performance_tests_zip),$(COMPATIBILITY.performance-tests.FILES),$(PRODUCT_OUT)/:/)
|
||||
|
||||
tests: performance-tests
|
||||
|
||||
# Reset temp vars
|
||||
performance-tests-zip :=
|
||||
performance-tests-list-zip :=
|
||||
performance-tests-configs-zip :=
|
||||
performance_tests_zip :=
|
||||
performance_tests_list_zip :=
|
||||
performance_tests_configs_zip :=
|
||||
|
|
Loading…
Reference in a new issue