mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-29 14:41:26 +01:00
mkimage: do not fail if there is no print_header function
Commit 253c60a breaks the exit value of 'mkimage -T rkimage' and print the following error: mkimage: Can't print header for Rockchip Boot Image support: Success It is not a failure to not print headers, so just display the warning message, and finish the function properly. Signed-off-by: Guillaume GARDET <guillaume.gardet@free.fr> Cc: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com> Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
This commit is contained in:
parent
d409c96216
commit
004d00914a
@ -588,9 +588,8 @@ int main(int argc, char **argv)
|
|||||||
if (tparams->print_header)
|
if (tparams->print_header)
|
||||||
tparams->print_header (ptr);
|
tparams->print_header (ptr);
|
||||||
else {
|
else {
|
||||||
fprintf (stderr, "%s: Can't print header for %s: %s\n",
|
fprintf (stderr, "%s: Can't print header for %s\n",
|
||||||
params.cmdname, tparams->name, strerror(errno));
|
params.cmdname, tparams->name);
|
||||||
exit (EXIT_FAILURE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
(void) munmap((void *)ptr, sbuf.st_size);
|
(void) munmap((void *)ptr, sbuf.st_size);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user