[PATCH v3 1/4] efi_loader: split unrelated code from efi_bootmgr.c
AKASHI Takahiro
takahiro.akashi at linaro.org
Tue Dec 19 01:39:27 CET 2023
On Mon, Dec 18, 2023 at 08:01:51AM -0700, Simon Glass wrote:
> 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 ?
Although I hesitated to add one more new file as we already have
efi_boottime.c and efi_bootmgr.c, then efi_boot.c?, okay I will do that.
-Takahiro Akashi
> REgards,
> Simon
More information about the U-Boot
mailing list