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.
This commit is contained in:
Lane Kolbly 2021-09-02 14:02:04 -05:00 committed by Aaron Rossetto
parent 8dfc671885
commit aaac1f47e8

View File

@ -101,6 +101,14 @@ void mpmd_impl::init_property_tree(
.set(mb->device_info.get("fpga_version", "UNKNOWN"));
tree->create<std::string>(mb_path / "fpga_version_hash")
.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")