mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
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>
This commit is contained in:
@ -272,7 +272,7 @@ static void process_args(int argc, char **argv)
|
|||||||
* will always be IH_TYPE_FLATDT in this case).
|
* will always be IH_TYPE_FLATDT in this case).
|
||||||
*/
|
*/
|
||||||
if (params.type == IH_TYPE_FLATDT) {
|
if (params.type == IH_TYPE_FLATDT) {
|
||||||
params.fit_image_type = type;
|
params.fit_image_type = type ? type : IH_TYPE_KERNEL;
|
||||||
if (!params.auto_its)
|
if (!params.auto_its)
|
||||||
params.datafile = datafile;
|
params.datafile = datafile;
|
||||||
} else if (type != IH_TYPE_INVALID) {
|
} else if (type != IH_TYPE_INVALID) {
|
||||||
|
Reference in New Issue
Block a user