]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/trab/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / trab / Makefile
index 0b13dc475ee42417317491d29ae4c180b145de55..82da40c9af3f4af095db969f4ba49b393352bfc1 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  := trab.o flash.o vfd.o cmd_trab.o memory.o tsc2000.o auto_update.o
 SOBJS  := lowlevel_init.o
@@ -43,7 +43,7 @@ LOAD_ADDR = 0xc100000
 all:   $(LIB) $(obj)trab_fkt.srec $(obj)trab_fkt.bin
 
 $(LIB):        $(obj).depend $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
+       $(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
 $(obj)trab_fkt.srec:   $(OBJS_FKT) $(LIB)
        $(LD) -g -Ttext $(LOAD_ADDR) -o $(<:.o=) -e trab_fkt $^ $(LIB) \