]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: split unrelated code from efi_bootmgr.c
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Wed, 17 Jan 2024 04:39:41 +0000 (13:39 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 17 Jan 2024 07:40:25 +0000 (08:40 +0100)
commit6422820ac3e59fd92dc7fc5c9dcd5c6101065f19
tree15634d75c578a67a5424e6d079bd6f2757e2cf6c
parent0ab829d4de4323f53b4e2230bf885c2004da5d9b
efi_loader: split unrelated code from efi_bootmgr.c

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>
boot/Kconfig
cmd/Kconfig
include/efi_loader.h
lib/efi_loader/Kconfig
lib/efi_loader/Makefile
lib/efi_loader/efi_bootbin.c [new file with mode: 0644]
lib/efi_loader/efi_bootmgr.c
lib/efi_loader/efi_device_path.c
lib/efi_loader/efi_helper.c