X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=debug%2FMakefile;h=9f7cb2ed19845bdcd08809fa062007dc0dd6310b;hb=452853f0f96be65cde0900265b654c01b35f321d;hp=62d787505b1d52de76f2f7d5871e2f611d753d68;hpb=713f6a3089ac8b656d0a18874782e26d3039b22e;p=riscv-tests.git diff --git a/debug/Makefile b/debug/Makefile index 62d7875..9f7cb2e 100644 --- a/debug/Makefile +++ b/debug/Makefile @@ -1,12 +1,23 @@ RISCV_SIM ?= spike +XLEN ?= 64 -all: spike32.log spike64.log +src_dir ?= . +GDBSERVER_PY = $(src_dir)/gdbserver.py -spike32.log: - ./gdbserver.py --isolate --spike32 --cmd $(RISCV_SIM) -- -v > $@ 2>&1 +default: spike$(XLEN)-2 -spike64.log: - ./gdbserver.py --isolate --spike --cmd $(RISCV_SIM) -- -v > $@ 2>&1 +all: pylint spike32 spike32-2 spike32-2-rtos spike64 spike64-2 spike64-2-rtos + +pylint: + pylint --rcfile=pylint.rc `git ls-files '*.py'` + +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 + rm -f *.pyc