]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/esd/du440/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / esd / du440 / Makefile
index 909d007c47dedbdf362569c5c04626f7d7dabc38..7b7b4f7fda88ff08b81946dc78762da0b5d808e1 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  = $(BOARD).o
 SOBJS  = init.o
@@ -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)