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 authored and Khem Raj committed 2025-04-16 08:04:42 -07:00
1 parent 62eba951c7
commit 69dbad5529
1 file changed
+2
+2
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