]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/calao/sbc35_a9g20/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / calao / sbc35_a9g20 / Makefile
index 8b4a9116b209e948182d3c2b2a8db5e05cd917c0..cc4219db160e71df051230f9a24530ea6677d842 100644 (file)
@@ -27,7 +27,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS-y        += sbc35_a9g20.o
 COBJS-$(CONFIG_ATMEL_SPI)      += spi.o
@@ -37,7 +37,7 @@ OBJS  := $(addprefix $(obj),$(COBJS-y))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(obj).depend $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
+       $(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
 clean:
        rm -f $(SOBJS) $(OBJS)