]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/spear/common/Makefile
Merge branch 'master' of git://git.denx.de/u-boot-microblaze
[karo-tx-uboot.git] / board / spear / common / Makefile
index 4f8959f529222c7069285ef7c5e178f358b1d62b..5c66c3f09294397ad775e5cab401534011de848b 100644 (file)
@@ -27,23 +27,19 @@ ifneq ($(OBJTREE),$(SRCTREE))
 $(shell mkdir -p $(obj)board/$(VENDOR)/common)
 endif
 
-LIB    = $(obj)lib$(VENDOR).a
+LIB    = $(obj)lib$(VENDOR).o
 
+ifndef CONFIG_SPL_BUILD
 COBJS  := spr_misc.o
 SOBJS  := spr_lowlevel_init.o
+endif
 
 SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(obj).depend $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
-
-clean:
-       rm -f $(SOBJS) $(OBJS)
-
-distclean:     clean
-       rm -f $(LIB) core *.bak $(obj).depend
+       $(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
 #########################################################################
 # This is for $(obj).depend target