]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: tegra-u-boot: add recipe for multi-dtb image
authorSvyatoslav Ryhel <clamor95@gmail.com>
Fri, 2 Aug 2024 12:51:41 +0000 (15:51 +0300)
committerSvyatoslav Ryhel <clamor95@gmail.com>
Sun, 13 Oct 2024 14:20:26 +0000 (17:20 +0300)
Buildman has difficulties with constructing multi-dtb images, so
let's add a temporary custom recipe for it.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
arch/arm/dts/tegra-u-boot.dtsi

index b3d0dec7757c465ca3e2e7f03c4db8ae5b2ccd6b..c200f2d3a0be85c800b7d771e70e3775945cddf0 100644 (file)
                        };
                };
 
+#ifdef CONFIG_MULTI_DTB_FIT
+               image2 {
+                       filename = "u-boot-dtb-tegra.bin";
+                       pad-byte = <0xff>;
+                       u-boot-spl {
+                       };
+                       u-boot-nodtb {
+                               offset = <(U_BOOT_OFFSET)>;
+                       };
+                       fit-dtb {
+#ifdef CONFIG_MULTI_DTB_FIT_LZO
+                               filename = "fit-dtb.blob.lzo";
+#elif CONFIG_MULTI_DTB_FIT_GZIP
+                               filename = "fit-dtb.blob.gz";
+#else
+                               filename = "fit-dtb.blob";
+#endif
+                               type = "blob";
+                       };
+               };
+#else
                /* Same as image1 - some tools still expect the -dtb suffix */
                image2 {
                        filename = "u-boot-dtb-tegra.bin";
@@ -29,6 +50,7 @@
                                offset = <(U_BOOT_OFFSET)>;
                        };
                };
+#endif
 
                image3 {
                        filename = "u-boot-nodtb-tegra.bin";