@@ -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
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 <nora.schiffer@ew.tq-group.com> --- meta/lib/oe/fitimage.py | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-)