
Recently, a set of patches were merged in next, which were adding support for generating capsules as part of the U-Boot build. Mid way through the review of those patches, it was decided to drop the patches for generating capsules through a config file. That was primarily due to the use of absolute paths in binman for testing the capsule genertion through config file. Now that the base set of patches have been merged, this series is picking up the remaining patches for review. This series addresses the concern that Simon Glass had with the use of absolute paths.
The first set of patches are adding support for generating capsules by parsing the capsule parameters through a config file, and adding a binman entry type for this. These are patches 1-5.
The other set of patches is for generating empty accept and revert capsules through binman. These capsules are needed for the FWU A/B update functionality.
Sughosh Ganu (8): tools: mkeficapsule: Add support for parsing capsule params from config file btool: mkeficapsule: Generate capsule through a config file binman: capsule: Generate capsules through config file doc: Document capsule generation through a config file sandbox: capsule: Add a config file for generating capsules test: capsule: Generate capsules through config file btool: mkeficapsule: Add support for EFI empty capsule generation binman: capsule: Add support for generating EFI empty capsules
configs/sandbox_defconfig | 2 + doc/develop/uefi/uefi.rst | 70 ++++ .../test_efi_capsule/capsule_gen_binman.dts | 8 + test/py/tests/test_efi_capsule/conftest.py | 18 +- .../test_efi_capsule/sandbox_capsule_cfg.txt | 162 ++++++++ tools/Kconfig | 16 + tools/Makefile | 1 + tools/binman/btool/mkeficapsule.py | 45 +++ tools/binman/entries.rst | 35 ++ tools/binman/etype/efi_capsule_cfg_file.py | 66 ++++ tools/binman/etype/efi_empty_capsule.py | 91 +++++ tools/binman/ftest.py | 81 ++++ tools/binman/test/319_capsule_cfg.dts | 15 + tools/binman/test/320_capsule_accept.dts | 16 + tools/binman/test/321_capsule_revert.dts | 14 + .../test/322_capsule_accept_missing_guid.dts | 14 + .../binman/test/323_capsule_accept_revert.dts | 17 + tools/eficapsule.h | 115 ++++++ tools/mkeficapsule.c | 87 +++-- tools/mkeficapsule_parse.c | 352 ++++++++++++++++++ 20 files changed, 1190 insertions(+), 35 deletions(-) create mode 100644 test/py/tests/test_efi_capsule/sandbox_capsule_cfg.txt create mode 100644 tools/binman/etype/efi_capsule_cfg_file.py create mode 100644 tools/binman/etype/efi_empty_capsule.py create mode 100644 tools/binman/test/319_capsule_cfg.dts create mode 100644 tools/binman/test/320_capsule_accept.dts create mode 100644 tools/binman/test/321_capsule_revert.dts create mode 100644 tools/binman/test/322_capsule_accept_missing_guid.dts create mode 100644 tools/binman/test/323_capsule_accept_revert.dts create mode 100644 tools/mkeficapsule_parse.c