Skip to contentSkip to conversation

oe-selftest: fitimage: Do not expect kernel property in DTBO config subnodes

PATCH New Marek Vasut 1 participant 1 message Jul 4

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oe-selftest: fitimage: Do not expect kernel property in DTBO config subnodes

From: Adrian Freihofer <[email protected]>

A DTBO overlay together with only a kernel cannot form a bootable result, so DTBO configuration subnodes should not include the kernel property. Update _get_req_its_fields() accordingly: skip appending 'kernel = "kernel-1"' for .dtbo files, aligning it with _get_req_sections() which already handles this correctly.

(cherry picked from commit 85e0408a81bdca0411a8625061e5e343c05f92d9)

---
Cc: Adrian Freihofer <[email protected]>
Cc: Richard Purdie <[email protected]>
Cc: Yoann Congal <[email protected]>

---
 meta/lib/oeqa/selftest/cases/fitimage.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/lib/oeqa/selftest/cases/fitimage.py +3 -1
index 3541c07520a..e8435fb43c1 100644
@@ -659,7 +659,9 @@ class KernelFitImageBase(FitImageTestCase):
         dtb_files, dtb_symlinks = FitImageTestCase._get_dtb_files(bb_vars)
         if dtb_files:
             for dtb in dtb_files:
-                its_field_check.append('kernel = "kernel-1";')
+                # DTBO overlay configs do not include a kernel property
+                if not dtb.endswith('.dtbo'):
+                    its_field_check.append('kernel = "kernel-1";')
                 its_field_check.append('fdt = "fdt-%s";' % dtb)
             for dtb in dtb_symlinks:
                 its_field_check.append('kernel = "kernel-1";')
Signature · 1 line
2.53.0