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