| Message ID | 20250930065117.2625998-1-kavinaya@qti.qualcomm.com |
|---|---|
| Headers | show |
| Series | Add support for custom compatible string via optional parameter | expand |
On Tue, Sep 30, 2025 at 12:21:16PM +0530, Kavinaya S wrote: > 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. This misses the _why_ part. What is the problem that you are trying to solve. > > 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. Note: there is no need to send cover letters for a single patch. You can add all necessary information to your patch. > > 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(-) > > -- > 2.34.1 > >
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(-)