aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJens Wiklander <jens.wiklander@linaro.org>2018-07-17 15:47:46 +0200
committerJérôme Forissier <jerome.forissier@linaro.org>2018-07-18 09:46:53 +0200
commitcfa34d9afb5c8b5931937744c6c838f9d0010823 (patch)
tree1b3cdfd7278902a8a3b79eaa89e8db099e51c9b9 /Makefile
parentd58d79ec4ae8db53f9d86c15173730b9a45d7553 (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--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7caab01b..c3c2698e 100644
--- a/Makefile
+++ b/Makefile
@@ -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