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