summaryrefslogtreecommitdiff
path: root/drivers/mtd/Makefile
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2013-05-31 18:28:47 -0400
committerTom Rini <trini@ti.com>2013-05-31 18:28:47 -0400
commitd6639d10dbfa42dc888f8917012550b632a88959 (patch)
tree3c971dcfad4d7ad58570e8d5b0318f58370f9d3d /drivers/mtd/Makefile
parent3da0e5750b24a9491058df6126c7be577a276c09 (diff)
parentdfe64e2c89731a3f9950d7acd8681b68df2bae03 (diff)
downloadu-boot-imx-d6639d10dbfa42dc888f8917012550b632a88959.zip
u-boot-imx-d6639d10dbfa42dc888f8917012550b632a88959.tar.gz
u-boot-imx-d6639d10dbfa42dc888f8917012550b632a88959.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-nand-flash
Diffstat (limited to 'drivers/mtd/Makefile')
-rw-r--r--drivers/mtd/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mtd/Makefile b/drivers/mtd/Makefile
index 543c845..99f39fc 100644
--- a/drivers/mtd/Makefile
+++ b/drivers/mtd/Makefile
@@ -25,7 +25,9 @@ include $(TOPDIR)/config.mk
LIB := $(obj)libmtd.o
-COBJS-$(CONFIG_MTD_DEVICE) += mtdcore.o
+ifneq (,$(findstring y,$(CONFIG_MTD_DEVICE)$(CONFIG_CMD_NAND)$(CONFIG_CMD_ONENAND)))
+COBJS-y += mtdcore.o
+endif
COBJS-$(CONFIG_MTD_PARTITIONS) += mtdpart.o
COBJS-$(CONFIG_MTD_CONCAT) += mtdconcat.o
COBJS-$(CONFIG_HAS_DATAFLASH) += at45.o