mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
mkimage: Add -k option to specify key directory
Keys required for signing images will be in a specific directory. Add a -k option to specify that directory. Also update the mkimage man page with this information and a clearer list of available commands. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Marek Vasut <marex@denx.de> (v1)
This commit is contained in:
@@ -248,6 +248,11 @@ main (int argc, char **argv)
|
||||
params.datafile = *++argv;
|
||||
params.fflag = 1;
|
||||
goto NXTARG;
|
||||
case 'k':
|
||||
if (--argc <= 0)
|
||||
usage();
|
||||
params.keydir = *++argv;
|
||||
goto NXTARG;
|
||||
case 'n':
|
||||
if (--argc <= 0)
|
||||
usage ();
|
||||
@@ -623,8 +628,16 @@ usage ()
|
||||
" -d ==> use image data from 'datafile'\n"
|
||||
" -x ==> set XIP (execute in place)\n",
|
||||
params.cmdname);
|
||||
fprintf (stderr, " %s [-D dtc_options] -f fit-image.its fit-image\n",
|
||||
fprintf(stderr, " %s [-D dtc_options] -f fit-image.its fit-image\n",
|
||||
params.cmdname);
|
||||
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]\n"
|
||||
" -k => set directory containing private keys\n");
|
||||
#else
|
||||
fprintf(stderr, "Signing / verified boot not supported (CONFIG_FIT_SIGNATURE undefined)\n");
|
||||
#endif
|
||||
fprintf (stderr, " %s -V ==> print version information and exit\n",
|
||||
params.cmdname);
|
||||
|
||||
|
Reference in New Issue
Block a user