summaryrefslogtreecommitdiff
path: root/tools/imagetool.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-11-12 22:28:13 +0300
committerSimon Glass <sjg@chromium.org>2022-01-26 18:50:44 +0300
commit2d2384bbaff0ab84c868b553c74048a5f6acc9e3 (patch)
tree1edf6dbd436d0459c85a769626387dbf1c3ff93c /tools/imagetool.h
parent9737c2d1ebe0fe61e1f406f7158b97552b6acad2 (diff)
downloadu-boot-2d2384bbaff0ab84c868b553c74048a5f6acc9e3.tar.xz
tools: mkimage: Show where signatures/keys are written
At present mkimage displays the node information but it is not clear what signing action was taken. Add a message that shows it. For now it only supports showing a single signing action, since that is the common case. Sample: Signature written to 'sha1-basic/test.fit', node '/configurations/conf-1/signature' Public key written to 'sha1-basic/sandbox-u-boot.dtb', node '/signature/key-dev' Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/imagetool.h')
-rw-r--r--tools/imagetool.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/imagetool.h b/tools/imagetool.h
index b7ac3a23d0..413e97cbeb 100644
--- a/tools/imagetool.h
+++ b/tools/imagetool.h
@@ -21,6 +21,8 @@
#include <unistd.h>
#include <u-boot/sha1.h>
+#include <image.h>
+
#include "fdt_host.h"
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
@@ -84,6 +86,7 @@ struct image_tool_params {
int bl_len; /* Block length in byte for external data */
const char *engine_id; /* Engine to use for signing */
bool reset_timestamp; /* Reset the timestamp on an existing image */
+ struct image_summary summary; /* results of signing process */
};
/*