]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/amcc/bluestone/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / amcc / bluestone / Makefile
index 41751c870b397ebe1d66deaee52aa06ef2d8658e..bcc52523a946cf54c87046a0fd48bd4c8edc5e0b 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS-y        := $(BOARD).o
 SOBJS  := init.o
@@ -34,7 +34,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
+       $(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
 clean:
        rm -f $(SOBJS) $(OBJS)