mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-05-01 16:13:16 +00:00

Support IFC NAND flash as boot device. Signed-off-by: Ruchika Gupta <ruchika.gupta@nxp.com> Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com> Change-Id: I1aba7035ff70b179915e181c04e7b00be2066abe
29 lines
537 B
Makefile
29 lines
537 B
Makefile
#
|
|
# Copyright 2022 NXP
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
#
|
|
|
|
ifeq (${NAND_ADDED},)
|
|
|
|
NAND_ADDED := 1
|
|
|
|
NAND_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/ifc/nand
|
|
|
|
NAND_SOURCES := $(NAND_DRIVERS_PATH)/ifc_nand.c \
|
|
drivers/io/io_block.c
|
|
|
|
PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/ifc
|
|
|
|
ifeq (${BL_COMM_IFC_NAND_NEEDED},yes)
|
|
BL_COMMON_SOURCES += ${NAND_SOURCES}
|
|
else
|
|
ifeq (${BL2_IFC_NAND_NEEDED},yes)
|
|
BL2_SOURCES += ${NAND_SOURCES}
|
|
endif
|
|
ifeq (${BL31_IFC_NAND_NEEDED},yes)
|
|
BL31_SOURCES += ${NAND_SOURCES}
|
|
endif
|
|
endif
|
|
|
|
endif
|