OvmfPkg/QemuKernelLoaderFsDxe: add support for new Linux initrd device path

Linux v5.7 will introduce a new method to load the initial ramdisk
(initrd) from the loader, using the LoadFile2 protocol installed on a
special vendor GUIDed media device path.

Add support for this to our QEMU command line kernel/initrd loader.

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 13:59:52 +01:00
committed by mergify[bot]
parent 859b55443a
commit f98608ab3f
2 changed files with 81 additions and 0 deletions

View File

@@ -28,6 +28,7 @@
BaseLib
BaseMemoryLib
DebugLib
DevicePathLib
MemoryAllocationLib
QemuFwCfgLib
UefiBootServicesTableLib
@@ -42,6 +43,7 @@
[Protocols]
gEfiDevicePathProtocolGuid ## PRODUCES
gEfiLoadFile2ProtocolGuid ## PRODUCES
gEfiSimpleFileSystemProtocolGuid ## PRODUCES
[Depex]