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