[PATCH v3 1/4] efi_loader: split unrelated code from efi_bootmgr.c
Simon Glass
sjg at chromium.org
Mon Dec 18 16:01:51 CET 2023
Hi AKASHI,
On Sun, 17 Dec 2023 at 19:39, AKASHI Takahiro
<takahiro.akashi at linaro.org> wrote:
>
> 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 theem opted out
> explicitly.
>
> Signed-off-by: AKASHI Takahiro <takahiro.akashi at linaro.org>
> ---
> boot/Kconfig | 4 +-
> cmd/Kconfig | 6 +-
> include/efi_loader.h | 28 +-
> lib/efi_loader/Kconfig | 9 +
> lib/efi_loader/efi_bootmgr.c | 493 ------------------------------
> lib/efi_loader/efi_device_path.c | 3 +-
> lib/efi_loader/efi_helper.c | 499 ++++++++++++++++++++++++++++++-
> 7 files changed, 529 insertions(+), 513 deletions(-)
'helper' seems a bit vague to me. How about efi_boot.c ?
REgards,
Simon
More information about the U-Boot
mailing list