]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/cray/L1/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / cray / L1 / Makefile
index 21b513c29fab7be8d3157b74dafa5c9578ba3d96..d1a7a0b0df1fde5371d6da208f7de06e9a5b4a62 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  = $(BOARD).o flash.o
 SOBJS  = init.o
 
 COBJS  = $(BOARD).o flash.o
 SOBJS  = init.o
@@ -36,7 +36,7 @@ SOBJS := $(addprefix $(obj),$(SOBJS))
 # HACK: depend needs bootscript.c, which needs tools/mkimage, which is not
 # built in the depend stage.  So... put bootscript.o here, not in OBJS
 $(LIB):        $(OBJS) $(SOBJS) $(obj)bootscript.o
 # HACK: depend needs bootscript.c, which needs tools/mkimage, which is not
 # built in the depend stage.  So... put bootscript.o here, not in OBJS
 $(LIB):        $(OBJS) $(SOBJS) $(obj)bootscript.o
-       $(AR) $(ARFLAGS) $@ $^
+       $(call cmd_link_o_target, $^)
 
 clean:
        rm -f $(SOBJS) $(OBJS) $(obj)bootscript.c \
 
 clean:
        rm -f $(SOBJS) $(OBJS) $(obj)bootscript.c \