diff options
author | Jens Wiklander <jens.wiklander@linaro.org> | 2018-07-17 15:47:46 +0200 |
---|---|---|
committer | Jérôme Forissier <jerome.forissier@linaro.org> | 2018-07-18 09:46:53 +0200 |
commit | cfa34d9afb5c8b5931937744c6c838f9d0010823 (patch) | |
tree | 1b3cdfd7278902a8a3b79eaa89e8db099e51c9b9 /Makefile | |
parent | d58d79ec4ae8db53f9d86c15173730b9a45d7553 (diff) |
Add support for compiling in-tree TAs
Adds support for compiling in-tree TAs. Unless specified via
CFG_USER_TA_TARGET_<ta-name> the TA will be built with the first TA
target (aka TA dev kit, when delivered) specified in the variable
ta-targets which is initialized in core/arch/arm/plat-*/conf.mk.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -74,6 +74,7 @@ include core/core.mk # Platform config is supposed to assign the targets ta-targets ?= user_ta +default-user-ta-target ?= $(firstword $(ta-targets)) ifeq ($(CFG_WITH_USER_TA),y) define build-ta-target @@ -81,6 +82,13 @@ ta-target := $(1) include ta/ta.mk endef $(foreach t, $(ta-targets), $(eval $(call build-ta-target, $(t)))) + +# Build user TAs included in this git +define build-user-ta +ta-mk-file := $(1) +include ta/mk/build-user-ta.mk +endef +$(foreach t, $(wildcard ta/*/user_ta.mk), $(eval $(call build-user-ta,$(t)))) endif include mk/cleandirs.mk |