]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/st/nhk8815/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / st / nhk8815 / Makefile
index b37fe534acc11dce7c04f7b6fc95754a009d79af..3f360dcf29ada5f7c2b1fd17ec413788876a0461 100644 (file)
@@ -27,7 +27,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  := nhk8815.o
 SOBJS  := platform.o
@@ -37,7 +37,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))
 
 clean:
        rm -f $(SOBJS) $(OBJS)