]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/netstal/hcu5/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / netstal / hcu5 / Makefile
index d037552d709bc481fb5a3e787b93da7bb67c492e..53487653b6911831c29ec13aaf42ac71fc936a33 100644 (file)
@@ -23,7 +23,7 @@ ifneq ($(OBJTREE),$(SRCTREE))
 $(shell mkdir -p $(obj)../common)
 endif
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  = $(BOARD).o \
        sdram.o \
@@ -35,7 +35,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $^
+       $(call cmd_link_o_target, $^)
 
 clean:
        rm -f $(SOBJS) $(OBJS)