From c04d2606f6fb82aaf1fa341e61b834fff8f3db1c Mon Sep 17 00:00:00 2001 From: Dan Handley Date: Fri, 27 Mar 2015 17:44:35 +0000 Subject: 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_ 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 --- bl32/tsp/tsp.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bl32') diff --git a/bl32/tsp/tsp.mk b/bl32/tsp/tsp.mk index f17ef1e1..aeda31ab 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}) else -- cgit v1.2.3