mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
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>
This commit is contained in:
@@ -100,7 +100,7 @@ static void image_set_header(void *ptr, struct stat *sbuf, int ifd,
|
||||
sizeof(image_header_t)),
|
||||
sbuf->st_size - sizeof(image_header_t));
|
||||
|
||||
time = imagetool_get_source_date(params, sbuf->st_mtime);
|
||||
time = imagetool_get_source_date(params->cmdname, sbuf->st_mtime);
|
||||
ep = params->ep;
|
||||
addr = params->addr;
|
||||
|
||||
|
Reference in New Issue
Block a user