diff mbox

[U-Boot,v2,06/12] mtd: Build nand_util.o for CONFIG_ENV_IS_IN_NAND in SPL

Message ID 1386612538-11186-7-git-send-email-trini@ti.com
State Deferred
Delegated to: Tom Rini
Headers show

Commit Message

Tom Rini Dec. 9, 2013, 6:08 p.m. UTC
Cc: Scott Wood <scottwood@freescale.com>
Signed-off-by: Tom Rini <trini@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(+)

Comments

Scott Wood Dec. 9, 2013, 11:41 p.m. UTC | #1
On Mon, 2013-12-09 at 13:08 -0500, Tom Rini wrote:
> Cc: Scott Wood <scottwood@freescale.com>
> Signed-off-by: Tom Rini <trini@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(+)

Acked-by: Scott Wood <scottwood@freescale.com>

-Scott
diff mbox

Patch

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