Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH v2 0/3] kernel-fit-image: allow replacing kernel, handle compression in FIT recipe
@ 2026-07-27  9:05 Nora Schiffer
  2026-07-27  9:05 ` [PATCH v2 1/3] kernel-uboot: move FIT_KERNEL_COMP_ALG to image-fitimage.conf Nora Schiffer
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Nora Schiffer @ 2026-07-27  9:05 UTC (permalink / raw)
  To: openembedded-core; +Cc: oss, Nora Schiffer

Add support for building alternative kernel images into a FIT image instead of
using linux.bin. An incomplete solution with a similar goal was added in 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 missing
features, lack of tests and the submitter having abandoned their approach.

With the new approach, compression is now either handled as part of the
FIT image (KERNEL_FILENAME) or the image is considered to be compressed already
(KERNEL_FILENAME_COMPRESSED). The option to let the kernel recipe do the
compression and store the result in the image deploydir as linux.bin is
preserved for backwards compatibility, but will result in a deprecation warning.

Our main use case for this is to support building a FIT image with an EFI
application as kernel (with FIT_OS = "efi").


v2: do not hardcode kernel filename to bzImage in
    fitimage.KernelFitImageRecipeTests.test_fit_image_kernel_filename selftest
    to fix build on non-x86 machines in PATCH 2/3


Nora Schiffer (3):
  kernel-uboot: move FIT_KERNEL_COMP_ALG to image-fitimage.conf
  kernel-fit-image: reintroduce option to replace kernel image
  kernel-fit-extra-artifacts: skip building linux.bin if unneeded

 .../kernel-fit-extra-artifacts.bbclass        |  4 +-
 meta/classes-recipe/kernel-fit-image.bbclass  | 53 ++++++++--
 meta/classes-recipe/kernel-uboot.bbclass      |  3 +-
 meta/conf/image-fitimage.conf                 | 27 +++++-
 meta/lib/oeqa/selftest/cases/fitimage.py      | 96 ++++++++++++++++++-
 5 files changed, 166 insertions(+), 17 deletions(-)

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-07-30 14:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-27  9:05 [PATCH v2 0/3] kernel-fit-image: allow replacing kernel, handle compression in FIT recipe Nora Schiffer
2026-07-27  9:05 ` [PATCH v2 1/3] kernel-uboot: move FIT_KERNEL_COMP_ALG to image-fitimage.conf Nora Schiffer
2026-07-30 10:43   ` [OE-core] " Richard Purdie
2026-07-30 11:15     ` Nora Schiffer
2026-07-30 13:09       ` Richard Purdie
2026-07-30 13:35         ` Nora Schiffer
2026-07-30 13:50           ` Richard Purdie
2026-07-30 14:05             ` Nora Schiffer
2026-07-27  9:06 ` [PATCH v2 2/3] kernel-fit-image: reintroduce option to replace kernel image Nora Schiffer
2026-07-27  9:06 ` [PATCH v2 3/3] kernel-fit-extra-artifacts: skip building linux.bin if unneeded Nora Schiffer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox