imx: Add support for the SabreSD shipped with i.MX6DL
[oweals/u-boot.git] / board / vpac270 / Makefile
index f9acf63e9b2507a1d25caba8ec275d1b8a3b1e16..5967055996f83e1c38436375b0fcb39d9a30e15a 100644 (file)
@@ -23,7 +23,11 @@ include $(TOPDIR)/config.mk
 
 LIB    = $(obj)lib$(BOARD).o
 
+ifndef CONFIG_SPL_BUILD
 COBJS  := vpac270.o
+else
+COBJS  := onenand.o
+endif
 
 SRCS   := $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
@@ -31,12 +35,6 @@ OBJS := $(addprefix $(obj),$(COBJS))
 $(LIB):        $(obj).depend $(OBJS)
        $(call cmd_link_o_target, $(OBJS))
 
-clean:
-       rm -f $(OBJS)
-
-distclean:     clean
-       rm -f $(LIB) core *.bak $(obj).depend
-
 #########################################################################
 
 # defines $(obj).depend target