[U-Boot] [PATCH v2 06/12] mtd: Build nand_util.o for CONFIG_ENV_IS_IN_NAND in SPL
Tom Rini
trini at ti.com
Mon Dec 9 19:08:52 CET 2013
Cc: Scott Wood <scottwood at freescale.com>
Signed-off-by: Tom Rini <trini at ti.com>
---
Changes in v2:
- Surround adding nand_util.o with CONFIG_SPL_ENV_SUPPORT test
---
drivers/mtd/nand/Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/mtd/nand/Makefile b/drivers/mtd/nand/Makefile
index e145cd1..ca978ae 100644
--- a/drivers/mtd/nand/Makefile
+++ b/drivers/mtd/nand/Makefile
@@ -20,6 +20,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
--
1.7.9.5
More information about the U-Boot
mailing list