aboutsummaryrefslogtreecommitdiff
path: root/debug/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'debug/Makefile')
-rw-r--r--debug/Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/debug/Makefile b/debug/Makefile
index 1d90e12..086cfb9 100644
--- a/debug/Makefile
+++ b/debug/Makefile
@@ -8,11 +8,9 @@ default: spike$(XLEN).log
all: spike32.log spike64.log
-spike32.log:
- $(GDBSERVER_PY) --isolate --spike32 --cmd $(RISCV_SIM) -- -v > $@ 2>&1
-
-spike64.log:
- $(GDBSERVER_PY) --isolate --spike --cmd $(RISCV_SIM) -- -v > $@ 2>&1
+%.log:
+ $(GDBSERVER_PY) --isolate --$(subst .log,,$@) --cmd $(RISCV_SIM) -- -v \
+ > $@ 2>&1 || sed s/^/$@:\ / $@
clean:
rm -f *.log