From e9adde4100458e460acfb7189a8a5fa9bf59b43e Mon Sep 17 00:00:00 2001 From: Tobias Waldekranz Date: Fri, 10 Mar 2023 15:17:28 +0100 Subject: [PATCH] qemu: Add option to start with UEFI instead of BIOS --- qemu/Config.in | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/qemu/Config.in b/qemu/Config.in index f3f8e1b2..3517b10a 100644 --- a/qemu/Config.in +++ b/qemu/Config.in @@ -9,6 +9,11 @@ config QEMU_LOADER_KERNEL config QEMU_LOADER_UBOOT bool "U-Boot" + depends on BR2_aarch64 + +config QEMU_LOADER_OVMF + bool "OVMF (UEFI)" + depends on BR2_x86_64 endchoice @@ -40,8 +45,9 @@ config QEMU_KERNEL config QEMU_BIOS string - depends on QEMU_LOADER_UBOOT - default "images/u-boot.bin" + depends on !QEMU_LOADER_KERNEL + default "images/u-boot.bin" if QEMU_LOADER_UBOOT + default "OVMF.fd" if QEMU_LOADER_OVMF config QEMU_ROOTFS string