Debian Codegraph @

drivers/nxp/sd/sd_mmc.mk

raw
1 #
2 # Copyright 2021 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_MMC_BOOT_SOURCES += ${PLAT_DRIVERS_PATH}/sd/sd_mmc.c \
12 drivers/io/io_block.c
13
14 PLAT_INCLUDES += -I$(PLAT_DRIVERS_INCLUDE_PATH)/sd
15
16 ifeq (${BL_COMM_SD_MMC_NEEDED},yes)
17 BL_COMMON_SOURCES += ${SD_MMC_BOOT_SOURCES}
18 else
19 ifeq (${BL2_SD_MMC_NEEDED},yes)
20 BL2_SOURCES += ${SD_MMC_BOOT_SOURCES}
21 endif
22 ifeq (${BL3_SD_MMC_NEEDED},yes)
23 BL31_SOURCES += ${SD_MMC_BOOT_SOURCES}
24 endif
25 endif
26 endif