X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=debug%2FMakefile;h=8e1c81b6bf67d2ab2673bbfedbf206675a16e2e0;hb=ffa920340430f62e767fb2397f4ee41ffaf441ce;hp=f835507ce98df6e7c986335917a4adedd2a791f9;hpb=b19bb8cb2c3a274f8e3996535f307d9584e88302;p=riscv-tests.git diff --git a/debug/Makefile b/debug/Makefile index f835507..8e1c81b 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)-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 \ - | tee $@ 2>&1 || (sed s/^/$@:\ / $@ && false) + --server_cmd $(RISCV)/bin/openocd clean: - rm -f *.log *.pyc + rm -f *.pyc