diff options
| author | Bastian Krause <bst@pengutronix.de> | 2025-04-15 12:28:05 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-04-16 08:04:42 -0700 |
| commit | 0c3c7bc9f4f1e19ad67a4445664da5b4cb3ed9f1 (patch) | |
| tree | f748fc0c8c97cd10966d9ab9a9c8b73baadc04d0 /meta-oe/classes/fitimage.bbclass | |
| parent | 24dd46daf8672d814eb4baa8cb1ead547613836c (diff) | |
| download | meta-openembedded-0c3c7bc9f4f1e19ad67a4445664da5b4cb3ed9f1.tar.gz | |
fitimage.bbclass: warn if kernel is compressed, but no compression specified
If the kernel build type uses compression, the bootloader needs to take
care of decompression. This must be configured in the FIT image via
FITIMAGE_IMAGE_myimage[comp]. So warn if the FIT image kernel compression
is not specified in such a case.
Signed-off-by: Bastian Krause <bst@pengutronix.de>
Diffstat (limited to 'meta-oe/classes/fitimage.bbclass')
| -rw-r--r-- | meta-oe/classes/fitimage.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-oe/classes/fitimage.bbclass b/meta-oe/classes/fitimage.bbclass index bc69320552..76e7241820 100644 --- a/meta-oe/classes/fitimage.bbclass +++ b/meta-oe/classes/fitimage.bbclass | |||
| @@ -390,6 +390,8 @@ python write_manifest() { | |||
| 390 | imageflags = d.getVarFlags('FITIMAGE_IMAGE_%s' % image, expand=['file', 'fstype', 'type', 'comp']) or {} | 390 | imageflags = d.getVarFlags('FITIMAGE_IMAGE_%s' % image, expand=['file', 'fstype', 'type', 'comp']) or {} |
| 391 | imgtype = imageflags.get('type', 'kernel') | 391 | imgtype = imageflags.get('type', 'kernel') |
| 392 | if imgtype == 'kernel': | 392 | if imgtype == 'kernel': |
| 393 | if d.getVar('KERNEL_IMAGETYPE') not in ('zImage', 'Image') and not imageflags.get('comp'): | ||
| 394 | bb.warn(f"KERNEL_IMAGETYPE is '{d.getVar('KERNEL_IMAGETYPE')}' but FITIMAGE_IMAGE_kernel[comp] is not set.") | ||
| 393 | default = "%s-%s%s" % (d.getVar('KERNEL_IMAGETYPE'), machine, d.getVar('KERNEL_IMAGE_BIN_EXT')) | 395 | default = "%s-%s%s" % (d.getVar('KERNEL_IMAGETYPE'), machine, d.getVar('KERNEL_IMAGE_BIN_EXT')) |
| 394 | imgsource = imageflags.get('file', default) | 396 | imgsource = imageflags.get('file', default) |
| 395 | imgcomp = imageflags.get('comp', 'none') | 397 | imgcomp = imageflags.get('comp', 'none') |
