Merge "Exclude deprecated variables from dump-variables-rbc" am: 0b7aea6dc5
am: a48a2935f3
am: 5c714e950c
Original change: https://android-review.googlesource.com/c/platform/build/+/2042024 Change-Id: I33219a584c87e0f67635edc1f3e273e59a2f3ced Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
518142885e
1 changed files with 10 additions and 2 deletions
|
@ -325,9 +325,17 @@ endif
|
|||
# instead of the raw variable values, because mk2rbc can't read the
|
||||
# raw ones.
|
||||
define dump-variables-rbc
|
||||
$(file >$(OUT_DIR)/dump-variables-rbc-temp.txt,$(subst $(space),$(newline),$(.VARIABLES)))\
|
||||
$(eval _dump_variables_rbc_excluded := \
|
||||
LOCAL_PATH \
|
||||
TOPDIR \
|
||||
TRACE_BEGIN_SOONG \
|
||||
BOARD_PLAT_PUBLIC_SEPOLICY_DIR \
|
||||
BOARD_PLAT_PRIVATE_SEPOLICY_DIR \
|
||||
USER \
|
||||
SOONG_% \
|
||||
PRODUCT_COPY_OUT_%)\
|
||||
$(file >$(1),\
|
||||
$(foreach v, $(shell grep -he "^[A-Z][A-Z0-9_]*$$" $(OUT_DIR)/dump-variables-rbc-temp.txt | grep -vhE "^(SOONG_.*|LOCAL_PATH|TOPDIR|PRODUCT_COPY_OUT_.*|TRACE_BEGIN_SOONG)$$"),\
|
||||
$(foreach v, $(shell echo $(filter-out $(_dump_variables_rbc_excluded),$(.VARIABLES)) | tr ' ' '\n' | grep -he "^[A-Z][A-Z0-9_]*$$"),\
|
||||
$(v) := $(strip $($(v)))$(newline))\
|
||||
$(foreach ns,$(SOONG_CONFIG_NAMESPACES),\
|
||||
$(foreach v,$(SOONG_CONFIG_$(ns)),\
|
||||
|
|
Loading…
Reference in a new issue