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