From: Nora Schiffer Date: Tue, 21 Jul 2026 14:08:06 +0000 (+0200) Subject: kernel-fit-image: make kernel entry point and load address optional X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=54c4b4826a3a67fbfef23c93356bfd7e5cb097c1;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git kernel-fit-image: make kernel entry point and load address optional With image type kernel_noload, these are not used, and with [1] and [2], U-Boot will not require them anymore for this image type. Allow omitting them from image generation. [1] https://git.u-boot-project.org/u-boot/u-boot/-/commit/c2abc606653e7eb1e8dbdbaaf1eac392689875ea [2] https://git.u-boot-project.org/u-boot/u-boot/-/commit/c63051237f2bc79838a27473709948408acdf38b Signed-off-by: Nora Schiffer Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oe/fitimage.py b/meta/lib/oe/fitimage.py index 79ac88966f..81d18f6c91 100644 --- a/meta/lib/oe/fitimage.py +++ b/meta/lib/oe/fitimage.py @@ -276,18 +276,22 @@ class ItsNodeRootKernel(ItsNode): if len(parts) == 3 and parts[2] == entrysymbol: entrypoint = "<0x%s>" % parts[0] break + opt_props = { + "data": '/incbin/("' + kernel_path + '")', + "arch": self._arch, + "os": "linux", + } + if load: + opt_props["load"] = f"<{load}>" + if entrypoint: + opt_props["entry"] = f"<{entrypoint}>" + kernel_node = self.its_add_node_image( kernel_id, "Linux kernel", mkimage_kernel_type, compression, - { - "data": '/incbin/("' + kernel_path + '")', - "arch": self._arch, - "os": "linux", - "load": f"<{load}>", - "entry": f"<{entrypoint}>" - } + opt_props, ) self._kernel = kernel_node