]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/zeus/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / zeus / Makefile
index 55fb4c4343f0279dbeeea84ed053844c2c178a17..1ed026523c86fdbeff6fb3c723413704ce048aab 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  = $(BOARD).o update.o
 SOBJS   =
@@ -33,7 +33,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
+       $(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
 clean:
        rm -f $(SOBJS) $(OBJS)