aboutsummaryrefslogtreecommitdiff
path: root/lib/efi_loader/efi_bootbin.c
Commit message (Collapse)AuthorAgeFilesLines
* efi_loader: correct handling of EFI binary return codeHeinrich Schuchardt2024-03-211-5/+11
| | | | | | | | | | We should not try to remove protocol interfaces from a NULL handle. efi_run_image() should always return the return code of the executed EFI binary. Fixes: 6422820ac3e5 ("efi_loader: split unrelated code from efi_bootmgr.c") Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
* efi_loader: split unrelated code from efi_bootmgr.cAKASHI Takahiro2024-01-171-0/+211
Some code moved from cmd/bootefi.c is actually necessary only for "bootefi <addr>" command (starting an image manually loaded by a user using U-Boot load commands or other methods (like JTAG debugger). The code will never been opted out as unused code by a compiler which doesn't know how EFI boot manager is implemented. So introduce a new configuration, CONFIG_EFI_BINARY_EXEC, to enforce them opted out explicitly. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>