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 <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>
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