1#
2# Copyright 2021 NXP
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7ifeq (${ADD_TZASC},)
8
9ADD_TZASC		:= 1
10
11PLAT_INCLUDES		+= -I$(PLAT_DRIVERS_INCLUDE_PATH)/tzc
12
13ifeq ($(TZC_ID), TZC400)
14TZASC_SOURCES		+= drivers/arm/tzc/tzc400.c\
15			   $(PLAT_DRIVERS_PATH)/tzc/plat_tzc400.c
16else ifeq ($(TZC_ID), NONE)
17    $(info -> No TZC present on platform)
18else
19    $(error -> TZC type not set!)
20endif
21
22ifeq (${BL_COMM_TZASC_NEEDED},yes)
23BL_COMMON_SOURCES	+= ${TZASC_SOURCES}
24else
25ifeq (${BL2_TZASC_NEEDED},yes)
26BL2_SOURCES		+= ${TZASC_SOURCES}
27endif
28ifeq (${BL31_TZASC_NEEDED},yes)
29BL31_SOURCES		+= ${TZASC_SOURCES}
30endif
31endif
32
33endif
34