All: add purpose parameter to setVersion calls
All calls to setVersion now include a purpose argument, changing the
purpose string from "unknown" to "other".
Change-Id: I201db1719333b51deead2dd99c9f637c782efd6c
Signed-off-by: Daniel Hsu <Daniel-Hsu@quantatw.com>
diff --git a/bios/bios_software_manager.cpp b/bios/bios_software_manager.cpp
index 0c4814f..b34ab3e 100644
--- a/bios/bios_software_manager.cpp
+++ b/bios/bios_software_manager.cpp
@@ -110,7 +110,8 @@
spiDevice->softwareCurrent = std::move(software);
- spiDevice->softwareCurrent->setVersion(SPIDevice::getVersion());
+ spiDevice->softwareCurrent->setVersion(
+ SPIDevice::getVersion(), SoftwareVersion::VersionPurpose::Host);
devices.insert({config.objectPath, std::move(spiDevice)});
diff --git a/bios/spi_device.cpp b/bios/spi_device.cpp
index 1af1e66..fb9f6a4 100644
--- a/bios/spi_device.cpp
+++ b/bios/spi_device.cpp
@@ -527,7 +527,8 @@
if (softwareCurrent)
{
- softwareCurrent->setVersion(getVersion());
+ softwareCurrent->setVersion(getVersion(),
+ SoftwareVersion::VersionPurpose::Host);
}
co_return;