X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=debug%2FMakefile;h=48be07c45ae7663ffa4733cedca7393dedce9ac4;hb=fc3d7e8196dfb567a9b6c34dd97c1b43260b4cd5;hp=56db73178201087e6817e5af7a0d35d0887347d2;hpb=b986817eebe9bd810be371dc84ee94e8f654de42;p=riscv-tests.git diff --git a/debug/Makefile b/debug/Makefile index 56db731..48be07c 100644 --- a/debug/Makefile +++ b/debug/Makefile @@ -4,16 +4,22 @@ XLEN ?= 64 src_dir ?= . GDBSERVER_PY = $(src_dir)/gdbserver.py -default: spike$(XLEN).log +default: spike$(XLEN) spike$(XLEN)-2 -all: pylint spike32.log spike64.log +all-tests: spike32 spike32-2 spike32-2-rtos spike64 spike64-2 spike64-2-rtos + +all: pylint all-tests pylint: - pylint --rcfile=pylint.rc *.py + pylint --rcfile=pylint.rc `git ls-files '*.py'` -%.log: - $(GDBSERVER_PY) --isolate --$(subst .log,,$@) --cmd $(RISCV_SIM) \ - > $@ 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