]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/powerpc/cpu/mpc512x/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / arch / powerpc / cpu / mpc512x / Makefile
index 37b06f346edafaec6ee8ddaf27e595d2ba061d03..cb1263ab7ca97957dc07ef6d520c07ee83032d6d 100644 (file)
@@ -24,7 +24,7 @@ include $(TOPDIR)/config.mk
 
 $(shell mkdir -p $(OBJTREE)/board/freescale/common)
 
-LIB    = $(obj)lib$(CPU).a
+LIB    = $(obj)lib$(CPU).o
 
 START  = start.o
 COBJS-y        := cpu.o
@@ -50,7 +50,7 @@ START := $(addprefix $(obj),$(START))
 all:   $(obj).depend $(START) $(LIB)
 
 $(LIB):        $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 #########################################################################