[PATCH v2 5/6] image: Drop if/elseif hash selection in calculate_hash()
Tom Rini
trini at konsulko.com
Thu Sep 9 03:25:31 CEST 2021
On Thu, Sep 02, 2021 at 07:54:21PM -0500, Alexandru Gagniuc wrote:
> calculate_hash() would try to select the appropriate hashing function
> by a if/elseif contruct. But that is exactly why hash_lookup_algo()
> exists, so use it instead.
>
> This does mean that we now have to 'select HASH' to make sure we get
> the hash_lookup_algo() symbol. However, the change makes sense because
> even basic FITs will have to deal with "hash" nodes.
>
> My only concern is that the 'select SPL_HASH' might cause some
> platform to grow above its SPL size allowance
>
> Signed-off-by: Alexandru Gagniuc <mr.nuke.me at gmail.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210908/27b41cea/attachment.sig>
More information about the U-Boot
mailing list