]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/tqc/tqm5200/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / tqc / tqm5200 / Makefile
index 55c4d99a8f3330fb204f2acb5646fa385e71bfd1..d0e68c31a241b735ea82d21bfe96ff32d36a9813 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  := $(BOARD).o cmd_stk52xx.o cmd_tb5200.o cam5200_flash.o
 
@@ -32,7 +32,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 clean:
        rm -f $(SOBJS) $(OBJS)