]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - arch/arm/cpu/arm926ejs/mx28/Makefile
i.MX28: Move SPL to arch/arm/cpu/arm926ejs/mx28
[karo-tx-uboot.git] / arch / arm / cpu / arm926ejs / mx28 / Makefile
index 7845310cfec12493245d9a20df5a454248275dcf..372de8a5e4c6de28bce2eb3cfccec16d56c7d689 100644 (file)
@@ -27,6 +27,10 @@ LIB  = $(obj)lib$(SOC).o
 
 COBJS  = clock.o mx28.o iomux.o timer.o
 
+ifdef  CONFIG_SPL_BUILD
+COBJS  += memsize.o spl_boot.o spl_mem_init.o spl_power_init.o
+endif
+
 SRCS   := $(START:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
 START  := $(addprefix $(obj),$(START))
@@ -36,6 +40,11 @@ all: $(obj).depend $(LIB)
 $(LIB):        $(OBJS)
        $(call cmd_link_o_target, $(OBJS))
 
+ifdef  CONFIG_SPL_BUILD
+memsize.c:
+       ln -sf $(TOPDIR)/common/memsize.c $@
+endif
+
 #########################################################################
 
 # defines $(obj).depend target