fitimage.bbclass: let image type default to 'kernel'

When no type is set, we simply pick 'kernel' as the default since it
is still the most common to be used for FIT images.

Signed-off-by: Enrico Jörns <ejo@pengutronix.de>
This commit is contained in:
Enrico Jörns 2024-11-15 13:22:03 +01:00 committed by Khem Raj
parent 71e6160da0
commit 62eba951c7
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -388,7 +388,7 @@ python write_manifest() {
for image in (images or "").split():
imageflags = d.getVarFlags('FITIMAGE_IMAGE_%s' % image, expand=['file', 'fstype', 'type', 'comp']) or {}
imgtype = imageflags.get('type', '')
imgtype = imageflags.get('type', 'kernel')
if imgtype == 'kernel':
default = "%s-%s%s" % (d.getVar('KERNEL_IMAGETYPE'), machine, d.getVar('KERNEL_IMAGE_BIN_EXT'))
imgsource = imageflags.get('file', default)