According to the UEFI specification the LoadImage() boot service must support loading images via the EFI_LOAD_FILE_PROTOCOL and EFI_LOAD_FILE2_PROTOCOL.
This series implements the support and adds a unit test. Heinrich Schuchardt (7): efi_loader: resequence functions in efi_boottime.c efi_loader: move EFI_LOAD_FILE2_PROTOCOL_GUID efi_loader: pass boot_policy to efi_load_image_from_path efi_loader: carve out efi_load_image_from_file() efi_loader: support EFI_LOAD_FILE_PROTOCOL efi_selftest: clean up Makefile efi_selftest: test EFI_LOAD_FILE_PROTOCOL include/efi_loader.h | 3 + lib/efi_loader/efi_boottime.c | 269 +++++++---- lib/efi_loader/efi_load_initrd.c | 3 - lib/efi_selftest/Makefile | 17 +- lib/efi_selftest/efi_selftest_load_file.c | 475 ++++++++++++++++++++ lib/efi_selftest/efi_selftest_load_initrd.c | 7 +- 6 files changed, 665 insertions(+), 109 deletions(-) create mode 100644 lib/efi_selftest/efi_selftest_load_file.c -- 2.29.2