diff options
Diffstat (limited to 'debug/risc-v-gsp-rm-vm/rmharness/rmtop.sh')
| -rwxr-xr-x | debug/risc-v-gsp-rm-vm/rmharness/rmtop.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/debug/risc-v-gsp-rm-vm/rmharness/rmtop.sh b/debug/risc-v-gsp-rm-vm/rmharness/rmtop.sh new file mode 100755 index 0000000..5cde6c7 --- /dev/null +++ b/debug/risc-v-gsp-rm-vm/rmharness/rmtop.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +# rmtop.sh - build-if-needed wrapper for the Open-IOV rmtop dashboard. +# Use --once for non-interactive capture; interactive mode needs a TTY. +set -euo pipefail +HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +ROOT="$(cd "$HERE/../../.." && pwd)" +BIN="$ROOT/tools/rmtop/rmtop" +if [[ ! -x "$BIN" ]]; then + make -C "$ROOT/tools/rmtop" >&2 +fi +exec "$BIN" "$@" |
