]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/sbc8548/Makefile
Switch from archive libraries to partial linking
[people/ms/u-boot.git] / board / sbc8548 / Makefile
index 09e5c2e18bd99c035bb7713ed1b7130fcf247749..f68ec8dc3506b31265d2d49cbabafdb14be1930c 100644 (file)
@@ -26,7 +26,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS-y        += $(BOARD).o
 COBJS-y        += law.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)