mbox series

[0/3] kernel-fit-image: allow replacing kernel, handle compression in FIT recipe

Message ID 20260723124944.69070-1-nora.schiffer@ew.tq-group.com
Headers show
Series kernel-fit-image: allow replacing kernel, handle compression in FIT recipe | expand

Message

Nora Schiffer July 23, 2026, 12:49 p.m. UTC
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").

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      | 97 ++++++++++++++++++-
 5 files changed, 167 insertions(+), 17 deletions(-)