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 17ifeq ($(TZC_ID), TZC380) 18TZASC_SOURCES += drivers/arm/tzc/tzc380.c\ 19 $(PLAT_DRIVERS_PATH)/tzc/plat_tzc380.c 20else 21ifeq ($(TZC_ID), NONE) 22 $(info -> No TZC present on platform) 23else 24 $(error -> TZC type not set!) 25endif 26endif 27endif 28 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 41