feature (build system): running in UEFI mode by default, bios mode stays accessible with the 'bios' argument

This commit is contained in:
antifallobst 2023-03-10 12:58:02 +01:00
parent 088efd4b56
commit a4c1d17aac
1 changed files with 5 additions and 5 deletions

10
run.sh
View File

@ -4,7 +4,7 @@
EMUFLAGS="-no-reboot -m 256M -cdrom build/noxos.iso -chardev stdio,id=log,logfile=noxos.log -serial chardev:log" EMUFLAGS="-no-reboot -m 256M -cdrom build/noxos.iso -chardev stdio,id=log,logfile=noxos.log -serial chardev:log"
emulate() { emulate_bios() {
echo "<=====| Emulating |=====>" echo "<=====| Emulating |=====>"
qemu-system-x86_64 $EMUFLAGS qemu-system-x86_64 $EMUFLAGS
} }
@ -17,17 +17,17 @@ emulate_uefi() {
# qemu will wait for gdb to connect, before booting # qemu will wait for gdb to connect, before booting
emulate_debug() { emulate_debug() {
echo "<=====| Emulating in debug mode |=====>" 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 case $1 in
"debug") "debug")
emulate_debug emulate_debug
;; ;;
"uefi") "bios")
emulate_uefi emulate_bios
;; ;;
*) *)
emulate emulate_uefi
;; ;;
esac esac