Skip to content

Commit

Permalink
[bazel] Fix runfile path to QEMU binary
Browse files Browse the repository at this point in the history
These canonical paths are different between Bazel 6, 7, and 8. The
`rules_python` runfiles library will perform repository mappings before
using this path, so we can use `qemu_opentitan` instead of the
canonical name.

Signed-off-by: James Wainwright <[email protected]>
  • Loading branch information
jwnrt committed Feb 6, 2025
1 parent f6b206e commit 32b1337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/scripts/qemu_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

def main() -> int:
r = Runfiles.Create()
qemu_bin = r.Rlocation("_main~qemu~qemu_opentitan/build/qemu-system-riscv32")
qemu_bin = r.Rlocation("qemu_opentitan/build/qemu-system-riscv32")

# Run the process capturing (then echoing) `stdout` and `stderr`.
proc = subprocess.run(
Expand Down

0 comments on commit 32b1337

Please sign in to comment.