BuildSystem: Allow running qemu without kvm

If you set QEMU_ACCEL to empty string, build system won't try to look
for kvm support.
This commit is contained in:
Bananymous 2024-06-29 19:00:10 +03:00
parent 1a844426c3
commit fd3cf5d2b1
1 changed files with 3 additions and 1 deletions

View File

@ -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