diff options
author | wdenk <wdenk> | 2003-09-12 15:35:15 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2003-09-12 15:35:15 +0000 |
commit | f5300ab241898c490231e59229e6312aa862ce52 (patch) | |
tree | 92df7780e9c3f85d07eafda8da244e713da1cc3d /board/trab/Makefile | |
parent | 68ce8957e551d90917dffb0aa64fc7c52ef6061c (diff) | |
download | u-boot-imx-f5300ab241898c490231e59229e6312aa862ce52.zip u-boot-imx-f5300ab241898c490231e59229e6312aa862ce52.tar.gz u-boot-imx-f5300ab241898c490231e59229e6312aa862ce52.tar.bz2 |
Move TRAB burn-in tests to TRAB board directory
Diffstat (limited to 'board/trab/Makefile')
-rw-r--r-- | board/trab/Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/board/trab/Makefile b/board/trab/Makefile index 08a1dbc..f376771 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) |