Pylint target files as well.
[riscv-tests.git] / debug / Makefile
index 79e89cbe397d912d024a26cdb09ddd081491c02f..90ee25c6720e369953e5f7636b74f05065687c43 100644 (file)
@@ -4,16 +4,20 @@ XLEN ?= 64
 src_dir ?= .
 GDBSERVER_PY = $(src_dir)/gdbserver.py
 
-default:       spike$(XLEN).log
+default: spike$(XLEN).log
 
 all:   pylint spike32.log spike64.log
 
 pylint:
-       pylint --rcfile=pylint.rc *.py
+       pylint --rcfile=pylint.rc `git ls-files '*.py'`
 
 %.log:
-       $(GDBSERVER_PY) --isolate --$(subst .log,,$@) \
-           > $@ 2>&1 || (sed s/^/$@:\ / $@ && false)
+       $(GDBSERVER_PY) \
+               --isolate \
+               targets/RISC-V/$(subst .log,.py,$@) \
+               --sim_cmd $(RISCV)/bin/$(RISCV_SIM) \
+               --server_cmd $(RISCV)/bin/openocd \
+           | tee $@ 2>&1 || (sed s/^/$@:\ / $@ && false)
 
 clean:
-       rm -f *.log *.pyc
+       rm -f spike32.log spike64.log *.pyc