]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmVirtualizationPkg: PlatformIntelBdsLib: get front page timeout from QEMU
authorLaszlo Ersek <lersek@redhat.com>
Wed, 14 Jan 2015 16:26:04 +0000 (16:26 +0000)
committerlersek <lersek@Edk2>
Wed, 14 Jan 2015 16:26:04 +0000 (16:26 +0000)
Put QemuBootOrderLib's GetFrontPageTimeoutFromQemu() to use, so that
ArmVirtualizationPkg'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=1172756

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@16612 6f19259b-4bc3-4df7-8a09-765794883524

ArmPlatformPkg/ArmVirtualizationPkg/Library/PlatformIntelBdsLib/IntelBdsPlatform.c
ArmPlatformPkg/ArmVirtualizationPkg/Library/PlatformIntelBdsLib/PlatformIntelBdsLib.inf

index 6fea2b0aebfd4634356717dae35b9d4b3fe780c4..a03e9097c39f97178517a1d2438b5a8a743a78d9 100644 (file)
@@ -17,22 +17,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include <Library/QemuBootOrderLib.h>\r
 \r
-///\r
-/// Predefined platform default time out value\r
-///\r
-UINT16                      gPlatformBootTimeOutDefault;\r
-\r
-EFI_STATUS\r
-EFIAPI\r
-PlatformIntelBdsConstructor (\r
-  IN EFI_HANDLE        ImageHandle,\r
-  IN EFI_SYSTEM_TABLE  *SystemTable\r
-  )\r
-{\r
-  gPlatformBootTimeOutDefault = (UINT16)PcdGet16 (PcdPlatformBootTimeOut);\r
-  return EFI_SUCCESS;\r
-}\r
-\r
 //\r
 // BDS Platform Functions\r
 //\r
@@ -320,7 +304,7 @@ PlatformBdsPolicyBehavior (
   //\r
   BdsLibBuildOptionFromVar (BootOptionList, L"BootOrder");\r
 \r
-  PlatformBdsEnterFrontPage (gPlatformBootTimeOutDefault, TRUE);\r
+  PlatformBdsEnterFrontPage (GetFrontPageTimeoutFromQemu(), TRUE);\r
 }\r
 \r
 /**\r
index 8db2ad57c0b30f176cee2af3bd2e2b46bfca675d..65427055569adb7ecb4eba9dc228343f2ae5ab23 100644 (file)
@@ -22,7 +22,6 @@
   MODULE_TYPE                    = DXE_DRIVER\r
   VERSION_STRING                 = 1.0\r
   LIBRARY_CLASS                  = PlatformBdsLib|DXE_DRIVER\r
-  CONSTRUCTOR                    = PlatformIntelBdsConstructor\r
 \r
 #\r
 # The following information is for reference only and not required by the build tools.\r
@@ -67,7 +66,6 @@
 [Pcd]\r
   gArmPlatformTokenSpaceGuid.PcdDefaultConInPaths\r
   gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths\r
-  gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPlatformBootTimeOut\r
 \r
 [Protocols]\r
   gEfiDevicePathFromTextProtocolGuid\r