1# 2# Copyright 2021 NXP 3# 4# SPDX-License-Identifier: BSD-3-Clause 5# 6 7ifeq (${ADD_SD_MMC},) 8 9ADD_SD_MMC := 1 10 11SD_MMC_BOOT_SOURCES += ${PLAT_DRIVERS_PATH}/sd/sd_mmc.c \ 12 drivers/io/io_block.c 13 14PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/sd 15 16ifeq (${BL_COMM_SD_MMC_NEEDED},yes) 17BL_COMMON_SOURCES += ${SD_MMC_BOOT_SOURCES} 18else 19ifeq (${BL2_SD_MMC_NEEDED},yes) 20BL2_SOURCES += ${SD_MMC_BOOT_SOURCES} 21endif 22ifeq (${BL3_SD_MMC_NEEDED},yes) 23BL31_SOURCES += ${SD_MMC_BOOT_SOURCES} 24endif 25endif 26endif 27