]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/sbc8641d/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / sbc8641d / Makefile
index c78b0a8280b4271518475cc29d866a232ba8445f..433c132fab676d46572acc2642671a98c8060e71 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS-y        += $(BOARD).o
 COBJS-y        += law.o
@@ -34,7 +34,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)