summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2014-03-28 12:03:37 -0400
committerTom Rini <trini@ti.com>2014-04-17 14:39:54 -0400
commitdb605806496cea6d6a82032b2f9ae1628ae7778d (patch)
tree99ffccebb4ca3999649422782dbf612cfb7cbe81
parent6dd3b566893a99629771e076dca1ce8db7b77dc1 (diff)
downloadu-boot-imx-db605806496cea6d6a82032b2f9ae1628ae7778d.zip
u-boot-imx-db605806496cea6d6a82032b2f9ae1628ae7778d.tar.gz
u-boot-imx-db605806496cea6d6a82032b2f9ae1628ae7778d.tar.bz2
mtd: Build nand_util.o for CONFIG_ENV_IS_IN_NAND in SPL
Acked-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Tom Rini <trini@ti.com>
-rw-r--r--drivers/mtd/nand/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mtd/nand/Makefile b/drivers/mtd/nand/Makefile
index 02b149c..4eb354d 100644
--- a/drivers/mtd/nand/Makefile
+++ b/drivers/mtd/nand/Makefile
@@ -18,6 +18,9 @@ obj-$(CONFIG_SPL_NAND_LOAD) += nand_spl_load.o
obj-$(CONFIG_SPL_NAND_ECC) += nand_ecc.o
obj-$(CONFIG_SPL_NAND_BASE) += nand_base.o
obj-$(CONFIG_SPL_NAND_INIT) += nand.o
+ifeq ($(CONFIG_SPL_ENV_SUPPORT),y)
+obj-$(CONFIG_ENV_IS_IN_NAND) += nand_util.o
+endif
else # not spl