xref: /rk3399_ARM-atf/tools/cert_create/src/tbbr/tbbr.mk (revision 3b24b66edc8bc875b26cd5d52357f46afab974b8)
1*3b24b66eSSandrine Bailleux#
2*3b24b66eSSandrine Bailleux# Copyright (c) 2020, Arm Limited. All rights reserved.
3*3b24b66eSSandrine Bailleux#
4*3b24b66eSSandrine Bailleux# SPDX-License-Identifier: BSD-3-Clause
5*3b24b66eSSandrine Bailleux#
6*3b24b66eSSandrine Bailleux
7*3b24b66eSSandrine BailleuxUSE_TBBR_DEFS   := 1
8*3b24b66eSSandrine Bailleux$(eval $(call add_define,USE_TBBR_DEFS))
9*3b24b66eSSandrine Bailleux
10*3b24b66eSSandrine Bailleuxifeq (${USE_TBBR_DEFS},1)
11*3b24b66eSSandrine Bailleux# In this case, cert_tool is platform-independent
12*3b24b66eSSandrine BailleuxPLAT_MSG		:=	TBBR Generic
13*3b24b66eSSandrine BailleuxPLAT_INCLUDE		:=	../../include/tools_share
14*3b24b66eSSandrine Bailleuxelse
15*3b24b66eSSandrine BailleuxPLAT_MSG		:=	${PLAT}
16*3b24b66eSSandrine Bailleux
17*3b24b66eSSandrine BailleuxTF_PLATFORM_ROOT	:=	../../plat/
18*3b24b66eSSandrine Bailleuxinclude ${MAKE_HELPERS_DIRECTORY}plat_helpers.mk
19*3b24b66eSSandrine Bailleux
20*3b24b66eSSandrine BailleuxPLAT_INCLUDE		:=	$(wildcard ${PLAT_DIR}include)
21*3b24b66eSSandrine Bailleux
22*3b24b66eSSandrine Bailleuxifeq ($(PLAT_INCLUDE),)
23*3b24b66eSSandrine Bailleux  $(error "Error: Invalid platform '${PLAT}' has no include directory.")
24*3b24b66eSSandrine Bailleuxendif
25*3b24b66eSSandrine Bailleuxendif
26*3b24b66eSSandrine Bailleux
27*3b24b66eSSandrine BailleuxOBJECTS += src/tbbr/tbb_cert.o \
28*3b24b66eSSandrine Bailleux           src/tbbr/tbb_ext.o \
29*3b24b66eSSandrine Bailleux           src/tbbr/tbb_key.o
30