]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/g2000/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / g2000 / Makefile
index 1c60447e85483ac51c5d52c111cc9804538f0649..0f53340312aa390964fff395062deb239e4538bc 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  = $(BOARD).o strataflash.o
 
@@ -32,7 +32,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 clean:
        rm -f $(SOBJS) $(OBJS)