diff options
author | Jan Kiszka | 2022-01-14 10:21:19 +0100 |
---|---|---|
committer | Tom Rini | 2022-01-24 10:35:10 -0500 |
commit | 5902a397d029008a98e8e83b7627635ed3a2cd06 (patch) | |
tree | a9a7f6665bcf9d1166e02ab5aec3859b4d4d2f30 /tools/fit_image.c | |
parent | 6ae24346891d7e9d22707949c61f09346b28d761 (diff) |
mkimage: Allow to specify the signature algorithm on the command line
This permits to prepare FIT image description that do not hard-code the
final choice of the signature algorithm, possibly requiring the user to
patch the sources.
When -o <algo> is specified, this information is used in favor of the
'algo' property in the signature node. Furthermore, that property is set
accordingly when writing the image.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
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 62e1796ce5b..8df95c40d20 100644 --- a/tools/fit_image.c +++ b/tools/fit_image.c @@ -73,7 +73,8 @@ static int fit_add_file_data(struct image_tool_params *params, size_t size_inc, params->comment, params->require_keys, params->engine_id, - params->cmdname); + params->cmdname, + params->algo_name); } if (dest_blob) { |