mkimage: Allow updating the FIT timestamp
authorSimon Glass <sjg@chromium.org>
Fri, 10 Jul 2020 00:39:43 +0000 (18:39 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 25 Jul 2020 20:46:57 +0000 (14:46 -0600)
commit152b246298bd5f107f5e08ddddee40411aa74cb7
tree4b7059f6c53f85b2c0e03b985be845bddd8e1e17
parentb3295fd4e3d61a7ceabbad10a293db2dcd38b38b
mkimage: Allow updating the FIT timestamp

Normally the FIT timestamp is created the first time mkimage is run on a
FIT, when converting the source .its to the binary .fit file. This
corresponds to using the -f flag. But if the original input to mkimage is
a binary file (already compiled) then the timestamp is assumed to have
been set previously.

Add a -t flag to allow setting the timestamp in this case.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
doc/mkimage.1
tools/fit_image.c
tools/imagetool.h
tools/mkimage.c