mkimage: Require a data file when auto-fit is used
authorSimon Glass <sjg@chromium.org>
Thu, 30 Jun 2016 16:52:09 +0000 (10:52 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 14 Jul 2016 22:22:27 +0000 (18:22 -0400)
commite324a92531e1dc092949b8a00745afd2328e178e
tree8716a2910abfa2355c253f913998182013300dbe
parent3c23c0feacce0f73d7852409a0c634f275cbecfe
mkimage: Require a data file when auto-fit is used

When auto-fit is used, it is not valid to create a FIT without an image
file. Add a check for this to avoid a very confusing error message later
("Can't open (null): Bad address").

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
tools/mkimage.c