summaryrefslogtreecommitdiff
path: root/src/driver
diff options
context:
space:
mode:
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/slbt_driver_ctx.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 726bb12..29aff8b 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -243,6 +243,10 @@ static int slbt_split_argv(
*targv++ = argv[i++];
*targv++ = argv[i];
+ } else if (!(strcmp("version-number",&argv[i][1]))) {
+ *targv++ = argv[i++];
+ *targv++ = argv[i];
+
} else {
for (option=options; option->long_name; option++)
if (!(strcmp(option->long_name,&argv[i][1])))
@@ -432,6 +436,14 @@ static int slbt_init_version_info(
int revision;
int age;
+ if (verinfo->vernumber) {
+ sscanf(verinfo->vernumber,"%d:%d:%d",
+ &verinfo->major,
+ &verinfo->minor,
+ &verinfo->revision);
+ return 0;
+ }
+
sscanf(verinfo->verinfo,"%d:%d:%d",
&current,&revision,&age);
@@ -691,6 +703,10 @@ int slbt_get_driver_ctx(
cctx.verinfo.verinfo = entry->arg;
break;
+ case TAG_VERSION_NUMBER:
+ cctx.verinfo.vernumber = entry->arg;
+ break;
+
case TAG_TARGET:
cctx.target = entry->arg;
break;