7c3a77f4c9
This gets b (and other scripts that are coming soon) into the path without running lunch. Also gets rid of the make dumpvar ANDROID_BUILD_PATHS variable, used to set a few more paths, so that the setting is all in one place, now that the get_abs_build_var is cached. Test: Lots of manual checks of before and after combinations Change-Id: I745168c43ccf2fef4cdd22657fd087f1ad07e510
29 lines
1.2 KiB
Makefile
29 lines
1.2 KiB
Makefile
# ---------------------------------------------------------------
|
|
# 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)
|
|
ANDROID_GCC_PREBUILTS := prebuilts/gcc/$(HOST_PREBUILT_TAG)
|
|
ANDROID_CLANG_PREBUILTS := prebuilts/clang/host/$(HOST_PREBUILT_TAG)
|
|
|
|
# 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.
|
|
# The value is printed in parts because large variables like PRODUCT_PACKAGES
|
|
# can exceed the maximum linux command line size
|
|
.PHONY: dump-many-vars
|
|
dump-many-vars :
|
|
@$(foreach v, $(DUMP_MANY_VARS),\
|
|
printf "%s='%s" '$(DUMP_VAR_PREFIX)$(v)' '$(firstword $($(v)))'; \
|
|
$(foreach part, $(wordlist 2, $(words $($(v))), $($(v))),\
|
|
printf " %s" '$(part)'$(newline))\
|
|
printf "'\n";)
|
|
|
|
endif # CALLED_FROM_SETUP
|
|
|
|
ifneq (,$(RBC_DUMP_CONFIG_FILE))
|
|
$(call dump-variables-rbc,$(RBC_DUMP_CONFIG_FILE))
|
|
endif
|