From: Tom Rini Date: Fri, 28 Mar 2014 16:03:37 +0000 (-0400) Subject: mtd: Build nand_util.o for CONFIG_ENV_IS_IN_NAND in SPL X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=db605806496cea6d6a82032b2f9ae1628ae7778d;p=u-boot.git mtd: Build nand_util.o for CONFIG_ENV_IS_IN_NAND in SPL Acked-by: Scott Wood Signed-off-by: Tom Rini --- diff --git a/drivers/mtd/nand/Makefile b/drivers/mtd/nand/Makefile index 02b149cacc..4eb354da93 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