[PATCH v2 3/5] binman: add tests for sign option

Simon Glass sjg at chromium.org
Sat Mar 11 02:48:45 CET 2023


Hi Ivan,

On Fri, 10 Mar 2023 at 17:47, Simon Glass <sjg at chromium.org> wrote:
>
> Add the test which provides sequence of actions:
>   1. create the image from binman dts
>   2. create public and private keys
>   3. add public key into dtb with fdt_add_pubkey
>   4. 1. sign FIT container with new sign option with extracting from
>         image
>      2. sign exact FIT container with replacing of it in image
>   5. check with fit_check_sign
>
> Signed-off-by: Ivan Mikhaylov <fr0st61te at gmail.com>
> ---
>  tools/binman/ftest.py              | 61 +++++++++++++++++++++++++++++
>  tools/binman/test/277_fit_sign.dts | 63 ++++++++++++++++++++++++++++++
>  2 files changed, 124 insertions(+)
>  create mode 100644 tools/binman/test/277_fit_sign.dts
>
> Applied to u-boot-dm/next, thanks!

As mentioned on the other email I had a bit of trouble getting this
over the line Here is what I did:

Renumber test file from 277 to 280
Move UpdateSignatures() to Entry base class
Don't allow missing mkimage as it doesn't make sense
Propagate --toolpath for CI
Call mark_build_done() to avoid regenerating FIT

Regards,
Simon


More information about the U-Boot mailing list