13b24b66eSSandrine Bailleux# 2*f4595e6eSBoyan Karatotev# Copyright (c) 2020-2025, Arm Limited. All rights reserved. 33b24b66eSSandrine Bailleux# 43b24b66eSSandrine Bailleux# SPDX-License-Identifier: BSD-3-Clause 53b24b66eSSandrine Bailleux# 63b24b66eSSandrine Bailleux 73b24b66eSSandrine BailleuxUSE_TBBR_DEFS := 1 8*f4595e6eSBoyan KaratotevCRTTOOL_DEFINES += USE_TBBR_DEFS=${USE_TBBR_DEFS} 93b24b66eSSandrine Bailleux 103b24b66eSSandrine Bailleuxifeq (${USE_TBBR_DEFS},1) 113b24b66eSSandrine Bailleux# In this case, cert_tool is platform-independent 123b24b66eSSandrine BailleuxPLAT_MSG := TBBR Generic 133b24b66eSSandrine BailleuxPLAT_INCLUDE := ../../include/tools_share 143b24b66eSSandrine Bailleuxelse 153b24b66eSSandrine BailleuxPLAT_MSG := ${PLAT} 163b24b66eSSandrine Bailleux 173b24b66eSSandrine BailleuxTF_PLATFORM_ROOT := ../../plat/ 183b24b66eSSandrine Bailleuxinclude ${MAKE_HELPERS_DIRECTORY}plat_helpers.mk 193b24b66eSSandrine Bailleux 203b24b66eSSandrine BailleuxPLAT_INCLUDE := $(wildcard ${PLAT_DIR}include) 213b24b66eSSandrine Bailleux 223b24b66eSSandrine Bailleuxifeq ($(PLAT_INCLUDE),) 233b24b66eSSandrine Bailleux $(error "Error: Invalid platform '${PLAT}' has no include directory.") 243b24b66eSSandrine Bailleuxendif 253b24b66eSSandrine Bailleuxendif 263b24b66eSSandrine Bailleux 27*f4595e6eSBoyan KaratotevCRTTOOL_SOURCES += src/tbbr/tbb_cert.c \ 28*f4595e6eSBoyan Karatotev src/tbbr/tbb_ext.c \ 29*f4595e6eSBoyan Karatotev src/tbbr/tbb_key.c 30