Merge "Exclude predefined variables from board config" am: 359665674f am: 2694a33cb6

Original change: https://android-review.googlesource.com/c/platform/build/+/1900875

Change-Id: I36ec5d6af7442059c6f88713c34efab07b030dfc
This commit is contained in:
Treehugger Robot
2021-11-24 21:08:34 +00:00
committed by Automerger Merge Worker

View File

@@ -191,7 +191,7 @@ endif
define dump-public-variables define dump-public-variables
$(file >$(OUT_DIR)/dump-public-variables-temp.txt,$(subst $(space),$(newline),$(.VARIABLES)))\ $(file >$(OUT_DIR)/dump-public-variables-temp.txt,$(subst $(space),$(newline),$(.VARIABLES)))\
$(file >$(1),\ $(file >$(1),\
$(foreach v, $(shell grep -he "^[A-Z][A-Z0-9_]*$$" $(OUT_DIR)/dump-public-variables-temp.txt | grep -vhe "^SOONG_"),\ $(foreach v, $(shell grep -he "^[A-Z][A-Z0-9_]*$$" $(OUT_DIR)/dump-public-variables-temp.txt | grep -vhE "^(SOONG_.*|LOCAL_PATH|TOPDIR|PRODUCT_COPY_OUT_.*)$$"),\
$(v) := $(strip $($(v)))$(newline))) $(v) := $(strip $($(v)))$(newline)))
endef endef