cmd: fit_image: Add default property for FIT format scripts
authorAlex Kiernan <alex.kiernan@gmail.com>
Fri, 22 Jun 2018 14:58:02 +0000 (14:58 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 19 Jul 2018 20:17:58 +0000 (16:17 -0400)
commit201d9cd2b36d8f2f416537d0df63024ab0f53eec
treee2b565e24171e69ff823ac28a07cd9802ba381fe
parent8d545790729434f4ba718dd9a6a1b55dcf7e94c4
cmd: fit_image: Add default property for FIT format scripts

When sourcing a FIT format script, if we've not been told the unit name
to use, look for a default property at the root of /images to work out
which unit we should use.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/source.c