[Concept,0/7] efi: Improvements to env print -e

Message ID 20250821153528.141740-1-sjg@u-boot.org
Headers
Series efi: Improvements to env print -e |

Message

Simon Glass Aug. 21, 2025, 3:35 p.m. UTC
  From: Simon Glass <sjg@chromium.org>

Printing EFI variables can be quite verbose, with many hundreds of lines
of text. Part of this is because GUIDs and hex dumps are included. It
can also be hard to find a few variables visually in an unsorted list.

This series makes the feature more user-friendly:
- Puts verbose output behind a -v flag, so that 'env print -e' behaves
  more like 'env print'
- Adds a -s option to sort the list


Simon Glass (7):
  efi: Move guid used for variables to common files
  efi: Enable access to efi variables from the app
  efi: Change env print -e to show only names by default
  efi: Rename var_name64 to name in efi_dump_var_all()
  efi: Refactor error handling in efi_dump_var_all()
  efi: nvedit: Place variables in an alist before printing them
  cmd: Add -s flag to printenv -e for sorted output

 cmd/Kconfig                                   |   1 +
 cmd/nvedit.c                                  |   6 +-
 cmd/nvedit_efi.c                              | 164 ++++++++++++------
 doc/usage/cmd/env.rst                         |   9 +-
 doc/usage/cmd/printenv.rst                    |  84 ++++++++-
 include/efi.h                                 |   2 +
 include/efi_loader.h                          |   1 -
 lib/efi/device_path.c                         |   3 +
 lib/efi_loader/efi_var_common.c               |   3 -
 .../py/tests/test_efi_secboot/test_authvar.py |  46 ++---
 10 files changed, 231 insertions(+), 88 deletions(-)