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