summaryrefslogtreecommitdiff
path: root/tools/fit_common.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-11-12 12:28:13 -0700
committerSimon Glass <sjg@chromium.org>2022-01-26 08:50:44 -0700
commit2d2384bbaff0ab84c868b553c74048a5f6acc9e3 (patch)
tree1edf6dbd436d0459c85a769626387dbf1c3ff93c /tools/fit_common.h
parent9737c2d1ebe0fe61e1f406f7158b97552b6acad2 (diff)
downloadu-boot-2d2384bbaff0ab84c868b553c74048a5f6acc9e3.tar.gz
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/fit_common.h')
-rw-r--r--tools/fit_common.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/fit_common.h b/tools/fit_common.h
index c600dc2ba4..920a16acfd 100644
--- a/tools/fit_common.h
+++ b/tools/fit_common.h
@@ -52,4 +52,14 @@ int mmap_fdt(const char *cmdname, const char *fname, size_t size_inc,
*/
int copyfile(const char *src, const char *dst);
+/**
+ * summary_show() - Show summary information about the signing process
+ *
+ * @summary: Summary info to show
+ * @imagefile: Filename of the output image
+ * @keydest: Filename where the key information is written (NULL if none)
+ */
+void summary_show(struct image_summary *summary, const char *imagefile,
+ const char *keydest);
+
#endif /* _FIT_COMMON_H_ */