diff options
author | Alexandru Gagniuc | 2021-02-19 12:45:17 -0600 |
---|---|---|
committer | Tom Rini | 2021-04-14 15:23:01 -0400 |
commit | 36bfcb62b3e7b846d0b693828df54a0d58e07511 (patch) | |
tree | 03d50859acde65af4076bd5565c71e3ae765a3c7 /tools/fit_image.c | |
parent | fb6532ec6c0c247dc204f65cb298d0865f7eaf3b (diff) |
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/fit_image.c')
-rw-r--r-- | tools/fit_image.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/fit_image.c b/tools/fit_image.c index d440d143c67..ae30f807834 100644 --- a/tools/fit_image.c +++ b/tools/fit_image.c @@ -68,7 +68,8 @@ static int fit_add_file_data(struct image_tool_params *params, size_t size_inc, } if (!ret) { - ret = fit_add_verification_data(params->keydir, dest_blob, ptr, + ret = fit_add_verification_data(params->keydir, + params->keyfile, dest_blob, ptr, params->comment, params->require_keys, params->engine_id, |