]> git.proxmox.com Git - mirror_edk2.git/commit - OvmfPkg/OvmfPkg.dec
OvmfPkg/QemuBootOrderLib: add StoreQemuBootOrder()
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 19 Jul 2022 15:12:48 +0000 (17:12 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 6 Sep 2022 16:55:33 +0000 (16:55 +0000)
commit5eeb088ad64124229b32a5593fada578b935e207
treef58e93ffd1eb3120e04e70da64cd66a20497f306
parentdb463e8e9da6f19becb336645dad3718de0743d3
OvmfPkg/QemuBootOrderLib: add StoreQemuBootOrder()

The function reads the boot order from qemu fw_cfg, translates it into
device paths and stores them in 'QemuBootOrderNNNN' variables.  In case
there is no boot ordering configured the function will do nothing.

Use case: Allow applications loaded via 'qemu -kernel bootloader.efi'
obey the boot order.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
OvmfPkg/Include/Library/QemuBootOrderLib.h
OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.c
OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
OvmfPkg/OvmfPkg.dec