Merge branch 'master' of git://git.denx.de/u-boot-nios
[platform/kernel/u-boot.git] / drivers / mtd / onenand / Makefile
index b984bd4..b090d40 100644 (file)
@@ -25,8 +25,12 @@ include $(TOPDIR)/config.mk
 
 LIB    := $(obj)libonenand.o
 
+ifndef CONFIG_SPL_BUILD
 COBJS-$(CONFIG_CMD_ONENAND)    := onenand_uboot.o onenand_base.o onenand_bbt.o
 COBJS-$(CONFIG_SAMSUNG_ONENAND)        += samsung.o
+else
+COBJS-y                                := onenand_spl.o
+endif
 
 COBJS  := $(COBJS-y)
 SRCS   := $(COBJS:.o=.c)