summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorPeter Tyser <ptyser@xes-inc.com>2009-11-24 16:42:08 -0600
committerWolfgang Denk <wd@denx.de>2009-12-05 01:12:39 +0100
commit1a99de2cb4d08eb3bf9fb3f60a9d533150de8c0e (patch)
tree8fa132407c5fa42ede16dcff7a554863b7e83eb7 /tools
parent270737acca21f3939f814de5dcf350a1c3d80d83 (diff)
downloadbootable_bootloader_goldelico_gta04-1a99de2cb4d08eb3bf9fb3f60a9d533150de8c0e.zip
bootable_bootloader_goldelico_gta04-1a99de2cb4d08eb3bf9fb3f60a9d533150de8c0e.tar.gz
bootable_bootloader_goldelico_gta04-1a99de2cb4d08eb3bf9fb3f60a9d533150de8c0e.tar.bz2
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 89a4d6b12fd6394898b8a454cbabeaf1cd59bae5 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: Peter Tyser <ptyser@xes-inc.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/mkimage.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/mkimage.c b/tools/mkimage.c
index 8a20594..2bf9a5b 100644
--- a/tools/mkimage.c
+++ b/tools/mkimage.c
@@ -232,6 +232,12 @@ main (int argc, char **argv)
params.type = IH_TYPE_FLATDT;
params.datafile = *++argv;
params.fflag = 1;
+
+ /*
+ * The flattened image tree (FIT) format
+ * requires a flattened device tree image type
+ */
+ params.type = IH_TYPE_FLATDT;
goto NXTARG;
case 'n':
if (--argc <= 0)