plat: tc0: Add cactus support
This patch adds tc0 platform support for cactus to execute at S-EL1
Change-Id: Iabac58de7c39e51968f0c5b578292e5a6111609a
Signed-off-by: Arunachalam Ganapathy <arunachalam.ganapathy@arm.com>
diff --git a/Makefile b/Makefile
index f809e21..bccd45a 100644
--- a/Makefile
+++ b/Makefile
@@ -107,10 +107,18 @@
include tftf/tests/tests.mk
include fwu/ns_bl1u/ns_bl1u.mk
include fwu/ns_bl2u/ns_bl2u.mk
+
+# Only platform fvp supports cactus_mm, ivy, quark
+ifeq (${ARCH}-${PLAT},aarch64-fvp)
include spm/cactus_mm/cactus_mm.mk
-include spm/cactus/cactus.mk
include spm/ivy/ivy.mk
include spm/quark/quark.mk
+endif
+
+# cactus is supported on platforms: fvp, tc0
+ifeq (${ARCH}-${PLAT},$(filter ${ARCH}-${PLAT},aarch64-fvp aarch64-tc0))
+include spm/cactus/cactus.mk
+endif
################################################################################
# Include libc
@@ -345,11 +353,6 @@
@echo "ERROR: $@ is supported only on AArch64 FVP."
@exit 1
-.PHONY: cactus
-cactus:
- @echo "ERROR: $@ is supported only on AArch64 FVP."
- @exit 1
-
.PHONY: ivy
ivy:
@echo "ERROR: $@ is supported only on AArch64 FVP."
@@ -361,6 +364,13 @@
@exit 1
endif
+ifneq (${ARCH}-${PLAT},$(filter ${ARCH}-${PLAT},aarch64-fvp aarch64-tc0))
+.PHONY: cactus
+cactus:
+ @echo "ERROR: $@ is supported only on AArch64 FVP or TC0."
+ @exit 1
+endif
+
MAKE_DEP = -Wp,-MD,$(DEP) -MT $$@
define MAKE_C
@@ -498,6 +508,10 @@
$(eval $(call MAKE_IMG,quark))
endif
+ifeq (${ARCH}-${PLAT},aarch64-tc0)
+ $(eval $(call MAKE_IMG,cactus))
+endif
+
# The EL3 test payload is only supported in AArch64. It has an independent build
# system.
.PHONY: el3_payload