mkimage.c (004d00914a1888a050ef2d30e52e8e3862983ccb) mkimage.c (8c84287a0f225e29b688bda848e49a555c68a442)
1/*
2 * (C) Copyright 2008 Semihalf
3 *
4 * (C) Copyright 2000-2009
5 * DENX Software Engineering
6 * Wolfgang Denk, wd@denx.de
7 *
8 * SPDX-License-Identifier: GPL-2.0+

--- 287 unchanged lines hidden (view full) ---

296 if (params.type == IH_TYPE_FLATDT) {
297 params.fit_image_type = type ? type : IH_TYPE_KERNEL;
298 /* For auto_its, datafile is always 'auto' */
299 if (!params.auto_its)
300 params.datafile = datafile;
301 else if (!params.datafile)
302 usage("Missing data file for auto-FIT (use -d)");
303 } else if (type != IH_TYPE_INVALID) {
1/*
2 * (C) Copyright 2008 Semihalf
3 *
4 * (C) Copyright 2000-2009
5 * DENX Software Engineering
6 * Wolfgang Denk, wd@denx.de
7 *
8 * SPDX-License-Identifier: GPL-2.0+

--- 287 unchanged lines hidden (view full) ---

296 if (params.type == IH_TYPE_FLATDT) {
297 params.fit_image_type = type ? type : IH_TYPE_KERNEL;
298 /* For auto_its, datafile is always 'auto' */
299 if (!params.auto_its)
300 params.datafile = datafile;
301 else if (!params.datafile)
302 usage("Missing data file for auto-FIT (use -d)");
303 } else if (type != IH_TYPE_INVALID) {
304 if (type == IH_TYPE_SCRIPT && !params.datafile)
305 usage("Missing data file for script (use -d)");
304 params.type = type;
305 }
306
307 if (!params.imagefile)
308 usage("Missing output filename");
309}
310
311int main(int argc, char **argv)

--- 405 unchanged lines hidden ---
306 params.type = type;
307 }
308
309 if (!params.imagefile)
310 usage("Missing output filename");
311}
312
313int main(int argc, char **argv)

--- 405 unchanged lines hidden ---