Show the debug logs to stdout, to avoid travis timeouts
[riscv-tests.git] / debug / Makefile
index 086cfb995894adca2206947d0b830151d95bdfa3..f835507ce98df6e7c986335917a4adedd2a791f9 100644 (file)
@@ -4,13 +4,20 @@ XLEN ?= 64
 src_dir ?= .
 GDBSERVER_PY = $(src_dir)/gdbserver.py
 
-default:       spike$(XLEN).log
+default: spike$(XLEN).log
 
-all:   spike32.log spike64.log
+all:   pylint spike32.log spike64.log
+
+pylint:
+       pylint --rcfile=pylint.rc *.py
 
 %.log:
-       $(GDBSERVER_PY) --isolate --$(subst .log,,$@) --cmd $(RISCV_SIM) -- -v \
-           > $@ 2>&1 || sed s/^/$@:\ / $@
+       $(GDBSERVER_PY) \
+               --isolate \
+               --$(subst .log,,$@) \
+               --sim_cmd $(RISCV)/bin/$(RISCV_SIM) \
+               --server_cmd $(RISCV)/bin/openocd \
+           | tee $@ 2>&1 || (sed s/^/$@:\ / $@ && false)
 
 clean:
-       rm -f *.log
+       rm -f *.log *.pyc