aboutsummaryrefslogtreecommitdiff
path: root/tools/fit_image.c
diff options
context:
space:
mode:
authorPhilippe Reynes2022-03-28 22:57:02 +0200
committerTom Rini2022-03-31 14:12:01 -0400
commit6e052d1cbafbedbfba73070da483111f2ae68e5a (patch)
tree00a472ea1ce0019a08f16668b039468dbde90ac1 /tools/fit_image.c
parent2404a01544e5b4a70c2f5e07f0c915743995ffea (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.c3
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,