]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/mx1ads/Makefile
Switch from archive libraries to partial linking
[people/ms/u-boot.git] / board / mx1ads / Makefile
index b68b1bdd25dec95826e4380f81f857a7ded06069..20d7b8624a1c37089880a4f81bd2ebde64456cf4 100644 (file)
@@ -27,7 +27,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  := mx1ads.o syncflash.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)