rockchip: Add sha256 hash to FIT images
authorJonas Karlman <jonas@kwiboo.se>
Sat, 21 Jan 2023 19:01:59 +0000 (19:01 +0000)
committerSimon Glass <sjg@chromium.org>
Thu, 26 Jan 2023 17:47:45 +0000 (10:47 -0700)
Add sha256 hash to FIT images when CONFIG_SPL_FIT_SIGNATURE=y.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/dts/rockchip-u-boot.dtsi

index 63c8da4..e35902b 100644 (file)
                                        entry = <CONFIG_TEXT_BASE>;
                                        u-boot-nodtb {
                                        };
+#ifdef CONFIG_SPL_FIT_SIGNATURE
+                                       hash {
+                                               algo = "sha256";
+                                       };
+#endif
                                };
 
                                @atf-SEQ {
 
                                        atf-bl31 {
                                        };
+#ifdef CONFIG_SPL_FIT_SIGNATURE
+                                       hash {
+                                               algo = "sha256";
+                                       };
+#endif
                                };
                                @tee-SEQ {
                                        fit,operation = "split-elf";
                                        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
                                };
                        };