]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/renesas/r2dplus/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / renesas / r2dplus / Makefile
index e96a8aa9866e035f966da84385f5cbefa98b0a1c..7d92354d4fd5a836aab02c845e3ad02b9cb0848d 100644 (file)
@@ -19,7 +19,7 @@
 #
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  := r2dplus.o
 SOBJS  := lowlevel_init.o
@@ -29,7 +29,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)