]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/gdsys/common/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / gdsys / common / Makefile
index 93cde5aa17472807c38ac9dbe1df6964ccada31c..22570373850c879f8a21e75e299dacf271a4fdde 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_IO) += miiphybb.o
 COBJS-$(CONFIG_IOCON) += osd.o
@@ -40,7 +40,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
+       $(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
 clean:
        rm -f $(SOBJS) $(OBJS)