Add support to generate multiple TA dev kits
Adds support to generate multiple TA dev kits, one for each word in the
variable "ta-targets". ta/ta.mk is included once for each word in
"ta-targets" with the word assigned to "ta-target". This word is the
assigned the variable "sm" to allow each "ta-target" to be built as a
separate sub-module.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Pascal Brand <pascal.brand@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
diff --git a/Makefile b/Makefile
index 29fed60..fb4dcce 100644
--- a/Makefile
+++ b/Makefile
@@ -55,7 +55,14 @@
include core/core.mk
+# Platform config is supposed to assign the targets
+ta-targets ?= user_ta
+
+define build-ta-target
+ta-target := $(1)
include ta/ta.mk
+endef
+$(foreach t, $(ta-targets), $(eval $(call build-ta-target, $(t))))
.PHONY: clean
clean: