[PATCH 0/5] Support for dumping capsule headers and empty capsules
Sughosh Ganu
sughosh.ganu at linaro.org
Wed Oct 4 13:27:17 CEST 2023
These set of patches are intended for two tasks. The first set of
patches are adding support for dumping capsule header information,
which is then being used in the binman test framework for testing the
capsule generation. This replaces the current hardcoding of offsets
used for verifying the capsule contents in the binman tests.
Patch 1 introduces this functionality in the mkeficapsule tool. Patch
3 is using this functionality in the binman tests for capsules.
The other set of patches, 4 and 5 are for adding support for
generation of empty capsules in binman. The empty capsules are used
for the FWU A/B update functionality.
Sughosh Ganu (5):
tools: mkeficapsule: Add support to print capsule headers
doc: capsule: Add documentation for the capsule dump feature
binman: capsule: Use dumped capsule header contents for verification
btool: mkeficapsule: Add support for EFI empty capsule generation
binman: capsule: Add support for generating EFI empty capsules
doc/develop/uefi/uefi.rst | 17 ++
tools/binman/btool/mkeficapsule.py | 29 +++
tools/binman/etype/efi_empty_capsule.py | 91 +++++++
tools/binman/ftest.py | 145 ++++++++---
tools/binman/test/319_capsule_accept.dts | 16 ++
tools/binman/test/320_capsule_revert.dts | 14 ++
.../test/321_capsule_accept_missing_guid.dts | 14 ++
.../binman/test/322_capsule_accept_revert.dts | 17 ++
tools/eficapsule.h | 2 +
tools/mkeficapsule.c | 229 +++++++++++++++++-
10 files changed, 533 insertions(+), 41 deletions(-)
create mode 100644 tools/binman/etype/efi_empty_capsule.py
create mode 100644 tools/binman/test/319_capsule_accept.dts
create mode 100644 tools/binman/test/320_capsule_revert.dts
create mode 100644 tools/binman/test/321_capsule_accept_missing_guid.dts
create mode 100644 tools/binman/test/322_capsule_accept_revert.dts
--
2.34.1
More information about the U-Boot
mailing list