]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/spear/spear310/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / spear / spear310 / Makefile
index e67e941cf90da50d2b131bdd71132a01a6a70ee6..6dce0936a80e3a20292d2fb0c1e727a8b7a686c8 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  := spear310.o
 SOBJS  :=
@@ -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)