[PATCH v8 6/9] binman: capsule: Add support for generating EFI capsules

Simon Glass sjg at chromium.org
Thu Aug 10 19:27:31 CEST 2023


On Thu, 10 Aug 2023 at 08:24, Sughosh Ganu <sughosh.ganu at linaro.org> wrote:
>
> Add support in binman for generating EFI capsules. The capsule
> parameters can be specified through the capsule binman entry. Also add
> test cases in binman for testing capsule generation.
>
> Signed-off-by: Sughosh Ganu <sughosh.ganu at linaro.org>
> ---
> Changes since V7:
> * Rebase on top of current upstream.
> * Drop the ReadEntries method as suggested by Simon Glass.
> * Add logic to allow specifying a string 'binman-test' for GUIDs in
>   binman tests.
> * Add a todo comment for getting the capsule contents from the tool.
>
>  tools/binman/entries.rst                      |  64 ++++++++
>  tools/binman/etype/efi_capsule.py             | 143 ++++++++++++++++++
>  tools/binman/ftest.py                         | 118 +++++++++++++++
>  tools/binman/test/311_capsule.dts             |  21 +++
>  tools/binman/test/312_capsule_signed.dts      |  23 +++
>  tools/binman/test/313_capsule_version.dts     |  22 +++
>  tools/binman/test/314_capsule_signed_ver.dts  |  24 +++
>  tools/binman/test/315_capsule_oemflags.dts    |  22 +++
>  tools/binman/test/316_capsule_missing_key.dts |  22 +++
>  .../binman/test/317_capsule_missing_index.dts |  20 +++
>  .../binman/test/318_capsule_missing_guid.dts  |  19 +++
>  11 files changed, 498 insertions(+)
>  create mode 100644 tools/binman/etype/efi_capsule.py
>  create mode 100644 tools/binman/test/311_capsule.dts
>  create mode 100644 tools/binman/test/312_capsule_signed.dts
>  create mode 100644 tools/binman/test/313_capsule_version.dts
>  create mode 100644 tools/binman/test/314_capsule_signed_ver.dts
>  create mode 100644 tools/binman/test/315_capsule_oemflags.dts
>  create mode 100644 tools/binman/test/316_capsule_missing_key.dts
>  create mode 100644 tools/binman/test/317_capsule_missing_index.dts
>  create mode 100644 tools/binman/test/318_capsule_missing_guid.dts

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list