]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/pcs440ep/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / pcs440ep / Makefile
index 40446884c8a32d8c86d8223fef94a82a1fb2468f..8708834b118d29f89d193cb51f3e2109b99808c9 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
 SOBJS  = init.o
@@ -33,7 +33,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 clean:
        rm -f $(SOBJS) $(OBJS)