[PATCH v3 4/6] rockchip: Add sha256 hash to FIT images
Jonas Karlman
jonas at kwiboo.se
Sat Jan 21 20:01:59 CET 2023
Add sha256 hash to FIT images when CONFIG_SPL_FIT_SIGNATURE=y.
Signed-off-by: Jonas Karlman <jonas at kwiboo.se>
Reviewed-by: Simon Glass <sjg at chromium.org>
---
v2:
- Collect r-b tag
arch/arm/dts/rockchip-u-boot.dtsi | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/arch/arm/dts/rockchip-u-boot.dtsi b/arch/arm/dts/rockchip-u-boot.dtsi
index 63c8da456b4f..e35902bb63a8 100644
--- a/arch/arm/dts/rockchip-u-boot.dtsi
+++ b/arch/arm/dts/rockchip-u-boot.dtsi
@@ -50,6 +50,11 @@
entry = <CONFIG_TEXT_BASE>;
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
};
};
--
2.39.1
More information about the U-Boot
mailing list