]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/calao/tny_a9260/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / calao / tny_a9260 / Makefile
index 21f5ed100628a55607ea44cfa8c842898cd5ea3c..151a228fcb846731479f7ceb434fc1520af28b20 100644 (file)
@@ -27,7 +27,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS-y        += tny_a9260.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)