fb35b9da61
make is now a dissallowed command so just run the full command Change-Id: I9390dc5a8bcd17f316354b88bdbc65ac8663b369
23 lines
676 B
Makefile
23 lines
676 B
Makefile
# Add variables that we wish to make available to soong here.
|
|
EXPORT_TO_SOONG := \
|
|
KERNEL_ARCH \
|
|
KERNEL_CROSS_COMPILE \
|
|
KERNEL_MAKE_CMD \
|
|
KERNEL_MAKE_FLAGS \
|
|
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 += lineageVarsPlugin
|
|
|
|
SOONG_CONFIG_lineageVarsPlugin :=
|
|
|
|
define addVar
|
|
SOONG_CONFIG_lineageVarsPlugin += $(1)
|
|
SOONG_CONFIG_lineageVarsPlugin_$(1) := $$(subst ",\",$$($1))
|
|
endef
|
|
|
|
$(foreach v,$(EXPORT_TO_SOONG),$(eval $(call addVar,$(v))))
|