diff options
author | Simon Glass <sjg@chromium.org> | 2016-06-30 16:52:07 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-07-14 22:22:26 (GMT) |
commit | 20deaddd465aeab6f6939fb1b660622d763791a9 (patch) | |
tree | 1e23ee9a1e72af69225edcb25a692e421450bdda /tools | |
parent | 9a387128e341debb6d7e32df8e0f72669a3a079b (diff) | |
download | u-boot-20deaddd465aeab6f6939fb1b660622d763791a9.tar.xz |
mkimage: Honour the default image type with auto-fit
The default image type is supposed to be IH_TYPE_KERNEL, as set in the
'params' variable. Honour this with auto-fit also.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/mkimage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mkimage.c b/tools/mkimage.c index ff3024a..53fa8bb 100644 --- a/tools/mkimage.c +++ b/tools/mkimage.c @@ -272,7 +272,7 @@ static void process_args(int argc, char **argv) * will always be IH_TYPE_FLATDT in this case). */ if (params.type == IH_TYPE_FLATDT) { - params.fit_image_type = type; + params.fit_image_type = type ? type : IH_TYPE_KERNEL; if (!params.auto_its) params.datafile = datafile; } else if (type != IH_TYPE_INVALID) { |