[U-Boot] [PATCH 0/7] efi_loader: variable services

Heinrich Schuchardt xypron.glpk at gmx.de
Mon Jun 24 05:31:09 UTC 2019


Currently our UEFI variables are stored in U-Boot variables. Runtime
support for variables is missing. This patch series prepares for
alternative implementations of the variable services.

* QueryVariableInfo() is moved into the same file as the other variable
  services.
* For booting via GRUB into Linux UEFI variables are not necessary. An
  alternative implementation of the variable services is provided which
  only returns EFI_UNSUPPORTED.
* The detaching of runtime services is changed to allow the move to
  ExitBootServices().
* The detaching of variable services is moved to ExitBootServices().
* Unimplemented runtime services must return EFI_UNIMPLEMENTED.
* Provide a unit test for variable services at runtime.

Heinrich Schuchardt (7):
  efi_loader: move efi_query_variable_info()
  efi_debug: make variable support customizable
  efi_loader: initialization of variable services
  efi_loader: clean up runtime detaching
  efi_loader: let the variable driver patch out the runtime
  efi_loader: unimplemented runtime services
  efi_selftest: test variable services at runtime

 include/efi_loader.h                          |   9 ++
 lib/efi_loader/Kconfig                        |  18 +++
 lib/efi_loader/Makefile                       |   3 +-
 lib/efi_loader/efi_boottime.c                 |   3 +-
 lib/efi_loader/efi_runtime.c                  | 148 +++++++-----------
 lib/efi_loader/efi_setup.c                    |  14 +-
 lib/efi_loader/efi_variable.c                 |  81 ++++++++++
 lib/efi_loader/efi_variable_null.c            | 113 +++++++++++++
 lib/efi_selftest/Makefile                     |   6 +-
 .../efi_selftest_variables_runtime.c          |  94 +++++++++++
 10 files changed, 394 insertions(+), 95 deletions(-)
 create mode 100644 lib/efi_loader/efi_variable_null.c
 create mode 100644 lib/efi_selftest/efi_selftest_variables_runtime.c

--
2.20.1



More information about the U-Boot mailing list