Re: [PATCH v6 03/13] crypto: hash: allow DM hash in SPL

Tom Rini <[email protected]>
Newsgroups gmane.comp.boot-loaders.u-boot
Message-ID <20260728175654.GF1188@bill-the-cat>
On Tue, Jul 28, 2026 at 11:41:46AM -0600, James Hilliard wrote:

> The hash uclass is currently keyed only by CONFIG_DM_HASH, so SPL cannot
> enable UCLASS_HASH independently. Any SPL code using hash_digest*() has to
> rely on U-Boot proper also enabling DM_HASH, and the FIT hash path selects
> the driver-model implementation with a non-phase-aware preprocessor check.
> 
> Add SPL_DM_HASH, build the hash uclass from CONFIG_$(PHASE_)DM_HASH and use
> CONFIG_IS_ENABLED(DM_HASH) when selecting the FIT hash implementation. This
> lets SPL FIT verification use a UCLASS_HASH provider without requiring the
> U-Boot proper hash uclass.
> 
> No in-tree configuration enables both DM_HASH and SPL_CRYPTO, so the
> Makefile object key switch does not remove hash-uclass.o from an existing
> SPL build.
> 
> Reviewed-by: Simon Glass <[email protected]>
> Signed-off-by: James Hilliard <[email protected]>

Reviewed-by: Tom Rini <[email protected]>

-- 
Tom
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQTzzqh0PWDgGS+bTHor4qD1Cr/kCgUCamjtYwAKCRAr4qD1Cr/k
ClGlAP96hGt6BwxbujZl9fG/Ys8HtLPS8ncsgby80XWI7OK08QEAyBOKYjbjQPWH
fItkg/fPDheU0bsUvu2gVCNwH4Wf7AE=
=sQsT
-----END PGP SIGNATURE-----
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.