1# --------------------------------------------------------------- 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 6ANDROID_PREBUILTS := prebuilt/$(HOST_PREBUILT_TAG) 7ANDROID_GCC_PREBUILTS := prebuilts/gcc/$(HOST_PREBUILT_TAG) 8ANDROID_CLANG_PREBUILTS := prebuilts/clang/host/$(HOST_PREBUILT_TAG) 9 10# 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. 15# The value is printed in parts because large variables like PRODUCT_PACKAGES 16# can exceed the maximum linux command line size 17.PHONY: dump-many-vars 18dump-many-vars : 19 @$(foreach v, $(DUMP_MANY_VARS),\ 20 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";) 24 25endif # CALLED_FROM_SETUP 26 27ifneq (,$(RBC_DUMP_CONFIG_FILE)) 28$(call dump-variables-rbc,$(RBC_DUMP_CONFIG_FILE)) 29endif 30