summaryrefslogtreecommitdiff
path: root/spl/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2013-11-28 12:22:17 +0900
committerTom Rini <trini@ti.com>2013-12-13 09:18:44 -0500
commit392ba5256ab9bf017a9b7320ef0cee98862c908d (patch)
tree5579c658986bfd7096778e18b646317b051d3fb7 /spl/Makefile
parent4f57a90cfa1872c0142483e426061dca4e3c90c4 (diff)
downloadu-boot-imx-392ba5256ab9bf017a9b7320ef0cee98862c908d.zip
u-boot-imx-392ba5256ab9bf017a9b7320ef0cee98862c908d.tar.gz
u-boot-imx-392ba5256ab9bf017a9b7320ef0cee98862c908d.tar.bz2
drivers/mtd: descend into sub directories only when it is necessary
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'spl/Makefile')
-rw-r--r--spl/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/spl/Makefile b/spl/Makefile
index 9b862be..ec09831 100644
--- a/spl/Makefile
+++ b/spl/Makefile
@@ -78,7 +78,7 @@ LIBS-y += fs/
LIBS-$(CONFIG_SPL_LIBGENERIC_SUPPORT) += lib/
LIBS-$(CONFIG_SPL_POWER_SUPPORT) += drivers/power/ \
drivers/power/pmic/
-LIBS-$(CONFIG_SPL_NAND_SUPPORT) += drivers/mtd/nand/
+LIBS-$(if $(CONFIG_CMD_NAND),$(CONFIG_SPL_NAND_SUPPORT)) += drivers/mtd/nand/
LIBS-$(CONFIG_SPL_ONENAND_SUPPORT) += drivers/mtd/onenand/
LIBS-$(CONFIG_SPL_DMA_SUPPORT) += drivers/dma/
LIBS-$(CONFIG_SPL_POST_MEM_SUPPORT) += post/drivers/