tool: qemu support for UEFI boot

- add UEFI firmware for Qemu

Issue #2242
This commit is contained in:
Alexander Boettcher
2017-01-11 22:05:03 +01:00
committed by Norman Feske
parent 3aca3256c6
commit 9f9c5a3166
3 changed files with 27 additions and 11 deletions

View File

@@ -78,17 +78,18 @@ proc run_power_on { } {
if {[have_include "load/tftp"]} {
append qemu_args " -boot n -tftp [run_dir] -bootp boot/pulsar -no-reboot -no-shutdown "
} else {
if {[have_include "image/iso"]} {
append qemu_args " -cdrom [run_dir].iso "
} else {
if {[have_include "image/disk"]} {
append qemu_args " -hda [run_dir].img "
} else {
puts "Aborting, cannot execute Qemu without a ISO or disk image"
exit -4
}
}
}
if {[have_include "image/iso"]} {
append qemu_args " -cdrom [run_dir].iso "
} else {
if {[have_include "image/disk"]} {
append qemu_args " -hda [run_dir].img "
} else {
if {[have_include "image/uefi"]} {
append qemu_args " --bios [genode_dir]/tool/boot/tianocore.bin -net none -drive format=raw,file=[run_dir].img "
} else {
puts "Aborting, cannot execute Qemu without a ISO or disk image"
exit -4
} } } }
}
# on ARM, we supply the boot image as kernel