all: pylint spike32.log spike64.log
pylint:
- pylint --rcfile=pylint.rc *.py
+ pylint --rcfile=pylint.rc `git ls-files '*.py'`
%.log:
- $(GDBSERVER_PY) --isolate --$(subst .log,,$@) --sim_cmd $(RISCV)/bin/$(RISCV_SIM) \
- > $@ 2>&1 || (sed s/^/$@:\ / $@ && false)
+ $(GDBSERVER_PY) \
+ --isolate \
+ 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 *.log *.pyc
+ rm -f spike32.log spike64.log *.pyc