]> 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 cfdd60e0562ac29b72ede73af69b4c0009236b13..d1a7a0b0df1fde5371d6da208f7de06e9a5b4a62 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  = $(BOARD).o flash.o
 SOBJS  = init.o
@@ -36,14 +36,14 @@ 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
-       $(AR) $(ARFLAGS) $@ $^
+       $(call cmd_link_o_target, $^)
 
 clean:
        rm -f $(SOBJS) $(OBJS) $(obj)bootscript.c \
                $(obj)bootscript.image $(obj)bootscript.o
 
 distclean:     clean
-       rm -f $(LIB) core *.bak .depend
+       rm -f $(LIB) core *.bak $(obj).depend
 
 $(obj)$(BOARD).o : $(src)$(BOARD).c $(obj)bootscript.o