]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: Add support to generate GZIP compressed U-boot binary
authorManoj Sai <abbaraju.manojsai@amarulasolutions.com>
Sun, 17 Sep 2023 19:26:27 +0000 (00:56 +0530)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 7 Oct 2023 08:49:41 +0000 (16:49 +0800)
Add support for generating a GZIP-compressed U-boot binary with the
help of binman, if CONFIG_SPL_GZIP is selected.

Signed-off-by: Manoj Sai <abbaraju.manojsai@amarulasolutions.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rockchip-u-boot.dtsi

index be2658e8ef1866dd33d95758a1c0fa34f3f10599..8f248f941f964391985e9df69c2cf40bf9e99a90 100644 (file)
 #else
                                        arch = "arm";
 #endif
+#if defined(CONFIG_SPL_GZIP)
+                                       compression = "gzip";
+#else
                                        compression = "none";
+#endif
                                        load = <CONFIG_TEXT_BASE>;
                                        entry = <CONFIG_TEXT_BASE>;
                                        u-boot-nodtb {
+#if defined(CONFIG_SPL_GZIP)
+                                       compress = "gzip";
+#endif
                                        };
 #ifdef CONFIG_SPL_FIT_SIGNATURE
                                        hash {