summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/Makefile
diff options
context:
space:
mode:
authorSimon Schwarz <simonschwarzcor@googlemail.com>2011-09-14 15:30:16 -0400
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-09-30 22:00:54 +0200
commit12c2f1ee3c3e26950b39b779db4b6636759778ff (patch)
tree0d5ff19233dad1274a905c3ec5fd7bd662e3353e /drivers/mtd/nand/Makefile
parentbb085b87e587b5ea98519d95c8b24f603d91360a (diff)
downloadu-boot-imx-12c2f1ee3c3e26950b39b779db4b6636759778ff.zip
u-boot-imx-12c2f1ee3c3e26950b39b779db4b6636759778ff.tar.gz
u-boot-imx-12c2f1ee3c3e26950b39b779db4b6636759778ff.tar.bz2
spl: add NAND Library to new SPL
Adds NAND library to SPL. Signed-off-by: Simon Schwarz <simonschwarzcor@gmail.com> Acked-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'drivers/mtd/nand/Makefile')
-rw-r--r--drivers/mtd/nand/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/mtd/nand/Makefile b/drivers/mtd/nand/Makefile
index 8b598f6..b6a7886 100644
--- a/drivers/mtd/nand/Makefile
+++ b/drivers/mtd/nand/Makefile
@@ -26,12 +26,18 @@ include $(TOPDIR)/config.mk
LIB := $(obj)libnand.o
ifdef CONFIG_CMD_NAND
+ifdef CONFIG_SPL_BUILD
+ifdef CONFIG_SPL_NAND_SIMPLE
+COBJS-y += nand_spl_simple.o
+endif
+else
COBJS-y += nand.o
-COBJS-y += nand_base.o
COBJS-y += nand_bbt.o
-COBJS-y += nand_ecc.o
COBJS-y += nand_ids.o
COBJS-y += nand_util.o
+endif
+COBJS-y += nand_ecc.o
+COBJS-y += nand_base.o
COBJS-$(CONFIG_NAND_ATMEL) += atmel_nand.o
COBJS-$(CONFIG_DRIVER_NAND_BFIN) += bfin_nand.o