summaryrefslogtreecommitdiff
path: root/board/trab/Makefile
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-09-12 15:35:15 +0000
committerwdenk <wdenk>2003-09-12 15:35:15 +0000
commitf5300ab241898c490231e59229e6312aa862ce52 (patch)
tree92df7780e9c3f85d07eafda8da244e713da1cc3d /board/trab/Makefile
parent68ce8957e551d90917dffb0aa64fc7c52ef6061c (diff)
Move TRAB burn-in tests to TRAB board directoryLABEL_2003_09_12_1745
Diffstat (limited to 'board/trab/Makefile')
-rw-r--r--board/trab/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/board/trab/Makefile b/board/trab/Makefile
index 08a1dbc1786..f3767716865 100644
--- a/board/trab/Makefile
+++ b/board/trab/Makefile
@@ -28,9 +28,27 @@ LIB = lib$(BOARD).a
OBJS := trab.o flash.o vfd.o cmd_trab.o memory.o tsc2000.o
SOBJS := memsetup.o
+gcclibdir := $(shell dirname `$(CC) -print-libgcc-file-name`)
+
+LOAD_ADDR = 0xc100000
+
+#########################################################################
+
+all: $(LIB) trab_fkt.srec trab_fkt.bin
+
$(LIB): $(OBJS) $(SOBJS)
$(AR) crv $@ $(OBJS) $(SOBJS)
+trab_fkt.srec: trab_fkt.o rs485.o tsc2000.o $(LIB)
+ $(LD) -g -Ttext $(LOAD_ADDR) -o $(<:.o=) -e $(<:.o=) $^ $(LIB) \
+ -L../../examples -lstubs \
+ -L../../lib_generic -lgeneric \
+ -L$(gcclibdir) -lgcc
+ $(OBJCOPY) -O srec $(<:.o=) $@
+
+trab_fkt.bin: trab_fkt.srec
+ $(OBJCOPY) -O binary $< $@ 2>/dev/null
+
clean:
rm -f $(SOBJS) $(OBJS)