]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/spear/common/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / spear / common / Makefile
index 4f8959f529222c7069285ef7c5e178f358b1d62b..e0df6c1fe677c4da4d786a122db42437246f2697 100644 (file)
@@ -27,7 +27,7 @@ ifneq ($(OBJTREE),$(SRCTREE))
 $(shell mkdir -p $(obj)board/$(VENDOR)/common)
 endif
 
-LIB    = $(obj)lib$(VENDOR).a
+LIB    = $(obj)lib$(VENDOR).o
 
 COBJS  := spr_misc.o
 SOBJS  := spr_lowlevel_init.o
@@ -37,7 +37,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)