]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/cm-bf537e/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / cm-bf537e / Makefile
index bad018aa34d6a4a17abbf33cb5a0ecc6b70591bc..4d7bf14f8b194f7e170c881578fcc09241cea9bc 100644 (file)
@@ -27,7 +27,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS-y        := $(BOARD).o gpio_cfi_flash.o
 
@@ -36,7 +36,7 @@ OBJS  := $(addprefix $(obj),$(COBJS-y))
 SOBJS  := $(addprefix $(obj),$(SOBJS-y))
 
 $(LIB):        $(obj).depend $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
+       $(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
 clean:
        rm -f $(SOBJS) $(OBJS)