OvmfPkg/PlatformBootManagerLib: port PlatformBdsConnectSequence to UefiBootManagerLib

The patch changes PlatformBdsConnectSequence() to use library API
exposed from UefiBootManagerLib and removes the additional
connect ALL action.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
Ruiyu Ni 2016-04-20 18:05:26 +08:00
parent 7f89929f7f
commit fed691a6f9
1 changed files with 3 additions and 6 deletions

View File

@ -1160,7 +1160,6 @@ PlatformBdsRestoreNvVarsFromHardDisk (
} }
VOID VOID
PlatformBdsConnectSequence ( PlatformBdsConnectSequence (
VOID VOID
@ -1197,14 +1196,15 @@ Returns:
// //
// Build the platform boot option // Build the platform boot option
// //
BdsLibConnectDevicePath (gPlatformConnectSequence[Index]); EfiBootManagerConnectDevicePath (gPlatformConnectSequence[Index], NULL);
Index++; Index++;
} }
// //
// Just use the simple policy to connect all devices // Just use the simple policy to connect all devices
// //
BdsLibConnectAll (); DEBUG ((EFI_D_INFO, "EfiBootManagerConnectAll\n"));
EfiBootManagerConnectAll ();
PciAcpiInitialization (); PciAcpiInitialization ();
@ -1389,9 +1389,6 @@ Routine Description:
// Process QEMU's -kernel command line option // Process QEMU's -kernel command line option
// //
TryRunningQemuKernel (); TryRunningQemuKernel ();
DEBUG ((EFI_D_INFO, "BdsLibConnectAll\n"));
BdsLibConnectAll ();
BdsLibEnumerateAllBootOption (BootOptionList); BdsLibEnumerateAllBootOption (BootOptionList);
SetBootOrderFromQemu (BootOptionList); SetBootOrderFromQemu (BootOptionList);