mirror of https://github.com/acidanthera/audk.git
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:
parent
7f89929f7f
commit
fed691a6f9
|
@ -1160,7 +1160,6 @@ PlatformBdsRestoreNvVarsFromHardDisk (
|
|||
|
||||
}
|
||||
|
||||
|
||||
VOID
|
||||
PlatformBdsConnectSequence (
|
||||
VOID
|
||||
|
@ -1197,14 +1196,15 @@ Returns:
|
|||
//
|
||||
// Build the platform boot option
|
||||
//
|
||||
BdsLibConnectDevicePath (gPlatformConnectSequence[Index]);
|
||||
EfiBootManagerConnectDevicePath (gPlatformConnectSequence[Index], NULL);
|
||||
Index++;
|
||||
}
|
||||
|
||||
//
|
||||
// Just use the simple policy to connect all devices
|
||||
//
|
||||
BdsLibConnectAll ();
|
||||
DEBUG ((EFI_D_INFO, "EfiBootManagerConnectAll\n"));
|
||||
EfiBootManagerConnectAll ();
|
||||
|
||||
PciAcpiInitialization ();
|
||||
|
||||
|
@ -1389,9 +1389,6 @@ Routine Description:
|
|||
// Process QEMU's -kernel command line option
|
||||
//
|
||||
TryRunningQemuKernel ();
|
||||
|
||||
DEBUG ((EFI_D_INFO, "BdsLibConnectAll\n"));
|
||||
BdsLibConnectAll ();
|
||||
BdsLibEnumerateAllBootOption (BootOptionList);
|
||||
|
||||
SetBootOrderFromQemu (BootOptionList);
|
||||
|
|
Loading…
Reference in New Issue