[elbe-devel] [PATCH 02/11] elbepack: handle absence of interpreter-firmware element

Thomas Weißschuh thomas.weissschuh at linutronix.de
Wed Mar 13 16:54:51 CET 2024


Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/commands/check-build.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/elbepack/commands/check-build.py b/elbepack/commands/check-build.py
index 0112fc995a52..e17090ddbb28 100644
--- a/elbepack/commands/check-build.py
+++ b/elbepack/commands/check-build.py
@@ -447,7 +447,10 @@ class CheckImage(CheckBase):
         img_name = tag.text('./img')
         qemu = tag.text('./interpreter')
 
-        fw_opts = self._firmware_opts(tag.et.find('./interpreter-firmware'))
+        fw_opts = ''
+        interpreter_firmware = tag.et.find('./interpreter-firmware')
+        if interpreter_firmware is not None:
+            fw_opts = self._firmware_opts(tag)
 
         with self.open_img(img_name) as img:
 

-- 
2.44.0



More information about the elbe-devel mailing list