]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/pci/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / drivers / pci / Makefile
index 0c4fa802a3bfb60acad2330205d037b2b599cb58..ee0c64d1354bcb771e184d87712fab8875853234 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    := $(obj)libpci.a
+LIB    := $(obj)libpci.o
 
 COBJS-$(CONFIG_FSL_PCI_INIT) += fsl_pci_init.o
 COBJS-$(CONFIG_PCI) += pci.o pci_auto.o pci_indirect.o
@@ -41,7 +41,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 all:   $(LIB)
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 #########################################################################