Skip to content

Commit ea444a3

Browse files
Laszlo Erseklersek
authored andcommitted
OvmfPkg: PlatformBdsLib: get front page timeout from QEMU
Put QemuBootOrderLib's GetFrontPageTimeoutFromQemu() to use, so that OVMF's Platform BDS policy can consume QEMU's command line option -boot menu=on,splash-time=N RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1170507 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <[email protected]> Reviewed-by: Jordan Justen <[email protected]> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16611 6f19259b-4bc3-4df7-8a09-765794883524
1 parent 9253c14 commit ea444a3

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,6 @@ Routine Description:
11851185
--*/
11861186
{
11871187
EFI_STATUS Status;
1188-
UINT16 Timeout;
11891188
EFI_BOOT_MODE BootMode;
11901189

11911190
DEBUG ((EFI_D_INFO, "PlatformBdsPolicyBehavior\n"));
@@ -1203,11 +1202,6 @@ Routine Description:
12031202
PlatformBdsRestoreNvVarsFromHardDisk ();
12041203
}
12051204

1206-
//
1207-
// Init the time out value
1208-
//
1209-
Timeout = PcdGet16 (PcdPlatformBootTimeOut);
1210-
12111205
//
12121206
// Load the driver option as the driver option list
12131207
//
@@ -1261,7 +1255,7 @@ Routine Description:
12611255
//
12621256
BdsLibBuildOptionFromVar (BootOptionList, L"BootOrder");
12631257

1264-
PlatformBdsEnterFrontPage (Timeout, TRUE);
1258+
PlatformBdsEnterFrontPage (GetFrontPageTimeoutFromQemu(), TRUE);
12651259
}
12661260

12671261
VOID

OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
QemuBootOrderLib
5454

5555
[Pcd]
56-
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPlatformBootTimeOut
5756
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile
5857
gUefiOvmfPkgTokenSpaceGuid.PcdEmuVariableEvent
5958
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashVariablesEnable

0 commit comments

Comments
 (0)