mbox series

[0/4] Add support for multiple kernels in FIT images

Message ID 20261020125233.69997-1-vgharaee@gmail.com
Headers show
Series Add support for multiple kernels in FIT images | expand

Message

Vahid Gharaee Oct. 20, 2026, 12:52 p.m. UTC
From: Vahid Gharaee <vgharaee@gmail.com>

This patch series extends the FIT image generation support in OE-Core
to allow multiple kernel images to be included in a single FIT image.

Currently, FIT image generation supports a single kernel. This change
allows additional kernels to be specified through BitBake metadata,
including kernels built in separate multiconfig configurations.

The changes include:
- Support for multiple kernel nodes in oe.fitimage.
- Metadata variables for additional kernel images and configurations.
- Cross-multiconfig dependencies for kernel deployment.
- Selection of the kernel associated with each FIT configuration.

The implementation preserves the existing single-kernel behavior.

Testing:
- Built a FIT image containing linux-yocto and linux-yocto-rt for qemuarm64.
- Booted both kernel configurations using U-Boot and QEMU.
- Tested with oe-selftest -r fitimage.FitImagePyTests.

Vahid Gharaee (4):
  oe.fitimage: Support multiple kernel nodes and configuration selection
  oe.fitimage: add new config interface variables for multi-kernel
    image, to fitimage config file
  oe.selftest: adding tests for multi kernel/config fitimage.
    AI-Generated: Uses GitHub copilot (Claude Opus 5.5)
  oe.fitimage: Add custom configurations and harden multi-kernel
    handling

 meta/classes-recipe/kernel-fit-image.bbclass | 129 +++++++++++++--
 meta/conf/image-fitimage.conf                |  55 +++++++
 meta/lib/oe/fitimage.py                      |  84 ++++++++--
 meta/lib/oeqa/selftest/cases/fitimage.py     | 156 ++++++++++++++++++-
 4 files changed, 397 insertions(+), 27 deletions(-)