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