mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-25 22:54:51 +02:00
ArmVirtualizationPkg: PlatformIntelBdsLib: adhere to QEMU's boot order
We have all the required pieces in place. Let's call SetBootOrderFromQemu() in PlatformBdsPolicyBehavior(). We disable OFW-to-UEFI device path fragment translation for virtio-pci, and enable it only virtio-mmio at this time. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Olivier Martin <Olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16576 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
4333691690
commit
274b4a8d79
@ -54,6 +54,7 @@
|
|||||||
GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf
|
GenericBdsLib|IntelFrameworkModulePkg/Library/GenericBdsLib/GenericBdsLib.inf
|
||||||
PlatformBdsLib|ArmPlatformPkg/ArmVirtualizationPkg/Library/PlatformIntelBdsLib/PlatformIntelBdsLib.inf
|
PlatformBdsLib|ArmPlatformPkg/ArmVirtualizationPkg/Library/PlatformIntelBdsLib/PlatformIntelBdsLib.inf
|
||||||
CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
|
CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
|
||||||
|
QemuBootOrderLib|OvmfPkg/Library/QemuBootOrderLib/QemuBootOrderLib.inf
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
[LibraryClasses.common.UEFI_DRIVER]
|
[LibraryClasses.common.UEFI_DRIVER]
|
||||||
@ -78,6 +79,9 @@
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
[PcdsFeatureFlag.common]
|
[PcdsFeatureFlag.common]
|
||||||
|
gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderPciTranslation|FALSE
|
||||||
|
gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderMmioTranslation|TRUE
|
||||||
|
|
||||||
## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
|
## If TRUE, Graphics Output Protocol will be installed on virtual handle created by ConsplitterDxe.
|
||||||
# It could be set FALSE to save size.
|
# It could be set FALSE to save size.
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|FALSE
|
gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|FALSE
|
||||||
|
@ -15,6 +15,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
|
|
||||||
#include "IntelBdsPlatform.h"
|
#include "IntelBdsPlatform.h"
|
||||||
|
|
||||||
|
#include <Library/QemuBootOrderLib.h>
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Predefined platform default time out value
|
/// Predefined platform default time out value
|
||||||
///
|
///
|
||||||
@ -305,6 +307,14 @@ PlatformBdsPolicyBehavior (
|
|||||||
|
|
||||||
BdsLibConnectAll ();
|
BdsLibConnectAll ();
|
||||||
BdsLibEnumerateAllBootOption (BootOptionList);
|
BdsLibEnumerateAllBootOption (BootOptionList);
|
||||||
|
|
||||||
|
SetBootOrderFromQemu (BootOptionList);
|
||||||
|
//
|
||||||
|
// The BootOrder variable may have changed, reload the in-memory list with
|
||||||
|
// it.
|
||||||
|
//
|
||||||
|
BdsLibBuildOptionFromVar (BootOptionList, L"BootOrder");
|
||||||
|
|
||||||
PlatformBdsEnterFrontPage (gPlatformBootTimeOutDefault, TRUE);
|
PlatformBdsEnterFrontPage (gPlatformBootTimeOutDefault, TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
MdePkg/MdePkg.dec
|
MdePkg/MdePkg.dec
|
||||||
MdeModulePkg/MdeModulePkg.dec
|
MdeModulePkg/MdeModulePkg.dec
|
||||||
IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec
|
IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec
|
||||||
|
OvmfPkg/OvmfPkg.dec
|
||||||
|
|
||||||
[LibraryClasses]
|
[LibraryClasses]
|
||||||
BaseLib
|
BaseLib
|
||||||
@ -51,6 +52,7 @@
|
|||||||
UefiBootServicesTableLib
|
UefiBootServicesTableLib
|
||||||
PcdLib
|
PcdLib
|
||||||
GenericBdsLib
|
GenericBdsLib
|
||||||
|
QemuBootOrderLib
|
||||||
|
|
||||||
[Guids]
|
[Guids]
|
||||||
gArmGlobalVariableGuid
|
gArmGlobalVariableGuid
|
||||||
|
Loading…
x
Reference in New Issue
Block a user