mirror of https://github.com/acidanthera/audk.git
ArmVirtPkg/PlatformBootManagerLib: don't launch the Boot Manager Menu
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 8dc0f0a6aa
.
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>
This commit is contained in:
parent
e2a193b733
commit
48799ab2d9
|
@ -139,7 +139,6 @@
|
|||
!else
|
||||
gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|1
|
||||
!endif
|
||||
gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
|
||||
|
||||
#
|
||||
# ARM Virtual Architectural Timer -- fetch frequency from QEMU (TCG) or KVM
|
||||
|
@ -191,6 +190,8 @@
|
|||
gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiExposedTableVersions|0x20
|
||||
|
||||
[PcdsDynamicDefault.common]
|
||||
gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
|
||||
|
||||
## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI
|
||||
# enumeration to complete before installing ACPI tables.
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
|
||||
|
|
|
@ -128,7 +128,6 @@
|
|||
!else
|
||||
gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|1
|
||||
!endif
|
||||
gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
|
||||
|
||||
#
|
||||
# ARM Virtual Architectural Timer -- fetch frequency from QEMU (TCG) or KVM
|
||||
|
@ -179,6 +178,8 @@
|
|||
gEmbeddedTokenSpaceGuid.PcdPrePiCpuMemorySize|40
|
||||
|
||||
[PcdsDynamicDefault.common]
|
||||
gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3
|
||||
|
||||
## If TRUE, OvmfPkg/AcpiPlatformDxe will not wait for PCI
|
||||
# enumeration to complete before installing ACPI tables.
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
|
||||
|
|
|
@ -390,6 +390,11 @@ PlatformBootManagerBeforeConsole (
|
|||
(EFI_DEVICE_PATH_PROTOCOL *)&mSerialConsole, NULL);
|
||||
EfiBootManagerUpdateConsoleVariable (ErrOut,
|
||||
(EFI_DEVICE_PATH_PROTOCOL *)&mSerialConsole, NULL);
|
||||
|
||||
//
|
||||
// Set the front page timeout from the QEMU configuration.
|
||||
//
|
||||
PcdSet16 (PcdPlatformBootTimeOut, GetFrontPageTimeoutFromQemu ());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -434,8 +439,6 @@ PlatformBootManagerAfterConsole (
|
|||
// it.
|
||||
//
|
||||
BdsLibBuildOptionFromVar (BootOptionList, L"BootOrder");
|
||||
|
||||
PlatformBdsEnterFrontPage (GetFrontPageTimeoutFromQemu(), TRUE);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -26,12 +26,6 @@
|
|||
#include <Library/UefiLib.h>
|
||||
#include <Library/UefiRuntimeServicesTableLib.h>
|
||||
|
||||
VOID
|
||||
PlatformBdsEnterFrontPage (
|
||||
IN UINT16 TimeoutDefault,
|
||||
IN BOOLEAN ConnectAllHappened
|
||||
);
|
||||
|
||||
/**
|
||||
Download the kernel, the initial ramdisk, and the kernel command line from
|
||||
QEMU's fw_cfg. Construct a minimal SimpleFileSystem that contains the two
|
||||
|
|
|
@ -65,6 +65,7 @@
|
|||
|
||||
[Pcd]
|
||||
gArmVirtTokenSpaceGuid.PcdTerminalTypeGuidBuffer
|
||||
gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut
|
||||
|
||||
[Guids]
|
||||
gEfiFileInfoGuid
|
||||
|
|
Loading…
Reference in New Issue