]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/eNET/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / eNET / Makefile
index 588d21d269ef62b6cc54c0064a2596819873ad2b..498078702e2f59b8bfe02780bd79e0ffb76fd49c 100644 (file)
@@ -29,7 +29,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS-y        += eNET.o
 COBJS-$(CONFIG_PCI) += eNET_pci.o
@@ -40,7 +40,7 @@ SRCS  := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
 OBJS   := $(addprefix $(obj),$(SOBJS-y) $(COBJS-y))
 
 $(LIB):        $(obj).depend $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
+       $(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
 clean:
        rm -f $(SOBJS) $(OBJS)