diff options
author | Alex Kiernan <alex.kiernan@gmail.com> | 2018-06-20 20:10:52 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-07-10 16:56:00 -0400 |
commit | 795f452eeff157b994a783d78d00e0108463b993 (patch) | |
tree | 3b3cc8c2cba2732044f87b012b5fc9266a3392be /include/image.h | |
parent | 87925df2b3f8d308addc5c0fe5a22ae9712ca5ec (diff) | |
download | u-boot-795f452eeff157b994a783d78d00e0108463b993.tar.gz |
mkimage: fit_image: Add support for SOURCE_DATE_EPOCH in signatures
When generating timestamps in signatures, use imagetool_get_source_date()
so we can be overridden by SOURCE_DATE_EPOCH to generate reproducible
images.
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Reviewed-by: Simon Glass <sjg@chromum.org>
Diffstat (limited to 'include/image.h')
-rw-r--r-- | include/image.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/image.h b/include/image.h index 420b8ff576..3bb7d29ef2 100644 --- a/include/image.h +++ b/include/image.h @@ -1009,6 +1009,7 @@ int fit_set_timestamp(void *fit, int noffset, time_t timestamp); * @comment: Comment to add to signature nodes * @require_keys: Mark all keys as 'required' * @engine_id: Engine to use for signing + * @cmdname: Command name used when reporting errors * * Adds hash values for all component images in the FIT blob. * Hashes are calculated for all component images which have hash subnodes @@ -1022,7 +1023,7 @@ int fit_set_timestamp(void *fit, int noffset, time_t timestamp); */ int fit_add_verification_data(const char *keydir, void *keydest, void *fit, const char *comment, int require_keys, - const char *engine_id); + const char *engine_id, const char *cmdname); int fit_image_verify_with_data(const void *fit, int image_noffset, const void *data, size_t size); |