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