]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/ep82xxm/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / ep82xxm / Makefile
index c69c475a8dcda8a50ef78e34694e1655568a576f..74b9a356f726f53eb0e233436bf3ef0218cb6222 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  := $(BOARD).o
 
@@ -31,7 +31,7 @@ SRCS  := $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
 
 $(LIB):        $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 clean:
        rm -f $(OBJS)