summaryrefslogtreecommitdiff
path: root/drivers/mmc/Makefile
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-06-12 23:30:18 -0600
committerSimon Glass <sjg@chromium.org>2016-07-11 14:06:44 -0600
commitc40704f4b13a19a95aa13965c0f1f6a93b5574c0 (patch)
treed3ed36ea61e7887fa5238c0fb0ff49004784823d /drivers/mmc/Makefile
parent5aed4cbba07526d1a575f07f45b4d10d8cdca11e (diff)
downloadu-boot-imx-c40704f4b13a19a95aa13965c0f1f6a93b5574c0.zip
u-boot-imx-c40704f4b13a19a95aa13965c0f1f6a93b5574c0.tar.gz
u-boot-imx-c40704f4b13a19a95aa13965c0f1f6a93b5574c0.tar.bz2
mmc: Move MMC boot code into its own file
Rather than having an #ifdef in the main mmc.c file, control this feature from the Makefile by moving the code into its own file. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/mmc/Makefile')
-rw-r--r--drivers/mmc/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/Makefile b/drivers/mmc/Makefile
index 3da4817..b44a12e 100644
--- a/drivers/mmc/Makefile
+++ b/drivers/mmc/Makefile
@@ -25,6 +25,9 @@ obj-$(CONFIG_FSL_ESDHC) += fsl_esdhc.o
obj-$(CONFIG_FTSDC010) += ftsdc010_mci.o
obj-$(CONFIG_FTSDC021) += ftsdc021_sdhci.o
obj-$(CONFIG_GENERIC_MMC) += mmc.o
+ifdef CONFIG_SUPPORT_EMMC_BOOT
+obj-$(CONFIG_GENERIC_MMC) += mmc_boot.o
+endif
obj-$(CONFIG_GENERIC_ATMEL_MCI) += gen_atmel_mci.o
obj-$(CONFIG_KONA_SDHCI) += kona_sdhci.o
obj-$(CONFIG_MMC_SPI) += mmc_spi.o