diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-04-20 18:05:26 +0800 |
---|---|---|
committer | Ruiyu Ni <ruiyu.ni@intel.com> | 2016-05-04 08:47:41 +0800 |
commit | fed691a6f9138c3c22d075a9597435be43e660d0 (patch) | |
tree | 169abbc009ce7ca440bfce5ec3479a1222b32cfa /OvmfPkg | |
parent | 7f89929f7fb2f4d75c30fd6838daad61dc996eb5 (diff) | |
download | edk2-fed691a6f9138c3c22d075a9597435be43e660d0.tar.gz edk2-fed691a6f9138c3c22d075a9597435be43e660d0.tar.bz2 edk2-fed691a6f9138c3c22d075a9597435be43e660d0.zip |
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>
Diffstat (limited to 'OvmfPkg')
-rw-r--r-- | OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c index 7ef4d3de16..722776b2b5 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);
|