]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/xm250/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / xm250 / Makefile
index 11e2b304c28208970622f8f27b178c8479e2995e..4e86cc26f944dd6716705e12e9532a21c57620f7 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  := xm250.o flash.o
 
@@ -31,7 +31,7 @@ SRCS  := $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 clean:
        rm -f $(OBJS)