X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=debug%2FMakefile;h=48be07c45ae7663ffa4733cedca7393dedce9ac4;hb=fc3d7e8196dfb567a9b6c34dd97c1b43260b4cd5;hp=5726883502ef4bfc4743fc25f41d5d0a3dae4191;hpb=f23e837c57fba0de2412f1b459fc8e172ca5aa30;p=riscv-tests.git diff --git a/debug/Makefile b/debug/Makefile index 5726883..48be07c 100644 --- a/debug/Makefile +++ b/debug/Makefile @@ -4,20 +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: +spike%: $(GDBSERVER_PY) \ --isolate \ - --$(subst .log,,$@) \ + --print-failures \ + $(src_dir)/targets/RISC-V/$@.py \ --sim_cmd $(RISCV)/bin/$(RISCV_SIM) \ - --server_cmd $(RISCV)/bin/openocd \ - > $@ 2>&1 || (sed s/^/$@:\ / $@ && false) + --server_cmd $(RISCV)/bin/openocd clean: - rm -f *.log *.pyc + rm -f *.pyc