1# 2# Copyright (c) 2020-2025, Arm Limited. All rights reserved. 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6 7USE_TBBR_DEFS := 1 8CRTTOOL_DEFINES += USE_TBBR_DEFS=${USE_TBBR_DEFS} 9 10ifeq (${USE_TBBR_DEFS},1) 11# In this case, cert_tool is platform-independent 12PLAT_MSG := TBBR Generic 13PLAT_INCLUDE := ../../include/tools_share 14else 15PLAT_MSG := ${PLAT} 16 17TF_PLATFORM_ROOT := ../../plat/ 18include ${MAKE_HELPERS_DIRECTORY}plat_helpers.mk 19 20PLAT_INCLUDE := $(wildcard ${PLAT_DIR}include) 21 22ifeq ($(PLAT_INCLUDE),) 23 $(error "Error: Invalid platform '${PLAT}' has no include directory.") 24endif 25endif 26 27CRTTOOL_SOURCES += src/tbbr/tbb_cert.c \ 28 src/tbbr/tbb_ext.c \ 29 src/tbbr/tbb_key.c 30