Add device_info_generate build_time

Change-Id: I61bc3870067ddba218e6f9566bb01d66977996d2
diff --git a/mbtk/mbtk_utils_linux/device_info_generate.c b/mbtk/mbtk_utils_linux/device_info_generate.c
index b44ea1d..fda756f 100755
--- a/mbtk/mbtk_utils_linux/device_info_generate.c
+++ b/mbtk/mbtk_utils_linux/device_info_generate.c
@@ -30,7 +30,8 @@
     .ab_support = 1,            // Default for ab system.
     .reboot_flag = MBTK_REBOOT_FLAG_NORMAL,
     .revision_out = {0},
-    .revision_in = {0}
+    .revision_in = {0},
+    .build_time = {0}
 };
 
 static mbtk_device_info_fota_t item_fota = {
@@ -58,7 +59,7 @@
 
 static void help()
 {
-    printf("device_info_generate -a [a/ab] -b [revision_out] -c [revision_in] -d [project] -e [project_cust] -f [cn/eu/all] -o [out_bin]\n");
+    printf("device_info_generate -a [a/ab] -b [revision_out] -c [revision_in] -d [project] -e [project_cust] -f [cn/eu/all] -g [build_time] -o [out_bin]\n");
 }
 
 static int update_and_write_header(int fd, mbtk_device_info_header_t *header)
@@ -125,7 +126,7 @@
 {
     int ch;
     char out_bin[128] = {0};
-    while((ch = getopt(argc, argv, "a:b:c:d:e:f:o:"))!= -1){
+    while((ch = getopt(argc, argv, "a:b:c:d:e:f:g:o:"))!= -1){
         switch(ch)
         {
             case 'a':
@@ -186,6 +187,10 @@
                     printf("Set to default band.\n");
                 }
                 break;
+            case 'g':
+                if(strlen(optarg) > 0)
+                    memcpy(item_basic.build_time, optarg, strlen(optarg));
+                break;
             case 'o':
                 if(strlen(optarg) > 0)
                     memcpy(out_bin, optarg, strlen(optarg));