2010-07-12 16:53:28 +02:00
|
|
|
# ---------------------------------------------------------------
|
|
|
|
# the setpath shell function in envsetup.sh uses this to figure out
|
|
|
|
# what to add to the path given the config we have chosen.
|
|
|
|
ifeq ($(CALLED_FROM_SETUP),true)
|
|
|
|
|
|
|
|
ANDROID_PREBUILTS := prebuilt/$(HOST_PREBUILT_TAG)
|
2012-03-30 05:45:50 +02:00
|
|
|
ANDROID_GCC_PREBUILTS := prebuilts/gcc/$(HOST_PREBUILT_TAG)
|
2019-05-22 01:00:04 +02:00
|
|
|
ANDROID_CLANG_PREBUILTS := prebuilts/clang/host/$(HOST_PREBUILT_TAG)
|
2010-07-12 16:53:28 +02:00
|
|
|
|
2016-03-04 05:57:21 +01:00
|
|
|
# Dump mulitple variables to "<var>=<value>" pairs, one per line.
|
|
|
|
# The output may be executed as bash script.
|
|
|
|
# Input variables:
|
|
|
|
# DUMP_MANY_VARS: the list of variable names.
|
|
|
|
# DUMP_VAR_PREFIX: an optional prefix of the variable name added to the output.
|
2020-11-04 00:59:50 +01:00
|
|
|
# The value is printed in parts because large variables like PRODUCT_PACKAGES
|
|
|
|
# can exceed the maximum linux command line size
|
2016-03-04 05:57:21 +01:00
|
|
|
.PHONY: dump-many-vars
|
|
|
|
dump-many-vars :
|
2017-10-17 10:30:14 +02:00
|
|
|
@$(foreach v, $(DUMP_MANY_VARS),\
|
2020-11-04 00:59:50 +01:00
|
|
|
printf "%s='%s" '$(DUMP_VAR_PREFIX)$(v)' '$(firstword $($(v)))'; \
|
|
|
|
$(foreach part, $(wordlist 2, $(words $($(v))), $($(v))),\
|
|
|
|
printf " %s" '$(part)'$(newline))\
|
|
|
|
printf "'\n";)
|
2016-03-04 05:57:21 +01:00
|
|
|
|
|
|
|
endif # CALLED_FROM_SETUP
|
2022-04-04 20:52:52 +02:00
|
|
|
|
|
|
|
ifneq (,$(RBC_DUMP_CONFIG_FILE))
|
|
|
|
$(call dump-variables-rbc,$(RBC_DUMP_CONFIG_FILE))
|
|
|
|
endif
|