]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/arm/cpu/lh7a40x/Makefile
Switch from archive libraries to partial linking
[people/ms/u-boot.git] / arch / arm / cpu / lh7a40x / Makefile
index 1b3f58abb93bd50e85ce42b122d23fac0a2250ca..01cf7f54554485d57534f509697a5d6f3e533a39 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(CPU).a
+LIB    = $(obj)lib$(CPU).o
 
 START  = start.o
 COBJS  = cpu.o speed.o timer.o
@@ -35,7 +35,7 @@ START := $(addprefix $(obj),$(START))
 all:   $(obj).depend $(START) $(LIB)
 
 $(LIB):        $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 #########################################################################