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://source.denx.de/u-boot/u-boot/-/commit/c2abc606653e7eb1e8dbdbaaf1eac392689875ea [2] https://source.denx.de/u-boot/u-boot/-/commit/c63051237f2bc79838a27473709948408acdf38b Signed-off-by: Nora Schiffer <[email protected]> --- meta/lib/oe/fitimage.py | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) 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 -- TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany Amtsgericht München, HRB 105018 Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider https://www.tq-group.com/
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#240381): https://lists.openembedded.org/g/openembedded-core/message/240381 Mute This Topic: https://lists.openembedded.org/mt/120154467/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
