OvmfPkg/PlatformBootManagerLib: switch to QemuLoadImageLib

Replace the open coded sequence to load Linux on x86 with a short and
generic sequence invoking QemuLoadImageLib, which can be provided by
a generic version that only supports the LoadImage and StartImage boot
services, and one that incorporates the entire legacy loading sequence
as well.

Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2566
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
Ard Biesheuvel
2020-02-29 10:33:21 +01:00
committed by mergify[bot]
parent de7c6081cb
commit 859b55443a
2 changed files with 14 additions and 132 deletions

View File

@@ -49,7 +49,7 @@
NvVarsFileLib
QemuFwCfgLib
QemuFwCfgS3Lib
LoadLinuxLib
QemuLoadImageLib
QemuBootOrderLib
ReportStatusCodeLib
UefiLib