updated version query to also include git version info. Delineate

between development mode (git clone) and release version where the git
sha is stored in top-level VERSION.sha file. Closes #20.

Signed-off-by: Karl W. Schulz <karl.schulz@amd.com>
This commit is contained in:
Karl W. Schulz
2022-11-11 10:29:40 -06:00
committed by Karl W. Schulz
parent 0d314be72d
commit 4fbe1891f3
5 changed files with 83 additions and 28 deletions
+8 -4
View File
@@ -43,10 +43,11 @@ from common import (
OMNIPERF_HOME,
PROG,
SOC_LIST,
VER,
DISTRO_MAP,
) # Import global variables
from common import getVersion
################################################
# Helper Functions
################################################
@@ -305,7 +306,7 @@ def run_prof(fname, workload_dir, perfmon_dir, cmd, verbose):
)
def omniperf_profile(args):
def omniperf_profile(args,VER):
# Verify valid target
if args.target not in SOC_LIST:
parse.print_help(sys.stderr)
@@ -420,6 +421,9 @@ def main():
parse(my_parser)
args = my_parser.parse_args()
vData = getVersion()
VER = vData['version']
if args.mode == None:
throw_parse_error(
my_parser,
@@ -517,8 +521,8 @@ def main():
# Profile only
else:
print("\n--------\nProfile only\n--------\n")
omniperf_profile(args)
print("\n-------------\nProfile only\n-------------\n")
omniperf_profile(args,VER)
##############
# DATABASE MODE