]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/dave/B2/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / dave / B2 / Makefile
index e70d2c8e37c14e8f950831af453a94d70c3c9a0b..b981579a8e23babf22e087e408d681d8c028ef32 100644 (file)
@@ -27,7 +27,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  := B2.o flash.o
 SOBJS  := lowlevel_init.o
@@ -37,7 +37,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(obj).depend $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
+       $(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
 clean:
        rm -f $(SOBJS) $(OBJS)