Show the debug logs to stdout, to avoid travis timeouts
[riscv-tests.git] / debug / Makefile
index 79e89cbe397d912d024a26cdb09ddd081491c02f..f835507ce98df6e7c986335917a4adedd2a791f9 100644 (file)
@@ -4,7 +4,7 @@ XLEN ?= 64
 src_dir ?= .
 GDBSERVER_PY = $(src_dir)/gdbserver.py
 
-default:       spike$(XLEN).log
+default: spike$(XLEN).log
 
 all:   pylint spike32.log spike64.log
 
@@ -12,8 +12,12 @@ pylint:
        pylint --rcfile=pylint.rc *.py
 
 %.log:
-       $(GDBSERVER_PY) --isolate --$(subst .log,,$@) \
-           > $@ 2>&1 || (sed s/^/$@:\ / $@ && false)
+       $(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 *.pyc