hv: update versioning scheme

* introduce EXTRA_VERSION to replace RC_VERSION
* add daily tag into the version information
* unify the hypervisor and device model version

Signed-off-by: Jack Ren <jack.ren@intel.com>
This commit is contained in:
Jack Ren
2018-07-09 15:50:44 +08:00
parent dc135bd501
commit d924482ca7
5 changed files with 21 additions and 24 deletions

View File

@@ -164,14 +164,9 @@ usage(int code)
static void
print_version(void)
{
if (DM_RC_VERSION)
fprintf(stderr, "DM version is: %d.%d-%d-%s, build by %s@%s\n",
DM_MAJOR_VERSION, DM_MINOR_VERSION, DM_RC_VERSION,
DM_BUILD_VERSION, DM_BUILD_USER, DM_BUILD_TIME);
else
fprintf(stderr, "DM version is: %d.%d-%s, build by %s@%s\n",
DM_MAJOR_VERSION, DM_MINOR_VERSION, DM_BUILD_VERSION,
DM_BUILD_USER, DM_BUILD_TIME);
fprintf(stderr, "DM version is: %s-%s (daily tag:%s), build by %s@%s\n",
DM_FULL_VERSION,
DM_BUILD_VERSION, DM_DAILY_TAG, DM_BUILD_USER, DM_BUILD_TIME);
exit(0);
}