mkimage: do not fail if there is no print_header function
authorGuillaume GARDET <guillaume.gardet@free.fr>
Fri, 30 Mar 2018 08:28:19 +0000 (10:28 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 10 Apr 2018 15:52:16 +0000 (11:52 -0400)
commit004d00914a1888a050ef2d30e52e8e3862983ccb
tree9ab1725b59980e5ea2480fa4f960951737609525
parentd409c962169bd293e39386d0ddfa64d5222a3be4
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>
tools/mkimage.c