i.MX28: Move SPL to arch/arm/cpu/arm926ejs/mx28
[platform/kernel/u-boot.git] / board / denx / m28evk / Makefile
index e6aba9a..aa16c7d 100644 (file)
@@ -25,7 +25,11 @@ include $(TOPDIR)/config.mk
 
 LIB    = $(obj)lib$(BOARD).o
 
+ifndef CONFIG_SPL_BUILD
 COBJS  := m28evk.o
+else
+COBJS  := spl_boot.o
+endif
 
 SRCS   := $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
@@ -33,6 +37,8 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 $(LIB):        $(obj).depend $(OBJS)
        $(call cmd_link_o_target, $(OBJS))
 
+all:   $(ALL)
+
 #########################################################################
 
 # defines $(obj).depend target