summaryrefslogtreecommitdiffstats
path: root/tools/fit_image.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-06-13 15:10:06 -0700
committerTom Rini <trini@ti.com>2013-06-26 10:18:56 -0400
commit4f6104270146c76fcaf46e951f84cdc1612a04b7 (patch)
tree23f9a472a578c01b36ffd74b1c31b816e4475cf8 /tools/fit_image.c
parent95d77b4479f9d07aea114fd4253cd665bb48ea10 (diff)
downloadtalos-obmc-uboot-4f6104270146c76fcaf46e951f84cdc1612a04b7.tar.gz
talos-obmc-uboot-4f6104270146c76fcaf46e951f84cdc1612a04b7.zip
mkimage: Add -c option to specify a comment for key signing
When signing an image, it is useful to add some details about which tool or person is authorising the signing. Add a comment field which can take care of miscellaneous requirements. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'tools/fit_image.c')
-rw-r--r--tools/fit_image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/fit_image.c b/tools/fit_image.c
index 645e93c346..d48f571b0f 100644
--- a/tools/fit_image.c
+++ b/tools/fit_image.c
@@ -153,9 +153,9 @@ static int fit_handle_file (struct mkimage_params *params)
/* set hashes for images in the blob */
if (fit_add_verification_data(params->keydir, dest_blob, ptr,
- NULL, 0)) {
+ params->comment, 0)) {
fprintf (stderr, "%s Can't add hashes to FIT blob",
- params->cmdname);
+ params->cmdname);
goto err_add_hashes;
}
OpenPOWER on IntegriCloud