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