feature (build system): added 'uefi' mode to run script
This commit is contained in:
parent
e3efd7d63e
commit
8b50755fb8
10
run.sh
10
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"
|
EMUFLAGS="-no-reboot -m 256M -cdrom build/noxos.iso -chardev stdio,id=log,logfile=noxos.log -serial chardev:log"
|
||||||
|
|
||||||
emulate() {
|
emulate() {
|
||||||
echo "<=====| Emulating with disabled debug mode |=====>"
|
echo "<=====| Emulating |=====>"
|
||||||
qemu-system-x86_64 $EMUFLAGS
|
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
|
# qemu will wait for gdb to connect, before booting
|
||||||
emulate_debug() {
|
emulate_debug() {
|
||||||
echo "<=====| Emulating in debug mode |=====>"
|
echo "<=====| Emulating in debug mode |=====>"
|
||||||
|
@ -17,6 +22,9 @@ case $1 in
|
||||||
"debug")
|
"debug")
|
||||||
emulate_debug
|
emulate_debug
|
||||||
;;
|
;;
|
||||||
|
"uefi")
|
||||||
|
emulate_uefi
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
emulate
|
emulate
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue