Add abort() for benefit of benchmark code
[riscv-tests.git] / debug / Makefile
index 1d90e122895cef3c194ace4aa2e912e9e3e67ac6..56db73178201087e6817e5af7a0d35d0887347d2 100644 (file)
@@ -6,13 +6,14 @@ GDBSERVER_PY = $(src_dir)/gdbserver.py
 
 default:       spike$(XLEN).log
 
-all:   spike32.log spike64.log
+all:   pylint spike32.log spike64.log
 
-spike32.log:
-       $(GDBSERVER_PY) --isolate --spike32 --cmd $(RISCV_SIM) -- -v > $@ 2>&1
+pylint:
+       pylint --rcfile=pylint.rc *.py
 
-spike64.log:
-       $(GDBSERVER_PY) --isolate --spike --cmd $(RISCV_SIM) -- -v > $@ 2>&1
+%.log:
+       $(GDBSERVER_PY) --isolate --$(subst .log,,$@) --cmd $(RISCV_SIM) \
+           > $@ 2>&1 || (sed s/^/$@:\ / $@ && false)
 
 clean:
-       rm -f *.log
+       rm -f *.log *.pyc