mbox series

[v16,00/10] enable menu-driven UEFI variable maintenance

Message ID 20220905124803.2909-1-masahisa.kojima@linaro.org
Headers show
Series enable menu-driven UEFI variable maintenance | expand

Message

Masahisa Kojima Sept. 5, 2022, 12:47 p.m. UTC
This series adds the menu-driven UEFI boot variable maintenance
through the "eficonfig" new command.
This series also adds the removable media support in bootmenu.

Source code can be cloned with:
$ git clone https://git.linaro.org/people/masahisa.kojima/u-boot.git -b kojima/eficonfig_upstream_v16

[Major Changes]
- there is detailed changelog in each commit

Masahisa Kojima (10):
  eficonfig: menu-driven addition of UEFI boot option
  eficonfig: add "Edit Boot Option" menu entry
  menu: add KEY_PLUS, KEY_MINUS and KEY_SPACE handling
  eficonfig: add "Delete Boot Option" menu entry
  bootmenu: add removable media entries
  eficonfig: scan media device in eficonfig startup
  eficonfig: add "Change Boot Order" menu entry
  doc:bootmenu: add description for UEFI boot support
  doc:eficonfig: add documentation for eficonfig command
  test: unit test for eficonfig

 cmd/Kconfig                                   |    7 +
 cmd/Makefile                                  |    1 +
 cmd/bootmenu.c                                |   22 +-
 cmd/eficonfig.c                               | 2458 +++++++++++++++++
 common/menu.c                                 |    9 +
 configs/sandbox_defconfig                     |    1 +
 doc/usage/cmd/bootmenu.rst                    |   74 +
 doc/usage/cmd/eficonfig.rst                   |   71 +
 doc/usage/index.rst                           |    1 +
 include/efi_config.h                          |   98 +
 include/efi_loader.h                          |   53 +
 include/menu.h                                |    3 +
 lib/efi_loader/efi_bootmgr.c                  |    7 +
 lib/efi_loader/efi_boottime.c                 |   52 +-
 lib/efi_loader/efi_console.c                  |   70 +
 lib/efi_loader/efi_disk.c                     |   50 +
 lib/efi_loader/efi_file.c                     |   75 +-
 test/py/tests/test_eficonfig/conftest.py      |   40 +
 .../py/tests/test_eficonfig/test_eficonfig.py |  354 +++
 19 files changed, 3393 insertions(+), 53 deletions(-)
 create mode 100644 cmd/eficonfig.c
 create mode 100644 doc/usage/cmd/eficonfig.rst
 create mode 100644 include/efi_config.h
 create mode 100644 test/py/tests/test_eficonfig/conftest.py
 create mode 100644 test/py/tests/test_eficonfig/test_eficonfig.py