blob: 48be07c45ae7663ffa4733cedca7393dedce9ac4 (
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
25
|
RISCV_SIM ?= spike
XLEN ?= 64
src_dir ?= .
GDBSERVER_PY = $(src_dir)/gdbserver.py
default: spike$(XLEN) spike$(XLEN)-2
all-tests: spike32 spike32-2 spike32-2-rtos spike64 spike64-2 spike64-2-rtos
all: pylint all-tests
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 *.pyc
|