mkimage: Set the timestamp with -f auto

When creating a FIT, ensure that a timestamp is added, even if there is
no OS image present.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-08-02 06:48:28 +12:00
parent 037a9c0b7f
commit 812c9f2a20

View File

@@ -387,6 +387,8 @@ static int process_args(struct imgtool *itl, int argc, char **argv)
return usage(itl,
"Missing algorithm for auto-FIT with signed images (use -g)");
}
if (itl->auto_fit)
itl->reset_timestamp = 1;
/*
* For auto-generated FIT images we need to know the image type to put