aboutsummaryrefslogtreecommitdiff
path: root/bl32/tsp/tsp.mk
diff options
context:
space:
mode:
authorSandrine Bailleux <sandrine.bailleux@arm.com>2014-03-13 14:48:31 +0000
committerDan Handley <dan.handley@arm.com>2014-03-21 17:17:48 +0000
commitd1466a2eabcb5c3be83c37bdb6b20a2aaad152a2 (patch)
tree60a12cbfbac5715cc7d8c20522ab6df64c21038b /bl32/tsp/tsp.mk
parent493c8cb2ae937fb50c2ce53338c9034c5c6636e5 (diff)
downloadtrusted-firmware-a-d1466a2eabcb5c3be83c37bdb6b20a2aaad152a2.tar.gz
TSP: Make the platform-specific makefile mandatory
The Test Secure-EL1 Payload implementation should always have a platform-specific component. Therefore, there should always be a platform-specific sub-makefile for the TSP. If there is none then assume TSP is not supported on this specific platform and throw an error at build time if the user tries to compile it. Change-Id: Ibfbe6e4861cc7786a29f2fc0341035b852925193
Diffstat (limited to 'bl32/tsp/tsp.mk')
-rw-r--r--bl32/tsp/tsp.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/bl32/tsp/tsp.mk b/bl32/tsp/tsp.mk
index 99c83708cb..c45a94ffa2 100644
--- a/bl32/tsp/tsp.mk
+++ b/bl32/tsp/tsp.mk
@@ -51,5 +51,12 @@ vpath %.c ${BL32_ROOT}
vpath %.c ${BL32_ROOT}/${ARCH}
vpath %.S ${BL32_ROOT}/${ARCH}
-# Include an optional platform-specific TSP Makefile
--include bl32/tsp/tsp-${PLAT}.mk
+# Include the platform-specific TSP Makefile
+# If no platform-specific TSP Makefile exists, it means TSP is not supported
+# on this platform.
+TSP_PLAT_MAKEFILE := bl32/tsp/tsp-${PLAT}.mk
+ifeq (,$(wildcard ${TSP_PLAT_MAKEFILE}))
+ $(error TSP is not supported on platform ${PLAT})
+else
+ include ${TSP_PLAT_MAKEFILE}
+endif