diff options
author | Philippe Reynes | 2022-03-28 22:57:02 +0200 |
---|---|---|
committer | Tom Rini | 2022-03-31 14:12:01 -0400 |
commit | 6e052d1cbafbedbfba73070da483111f2ae68e5a (patch) | |
tree | 00a472ea1ce0019a08f16668b039468dbde90ac1 /tools/fit_image.c | |
parent | 2404a01544e5b4a70c2f5e07f0c915743995ffea (diff) |
mkimage: add public key for image pre-load stage
This commit enhances mkimage to update the node
/image/pre-load/sig with the public key.
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
Diffstat (limited to 'tools/fit_image.c')
-rw-r--r-- | tools/fit_image.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/fit_image.c b/tools/fit_image.c index 15f7c82d619..1884a2eb0b9 100644 --- a/tools/fit_image.c +++ b/tools/fit_image.c @@ -59,6 +59,9 @@ static int fit_add_file_data(struct image_tool_params *params, size_t size_inc, ret = fit_set_timestamp(ptr, 0, time); } + if (!ret) + ret = fit_pre_load_data(params->keydir, dest_blob, ptr); + if (!ret) { ret = fit_cipher_data(params->keydir, dest_blob, ptr, params->comment, |