fitimage.bbclass: fail early for unsupported image types

A given image type should be valid. Thus fail early here instead of
randomly failing later during mkimage call.

Signed-off-by: Enrico Jörns <ejo@pengutronix.de>
This commit is contained in:
Enrico Jörns
2024-11-15 13:24:15 +01:00
committed by Khem Raj
parent 62eba951c7
commit 69dbad5529

View File

@@ -455,6 +455,8 @@ python write_manifest() {
imgpath = d.getVar("DEPLOY_DIR_IMAGE")
bootscriptid = imgsource
fitimage_emit_section_bootscript(d, fd, imgpath, imgsource)
else:
bb.fatal(f"Unsupported image type: '{imgtype}'")
fitimage_emit_section_end(d, fd)
#
# Step 5: Prepare a configurations section