]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/PlatformBootManagerLib: switch to QemuLoadImageLib
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Sat, 29 Feb 2020 09:33:21 +0000 (10:33 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 5 Mar 2020 19:45:05 +0000 (19:45 +0000)
commit859b55443a4253bad8bb618d04a51b2ded67f24b
tree7a5d1d27a74136921e58d1a6cb990fe2e95b5102
parentde7c6081cbbd5cae333d2ef9d605c391dee02de1
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>
OvmfPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
OvmfPkg/Library/PlatformBootManagerLib/QemuKernel.c