On 2026-07-09T22:46:22, James Hilliard <[email protected]> wrote: > crypto: hash: allow DM hash in SPL > > 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. > > Signed-off-by: James Hilliard <[email protected]> > > boot/image-fit.c | 50 +++++++++++++++++++++++--------------------- > drivers/crypto/hash/Kconfig | 13 ++++++++++++ > drivers/crypto/hash/Makefile | 2 +- > 3 files changed, 40 insertions(+), 25 deletions(-)
Reviewed-by: Simon Glass <[email protected]>

