blob: a5ea832645719116a01f659147fdae417795aeef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
RISCV_SIM ?= spike
XLEN ?= 64
src_dir ?= .
GDBSERVER_PY = $(src_dir)/gdbserver.py
default: spike$(XLEN).log
all: pylint spike32.log spike64.log
pylint:
pylint --rcfile=pylint.rc `git ls-files '*.py'`
%.log:
set -o pipefail; \
$(GDBSERVER_PY) \
--isolate \
$(src_dir)/targets/RISC-V/$(subst .log,.py,$@) \
--sim_cmd $(RISCV)/bin/$(RISCV_SIM) \
--server_cmd $(RISCV)/bin/openocd \
| tee $@ 2>&1 || (sed s/^/$@:\ / $@ && false)
clean:
rm -f spike32.log spike64.log *.pyc
|