]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mtd: Build nand_util.o for CONFIG_ENV_IS_IN_NAND in SPL
authorTom Rini <trini@ti.com>
Fri, 28 Mar 2014 16:03:37 +0000 (12:03 -0400)
committerTom Rini <trini@ti.com>
Thu, 17 Apr 2014 18:39:54 +0000 (14:39 -0400)
Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Tom Rini <trini@ti.com>
drivers/mtd/nand/Makefile

index 02b149caccaa9793ff00a85d8d1299037fa25101..4eb354da93a17b9f551bf5a8caf0a245d5b32d31 100644 (file)
@@ -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