X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=debug%2FMakefile;h=9f7cb2ed19845bdcd08809fa062007dc0dd6310b;hb=97f13c98e7306882f013ab2f6524e483ce1dcceb;hp=79e89cbe397d912d024a26cdb09ddd081491c02f;hpb=d76b30df333659baf81b8411c7144378b735062a;p=riscv-tests.git diff --git a/debug/Makefile b/debug/Makefile index 79e89cb..9f7cb2e 100644 --- a/debug/Makefile +++ b/debug/Makefile @@ -4,16 +4,20 @@ XLEN ?= 64 src_dir ?= . GDBSERVER_PY = $(src_dir)/gdbserver.py -default: spike$(XLEN).log +default: spike$(XLEN)-2 -all: pylint spike32.log spike64.log +all: pylint spike32 spike32-2 spike32-2-rtos spike64 spike64-2 spike64-2-rtos 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) +spike%: + $(GDBSERVER_PY) \ + --isolate \ + --print-failures \ + $(src_dir)/targets/RISC-V/$@.py \ + --sim_cmd $(RISCV)/bin/$(RISCV_SIM) \ + --server_cmd $(RISCV)/bin/openocd clean: - rm -f *.log *.pyc + rm -f *.pyc