blob: 830d78ed51fcdcebc58b5c62b911b44002e3a3de [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
11TZASC_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/tzc
12
13PLAT_INCLUDES += -I$(TZASC_DRIVERS_PATH)
14
15ifeq ($(TZC_ID), TZC400)
16TZASC_SOURCES += drivers/arm/tzc/tzc400.c\
17 $(TZASC_DRIVERS_PATH)/plat_tzc400.c
18else ifeq ($(TZC_ID), NONE)
19 $(info -> No TZC present on platform)
20else
21 $(error -> TZC type not set!)
22endif
23
24ifeq (${BL_COMM_TZASC_NEEDED},yes)
25BL_COMMON_SOURCES += ${TZASC_SOURCES}
26else
27ifeq (${BL2_TZASC_NEEDED},yes)
28BL2_SOURCES += ${TZASC_SOURCES}
29endif
30ifeq (${BL31_TZASC_NEEDED},yes)
31BL31_SOURCES += ${TZASC_SOURCES}
32endif
33endif
34
35endif