]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/freescale/corenet_ds/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / freescale / corenet_ds / Makefile
index 7a56fa2ce3de88f64b2437cba7ed0d140b07ef5a..1047d783f498dfcc48fa9faf4962128193bf5d08 100644 (file)
@@ -24,7 +24,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS-y        += $(BOARD).o
 COBJS-y        += ddr.o
@@ -38,7 +38,7 @@ OBJS  := $(addprefix $(obj),$(COBJS-y))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(obj).depend $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 clean:
        rm -f $(OBJS) $(SOBJS)