On 2026-07-21T02:34:47, Daniel Golle <[email protected]> wrote:
> boot: fit: factor out node-path collection in fit_config_add_hash()
>
> Both the boot-side and host-side fit_config_add_hash() repeat the same
> sequence to append a node's path to the hashed-node list three times:
> for the image node, for each hash subnode and for the cipher subnode.
> Extract it into a helper, fit_config_add_node(), in each file, with no
> functional change.
>
> Signed-off-by: Daniel Golle <[email protected]>
> Reviewed-by: Tom Rini <[email protected]>
>
> boot/image-fit-sig.c | 73 +++++++++++++++++++++++++++++++---------------------
>  tools/image-host.c   | 73 
> +++++++++++++++++++++++++++++++++-------------------
>  2 files changed, 91 insertions(+), 55 deletions(-)

Reviewed-by: Simon Glass <[email protected]>

Reply via email to