summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2016-04-20 18:05:26 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2016-05-04 08:47:41 +0800
commitfed691a6f9138c3c22d075a9597435be43e660d0 (patch)
tree169abbc009ce7ca440bfce5ec3479a1222b32cfa
parent7f89929f7fb2f4d75c30fd6838daad61dc996eb5 (diff)
downloadedk2-fed691a6f9138c3c22d075a9597435be43e660d0.zip
edk2-fed691a6f9138c3c22d075a9597435be43e660d0.tar.gz
edk2-fed691a6f9138c3c22d075a9597435be43e660d0.tar.bz2
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>
-rw-r--r--OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
index 7ef4d3d..722776b 100644
--- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
+++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
@@ -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);