[PATCH v2 6/7] efi_loader: Pass in the required parameters from EFI bootmeth
Simon Glass
sjg at chromium.org
Thu Dec 19 03:43:41 CET 2024
Rather than setting up the global variables and then making the call,
pass them into function directly. This cleans up the code and makes it
all a bit easier to understand.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
Changes in v2:
- Use efi_loader tag instead of efi
- Drop unnecessary path removal
- Fix 'require' typo
- Move calculation of dev-name into a separate function
boot/bootmeth_efi.c | 49 +------------------------
include/efi_loader.h | 10 +++++
lib/efi_loader/efi_bootbin.c | 71 ++++++++++++++++++++++++++++++++++++
3 files changed, 83 insertions(+), 47 deletions(-)
Applied to sjg/master, thanks!
More information about the U-Boot
mailing list