From 8b50755fb8a961106d1b1a218ca577c337b479ea Mon Sep 17 00:00:00 2001 From: antifallobst Date: Tue, 21 Feb 2023 14:01:52 +0100 Subject: [PATCH] feature (build system): added 'uefi' mode to run script --- run.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 7582ae9..15e8a7f 100755 --- a/run.sh +++ b/run.sh @@ -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 ;;