]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
kernel-fit-image: avoid shadowing os stdlib import
authorNora Schiffer <nora.schiffer@ew.tq-group.com>
Tue, 21 Jul 2026 14:08:07 +0000 (16:08 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Jul 2026 10:27:21 +0000 (11:27 +0100)
Avoid using os as an argument name, as shadowing the import of the os
stdlib module may be confusing.

Signed-off-by: Nora Schiffer <nora.schiffer@ew.tq-group.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/fitimage.py

index 81d18f6c91914717cf8658ddd1869c947ecc8cff..9cde6cedc4ebea2e6bebe102cd40600c623c9bf6 100644 (file)
@@ -401,12 +401,12 @@ class ItsNodeRootKernel(ItsNode):
         )
         self._ramdisk = ramdisk_node
 
-    def fitimage_emit_section_loadable(self, name, filepath, type=None, description=None, compression=None, arch=None, os=None, load=None, entry=None):
+    def fitimage_emit_section_loadable(self, name, filepath, type=None, description=None, compression=None, arch=None, fit_os=None, load=None, entry=None):
         """Emit one fitImage ITS loadable section"""
         opt_props = {
             "data": '/incbin/("' + filepath + '")',
             "arch": arch if arch is not None else self._arch,
-            "os": os if os is not None else "linux",
+            "os": fit_os if fit_os is not None else "linux",
         }
 
         if load: