From d1466a2eabcb5c3be83c37bdb6b20a2aaad152a2 Mon Sep 17 00:00:00 2001 From: Sandrine Bailleux Date: Thu, 13 Mar 2014 14:48:31 +0000 Subject: [PATCH] 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 --- bl32/tsp/tsp.mk | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/bl32/tsp/tsp.mk b/bl32/tsp/tsp.mk index 99c83708c..c45a94ffa 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 -- GitLab