]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmVirtualizationPkg: PlatformIntelBdsLib: add basic policy
authorLaszlo Ersek <lersek@redhat.com>
Fri, 2 Jan 2015 12:07:52 +0000 (12:07 +0000)
committerlersek <lersek@Edk2>
Fri, 2 Jan 2015 12:07:52 +0000 (12:07 +0000)
In PlatformBdsPolicyBehavior() we should follow the same pattern as in
OvmfPkg's: after the consoles are connected,
- connect all drivers and devices,
- enumerate all boot options,
- enter the Intel BDS FrontPage if the user presses a key different from
  Enter.

We set the countdown to 3 seconds, similarly to the timeout that we
specify for ARM BDS.

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

ArmPlatformPkg/ArmVirtualizationPkg/ArmVirtualizationQemu.dsc
ArmPlatformPkg/ArmVirtualizationPkg/Library/PlatformIntelBdsLib/IntelBdsPlatform.c
ArmPlatformPkg/ArmVirtualizationPkg/Library/PlatformIntelBdsLib/IntelBdsPlatform.h

index 033cb35ea65b4c238da35f8ed6830d8949a69356..8ef59471c0653db12b35e090ada4f107133ddc2e 100644 (file)
   gArmVirtualizationTokenSpaceGuid.PcdFwCfgSelectorAddress|0x0\r
   gArmVirtualizationTokenSpaceGuid.PcdFwCfgDataAddress|0x0\r
 \r
+  gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPlatformBootTimeOut|3\r
+\r
 ################################################################################\r
 #\r
 # Components Section - list of all EDK II Modules needed by this Platform\r
index 90e6e2dd45fa0b1a81c192f7a8983ec981bac2e7..a603ba7f3ec86658404fdd222d6e3e922430192b 100644 (file)
@@ -302,6 +302,10 @@ PlatformBdsPolicyBehavior (
 \r
   Status = PlatformBdsConnectConsole ();\r
   ASSERT_EFI_ERROR (Status);\r
+\r
+  BdsLibConnectAll ();\r
+  BdsLibEnumerateAllBootOption (BootOptionList);\r
+  PlatformBdsEnterFrontPage (gPlatformBootTimeOutDefault, TRUE);\r
 }\r
 \r
 /**\r
index a244ac9132551b86e99972b64587c5cfdf66f201..c50bda2f09d68d8f0b4990cb14e46be0df694c85 100644 (file)
@@ -32,4 +32,10 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include <Guid/GlobalVariable.h>\r
 \r
+VOID\r
+PlatformBdsEnterFrontPage (\r
+  IN UINT16                 TimeoutDefault,\r
+  IN BOOLEAN                ConnectAllHappened\r
+  );\r
+\r
 #endif // _INTEL_BDS_PLATFORM_H\r