diff options
author | Simon Glass <sjg@chromium.org> | 2016-06-30 10:52:07 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-07-14 18:22:26 -0400 |
commit | 20deaddd465aeab6f6939fb1b660622d763791a9 (patch) | |
tree | 1e23ee9a1e72af69225edcb25a692e421450bdda /tools/mkimage.c | |
parent | 9a387128e341debb6d7e32df8e0f72669a3a079b (diff) |
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/mkimage.c')
-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 ff3024a8f1..53fa8bb3a8 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) { |