blob: 3fba28fd39f1723c6f6849e934d5d0c4ee24ecd1 [file] [log] [blame]
Pankaj Guptad7a3f112020-12-09 14:02:38 +05301#
2# Copyright 2021 NXP
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7ifeq (${ADD_TZASC},)
8
9ADD_TZASC := 1
10
Pankaj Gupta7834b462021-03-25 15:15:52 +053011PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/tzc
Pankaj Guptad7a3f112020-12-09 14:02:38 +053012
13ifeq ($(TZC_ID), TZC400)
14TZASC_SOURCES += drivers/arm/tzc/tzc400.c\
Pankaj Gupta7834b462021-03-25 15:15:52 +053015 $(PLAT_DRIVERS_PATH)/tzc/plat_tzc400.c
Pankaj Guptad7a3f112020-12-09 14:02:38 +053016else 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