From ea2e22eb43fc03afc56dda2e26c1b6b25ac13744 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Sat, 8 Mar 2025 11:26:39 -0800 Subject: [PATCH] CI: Use QEMU 9.2.2 from ring-toolchain. --- mk/cargo.sh | 2 +- mk/install-build-tools.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mk/cargo.sh b/mk/cargo.sh index 1a8ed70b59..8e787aa738 100755 --- a/mk/cargo.sh +++ b/mk/cargo.sh @@ -33,7 +33,7 @@ qemu_riscv64="qemu-riscv64 -L /usr/riscv64-linux-gnu" qemu_s390x="qemu-s390x -L /usr/s390x-linux-gnu" qemu_sparc64="qemu-sparc64 -L /usr/sparc64-linux-gnu" qemu_x86="qemu-i386" -qemu_x86_64="qemu-x86_64" +qemu_x86_64="$PWD/target/tools/linux-x86_64/qemu/bin/qemu-x86_64" # Avoid putting the Android tools in `$PATH` because there are tools in this # directory like `clang` that would conflict with the same-named tools that may diff --git a/mk/install-build-tools.sh b/mk/install-build-tools.sh index c088121dd6..6cb03bac8c 100755 --- a/mk/install-build-tools.sh +++ b/mk/install-build-tools.sh @@ -203,7 +203,11 @@ wasm32-wasi|wasm32-wasip1|wasm32-wasip2) ;; x86_64-unknown-linux-gnu) if [ -n "${RING_CPU_MODEL-}" ]; then - install_packages qemu-user + git clone \ + --branch linux-x86_64 \ + --depth 1 \ + https://github.com/briansmith/ring-toolchain \ + target/tools/linux-x86_64 fi ;; *)