feature (build system): added 'uefi' mode to run script

This commit is contained in:
antifallobst 2023-02-21 14:01:52 +01:00
parent e3efd7d63e
commit 8b50755fb8
1 changed files with 9 additions and 1 deletions

10
run.sh
View File

@ -3,10 +3,15 @@
EMUFLAGS="-no-reboot -m 256M -cdrom build/noxos.iso -chardev stdio,id=log,logfile=noxos.log -serial chardev:log"
emulate() {
echo "<=====| Emulating with disabled debug mode |=====>"
echo "<=====| Emulating |=====>"
qemu-system-x86_64 $EMUFLAGS
}
emulate_uefi() {
echo "<=====| Emulating in UEFI mode |=====>"
qemu-system-x86_64 -bios /usr/share/ovmf/x64/OVMF.fd $EMUFLAGS
}
# qemu will wait for gdb to connect, before booting
emulate_debug() {
echo "<=====| Emulating in debug mode |=====>"
@ -17,6 +22,9 @@ case $1 in
"debug")
emulate_debug
;;
"uefi")
emulate_uefi
;;
*)
emulate
;;