aboutsummaryrefslogtreecommitdiffstats
path: root/tools/cert_create
diff options
context:
space:
mode:
authorSandrine Bailleux <sandrine.bailleux@arm.com>2020-01-15 10:11:07 +0100
committerSandrine Bailleux <sandrine.bailleux@arm.com>2020-01-29 14:00:32 +0100
commit43743ea57d97c8bc92b13abc30ac0b89effd4424 (patch)
treeb80ffda3f148f1b528a61b281e3cc73c9b57a193 /tools/cert_create
parent3b24b66edc8bc875b26cd5d52357f46afab974b8 (diff)
downloadplatform_external_arm-trusted-firmware-43743ea57d97c8bc92b13abc30ac0b89effd4424.tar.gz
platform_external_arm-trusted-firmware-43743ea57d97c8bc92b13abc30ac0b89effd4424.tar.bz2
platform_external_arm-trusted-firmware-43743ea57d97c8bc92b13abc30ac0b89effd4424.zip
cert_create: Introduce COT build option
It allows to select the desired chain of trust. Right now, only the TBBR CoT is available. At this stage, this build option only affects the tool itself. It is not plugged into the rest of the build system yet. To use it: > make -C tools/cert_create COT=tbbr Change-Id: I4484418f76d3c7b330d8653c978499a181534dcd Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
Diffstat (limited to 'tools/cert_create')
-rw-r--r--tools/cert_create/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/cert_create/Makefile b/tools/cert_create/Makefile
index 76de6660b..eff929ef0 100644
--- a/tools/cert_create/Makefile
+++ b/tools/cert_create/Makefile
@@ -10,6 +10,7 @@ V ?= 0
DEBUG := 0
BINARY := ${PROJECT}${BIN_EXT}
OPENSSL_DIR := /usr
+COT := tbbr
MAKE_HELPERS_DIRECTORY := ../../make_helpers/
include ${MAKE_HELPERS_DIRECTORY}build_macros.mk
@@ -23,8 +24,12 @@ OBJECTS := src/cert.o \
src/main.o \
src/sha.o
-# TBBR chain of trust definitions.
-include src/tbbr/tbbr.mk
+# Chain of trust.
+ifeq (${COT},tbbr)
+ include src/tbbr/tbbr.mk
+else
+ $(error Unknown chain of trust ${COT})
+endif
HOSTCCFLAGS := -Wall -std=c99