mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
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>
This commit is contained in:
@@ -183,6 +183,11 @@ main (int argc, char **argv)
|
||||
genimg_get_arch_id (*++argv)) < 0)
|
||||
usage ();
|
||||
goto NXTARG;
|
||||
case 'c':
|
||||
if (--argc <= 0)
|
||||
usage();
|
||||
params.comment = *++argv;
|
||||
goto NXTARG;
|
||||
case 'C':
|
||||
if ((--argc <= 0) ||
|
||||
(params.comp =
|
||||
@@ -640,9 +645,10 @@ usage ()
|
||||
fprintf(stderr, " -D => set options for device tree compiler\n"
|
||||
" -f => input filename for FIT source\n");
|
||||
#ifdef CONFIG_FIT_SIGNATURE
|
||||
fprintf(stderr, "Signing / verified boot options: [-k keydir] [-K dtb]\n"
|
||||
fprintf(stderr, "Signing / verified boot options: [-k keydir] [-K dtb] [ -c <comment>]\n"
|
||||
" -k => set directory containing private keys\n"
|
||||
" -K => write public keys to this .dtb file\n"
|
||||
" -c => add comment in signature node\n"
|
||||
" -F => re-sign existing FIT image\n");
|
||||
#else
|
||||
fprintf(stderr, "Signing / verified boot not supported (CONFIG_FIT_SIGNATURE undefined)\n");
|
||||
|
Reference in New Issue
Block a user