diff options
author | Alex Kiernan <alex.kiernan@gmail.com> | 2018-06-20 20:10:51 +0000 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-07-10 16:56:00 -0400 |
commit | 87925df2b3f8d308addc5c0fe5a22ae9712ca5ec (patch) | |
tree | ed865fbf644bf7f167c6227d19430e584f17156e /tools/fit_image.c | |
parent | 67a2616af18bbb38905b90ed1c6b66659671e1da (diff) |
mkimage: Refactor imagetool_get_source_date to take command name
So we can use imagetool_get_source_date() from callers who do not have
the image tool params struct, just pass in the command name for the error
message.
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Reviewed-by: Simon Glass <sjg@chromum.org>
Diffstat (limited to 'tools/fit_image.c')
-rw-r--r-- | tools/fit_image.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/fit_image.c b/tools/fit_image.c index e55a8943e76..6f09a661067 100644 --- a/tools/fit_image.c +++ b/tools/fit_image.c @@ -51,7 +51,8 @@ static int fit_add_file_data(struct image_tool_params *params, size_t size_inc, /* for first image creation, add a timestamp at offset 0 i.e., root */ if (params->datafile) { - time_t time = imagetool_get_source_date(params, sbuf.st_mtime); + time_t time = imagetool_get_source_date(params->cmdname, + sbuf.st_mtime); ret = fit_set_timestamp(ptr, 0, time); } |