]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/gth2/Makefile
Switch from archive libraries to partial linking
[people/ms/u-boot.git] / board / gth2 / Makefile
index 097ffec35c2126aa823057e373d37f5645b0e619..77965fbba688f42a72eac3c15cfa9ceb308f9486 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  = $(BOARD).o flash.o ee_access.o
 SOBJS  = lowlevel_init.o
@@ -33,7 +33,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(obj).depend $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
+       $(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
 #########################################################################