mbox series

[v4,0/1] Add support for custom compatible string via optional parameter

Message ID 20250930065117.2625998-1-kavinaya@qti.qualcomm.com
Headers show
Series Add support for custom compatible string via optional parameter | expand

Message

Kavinaya S Sept. 30, 2025, 6:51 a.m. UTC
This update adds flexibility to FIT image generation by introducing
an optional mechanism to override the DTB compatible string.
Instead of always extracting the value from the DTB, the generator
can now use a custom string defined in build metadata. This is
particularly useful when the FIT configuration requires a different
compatible value than what is embedded in the DTB.

Key changes:
Adds a custom_compatible parameter to fitimage_emit_section_dtb().
Preserves existing behavior when no override is specified.

Usage:
To override the default behavior, define in machine configuration
or local.conf:
FIT_DTB_COMPATIBLE_OVERRIDE_<dtb-filename.dtb> = "custom-compatible-string"

This method avoids using custom ITS files, keeps the build process
consistent, and makes it easy to understand and track changes.

Kavinaya S (1):
  fitimage: Add support for custom compatible string via optional
    parameter

 meta/classes-recipe/kernel-fit-image.bbclass |  3 ++-
 meta/conf/image-fitimage.conf                |  6 ++++++
 meta/lib/oe/fitimage.py                      | 12 +++++++++---
 meta/lib/oeqa/selftest/cases/fitimage.py     |  8 ++++++++
 4 files changed, 25 insertions(+), 4 deletions(-)