MdeModulePkg/BDS doesn't launch the UI (Boot Manager Menu) from the
platform side. The platform is expected to store the boot timeout only, in
PcdPlatformBootTimeOut. This is usually done in
PlatformBootManagerBeforeConsole().
(ArmVirtXen is not modified, as it uses PlatformIntelBdsLib from
ArmPlatformPkg, not ArmVirtPkg.)
The patch parallels OvmfPkg commit
8dc0f0a6aab0.
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Ruiyu Ni <ruiyu.ni@Intel.com>
!else\r
gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|1\r
!endif\r
- gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3\r
\r
#\r
# ARM Virtual Architectural Timer -- fetch frequency from QEMU (TCG) or KVM\r
gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiExposedTableVersions|0x20\r
\r
[PcdsDynamicDefault.common]\r
+ gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3\r
+\r
## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI\r
# enumeration to complete before installing ACPI tables.\r
gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE\r
!else\r
gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|1\r
!endif\r
- gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3\r
\r
#\r
# ARM Virtual Architectural Timer -- fetch frequency from QEMU (TCG) or KVM\r
gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize|40\r
\r
[PcdsDynamicDefault.common]\r
+ gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3\r
+\r
## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI\r
# enumeration to complete before installing ACPI tables.\r
gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE\r
(EFI_DEVICE_PATH_PROTOCOL *)&mSerialConsole, NULL);\r
EfiBootManagerUpdateConsoleVariable (ErrOut,\r
(EFI_DEVICE_PATH_PROTOCOL *)&mSerialConsole, NULL);\r
+\r
+ //\r
+ // Set the front page timeout from the QEMU configuration.\r
+ //\r
+ PcdSet16 (PcdPlatformBootTimeOut, GetFrontPageTimeoutFromQemu ());\r
}\r
\r
/**\r
// it.\r
//\r
BdsLibBuildOptionFromVar (BootOptionList, L"BootOrder");\r
-\r
- PlatformBdsEnterFrontPage (GetFrontPageTimeoutFromQemu(), TRUE);\r
}\r
\r
/**\r
#include <Library/UefiLib.h>\r
#include <Library/UefiRuntimeServicesTableLib.h>\r
\r
-VOID\r
-PlatformBdsEnterFrontPage (\r
- IN UINT16 TimeoutDefault,\r
- IN BOOLEAN ConnectAllHappened\r
- );\r
-\r
/**\r
Download the kernel, the initial ramdisk, and the kernel command line from\r
QEMU's fw_cfg. Construct a minimal SimpleFileSystem that contains the two\r
\r
[Pcd]\r
gArmVirtTokenSpaceGuid.PcdTerminalTypeGuidBuffer\r
+ gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut\r
\r
[Guids]\r
gEfiFileInfoGuid\r