blob: 4418bfc10bfd5dba1d8d8ce11788b98057f3a516 [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
Jiafei Pan541c9142021-10-21 16:42:34 +080016else
17ifeq ($(TZC_ID), TZC380)
18TZASC_SOURCES += drivers/arm/tzc/tzc380.c\
19 $(PLAT_DRIVERS_PATH)/tzc/plat_tzc380.c
20else
21ifeq ($(TZC_ID), NONE)
Pankaj Guptad7a3f112020-12-09 14:02:38 +053022 $(info -> No TZC present on platform)
23else
24 $(error -> TZC type not set!)
25endif
Jiafei Pan541c9142021-10-21 16:42:34 +080026endif
27endif
Pankaj Guptad7a3f112020-12-09 14:02:38 +053028
29ifeq (${BL_COMM_TZASC_NEEDED},yes)
30BL_COMMON_SOURCES += ${TZASC_SOURCES}
31else
32ifeq (${BL2_TZASC_NEEDED},yes)
33BL2_SOURCES += ${TZASC_SOURCES}
34endif
35ifeq (${BL31_TZASC_NEEDED},yes)
36BL31_SOURCES += ${TZASC_SOURCES}
37endif
38endif
39
40endif