]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: carve out efi_load_image_from_file()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 6 Dec 2020 09:47:57 +0000 (10:47 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 10 Dec 2020 08:15:32 +0000 (09:15 +0100)
commit0e074d12393ba14536f8a103b28c75f74b7c5896
treeda85116138440b89902bd2a6b48a2803d279438a
parentc06c55b1f5deb994ef7544f99419b4ab68f82e4f
efi_loader: carve out efi_load_image_from_file()

efi_load_image_from_file() should read via either of:

* EFI_SIMPLE_FILE_SYSTEM_PROTOCOL
* EFI_LOAD_FILE_PROTOCOL
* EFI_LOAD_FILE2_PROTOCOL

To make the code readable carve out a function to load the image via the
file system protocol.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_boottime.c