update sysfw version path for compatibility with new bios updater
The new BIOS updater[1] reads and writes the BIOS version from
/var/bios/host0_bios_version.txt. This change updates the version
path from /var/lib/fb-ipmi-oem/appData.json to
/var/bios/host0_bios_version.txt to ensure compatibility and allow the
new updater to retrieve the BIOS version correctly.
[1] https://gerrit.openbmc.org/c/openbmc/phosphor-bmc-code-mgmt/+/76101
Tested on Harma:
```
curl --silent $creds https://$bmc/redfish/v1/UpdateService/FirmwareInventory/Harma_BIOS_7246
{
"@odata.id": "/redfish/v1/UpdateService/FirmwareInventory/Harma_BIOS_7246",
"@odata.type": "#SoftwareInventory.v1_1_0.SoftwareInventory",
"Description": "Unknown image",
"Id": "Harma_BIOS_7246",
"Name": "Software Inventory",
"Status": {
"Health": "Warning",
"HealthRollup": "OK",
"State": "Disabled"
},
"Updateable": true,
"Version": "F0M_2A08"
}
```
Signed-off-by: Kevin Tung <Kevin.Tung@quantatw.com>
Change-Id: If19b4b006961cd7514ac9556dfbf34845b7c1b74
diff --git a/include/appcommands.hpp b/include/appcommands.hpp
index 469ad4a..865f0d3 100644
--- a/include/appcommands.hpp
+++ b/include/appcommands.hpp
@@ -45,6 +45,7 @@
#define SIZE_PCIE_PORT_CONFIG 2
#define JSON_APP_DATA_FILE "/var/lib/fb-ipmi-oem/appData.json"
+#define SYSFW_VER_FILE "/var/bios/host{}_bios_version.txt"
#define KEY_SYSFW_VER "sysfw_ver_server"
#define KEY_BIOS_BOOT_LEN "bios_boot_list_len"