Change PDI to Software.Asset
Added patch to change the PDI from Inventory.Decorator.Asset
to Software.Asset because Decorator.Asset represents hardware
information.
This patch also addresses the concern of having association
which is not documented. Hence the same is removed.
Software.Asset is a new PDI to represent the Software Asset
information (Merged)
[1] https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/79966
Tested:
[2] busctl get-property xyz.openbmc_project.Smbios.MDR_V2 /xyz/openbmc_project/software/UEFI xyz.openbmc_project.Software.Asset Manufacturer
s "NVIDIA"
[3] busctl get-property xyz.openbmc_project.Smbios.MDR_V2 /xyz/openbmc_project/software/UEFI xyz.openbmc_project.Software.Asset ReleaseDate
s "2025-05-18T04:03:37+00:00"
Change-Id: Iabaa4a9b5efaf5378bad1d4b66b3aeb43df32ee1
Signed-off-by: Prithvi Pai <ppai@nvidia.com>
diff --git a/src/firmware_inventory.cpp b/src/firmware_inventory.cpp
index 30053d5..a55a517 100644
--- a/src/firmware_inventory.cpp
+++ b/src/firmware_inventory.cpp
@@ -89,11 +89,6 @@
dataIn);
present(true);
purpose(softwareVersion::VersionPurpose::Other);
-
- std::vector<std::tuple<std::string, std::string, std::string>> assocs;
- assocs.emplace_back("software_version", "functional",
- "/xyz/openbmc_project/software");
- association::associations(assocs);
}
std::string FirmwareInventory::checkAndCreateFirmwarePath(
@@ -205,7 +200,7 @@
const uint8_t positionNum, const uint8_t structLen, uint8_t* dataIn)
{
std::string result = positionToString(positionNum, structLen, dataIn);
- buildDate(result);
+ releaseDate(result);
}
void FirmwareInventory::firmwareManufacturer(