]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/xes/common/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / xes / common / Makefile
index 16e0b66218a446a684245b3392ab7835d0e4726c..7604f626bbc98f668c5f9eb4117dd76fb2bbca4f 100644 (file)
@@ -27,7 +27,7 @@ ifneq ($(OBJTREE),$(SRCTREE))
 $(shell mkdir -p $(obj)board/$(VENDOR)/common)
 endif
 
-LIB    = $(obj)lib$(VENDOR).a
+LIB    = $(obj)lib$(VENDOR).o
 
 COBJS-$(CONFIG_FSL_PCI_INIT)   += fsl_8xxx_pci.o
 COBJS-$(CONFIG_MPC8572)                += fsl_8xxx_clk.o
@@ -44,7 +44,7 @@ OBJS  := $(addprefix $(obj),$(COBJS-y))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 clean:
        rm -f $(SOBJS) $(OBJS)