]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/bf548-ezkit/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / bf548-ezkit / Makefile
index 1a2f4b16bbc6d7f3af29fef756fc9aa1038b70b8..98a81213d273b7e32c9a7140d2d92e60258f5b29 100644 (file)
@@ -27,7 +27,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS-y        := $(BOARD).o
 COBJS-$(CONFIG_VIDEO)      += video.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)