]> git.sur5r.net Git - u-boot/commitdiff
mkimage: Explain the auto-fit imagefile special case
authorSimon Glass <sjg@chromium.org>
Thu, 30 Jun 2016 16:52:08 +0000 (10:52 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 14 Jul 2016 22:22:26 +0000 (18:22 -0400)
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>
tools/mkimage.c

index 53fa8bb3a8f048a6f9516780218ac18b00d57a40..66d29abbb0eada7e06e13baa643b9bd38c093ed0 100644 (file)
@@ -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) {