blob: af91b1f1451ffb5e82ba44a46f54c7150ef1418b [file] [log] [blame]
Pankaj Gupta7d2f40f2020-12-09 14:02:39 +05301#
2# Copyright 2020 NXP
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7ifeq (${ADD_SD_MMC},)
8
9ADD_SD_MMC := 1
10
11SD_DRIVERS_PATH := ${PLAT_DRIVERS_PATH}/sd
12
13SD_MMC_BOOT_SOURCES += ${SD_DRIVERS_PATH}/sd_mmc.c \
14 drivers/io/io_block.c
15
16PLAT_INCLUDES += -I$(SD_DRIVERS_PATH)
17
18ifeq (${BL_COMM_SD_MMC_NEEDED},yes)
19BL_COMMON_SOURCES += ${SD_MMC_BOOT_SOURCES}
20else
21ifeq (${BL2_SD_MMC_NEEDED},yes)
22BL2_SOURCES += ${SD_MMC_BOOT_SOURCES}
23endif
24ifeq (${BL3_SD_MMC_NEEDED},yes)
25BL31_SOURCES += ${SD_MMC_BOOT_SOURCES}
26endif
27endif
28endif