From 90cfae2ade358018bd46f84dba435eabccd4f8f6 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 21 Dec 2022 16:08:23 -0700 Subject: 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 --- tools/image-host.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools/image-host.c') 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 */ -- cgit v1.2.3