]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/ronetix/pm9g45/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / ronetix / pm9g45 / Makefile
index dd5b02ecdaa3919fe85abe1e40cf1a68a8a9c85e..cb0126288b4fb50a477eb4d1589212d4e19f6a96 100644 (file)
@@ -27,7 +27,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS-y += pm9g45.o
 
@@ -36,7 +36,7 @@ OBJS  := $(addprefix $(obj),$(COBJS-y))
 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)