]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/pm520/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / pm520 / Makefile
index c94e24fc6a683dff273d5ec91f764bb2c8e6702c..d45db9ff8212c9bf53bee4f9a85e7a903b327158 100644 (file)
@@ -24,7 +24,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  := $(BOARD).o flash.o
 
@@ -33,7 +33,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 clean:
        rm -f $(SOBJS) $(OBJS)