binman: test: Ensure all config references exist in /images node
authorAristo Chen <jj251510319013@gmail.com>
Tue, 10 Jun 2025 07:41:19 +0000 (07:41 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 26 Jun 2025 14:12:54 +0000 (08:12 -0600)
Several binman FIT test device trees reference image nodes such as atf
and uboot in their /configurations sections, but those image nodes
were not actually defined in the /images node. This mismatch can lead
to validation errors when stricter consistency checks are introduced.

This patch adds minimal definitions for atf and uboot under the
/images node in all relevant test DTS files.

Signed-off-by: Aristo Chen <aristo.chen@canonical.com>
tools/binman/test/170_fit_fdt.dts
tools/binman/test/220_fit_subentry_bintool.dts
tools/binman/test/223_fit_fdt_oper.dts
tools/binman/test/284_fit_fdt_list.dts
tools/binman/test/333_fit_fdt_dir.dts
tools/binman/test/334_fit_fdt_compat.dts
tools/binman/test/335_fit_fdt_phase.dts
tools/binman/test/345_fit_fdt_name.dts

index 0197ffd..4b1e9b4 100644 (file)
                        fit,fdt-list = "of-list";
 
                        images {
+                               atf {
+                                       description = "atf firmware";
+                                       type = "firmware";
+                                       compression = "none";
+                                       load = <00000000>;
+                                       entry = <00000000>;
+                               };
+                               uboot {
+                                       description = "U-Boot firmware";
+                                       type = "firmware";
+                                       compression = "none";
+                                       load = <00000000>;
+                                       entry = <00000000>;
+                               };
                                kernel {
                                        description = "Vanilla Linux kernel";
                                        type = "kernel";
index 6e29d41..b1d8fb0 100644 (file)
@@ -12,7 +12,7 @@
                        #address-cells = <1>;
 
                        images {
-                               test {
+                               kernel {
                                        description = "Something using a bintool";
                                        type = "kernel";
                                        arch = "arm";
index e630165..cb3b31e 100644 (file)
                        fit,fdt-list = "of-list";
 
                        images {
+                               atf {
+                                       description = "atf firmware";
+                                       type = "firmware";
+                                       compression = "none";
+                                       load = <00000000>;
+                                       entry = <00000000>;
+                               };
+                               uboot {
+                                       description = "U-Boot firmware";
+                                       type = "firmware";
+                                       compression = "none";
+                                       load = <00000000>;
+                                       entry = <00000000>;
+                               };
                                kernel {
                                        description = "Vanilla Linux kernel";
                                        type = "kernel";
index 8885313..70cdb32 100644 (file)
                        fit,fdt-list-val = "test-fdt1", "test-fdt2";
 
                        images {
+                               atf {
+                                       description = "atf firmware";
+                                       type = "firmware";
+                                       compression = "none";
+                                       load = <00000000>;
+                                       entry = <00000000>;
+                               };
+                               uboot {
+                                       description = "U-Boot firmware";
+                                       type = "firmware";
+                                       compression = "none";
+                                       load = <00000000>;
+                                       entry = <00000000>;
+                               };
                                kernel {
                                        description = "Vanilla Linux kernel";
                                        type = "kernel";
index aa77845..71971de 100644 (file)
                        fit,fdt-list-dir = "fdts";
 
                        images {
+                               atf {
+                                       description = "atf firmware";
+                                       type = "firmware";
+                                       compression = "none";
+                                       load = <00000000>;
+                                       entry = <00000000>;
+                               };
+                               uboot {
+                                       description = "U-Boot firmware";
+                                       type = "firmware";
+                                       compression = "none";
+                                       load = <00000000>;
+                                       entry = <00000000>;
+                               };
                                kernel {
                                        description = "Vanilla Linux kernel";
                                        type = "kernel";
index 3bf45c7..bf1b5a4 100644 (file)
                        fit,fdt-list = "of-list";
 
                        images {
+                               atf {
+                                       description = "atf firmware";
+                                       type = "firmware";
+                                       compression = "none";
+                                       load = <00000000>;
+                                       entry = <00000000>;
+                               };
+                               uboot {
+                                       description = "U-Boot firmware";
+                                       type = "firmware";
+                                       compression = "none";
+                                       load = <00000000>;
+                                       entry = <00000000>;
+                               };
                                kernel {
                                        description = "Vanilla Linux kernel";
                                        type = "kernel";
index f8d0740..c20bcad 100644 (file)
                        fit,fdt-list = "of-list";
 
                        images {
+                               atf {
+                                       description = "atf firmware";
+                                       type = "firmware";
+                                       compression = "none";
+                                       load = <00000000>;
+                                       entry = <00000000>;
+                               };
+                               uboot {
+                                       description = "U-Boot firmware";
+                                       type = "firmware";
+                                       compression = "none";
+                                       load = <00000000>;
+                                       entry = <00000000>;
+                               };
                                kernel {
                                        description = "Vanilla Linux kernel";
                                        type = "kernel";
index 631a8e5..0ef2e19 100644 (file)
                        fit,fdt-list = "of-list";
 
                        images {
+                               atf {
+                                       description = "atf firmware";
+                                       type = "firmware";
+                                       compression = "none";
+                                       load = <00000000>;
+                                       entry = <00000000>;
+                               };
+                               uboot {
+                                       description = "U-Boot firmware";
+                                       type = "firmware";
+                                       compression = "none";
+                                       load = <00000000>;
+                                       entry = <00000000>;
+                               };
                                kernel {
                                        description = "Vanilla Linux kernel";
                                        type = "kernel";