fitimage: fix name of default configuration

The new fitimage.bbclass was introduced via GitHub pullrequest [1]. There was a
small force-push which implemented a prefix for the names of the configuration
nodes to harmonize the class with the mechanism found in OE-core (see [2] & [3]).
Unfortunately it was forgotten to also apply that prefix to the name of the
configuration to utilize by default - fix that.

[1] https://github.com/openembedded/meta-openembedded/pull/882
[2] https://github.com/openembedded/meta-openembedded/pull/882#issuecomment-2402218973
[3] 0773f63e82..32e7947154

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Ulrich Ölmann 2024-10-16 08:47:56 +02:00 committed by Khem Raj
parent 6ddab4a43a
commit e152f01daf
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -302,7 +302,7 @@ def fitimage_emit_section_config(d, fd, dtb, kernelcount, ramdiskcount, setupcou
if bootscriptid:
conf_desc += ", u-boot script"
if dtbcount == 1:
conf_default = d.getVar('FITIMAGE_DEFAULT_CONFIG', True) or dtb
conf_default = d.getVar('FITIMAGE_DEFAULT_CONFIG', True) or f'{conf_prefix}{dtb}'
if conf_default:
fd.write(f'\t\tdefault = "{conf_default}";\n')