]> git.sur5r.net Git - u-boot/blobdiff - examples/standalone/Makefile
fsl_esdhc: Fix max clock frequency
[u-boot] / examples / standalone / Makefile
index c2dd514d9391cc9d65a3b74a679b54bdc1375569..c1dfdce581d8f1823754ab8089ac1b304c52eb58 100644 (file)
@@ -50,7 +50,7 @@ BIN  = $(addsuffix .bin,$(ELF))
 
 COBJS  := $(ELF:=.o)
 
-LIB    = $(obj)libstubs.a
+LIB    = $(obj)libstubs.o
 
 LIBAOBJS-$(ARCH)     :=
 LIBAOBJS-$(CPU)      :=
@@ -91,7 +91,7 @@ all:  $(obj).depend $(OBJS) $(LIB) $(SREC) $(BIN) $(ELF)
 
 #########################################################################
 $(LIB):        $(obj).depend $(LIBOBJS)
-               $(AR) $(ARFLAGS) $@ $(LIBOBJS)
+       $(call cmd_link_o_target, $(LIBOBJS))
 
 $(ELF):
 $(obj)%:       $(obj)%.o $(LIB)