From a4c1d17aac4bd5235768113037dbc16bd280e40c Mon Sep 17 00:00:00 2001 From: antifallobst Date: Fri, 10 Mar 2023 12:58:02 +0100 Subject: [PATCH] feature (build system): running in UEFI mode by default, bios mode stays accessible with the 'bios' argument --- run.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/run.sh b/run.sh index f260709..9cefb23 100755 --- a/run.sh +++ b/run.sh @@ -4,7 +4,7 @@ EMUFLAGS="-no-reboot -m 256M -cdrom build/noxos.iso -chardev stdio,id=log,logfile=noxos.log -serial chardev:log" -emulate() { +emulate_bios() { echo "<=====| Emulating |=====>" qemu-system-x86_64 $EMUFLAGS } @@ -17,17 +17,17 @@ emulate_uefi() { # qemu will wait for gdb to connect, before booting emulate_debug() { echo "<=====| Emulating in debug mode |=====>" - qemu-system-x86_64 -s -S $EMUFLAGS + qemu-system-x86_64 -s -S -bios /usr/share/ovmf/x64/OVMF.fd $EMUFLAGS } case $1 in "debug") emulate_debug ;; - "uefi") - emulate_uefi + "bios") + emulate_bios ;; *) - emulate + emulate_uefi ;; esac \ No newline at end of file