[PATCH 0/6] efi: Start to chip away at the EFI workaround

Simon Glass sjg at chromium.org
Fri Oct 18 16:51:51 CEST 2024


At present there is a function, efi_set_bootdev(), which is used in
various places to tell the EFI loader which device a file came from.

With bootstd, this information is available in the bootflow.

This little series provides a way for bootstd to provide the bootflow to
the EFI loader, so that it is able to select the correct paths.

For now only the EFI bootmeth is updated.


Simon Glass (6):
  efi: Refactor device and image paths into a function
  efi: Make efi_run_image() static
  efi: Update efi_run_image() to accept image and device path
  efi: Add a version of efi_binary_run() with more parameters
  efi: Move the fallback code from efi_run_image()
  efi: Pass in the require parameters from EFI bootmeth

 boot/bootmeth_efi.c          |  49 +-------
 include/efi_loader.h         |  10 ++
 lib/efi_loader/efi_bootbin.c | 210 ++++++++++++++++++++++++-----------
 3 files changed, 159 insertions(+), 110 deletions(-)

-- 
2.34.1



More information about the U-Boot mailing list