]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/mousse/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / mousse / Makefile
index 3e719f0cc0c53d9251e40469148ea6707685d6a6..346f779e14e28dffa9394456b8b901c8b48613e0 100644 (file)
@@ -24,7 +24,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  = $(BOARD).o m48t59y.o pci.o flash.o
 SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
@@ -32,7 +32,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 #########################################################################