X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;ds=sidebyside;f=debug%2FMakefile;h=c5ea9918a858b60543b97b6010e8aeb071949d80;hb=0d211cd3885c2b98c4a2cfe01daff80b921e63fb;hp=086cfb995894adca2206947d0b830151d95bdfa3;hpb=97cffefa6ebeb5fdc174fc51c7d642f714daa559;p=riscv-tests.git diff --git a/debug/Makefile b/debug/Makefile index 086cfb9..c5ea991 100644 --- a/debug/Makefile +++ b/debug/Makefile @@ -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 \ + 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 + rm -f *.log *.pyc