aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaMont Jones <lamontjones@google.com>2024-05-09 15:18:21 -0700
committerLaMont Jones <lamontjones@google.com>2024-05-09 15:33:01 -0700
commit3f0eba2bdcd5ad50a03915459bdda4fc3bad75fe (patch)
treeb9be5c4cea56a211500dc56ea7dd2f073437ca7e
parentc0c2e5f27880f7fd086b9c1d728e223c291cb6bf (diff)
downloadbuild-3f0eba2bdcd5ad50a03915459bdda4fc3bad75fe.tar.gz
Avoid re-running kati unnecessarily.
Bug: 339707888 Test: manual Change-Id: I0447a127aee7e5ef34d7ae81a3b8bead7c7bc95b
-rw-r--r--core/release_config.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/release_config.mk b/core/release_config.mk
index bb519804d1..97c8dd3571 100644
--- a/core/release_config.mk
+++ b/core/release_config.mk
@@ -120,7 +120,8 @@ ifneq (,$(_use_protobuf))
# Disable the build flag in release-config.
_args += --guard=false
endif
- $(KATI_shell_no_rerun $(OUT_DIR)/release-config $(_args) >$(OUT_DIR)/release-config.out && touch -t 200001010000 $(OUT_DIR)/release-config.out)
+ _flags_file:=$(OUT_DIR)/soong/release-config/release_config-$(TARGET_PRODUCT)-$(TARGET_RELEASE).mk
+ $(KATI_shell_no_rerun $(OUT_DIR)/release-config $(_args) >$(OUT_DIR)/release-config.out 2>&1 && touch -t 200001010000 $(OUT_DIR)/release-config.out $(_flags_file))
$(if $(filter-out 0,$(.SHELLSTATUS)),$(error release-config failed to run))
# This will also set _all_release_configs for us.
$(eval include $(OUT_DIR)/soong/release-config/release_config-$(TARGET_PRODUCT)-$(TARGET_RELEASE).mk)