aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-06-30 10:52:08 -0600
committerTom Rini <trini@konsulko.com>2016-07-14 18:22:26 -0400
commit3c23c0feacce0f73d7852409a0c634f275cbecfe (patch)
treef58ac9225497924144b1db6ab323c403b228fc33 /tools
parent20deaddd465aeab6f6939fb1b660622d763791a9 (diff)
downloadu-boot-3c23c0feacce0f73d7852409a0c634f275cbecfe.zip
u-boot-3c23c0feacce0f73d7852409a0c634f275cbecfe.tar.gz
u-boot-3c23c0feacce0f73d7852409a0c634f275cbecfe.tar.bz2
mkimage: Explain the auto-fit imagefile special case
There is a special case in the code when auto-fit is used. Add a comment to make it easier to understand why this is needed. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/mkimage.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/mkimage.c b/tools/mkimage.c
index 53fa8bb..66d29ab 100644
--- a/tools/mkimage.c
+++ b/tools/mkimage.c
@@ -273,6 +273,7 @@ static void process_args(int argc, char **argv)
*/
if (params.type == IH_TYPE_FLATDT) {
params.fit_image_type = type ? type : IH_TYPE_KERNEL;
+ /* For auto_its, datafile is always 'auto' */
if (!params.auto_its)
params.datafile = datafile;
} else if (type != IH_TYPE_INVALID) {