]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/sbc8560/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / sbc8560 / Makefile
index 63997349f27fe5523dd9afad38daab62f9c5a331..a402ee4d4b10ea8d780c5f4bb35f23182f01e823 100644 (file)
@@ -26,7 +26,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS-y        += $(BOARD).o
 COBJS-y        += law.o
@@ -38,7 +38,7 @@ OBJS  := $(addprefix $(obj),$(COBJS-y))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(obj).depend $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 clean:
        rm -f $(OBJS) $(SOBJS)