mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 04:17:25 +00:00
fitimage.bbclass: fix error handling for missing recipe
The 'image' name should be printed rather than the (unset) 'recipe'. Also use f-strings for better readability. Since a missing recipe configuration is fatal to a proper generation, abort the parsing with bb.fatal instead of continuing with a broken configuration. Signed-off-by: Enrico Jörns <ejo@pengutronix.de>
This commit is contained in:
@@ -106,7 +106,7 @@ python __anonymous() {
|
|||||||
recipe = d.getVar('FITIMAGE_IMAGE_%s' % image)
|
recipe = d.getVar('FITIMAGE_IMAGE_%s' % image)
|
||||||
|
|
||||||
if not recipe:
|
if not recipe:
|
||||||
bb.error("No recipe set for image '%s'. Specify via 'FITIMAGE_IMAGE_%s = \"<recipe-name>\"'" % (recipe, image))
|
bb.fatal(f"No recipe set for image '{image}'. Specify via 'FITIMAGE_IMAGE_{image} = \"<recipe-name>\"'")
|
||||||
return
|
return
|
||||||
|
|
||||||
d.appendVarFlag('do_unpack', 'vardeps', ' FITIMAGE_IMAGE_%s' % image)
|
d.appendVarFlag('do_unpack', 'vardeps', ' FITIMAGE_IMAGE_%s' % image)
|
||||||
|
|||||||
Reference in New Issue
Block a user