[U-Boot] [PATCH v3 05/10] mtd: Build nand_util.o for CONFIG_ENV_IS_IN_NAND in SPL

Tom Rini trini at ti.com
Fri Mar 28 17:03:37 CET 2014


Acked-by: 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 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
 
-- 
1.7.9.5



More information about the U-Boot mailing list