[PATCH v9 08/10] sandbox: capsule: Generate capsule related files through binman

Simon Glass sjg at chromium.org
Sat Aug 12 16:24:56 CEST 2023


On Fri, 11 Aug 2023 at 23:58, Sughosh Ganu <sughosh.ganu at linaro.org> wrote:
>
> The EFI capsule files can now be generated as part of u-boot
> build through binman. Add capsule entry nodes for the sandbox
> architecture for generating the capsules. These capsules are then used
> for testing the EFI capsule update functionality on the sandbox
> platforms.
>
> Remove the corresponding logic in the test setup which was used for
> generation of these capsule which is now superfluous.
>
> Signed-off-by: Sughosh Ganu <sughosh.ganu at linaro.org>
> ---
> Changes since V8:
> * Build the capsules for all sandbox variants.
> * Remove the type property by renaming the capsule nodes as
>   'efi-capsule'.
>
>  arch/sandbox/dts/sandbox.dts                  |   2 +
>  arch/sandbox/dts/sandbox_capsule.dtsi         | 315 ++++++++++++++++++
>  arch/sandbox/dts/test.dts                     |   2 +
>  include/sandbox_efi_capsule.h                 |  21 ++
>  test/py/tests/test_efi_capsule/conftest.py    | 155 +--------
>  .../tests/test_efi_capsule/uboot_bin_env.its  |  36 --
>  6 files changed, 356 insertions(+), 175 deletions(-)
>  create mode 100644 arch/sandbox/dts/sandbox_capsule.dtsi
>  create mode 100644 include/sandbox_efi_capsule.h
>  delete mode 100644 test/py/tests/test_efi_capsule/uboot_bin_env.its

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

One way to reduce the files is to put all the capsules in the same
binman image. You could have 'size = <0x1000>' so they are all the
same size.

Then your test could check each one by iterating through the (single) file.

Regards,
Simon


More information about the U-Boot mailing list