blob: 4f313bf3789e7e4c6c84c90b9acd4f668d242d30 [file] [log] [blame]
Bruce Beareb73dc662010-07-12 07:53:28 -07001# ---------------------------------------------------------------
2# the setpath shell function in envsetup.sh uses this to figure out
3# what to add to the path given the config we have chosen.
4ifeq ($(CALLED_FROM_SETUP),true)
5
Bruce Beareb73dc662010-07-12 07:53:28 -07006ANDROID_PREBUILTS := prebuilt/$(HOST_PREBUILT_TAG)
Jing Yuf5172c72012-03-29 20:45:50 -07007ANDROID_GCC_PREBUILTS := prebuilts/gcc/$(HOST_PREBUILT_TAG)
Yi Kongdfd00b12019-05-21 16:00:04 -07008ANDROID_CLANG_PREBUILTS := prebuilts/clang/host/$(HOST_PREBUILT_TAG)
Bruce Beareb73dc662010-07-12 07:53:28 -07009
Ying Wang08800fd2016-03-03 20:57:21 -080010# Dump mulitple variables to "<var>=<value>" pairs, one per line.
11# The output may be executed as bash script.
12# Input variables:
13# DUMP_MANY_VARS: the list of variable names.
14# DUMP_VAR_PREFIX: an optional prefix of the variable name added to the output.
Cole Faust2ce1fd92020-11-03 23:59:50 +000015# The value is printed in parts because large variables like PRODUCT_PACKAGES
16# can exceed the maximum linux command line size
Ying Wang08800fd2016-03-03 20:57:21 -080017.PHONY: dump-many-vars
18dump-many-vars :
Dan Willemsen8cf5aa52017-10-17 01:30:14 -070019 @$(foreach v, $(DUMP_MANY_VARS),\
Cole Faust2ce1fd92020-11-03 23:59:50 +000020 printf "%s='%s" '$(DUMP_VAR_PREFIX)$(v)' '$(firstword $($(v)))'; \
21 $(foreach part, $(wordlist 2, $(words $($(v))), $($(v))),\
22 printf " %s" '$(part)'$(newline))\
23 printf "'\n";)
Ying Wang08800fd2016-03-03 20:57:21 -080024
25endif # CALLED_FROM_SETUP
Cole Faustec8316d2022-04-04 11:52:52 -070026
27ifneq (,$(RBC_DUMP_CONFIG_FILE))
28$(call dump-variables-rbc,$(RBC_DUMP_CONFIG_FILE))
29endif