Fix device_info for asr_baseline
Change-Id: I9128ab3abc824de40ebaa6e1a7755bb8a98512ab
diff --git a/mbtk/mbtk_utils_linux/device_info_generate.c b/mbtk/mbtk_utils_linux/device_info_generate.c
index 4d4ec37..f8764ed 100755
--- a/mbtk/mbtk_utils_linux/device_info_generate.c
+++ b/mbtk/mbtk_utils_linux/device_info_generate.c
@@ -31,7 +31,8 @@
.reboot_flag = MBTK_REBOOT_FLAG_NORMAL,
.revision_out = {0},
.revision_in = {0},
- .build_time = {0}
+ .build_time = {0},
+ .asr_baseline = {0}
};
static mbtk_device_info_fota_t item_fota = {
@@ -65,7 +66,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] -g [build_time] -h [net_pref] -i [net_support] -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] -h [net_pref] -i [net_support] -j [asr_baseline] -o [out_bin]\n");
}
static int update_and_write_header(int fd, mbtk_device_info_header_t *header)
@@ -185,7 +186,7 @@
{
int ch;
char out_bin[128] = {0};
- while((ch = getopt(argc, argv, "a:b:c:d:e:f:g:h:i:o:"))!= -1){
+ while((ch = getopt(argc, argv, "a:b:c:d:e:f:g:h:i:j:o:"))!= -1){
switch(ch)
{
case 'a':
@@ -275,6 +276,10 @@
if(strlen(optarg) > 0)
memcpy(item_basic.build_time, optarg, strlen(optarg));
break;
+ case 'j':
+ if(strlen(optarg) > 0)
+ memcpy(item_basic.asr_baseline, optarg, strlen(optarg));
+ break;
case 'o':
if(strlen(optarg) > 0)
memcpy(out_bin, optarg, strlen(optarg));