feature (build system): running in UEFI mode by default, bios mode stays accessible with the 'bios' argument
This commit is contained in:
parent
088efd4b56
commit
a4c1d17aac
10
run.sh
10
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
|
Loading…
Reference in New Issue