[PATCH v2 2/3] binman: Generate preload header and sign data only once
Simon Glass
sjg at chromium.org
Fri Apr 3 03:02:31 CEST 2026
On 2026-04-02T19:24:29, yan wang <yan.wang at softathome.com> wrote:
> binman: Generate preload header and sign data only once
>
> To optimize preload generation, generate the header and signatures only
> after all data has been collected. This avoids signing the data multiple
> times.
>
> Since header_size is known upfront (from __init__), set the preload
> header size in ObtainContents() to avoid an extra packing pass when
> ProcessContentsUpdate() detects the size changed from 0 to header_size.
>
> This reduces unnecessary repacking and signing operations.
>
> Signed-off-by: Paul HENRYS <paul.henrys_ext at softathome.com>
>
> tools/binman/etype/pre_load.py | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list