From fd3cf5d2b19f56adeda16898702b063efd1ca386 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sat, 29 Jun 2024 19:00:10 +0300 Subject: [PATCH] BuildSystem: Allow running qemu without kvm If you set QEMU_ACCEL to empty string, build system won't try to look for kvm support. --- script/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/build.sh b/script/build.sh index 0b29c373..47d5e115 100755 --- a/script/build.sh +++ b/script/build.sh @@ -68,7 +68,9 @@ run_bochs () { $BANAN_SCRIPT_DIR/bochs.sh $@ } -if type kvm-ok &> /dev/null; then +if [ -v QEMU_ACCEL ]; then + : +elif type kvm-ok &> /dev/null; then if kvm-ok &> /dev/null; then QEMU_ACCEL="-accel kvm" fi