path: root/bl32/tsp/tsp.mk
diff options
authorDan Handley <dan.handley@arm.com>2015-03-27 17:44:35 +0000
committerDan Handley <dan.handley@arm.com>2015-04-28 19:50:48 +0100
commitc04d2606f6fb82aaf1fa341e61b834fff8f3db1c (patch)
treeac0e2cb844b2e7c2bdfb5ac7f15796289fd46bd2 /bl32/tsp/tsp.mk
parentd3b638cb4ac581789737c1a4c86032b00707cb8c (diff)
Allow deeper platform port directory structure
Update the top level makefile to allow platform ports to exist in subdirectories at any level instead of one level under `plat/`. The makefile recursively searches for all files called `platform.mk` in all subdirectories of `plat/`. The directory containing `platform.mk` is the platform name. Platform names must be unique across the codebase. Replace usage of HELP_PLATFORMS in the Makefile with PLATFORMS since these are both used to report the same information back to the user. Update the TSP and cert_create tool makefiles in a similar way to support a deeper platform port directory structure. Also add PLAT_<plat_name> as a define passed through the top level makefile to the source files, to allow build time variation in common platform code. Change-Id: I213420164808c5ddb99a26144e8e3f141a7417b7
Diffstat (limited to 'bl32/tsp/tsp.mk')
1 files changed, 1 insertions, 1 deletions
diff --git a/bl32/tsp/tsp.mk b/bl32/tsp/tsp.mk
index f17ef1e15c..aeda31abe2 100644
--- a/bl32/tsp/tsp.mk
+++ b/bl32/tsp/tsp.mk
@@ -52,7 +52,7 @@ $(eval $(call add_define,TSP_INIT_ASYNC))
# 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 := plat/${PLAT}/tsp/tsp-${PLAT}.mk
+TSP_PLAT_MAKEFILE := $(shell find plat/ -wholename '*/${PLAT}/tsp/tsp-${PLAT}.mk')
ifeq (,$(wildcard ${TSP_PLAT_MAKEFILE}))
$(error TSP is not supported on platform ${PLAT})