aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/python/usrp_hwd.py
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-03-30 14:19:35 -0700
committerMartin Braun <martin.braun@ettus.com>2018-04-02 15:27:05 -0700
commita5b87ab7c4a6834acc7587ffc4a769854b9d48b4 (patch)
treea9c16e82b6556bb5653052f8681e7d267c33085d /mpm/python/usrp_hwd.py
parentc7f52870805c9d9f79f15c80e9a4ad53ed88c857 (diff)
downloaduhd-a5b87ab7c4a6834acc7587ffc4a769854b9d48b4.tar.gz
uhd-a5b87ab7c4a6834acc7587ffc4a769854b9d48b4.tar.bz2
uhd-a5b87ab7c4a6834acc7587ffc4a769854b9d48b4.zip
mpm: cmake: Add git hash and version info to Python module
Reviewed-by: Brent Stapleton <brent.stapleton@ettus.com>
Diffstat (limited to 'mpm/python/usrp_hwd.py')
-rwxr-xr-xmpm/python/usrp_hwd.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mpm/python/usrp_hwd.py b/mpm/python/usrp_hwd.py
index 0b2cd1ecb..d04d04927 100755
--- a/mpm/python/usrp_hwd.py
+++ b/mpm/python/usrp_hwd.py
@@ -170,6 +170,10 @@ def main():
log = mpm.get_main_logger(
log_default_delta=args.verbose-args.quiet
).getChild('main')
+ version_string = mpm.__version__
+ if len(mpm.__githash__):
+ version_string += "-g" + mpm.__githash__
+ log.info("Launching USRP/MPM, version: %s", version_string)
if args.override_db_pids is not None:
log.warning('Overriding daughterboard PIDs!')
args.default_args['override_db_pids'] = args.override_db_pids