]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/rsdproto/Makefile
Switch from archive libraries to partial linking
[people/ms/u-boot.git] / board / rsdproto / Makefile
index 5c9c33c9fb26f4f1349322872408c2b0d36d0714..d297622fe8b6276fe10c13587b757f322d520e9b 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  := rsdproto.o flash.o
 SOBJS  := flash_asm.o
@@ -33,7 +33,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)