]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/amcc/makalu/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / amcc / makalu / Makefile
index dc3edc11aa863caa67a01ed9daab07370f55cae2..e10fadba254f0503b08f35af18498070a7159e8e 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  = $(BOARD).o cmd_pll.o
 SOBJS  = init.o
@@ -32,7 +32,7 @@ SRCS  := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS))
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 clean:
        rm -f $(OBJS)