mbox series

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

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

Message

Kavinaya S Sept. 29, 2025, 2:47 p.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:
COMPATIBLE:<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 ++++++++++--
 3 files changed, 18 insertions(+), 3 deletions(-)