aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-02-12 10:37:11 +0100
committerWolfgang Denk <wd@denx.de>2011-04-12 22:58:33 +0200
commit976b38c0742dc1db13af03cae9ded4392e47182d (patch)
tree5c61700ed8b85997084784c3a66a0d7e19815a21 /tools
parent04c2dd827b5887561b182653e47545d19b934c46 (diff)
downloadu-boot-linaro-stable-976b38c0742dc1db13af03cae9ded4392e47182d.tar.gz
mkimage: add "-V" option to print version information
Signed-off-by: Wolfgang Denk <wd@denx.de>
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 f5859d776..60f726303 100644
--- a/tools/mkimage.c
+++ b/tools/mkimage.c
@@ -23,6 +23,7 @@
#include "mkimage.h"
#include <image.h>
+#include <version.h>
static void copy_file(int, const char *, int);
static void usage(void);
@@ -246,6 +247,9 @@ main (int argc, char **argv)
case 'v':
params.vflag++;
break;
+ case 'V':
+ printf("mkimage version %s\n", PLAIN_VERSION);
+ exit(EXIT_SUCCESS);
case 'x':
params.xflag++;
break;
@@ -590,6 +594,8 @@ usage ()
params.cmdname);
fprintf (stderr, " %s [-D dtc_options] -f fit-image.its fit-image\n",
params.cmdname);
+ fprintf (stderr, " %s -V ==> print version information and exit\n",
+ params.cmdname);
exit (EXIT_FAILURE);
}