Jiafei Pan | ee38ff4 | 2021-10-21 16:09:57 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2020-2021 NXP |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | ifeq (${NOR_ADDED},) |
| 8 | |
| 9 | NOR_ADDED := 1 |
| 10 | |
| 11 | NOR_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/ifc/nor |
| 12 | |
| 13 | NOR_SOURCES := $(NOR_DRIVERS_PATH)/ifc_nor.c |
| 14 | |
| 15 | PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/ifc |
| 16 | |
| 17 | ifeq (${BL_COMM_IFC_NOR_NEEDED},yes) |
| 18 | BL_COMMON_SOURCES += ${NOR_SOURCES} |
| 19 | else |
| 20 | ifeq (${BL2_IFC_NOR_NEEDED},yes) |
| 21 | BL2_SOURCES += ${NOR_SOURCES} |
| 22 | endif |
| 23 | ifeq (${BL31_IFC_NOR_NEEDED},yes) |
| 24 | BL31_SOURCES += ${NOR_SOURCES} |
| 25 | endif |
| 26 | endif |
| 27 | |
| 28 | endif |