From: "Mathieu Dubois-Briand" <mathieu.dubois-briand@bootlin.com>
To: <nora.schiffer@ew.tq-group.com>,
<openembedded-core@lists.openembedded.org>
Cc: <oss@ew.tq-group.com>
Subject: Re: [OE-core] [PATCH 2/3] kernel-fit-image: reintroduce option to replace kernel image
Date: Sat, 25 Jul 2026 15:02:20 +0200 [thread overview]
Message-ID: <DK7O7LEQJGUL.2565TJL3V1PLS@bootlin.com> (raw)
In-Reply-To: <20260723124944.69070-3-nora.schiffer@ew.tq-group.com>
On Thu Jul 23, 2026 at 2:49 PM CEST, Nora Schiffer via lists.openembedded.org wrote:
> A similar feature was added in commit 9c8ef2119949 ("kernel-fit-image:
> control kernel section with FIT_LINUX_BIN") and subsequently reverted in
> commit 6eae261b6f52 ("Revert "kernel-fit-image: control kernel section
> with FIT_LINUX_BIN"") due to its incomplete implementation and lack of
> tests. Reintroduce an improved version:
>
> - The FIT_LINUX_BIN variable (which had been left unused) is renamed to
> FIT_KERNEL_FILENAME. It can now actually be used to select a different
> file from DEPLOY_DIR_IMAGE. The file will be compressed using
> FIT_KERNEL_COMP_ALG as part of the FIT image recipe, rather than than
> letting the kernel recipe handle this through
> kernel-fit-extra-artifacts.bbclass.
> - Alternatively, FIT_KERNEL_FILENAME_COMPRESSED can be used to select a
> pre-compressed file from DEPLOY_DIR_IMAGE. In this case,
> FIT_KERNEL_COMP_ALG only controls the "compression" field of the
> generated FIT image.
> - To preserve backwards compatibility, FIT_KERNEL_FILENAME_COMPRESSED
> defaults to "linux.bin". As a special case, the compression algorithm
> will be read from "linux_comp" for linux.bin. This behavior is
> considered deprecated and relying on it results in a warning.
> - Add tests.
>
> To resolve the new deprecation warning, it is usually sufficient to set
> KERNEL_IMAGETYPE to the desired type ("Image" on many archs) and set
> FIT_KERNEL_FILENAME to the same value.
>
> Signed-off-by: Nora Schiffer <nora.schiffer@ew.tq-group.com>
> ---
Hi Nora,
Thanks for your patch.
It looks like the test_fit_image_kernel_filename selftest is failing on
arm hosts:
2026-07-24 21:31:27,684 - oe-selftest - INFO - fitimage.KernelFitImageRecipeTests.test_fit_image_kernel_filename (subunit.RemotedTestCase)
2026-07-24 21:31:27,685 - oe-selftest - INFO - ... FAIL
...
ERROR: linux-yocto-fitimage-1.0-r0 do_compile: Error executing a python function in exec_func_python() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:do_compile(d)
0003:
File: '/srv/pokybuild/yocto-worker/oe-selftest-armhost/build/layers/openembedded-core/meta/classes-recipe/kernel-fit-image.bbclass', lineno: 129, function: do_compile
0125:
0126: elif kernel_compressed:
0127: kernel_path = os.path.join(kernel_deploydir, kernel_compressed)
0128: kernel_name = os.path.basename(kernel_compressed)
*** 0129: shutil.copyfile(kernel_path, kernel_name)
0130:
0131: # FIT_KERNEL_FILENAME or FIT_KERNEL_FILENAME_COMPRESSED was set
0132: if kernel_name:
0133: root_node.fitimage_emit_section_kernel("kernel-1", kernel_name, kernel_comp_alg,
File: '/usr/lib/python3.14/shutil.py', lineno: 313, function: copyfile
0309:
0310: if not follow_symlinks and _islink(src):
0311: os.symlink(os.readlink(src), dst)
0312: else:
*** 0313: with open(src, 'rb') as fsrc:
0314: try:
0315: with open(dst, 'wb') as fdst:
0316: # macOS
0317: if _HAS_FCOPYFILE:
Exception: FileNotFoundError: [Errno 2] No such file or directory: '/srv/pokybuild/yocto-worker/oe-selftest-armhost/build/build-st-1142023/tmp/deploy/images/qemuarm64/bzImage'
https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/4420
Can you have a look at the issue?
Thanks,
Mathieu
--
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2026-07-25 13:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-23 12:49 [PATCH 0/3] kernel-fit-image: allow replacing kernel, handle compression in FIT recipe Nora Schiffer
2026-07-23 12:49 ` [PATCH 1/3] kernel-uboot: move FIT_KERNEL_COMP_ALG to image-fitimage.conf Nora Schiffer
2026-07-23 12:49 ` [PATCH 2/3] kernel-fit-image: reintroduce option to replace kernel image Nora Schiffer
2026-07-25 13:02 ` Mathieu Dubois-Briand [this message]
2026-07-27 8:03 ` [OE-core] " Nora Schiffer
2026-07-27 8:11 ` Yoann Congal
2026-07-27 8:33 ` Mathieu Dubois-Briand
2026-07-23 12:49 ` [PATCH 3/3] kernel-fit-extra-artifacts: skip building linux.bin if unneeded Nora Schiffer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DK7O7LEQJGUL.2565TJL3V1PLS@bootlin.com \
--to=mathieu.dubois-briand@bootlin.com \
--cc=nora.schiffer@ew.tq-group.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=oss@ew.tq-group.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.