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 |
Jiafei Pan | 541c914 | 2021-10-21 16:42:34 +0800 | [diff] [blame] | 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) |
Pankaj Gupta | d7a3f11 | 2020-12-09 14:02:38 +0530 | [diff] [blame] | 22 | $(info -> No TZC present on platform) |
| 23 | else |
| 24 | $(error -> TZC type not set!) |
| 25 | endif |
Jiafei Pan | 541c914 | 2021-10-21 16:42:34 +0800 | [diff] [blame] | 26 | endif |
| 27 | endif |
Pankaj Gupta | d7a3f11 | 2020-12-09 14:02:38 +0530 | [diff] [blame] | 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 |