From 2cd086a675535b6fc4cb54a75d10ca6f26a2da9e Mon Sep 17 00:00:00 2001 From: jljusten Date: Mon, 27 Aug 2012 23:28:30 +0000 Subject: OvmfPkg: get boot order from QEMU Set the boot order based on configuration retrieved from QEMU. Attempt to retrieve the "bootorder" fw_cfg file from QEMU. Translate the OpenFirmware device paths therein to UEFI device path fragments. Match the translated fragments against the enumerated BootOptionList, and rewrite the BootOrder NvVar so that it corresponds to the order described in fw_cfg. The user is expected to configure working boot options first. Tested via virt-manager's boot order widget. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jordan Justen git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13683 6f19259b-4bc3-4df7-8a09-765794883524 --- OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf | 3 +++ 1 file changed, 3 insertions(+) (limited to 'OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf') diff --git a/OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf b/OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf index eb773377cb..81602f5e61 100644 --- a/OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf +++ b/OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf @@ -29,7 +29,9 @@ [Sources] BdsPlatform.c PlatformData.c + QemuBootOrder.c BdsPlatform.h + QemuBootOrder.h [Packages] MdePkg/MdePkg.dec @@ -47,6 +49,7 @@ GenericBdsLib PciLib NvVarsFileLib + QemuFwCfgLib [Pcd] gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPlatformBootTimeOut -- cgit v1.2.3