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