mbox series

[0/2] kernel-fitimage: Add FIT_CONF_MAPPINGS for flexible DTB configuration

Message ID 20251218201432.1608259-1-adrian.freihofer@siemens.com
Headers show
Series kernel-fitimage: Add FIT_CONF_MAPPINGS for flexible DTB configuration | expand

Message

AdrianF Dec. 18, 2025, 8:14 p.m. UTC
From: Adrian Freihofer <adrian.freihofer@siemens.com>

Currently, the kernel-fit-image class creates a strict 1-to-1 mapping between
DTB filenames and FIT configuration node names. This limitation becomes
problematic in several scenarios.

This patch series introduces a new FIT_CONF_MAPPINGS variable that provides
flexibility in naming and organizing FIT image configuration nodes for DTB files.
Two mapping types are implemented: dtb-conf (renames configuration nodes) and
dtb-extra-conf (creates additional configurations). The design allows for
additional mapping types in the future.

Adrian Freihofer (2):
  kernel-fitimage: Add FIT_CONF_MAPPINGS for flexible DTB configuration
  oe-selftest: fitimage: support FIT_CONF_MAPPINGS

 meta/classes-recipe/kernel-fit-image.bbclass |  2 +-
 meta/conf/image-fitimage.conf                | 12 +++
 meta/lib/oe/fitimage.py                      | 57 ++++++++++-
 meta/lib/oeqa/selftest/cases/fitimage.py     | 99 +++++++++++++++++++-
 4 files changed, 160 insertions(+), 10 deletions(-)