diff options
author | Alexandru Gagniuc <mr.nuke.me@gmail.com> | 2021-02-19 21:45:17 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-04-14 22:23:01 +0300 |
commit | 36bfcb62b3e7b846d0b693828df54a0d58e07511 (patch) | |
tree | 03d50859acde65af4076bd5565c71e3ae765a3c7 /tools/imagetool.h | |
parent | fb6532ec6c0c247dc204f65cb298d0865f7eaf3b (diff) | |
download | u-boot-36bfcb62b3e7b846d0b693828df54a0d58e07511.tar.xz |
mkimage: Add a 'keyfile' argument for image signing
It's not always desirable to use 'keydir' and some ad-hoc heuristics
to get the filename of the signing key. More often, just passing the
filename is the simpler, easier, and logical thing to do.
Since mkimage doesn't use long options, we're slowly running out of
letters. I've chosen '-G' because it was available.
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/imagetool.h')
-rw-r--r-- | tools/imagetool.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/imagetool.h b/tools/imagetool.h index 2801ea9e9f..e229a34ffc 100644 --- a/tools/imagetool.h +++ b/tools/imagetool.h @@ -67,6 +67,7 @@ struct image_tool_params { const char *outfile; /* Output filename */ const char *keydir; /* Directory holding private keys */ const char *keydest; /* Destination .dtb for public key */ + const char *keyfile; /* Filename of private or public key */ const char *comment; /* Comment to add to signature node */ int require_keys; /* 1 to mark signing keys as 'required' */ int file_size; /* Total size of output file */ |