From edf7ce3f1942a9ef6d16c7f29ecc272937865261 Mon Sep 17 00:00:00 2001 From: Lane Kolbly Date: Thu, 2 Sep 2021 14:02:04 -0500 Subject: 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. --- host/lib/usrp/mpmd/mpmd_prop_tree.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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(mb_path / "token").set(mb->get_token()); tree->create(mb_path / "args").set(mb->mb_args); + tree->create(mb_path / "mender_artifact") + .set(mb->device_info.get("mender_artifact", "UNKNOWN")); + tree->create(mb_path / "mpm_sw_version") + .set(mb->device_info.get("mpm_sw_version", "UNKNOWN")); + tree->create(mb_path / "fs_version") + .set(mb->device_info.get("fs_version", "UNKNOWN")); /*** Clocking *******************************************************/ tree->create(mb_path / "clock_source/value") -- cgit v1.2.3