From: Simon Glass Date: Thu, 30 Jun 2016 16:52:08 +0000 (-0600) Subject: mkimage: Explain the auto-fit imagefile special case X-Git-Tag: KARO-TXSD-2017-03-15~600 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3c23c0feacce0f73d7852409a0c634f275cbecfe;p=karo-tx-uboot.git 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 Acked-by: Joe Hershberger --- diff --git a/tools/mkimage.c b/tools/mkimage.c index 53fa8bb3a8..66d29abbb0 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) {