diff options
| author | Enrico Jörns <ejo@pengutronix.de> | 2024-11-15 13:24:15 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-04-16 08:04:42 -0700 |
| commit | 69dbad5529ae59c3a3855eb7699f3f3c5b6449ab (patch) | |
| tree | 70602874f4e16fff5fe00b309aa0b7b05586d8f5 | |
| parent | 62eba951c7f4dee5427e7c1723d4641e85b62ea7 (diff) | |
| download | meta-openembedded-69dbad5529ae59c3a3855eb7699f3f3c5b6449ab.tar.gz | |
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>
| -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 c5c799e8a5..54bb704ab5 100644 --- a/meta-oe/classes/fitimage.bbclass +++ b/meta-oe/classes/fitimage.bbclass | |||
| @@ -455,6 +455,8 @@ python write_manifest() { | |||
| 455 | imgpath = d.getVar("DEPLOY_DIR_IMAGE") | 455 | imgpath = d.getVar("DEPLOY_DIR_IMAGE") |
| 456 | bootscriptid = imgsource | 456 | bootscriptid = imgsource |
| 457 | fitimage_emit_section_bootscript(d, fd, imgpath, imgsource) | 457 | fitimage_emit_section_bootscript(d, fd, imgpath, imgsource) |
| 458 | else: | ||
| 459 | bb.fatal(f"Unsupported image type: '{imgtype}'") | ||
| 458 | fitimage_emit_section_end(d, fd) | 460 | fitimage_emit_section_end(d, fd) |
| 459 | # | 461 | # |
| 460 | # Step 5: Prepare a configurations section | 462 | # Step 5: Prepare a configurations section |
