summaryrefslogtreecommitdiff
path: root/tools/image-host.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-12-21 16:08:23 -0700
committerSimon Glass <sjg@chromium.org>2023-01-18 11:49:13 -0700
commit90cfae2ade358018bd46f84dba435eabccd4f8f6 (patch)
treef05f9dde264ab7c8b5a2bae17586bc7d1382e357 /tools/image-host.c
parentbebc1410ca79f5b8b33ca86b18bd55fd45d13185 (diff)
mkimage: Add a few more messages for FIT failures
Add messages to make it clearer which part of the FIT creation is failing. This can happen when an invalid 'algo' property is provided in the .its file. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/image-host.c')
-rw-r--r--tools/image-host.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/image-host.c b/tools/image-host.c
index 4e0512be634..4a24dee8153 100644
--- a/tools/image-host.c
+++ b/tools/image-host.c
@@ -1292,8 +1292,12 @@ int fit_add_verification_data(const char *keydir, const char *keyfile,
ret = fit_image_add_verification_data(keydir, keyfile, keydest,
fit, noffset, comment, require_keys, engine_id,
cmdname, algo_name);
- if (ret)
+ if (ret) {
+ printf("Can't add verification data for node '%s' (%s)\n",
+ fdt_get_name(fit, noffset, NULL),
+ fdt_strerror(ret));
return ret;
+ }
}
/* If there are no keys, we can't sign configurations */