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