diff options
Diffstat (limited to 'debug/risc-v-gsp-rm-vm/rmharness/rmtool.sh')
| -rwxr-xr-x | debug/risc-v-gsp-rm-vm/rmharness/rmtool.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/debug/risc-v-gsp-rm-vm/rmharness/rmtool.sh b/debug/risc-v-gsp-rm-vm/rmharness/rmtool.sh new file mode 100755 index 0000000..405a766 --- /dev/null +++ b/debug/risc-v-gsp-rm-vm/rmharness/rmtool.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +# rmtool.sh - build-if-needed wrapper for the Open-IOV rmtool RM oracle. +# Read-only tool; see ../docs/17-RM-HARNESS.md for the safety contract. +set -euo pipefail +HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +ROOT="$(cd "$HERE/../../.." && pwd)" +BIN="$ROOT/tools/rmtool/rmtool" +if [[ ! -x "$BIN" ]]; then + make -C "$ROOT/tools/rmtool" >&2 +fi +exec "$BIN" "$@" |
