sysupgrade: Add sysupgrade support for signed images.

Change-Id: I2b4a5aeaa311e08ec59f70c3a9e3a88e11dc10f1
Signed-off-by: Sachin Sundar <ssundar@codeaurora.org>
diff --git a/tools/dumpimage.c b/tools/dumpimage.c
index 75a5d47..d2a71cd 100644
--- a/tools/dumpimage.c
+++ b/tools/dumpimage.c
@@ -9,6 +9,7 @@
 #include "dumpimage.h"
 #include <image.h>
 #include <version.h>
+#include "sysupgrade.h"
 
 static void usage(void);
 
@@ -66,7 +67,7 @@
 
 	params.cmdname = *argv;
 
-	while ((opt = getopt(argc, argv, "li:o:T:p:V")) != -1) {
+	while ((opt = getopt(argc, argv, "c:li:o:T:p:V")) != -1) {
 		switch (opt) {
 		case 'l':
 			params.lflag = 1;
@@ -96,6 +97,8 @@
 		case 'V':
 			printf("dumpimage version %s\n", PLAIN_VERSION);
 			exit(EXIT_SUCCESS);
+		case 'c':
+			return do_board_upgrade_check(optarg);
 		default:
 			usage();
 			break;
@@ -206,6 +209,10 @@
 	fprintf(stderr,
 		"       %s -V ==> print version information and exit\n",
 		params.cmdname);
+	fprintf(stderr,
+		"       %s -c image\n"
+		"          -c ==> do board upgrade check\n",
+		params.cmdname);
 
 	exit(EXIT_FAILURE);
 }