]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/cm41xx/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / cm41xx / Makefile
index 952a8ae21bc61321632d739a4e39b6c29f33d156..e608fe8b286e81ada03da1cf753b8d96205dc8c6 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  := cm41xx.o flash.o
 
@@ -32,7 +32,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)