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/imagetool.h | |
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/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 3546f7a6711..b7ac3a23d0f 100644 --- a/tools/imagetool.h +++ b/tools/imagetool.h @@ -69,6 +69,7 @@ struct image_tool_params { 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 */ + const char *algo_name; /* Algorithm name to use hashing/signing */ int require_keys; /* 1 to mark signing keys as 'required' */ int file_size; /* Total size of output file */ int orig_file_size; /* Original size for file before padding */ |