[U-Boot] [PATCH v2 00/11] efi_loader: error handling cmd/bootefi.c

Heinrich Schuchardt xypron.glpk at gmx.de
Thu Feb 15 07:31:33 UTC 2018


This patch series is focused on providing error checking during the
initialization of the EFI subsystem.

If any of the registrations routines fails bootefi is not executed.
As currently the registration attempt cannot be unroled any further
bootefi call will fail.

Passing a devicetree to bootefi selftest is enabled and a unit test is
supplied.

Heinrich Schuchardt (11):
  efi_loader: efi_smbios_register should have a return value
  efi_loader: return efi_status_t from efi_gop_register
  efi_loader: return efi_status_t from efi_net_register
  efi_loader: consistently return efi_status_t efi_watchdog_register
  efi_loader: simplify calling efi_init_obj_list
  efi_loader: exit status for efi_reset_system_init
  efi_loader: efi_get_time_init should return status code
  efi_loader: do_bootefi_exec should always return an EFI status code
  efi_loader: check initialization of EFI subsystem is successful
  efi_loader: support device tree for bootefi selftest
  efi_selftest: check installation of the device tree

 arch/arm/cpu/armv8/fsl-layerscape/cpu.c |   4 +-
 arch/arm/mach-bcm283x/reset.c           |   4 +-
 cmd/bootefi.c                           | 184 +++++++++++++++++++------------
 include/efi_loader.h                    |  23 ++--
 lib/efi_loader/efi_boottime.c           |   2 +
 lib/efi_loader/efi_gop.c                |  34 ++++--
 lib/efi_loader/efi_net.c                |  24 ++--
 lib/efi_loader/efi_runtime.c            |  18 ++-
 lib/efi_loader/efi_smbios.c             |  23 ++--
 lib/efi_loader/efi_watchdog.c           |   4 +-
 lib/efi_selftest/Makefile               |   1 +
 lib/efi_selftest/efi_selftest_fdt.c     | 188 ++++++++++++++++++++++++++++++++
 test/py/tests/test_efi_selftest.py      |  14 +++
 13 files changed, 404 insertions(+), 119 deletions(-)
 create mode 100644 lib/efi_selftest/efi_selftest_fdt.c

-- 
2.15.1



More information about the U-Boot mailing list