Move target definition into individual files.
[riscv-tests.git] / debug / Makefile
index 1ea5752fb969ed7013678490943332f35cf5b407..c5ea9918a858b60543b97b6010e8aeb071949d80 100644 (file)
@@ -12,8 +12,12 @@ pylint:
        pylint --rcfile=pylint.rc *.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