diff options
author | Evan Lloyd <evan.lloyd@arm.com> | 2015-12-02 18:17:37 +0000 |
---|---|---|
committer | Evan Lloyd <evan.lloyd@arm.com> | 2016-04-01 12:33:09 +0100 |
commit | 231c14702cd42400a9dcbda20e8173e1ce9d75bd (patch) | |
tree | f7b53603e62f2ac25062dbaa2400fc7b966611dd /tools | |
parent | 4c51badfb52128a186e1ed3ae63b324d89a69fbd (diff) |
Make:Remove calls to shell from makefiles.
As an initial stage of making Trusted Firmware build environment more
portable, we remove most uses of the $(shell ) function and replace them
with more portable make function based solutions.
Note that the setting of BUILD_STRING still uses $(shell ) since it's
not possible to reimplement this as a make function. Avoiding invocation
of this on incompatible host platforms will be implemented separately.
Change-Id: I768e2f9a265c78814a4adf2edee4cc46cda0f5b8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/cert_create/Makefile | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/tools/cert_create/Makefile b/tools/cert_create/Makefile index 8d7b8a52..4a6dd6b8 100644 --- a/tools/cert_create/Makefile +++ b/tools/cert_create/Makefile @@ -47,15 +47,16 @@ OBJECTS := src/cert.o \ CFLAGS := -Wall -std=c99 -# Check the platform -ifeq (${PLAT},none) - $(error "Error: Unknown platform. Please use PLAT=<platform name> to specify the platform") -endif -PLAT_MAKEFILE := platform.mk -PLAT_INCLUDE := $(shell find ../../plat/ -wholename '*/${PLAT}/${PLAT_MAKEFILE}' | \ - sed 's/${PLAT_MAKEFILE}/include/') +MAKE_HELPERS_DIRECTORY := ../../make_helpers/ +include ${MAKE_HELPERS_DIRECTORY}build_macros.mk + +PLATFORM_ROOT := ../../plat/ +include ${MAKE_HELPERS_DIRECTORY}plat_helpers.mk + +PLAT_INCLUDE := $(wildcard ${PLAT_DIR}include) + ifeq ($(PLAT_INCLUDE),) - $(error "Error: Invalid platform '${PLAT}'") + $(error "Error: Invalid platform '${PLAT}' has no include directory.") endif ifeq (${DEBUG},1) |