[PATCH 0/8] efi: Add docs and tests and a few tweaks

Simon Glass sjg at chromium.org
Mon Dec 9 17:27:53 CET 2024


This series addresses feedback provided on the original series,
including:

- adding documentation and tests for the two new commands
- fixing an issue that somehow didn't fail in CI
- splitting up a large function into two parts
- using lmb for the allocation, instead of looking at internal tables
- dropping use of config.h

Link: https://lore.kernel.org/u-boot/20241123195616.305687-1-mjg59@srcf.ucam.org/
Link: https://patchwork.ozlabs.org/project/uboot/list/?series=433949&state=*&archive=both


Simon Glass (8):
  fdtdec: Correct devicetree symbol for EFI app
  part_find: Enable for sandbox and correct radix and calls
  doc: test: Add docs and test for part_find
  efi: Drop config.h
  cmd: Refactor part_find() into separate functions
  addr_find: Use a simple lmb allocation
  doc: test: Add docs and test for addr_find
  efi: Avoid a memory leak in efi_bind_block() on error path

 cmd/Kconfig                 |   2 +
 cmd/addr_find.c             |  41 +++-------
 cmd/part_find.c             | 153 ++++++++++++++++++++++--------------
 doc/usage/cmd/addr_find.rst |  63 +++++++++++++++
 doc/usage/cmd/part_find.rst | 119 ++++++++++++++++++++++++++++
 doc/usage/index.rst         |   2 +
 drivers/net/efi_net.c       |   1 -
 drivers/tpm/tpm2_efi.c      |   1 -
 lib/efi/efi_app_init.c      |   4 +-
 lib/fdtdec.c                |   2 +-
 test/cmd/Makefile           |   2 +
 test/cmd/addr_find.c        |  27 +++++++
 test/cmd/part_find.c        |  42 ++++++++++
 13 files changed, 367 insertions(+), 92 deletions(-)
 create mode 100644 doc/usage/cmd/addr_find.rst
 create mode 100644 doc/usage/cmd/part_find.rst
 create mode 100644 test/cmd/addr_find.c
 create mode 100644 test/cmd/part_find.c

-- 
2.34.1



More information about the U-Boot mailing list