8cf5aa5e92
Print a large warning and stop unless we're using ckati. Then remove a bunch of code that soong_ui doesn't use. Test: command make -f build/core/config.mk Test: . build/envsetup.sh; lunch aosp_arm-eng; m nothing Test: cs/CALLED_FROM_SETUP Change-Id: Ib823d5ef8955fb68dbc9a035cfa8d5ac4903534a
31 lines
1 KiB
Makefile
31 lines
1 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)
|
|
|
|
ifneq ($(filter /%,$(SOONG_HOST_OUT_EXECUTABLES)),)
|
|
ABP := $(SOONG_HOST_OUT_EXECUTABLES)
|
|
else
|
|
ABP := $(PWD)/$(SOONG_HOST_OUT_EXECUTABLES)
|
|
endif
|
|
ifneq ($(filter /%,$(HOST_OUT_EXECUTABLES)),)
|
|
ABP := $(ABP):$(HOST_OUT_EXECUTABLES)
|
|
else
|
|
ABP := $(ABP):$(PWD)/$(HOST_OUT_EXECUTABLES)
|
|
endif
|
|
|
|
ANDROID_BUILD_PATHS := $(ABP)
|
|
ANDROID_PREBUILTS := prebuilt/$(HOST_PREBUILT_TAG)
|
|
ANDROID_GCC_PREBUILTS := prebuilts/gcc/$(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.
|
|
.PHONY: dump-many-vars
|
|
dump-many-vars :
|
|
@$(foreach v, $(DUMP_MANY_VARS),\
|
|
echo "$(DUMP_VAR_PREFIX)$(v)='$($(v))'";)
|
|
|
|
endif # CALLED_FROM_SETUP
|