]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/o2dnt/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / o2dnt / Makefile
index 58afd7b6597326d80a3e899be5814b9271731c95..3c99739bdbfbb767cd520ac8c02cb2bfce28603e 100644 (file)
@@ -24,7 +24,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  := $(BOARD).o flash.o
 
@@ -33,7 +33,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 clean:
        rm -f $(SOBJS) $(OBJS)