Re: [PATCH v3 1/3] boot: fit: factor out node-path collection in fit_config_add_hash()

Simon Glass <[email protected]>
Newsgroups gmane.comp.boot-loaders.u-boot
Message-ID <CAFLszTj0SP0+JFCWDxYw4wx8csdseGFWzeGk_eSN_f9iVb44pg@mail.gmail.com>
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]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.