All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] cmd: bootefi: refactor the code for bootmgr
@ 2023-12-18  2:38 AKASHI Takahiro
  2023-12-18  2:38 ` [PATCH v3 1/4] efi_loader: split unrelated code from efi_bootmgr.c AKASHI Takahiro
                   ` (4 more replies)
  0 siblings, 5 replies; 27+ messages in thread
From: AKASHI Takahiro @ 2023-12-18  2:38 UTC (permalink / raw)
  To: trini, sjg, xypron.glpk, ilias.apalodimas; +Cc: u-boot, AKASHI Takahiro

This patch set is motivated by the discussion[1] regarding
CONFIG_BOOTEFI_BOOTMGR option.

# It has been partially merged in -next branch. So this version (v3)
# contains only the remaining commits.

At the end, bootefi.c will be decomposed into two parts, one for
providing the command itself and one for implementing helper functions.
EFI_LOADER will now be available without CONFIG_CMDLINE or specifically
CONFIG_CMD_BOOTEFI if invoked via bootmeth/bootstd.

Then, EFI_LOADER library side will be further split into two options
for fine-grain control:
CONFIG_EFI_BINARY_EXEC: execute UEFI binaries which are to be explicitly
    loaded by U-Boot's load commands/functions or other methods
    (like a jtag debugger?)
    It supports bootmeth_efi as well as "bootefi <addr>|hello"(/"bootm"?).

CONFIG_EFI_BOOTMGR: provide EFI boot manger functionality
    It supports bootmeth_efi_mgr as well as "bootefi bootmgr".

As such, We will no longer need CONFIG_EFI_BINARY_EXEC if we want to only
make use of the UEFI boot manger for booting a next stage OS.

Prerequisite
============
This patch set is based on top of Tom's latest "next" branch.

Tests
=====
* run UT efi_selftest on sandbox locally
* run test_efi_bootmgr on sandbox locally

Unfortunately, I could not submit a pull request for CI test.

Changes
=======
v3 (Dec 18, 2023)
* rebased onto Tom's latest next branch
* remove already-merged commits

v2 (Nov 21, 2023)
* rebased onto Tom's next branch
* remove already merged commits
* revise commit messages
* add patch #5 which was split from ex-patch#5
RFC (Oct 26, 2023)

[1] https://lists.denx.de/pipermail/u-boot/2023-October/534598.html

AKASHI Takahiro (4):
  efi_loader: split unrelated code from efi_bootmgr.c
  efi_loader: rename BOOTEFI_BOOTMGR to EFI_BOOTMGR
  net: tftp: remove explicit efi configuration dependency
  fs: remove explicit efi configuration dependency

 boot/Kconfig                     |   4 +-
 boot/Makefile                    |   2 +-
 cmd/Kconfig                      |  10 +-
 cmd/efidebug.c                   |   4 +-
 fs/fs.c                          |   7 +-
 include/efi_loader.h             |  28 +-
 lib/efi_loader/Kconfig           |  11 +-
 lib/efi_loader/Makefile          |   2 +-
 lib/efi_loader/efi_bootmgr.c     | 493 ------------------------------
 lib/efi_loader/efi_device_path.c |   3 +-
 lib/efi_loader/efi_helper.c      | 499 ++++++++++++++++++++++++++++++-
 net/tftp.c                       |  10 +-
 test/boot/bootflow.c             |   2 +-
 13 files changed, 544 insertions(+), 531 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2023-12-27  2:38 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-18  2:38 [PATCH v3 0/4] cmd: bootefi: refactor the code for bootmgr AKASHI Takahiro
2023-12-18  2:38 ` [PATCH v3 1/4] efi_loader: split unrelated code from efi_bootmgr.c AKASHI Takahiro
2023-12-18 15:01   ` Simon Glass
2023-12-19  0:39     ` AKASHI Takahiro
2023-12-25  9:17   ` Heinrich Schuchardt
2023-12-27  1:23     ` AKASHI Takahiro
2023-12-18  2:38 ` [PATCH v3 2/4] efi_loader: rename BOOTEFI_BOOTMGR to EFI_BOOTMGR AKASHI Takahiro
2023-12-18 15:01   ` Simon Glass
2023-12-18  2:38 ` [PATCH v3 3/4] net: tftp: remove explicit efi configuration dependency AKASHI Takahiro
2023-12-18 13:53   ` Ramon Fried
2023-12-18 15:01   ` Simon Glass
2023-12-19  0:17     ` AKASHI Takahiro
2023-12-20  4:46       ` Simon Glass
2023-12-20  9:17         ` Heinrich Schuchardt
2023-12-26  9:47           ` Simon Glass
2023-12-27  2:38             ` AKASHI Takahiro
2023-12-25  9:23   ` Heinrich Schuchardt
2023-12-25 12:28     ` Tom Rini
2023-12-18  2:38 ` [PATCH v3 4/4] fs: " AKASHI Takahiro
2023-12-18 15:01   ` Simon Glass
2023-12-18 22:15     ` Heinrich Schuchardt
2023-12-20  4:46       ` Simon Glass
2023-12-20  9:07         ` Heinrich Schuchardt
2023-12-20 13:25         ` Tom Rini
2023-12-26  9:46           ` Simon Glass
2023-12-26 14:32             ` Tom Rini
2023-12-18 15:01 ` [PATCH v3 0/4] cmd: bootefi: refactor the code for bootmgr Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.