28 lines
808 B
Makefile
28 lines
808 B
Makefile
PATH_OVERRIDE_SOONG := $(shell echo $(TOOLS_PATH_OVERRIDE) | sed -e 's|$$|$$$$|g')
|
|
|
|
# Add variables that we wish to make available to soong here.
|
|
EXPORT_TO_SOONG := \
|
|
KERNEL_ARCH \
|
|
KERNEL_BUILD_OUT_PREFIX \
|
|
KERNEL_CROSS_COMPILE \
|
|
KERNEL_MAKE_CMD \
|
|
KERNEL_MAKE_FLAGS \
|
|
PATH_OVERRIDE_SOONG \
|
|
TARGET_KERNEL_CONFIG \
|
|
TARGET_KERNEL_SOURCE
|
|
|
|
# Setup SOONG_CONFIG_* vars to export the vars listed above.
|
|
# Documentation here:
|
|
# https://github.com/LineageOS/android_build_soong/commit/8328367c44085b948c003116c0ed74a047237a69
|
|
|
|
SOONG_CONFIG_NAMESPACES += aospaVarsPlugin
|
|
|
|
SOONG_CONFIG_aospaVarsPlugin :=
|
|
|
|
define addVar
|
|
SOONG_CONFIG_aospaVarsPlugin += $(1)
|
|
SOONG_CONFIG_aospaVarsPlugin_$(1) := $$(subst ",\",$$($1))
|
|
endef
|
|
|
|
$(foreach v,$(EXPORT_TO_SOONG),$(eval $(call addVar,$(v))))
|