blob: 890fd23c3cf1e40ab72ce2b792753ad3caab10d7 [file] [log] [blame]
Jiafei Panf0b86b12021-10-21 16:14:18 +08001#
2# Copyright 2022 NXP
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7ifeq (${NAND_ADDED},)
8
9NAND_ADDED := 1
10
11NAND_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/ifc/nand
12
13NAND_SOURCES := $(NAND_DRIVERS_PATH)/ifc_nand.c \
14 drivers/io/io_block.c
15
16PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/ifc
17
18ifeq (${BL_COMM_IFC_NAND_NEEDED},yes)
19BL_COMMON_SOURCES += ${NAND_SOURCES}
20else
21ifeq (${BL2_IFC_NAND_NEEDED},yes)
22BL2_SOURCES += ${NAND_SOURCES}
23endif
24ifeq (${BL31_IFC_NAND_NEEDED},yes)
25BL31_SOURCES += ${NAND_SOURCES}
26endif
27endif
28
29endif