Commit d1466a2e authored by Sandrine Bailleux's avatar Sandrine Bailleux Committed by Dan Handley
Browse files

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
parent 493c8cb2
...@@ -51,5 +51,12 @@ vpath %.c ${BL32_ROOT} ...@@ -51,5 +51,12 @@ vpath %.c ${BL32_ROOT}
vpath %.c ${BL32_ROOT}/${ARCH} vpath %.c ${BL32_ROOT}/${ARCH}
vpath %.S ${BL32_ROOT}/${ARCH} vpath %.S ${BL32_ROOT}/${ARCH}
# Include an optional platform-specific TSP Makefile # Include the platform-specific TSP Makefile
-include bl32/tsp/tsp-${PLAT}.mk # 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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment