Show the debug logs to stdout, to avoid travis timeouts
[riscv-tests.git] / debug / Makefile
1 RISCV_SIM ?= spike
2 XLEN ?= 64
3
4 src_dir ?= .
5 GDBSERVER_PY = $(src_dir)/gdbserver.py
6
7 default: spike$(XLEN).log
8
9 all: pylint spike32.log spike64.log
10
11 pylint:
12 pylint --rcfile=pylint.rc *.py
13
14 %.log:
15 $(GDBSERVER_PY) \
16 --isolate \
17 --$(subst .log,,$@) \
18 --sim_cmd $(RISCV)/bin/$(RISCV_SIM) \
19 --server_cmd $(RISCV)/bin/openocd \
20 | tee $@ 2>&1 || (sed s/^/$@:\ / $@ && false)
21
22 clean:
23 rm -f *.log *.pyc