public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] mkimage: add "-V" option to print version information
@ 2011-02-11  8:56 Wolfgang Denk
  2011-02-11 12:22 ` [U-Boot] [PATCH v2] " Wolfgang Denk
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Wolfgang Denk @ 2011-02-11  8:56 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Wolfgang Denk <wd@denx.de>
---
 tools/mkimage.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/tools/mkimage.c b/tools/mkimage.c
index f5859d7..788484d 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,10 @@ main (int argc, char **argv)
 			case 'v':
 				params.vflag++;
 				break;
+			case 'V':
+				printf("mkimage version %s\n",
+					U_BOOT_VERSION + 7);
+				exit(EXIT_SUCCESS);
 			case 'x':
 				params.xflag++;
 				break;
@@ -590,6 +595,7 @@ 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");
 
 	exit (EXIT_FAILURE);
 }
-- 
1.7.4

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2011-04-12 20:37 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-11  8:56 [U-Boot] [PATCH] mkimage: add "-V" option to print version information Wolfgang Denk
2011-02-11 12:22 ` [U-Boot] [PATCH v2] " Wolfgang Denk
2011-02-11 21:55   ` Albert ARIBAUD
2011-02-11 22:35     ` Wolfgang Denk
2011-02-11 21:52 ` [U-Boot] [PATCH] " Albert ARIBAUD
2011-02-11 22:41 ` [U-Boot] [PATCH v3] " Wolfgang Denk
2011-02-11 23:11   ` Kim Phillips
2011-02-12  6:47     ` Albert ARIBAUD
2011-02-12  9:29       ` Wolfgang Denk
2011-02-12 22:04       ` Kim Phillips
2011-02-12  9:37     ` Wolfgang Denk
2011-02-12 22:17       ` Kim Phillips
2011-02-12 23:31         ` Wolfgang Denk
2011-02-12  9:37 ` [U-Boot] [PATCH v4] " Wolfgang Denk
2011-02-12 23:13   ` Kim Phillips
2011-02-12 23:35     ` Wolfgang Denk
2011-02-13  0:08       ` Kim Phillips
2011-04-12 20:37   ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox