]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/bct-brettl2/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / bct-brettl2 / Makefile
index cf99d29f1c19a5f02e15323864b54d09ca8c1ffe..b2688151e2aa28b69d956e1b4ece9f28d13f8647 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 cled.o
 COBJS-$(CONFIG_BFIN_MAC) += smsc9303.o
@@ -37,7 +37,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)