summaryrefslogtreecommitdiff
path: root/drivers/mmc/Makefile
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@imgtec.com>2013-09-09 15:30:26 +0100
committerPantelis Antoniou <panto@antoniou-consulting.com>2013-09-20 18:58:55 +0300
commitda61fa5f42133593be51764b55a905330eae5063 (patch)
tree57ac9ecb88465aca1356174d9f597401cadcb3c2 /drivers/mmc/Makefile
parent8687d5c80c9b4d66b4c33e34ef8eb36cf93d9ec7 (diff)
downloadu-boot-imx-da61fa5f42133593be51764b55a905330eae5063.zip
u-boot-imx-da61fa5f42133593be51764b55a905330eae5063.tar.gz
u-boot-imx-da61fa5f42133593be51764b55a905330eae5063.tar.bz2
mmc: don't support write & erase for SPL builds
For SPL builds this is just dead code since we'll only need to read. Eliminating it results in a significant size reduction for the SPL binary, which may be critical for certain platforms where the binary size is highly constrained. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
Diffstat (limited to 'drivers/mmc/Makefile')
-rw-r--r--drivers/mmc/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/Makefile b/drivers/mmc/Makefile
index bedf833..06280d1 100644
--- a/drivers/mmc/Makefile
+++ b/drivers/mmc/Makefile
@@ -34,6 +34,8 @@ COBJS-$(CONFIG_EXYNOS_DWMMC) += exynos_dw_mmc.o
COBJS-$(CONFIG_ZYNQ_SDHCI) += zynq_sdhci.o
ifdef CONFIG_SPL_BUILD
COBJS-$(CONFIG_SPL_MMC_BOOT) += fsl_esdhc_spl.o
+else
+COBJS-$(CONFIG_GENERIC_MMC) += mmc_write.o
endif
COBJS := $(COBJS-y)