From 84ef2161a109e67b30d3194c494eaf7eb8817aaf Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 26 Mar 2024 03:18:54 +0200 Subject: [PATCH] BuildSystem: Allow running qemu with i686 target --- script/qemu.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/script/qemu.sh b/script/qemu.sh index a34c2313..9a49fc3c 100755 --- a/script/qemu.sh +++ b/script/qemu.sh @@ -19,7 +19,12 @@ else DISK_ARGS="-device ahci,id=ahci -device ide-hd,drive=disk,bus=ahci.0" fi -qemu-system-$BANAN_ARCH \ +QEMU_ARCH=$BANAN_ARCH +if [ $BANAN_ARCH = "i686" ]; then + QEMU_ARCH=i386 +fi + +qemu-system-$QEMU_ARCH \ -m 1G \ -smp 4 \ $BIOS_ARGS \