]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/psyent/pk1c20/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / psyent / pk1c20 / Makefile
index e23a17bc3182f0daddeb75d97facc9c0b5426e76..4677809f511503b3fec46a2f254fa5f37aa7c43c 100644 (file)
@@ -26,7 +26,7 @@ ifneq ($(OBJTREE),$(SRCTREE))
 $(shell mkdir -p $(obj)../common)
 endif
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COMOBJS := ../common/AMDLV065D.o
 
@@ -37,7 +37,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)