]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/sbc8349/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / sbc8349 / Makefile
index 454c226a53ef81eaa16e6a70d00767867c56a97e..24c7b9807ddb4bf1e2af5707ed13f3e802c81d4e 100644 (file)
@@ -22,7 +22,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS-y += $(BOARD).o
 COBJS-$(CONFIG_PCI) += pci.o
@@ -33,7 +33,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)