diff options
author | Lane Kolbly <lane.kolbly@ni.com> | 2021-09-02 14:02:04 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-09-08 13:10:27 -0500 |
commit | edf7ce3f1942a9ef6d16c7f29ecc272937865261 (patch) | |
tree | f1d69f744051ecf8faac7123e6de7df80e1ca6ac /host | |
parent | deb92f20f05b4a0d8e2da644f078fad612f07027 (diff) | |
download | uhd-edf7ce3f1942a9ef6d16c7f29ecc272937865261.tar.gz uhd-edf7ce3f1942a9ef6d16c7f29ecc272937865261.tar.bz2 uhd-edf7ce3f1942a9ef6d16c7f29ecc272937865261.zip |
uhd: mpm: Expose filesystem version information on MPM tree
This allows UHD clients to determine, for example, whether the currently
loaded filesystem is up-to-date.
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/usrp/mpmd/mpmd_prop_tree.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/host/lib/usrp/mpmd/mpmd_prop_tree.cpp b/host/lib/usrp/mpmd/mpmd_prop_tree.cpp index 2bd955194..741a821aa 100644 --- a/host/lib/usrp/mpmd/mpmd_prop_tree.cpp +++ b/host/lib/usrp/mpmd/mpmd_prop_tree.cpp @@ -121,6 +121,12 @@ void mpmd_impl::init_property_tree( .set(mb->device_info.get("fpga_version_hash", "UNKNOWN")); tree->create<std::string>(mb_path / "token").set(mb->get_token()); tree->create<uhd::device_addr_t>(mb_path / "args").set(mb->mb_args); + tree->create<std::string>(mb_path / "mender_artifact") + .set(mb->device_info.get("mender_artifact", "UNKNOWN")); + tree->create<std::string>(mb_path / "mpm_sw_version") + .set(mb->device_info.get("mpm_sw_version", "UNKNOWN")); + tree->create<std::string>(mb_path / "fs_version") + .set(mb->device_info.get("fs_version", "UNKNOWN")); /*** Clocking *******************************************************/ tree->create<std::string>(mb_path / "clock_source/value") |