From: Jonas Karlman Date: Sat, 21 Jan 2023 19:01:59 +0000 (+0000) Subject: rockchip: Add sha256 hash to FIT images X-Git-Tag: baikal/mips/sdk5.8.2~5^2~75^2~5 X-Git-Url: https://git.baikalelectronics.ru/?a=commitdiff_plain;h=7f52f0fe8190c72e1b64c171c497a2a84cf7d498;p=uboot.git rockchip: Add sha256 hash to FIT images Add sha256 hash to FIT images when CONFIG_SPL_FIT_SIGNATURE=y. Signed-off-by: Jonas Karlman Reviewed-by: Simon Glass --- diff --git a/arch/arm/dts/rockchip-u-boot.dtsi b/arch/arm/dts/rockchip-u-boot.dtsi index 63c8da456b..e35902bb63 100644 --- a/arch/arm/dts/rockchip-u-boot.dtsi +++ b/arch/arm/dts/rockchip-u-boot.dtsi @@ -50,6 +50,11 @@ entry = ; u-boot-nodtb { }; +#ifdef CONFIG_SPL_FIT_SIGNATURE + hash { + algo = "sha256"; + }; +#endif }; @atf-SEQ { @@ -65,6 +70,11 @@ atf-bl31 { }; +#ifdef CONFIG_SPL_FIT_SIGNATURE + hash { + algo = "sha256"; + }; +#endif }; @tee-SEQ { fit,operation = "split-elf"; @@ -80,12 +90,22 @@ tee-os { optional; }; +#ifdef CONFIG_SPL_FIT_SIGNATURE + hash { + algo = "sha256"; + }; +#endif }; @fdt-SEQ { description = "fdt-NAME"; compression = "none"; type = "flat_dt"; +#ifdef CONFIG_SPL_FIT_SIGNATURE + hash { + algo = "sha256"; + }; +#endif }; };