Skip to content
Snippets Groups Projects
Commit 1a99de2c authored by Peter Tyser's avatar Peter Tyser Committed by Wolfgang Denk
Browse files

tools/mkimage: Assume FDT image type for FIT images


When building a Flattened Image Tree (FIT) the image type needs to be
"flat_dt".  Commit 89a4d6b1 introduced a
regression which caused the user to need to specify the "-T flat_dt"
parameter on the command line when building a FIT image.  The "-T
flat_dt" parameter should not be needed and is at odds with the current
FIT image documentation.

Signed-off-by: default avatarPeter Tyser <ptyser@xes-inc.com>
parent 270737ac
No related branches found
No related tags found
No related merge requests found
...@@ -232,6 +232,12 @@ main (int argc, char **argv) ...@@ -232,6 +232,12 @@ main (int argc, char **argv)
params.type = IH_TYPE_FLATDT; params.type = IH_TYPE_FLATDT;
params.datafile = *++argv; params.datafile = *++argv;
params.fflag = 1; params.fflag = 1;
/*
* The flattened image tree (FIT) format
* requires a flattened device tree image type
*/
params.type = IH_TYPE_FLATDT;
goto NXTARG; goto NXTARG;
case 'n': case 'n':
if (--argc <= 0) if (--argc <= 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment