DBus calls to update VPD cache data for Interfaces
This commit implements required bus call to update vpd cache
once the data has been updated on the hardware.
It updates data for Common interface,Extra interface and COM
interface.
To test on simics use following procedure
- Hexdump the vpd file of EEPROM you want
to update in a .txt file.
- To update data of keyword for any record
make "busctl call" to WriteKeyword.
-After successful execution, agaim hexdump
VPD file of same EEPROM in another .txt
file.
-Difference can be observed in both the
file w.r.t. updated data and ECC.
once complete call has been made, updated
data in cache can be seen using following command
on simics.
- busctl intrsopect <service> <object_path>
- busctl introspect <service> <object_path>
<interface_name>
Signed-off-by: Sunny Srivastava <sunnsr25@in.ibm.com>
Change-Id: I7997a027b631de25e254be9811c1926902fda8ec
diff --git a/const.hpp b/const.hpp
index e986425..13d61af 100644
--- a/const.hpp
+++ b/const.hpp
@@ -44,8 +44,9 @@
constexpr uint8_t KW_VAL_PAIR_START_TAG = 0x84;
constexpr uint8_t RECORD_END_TAG = 0x78;
-const std::string service = "xyz.openbmc_project.Inventory.Manager";
-const std::string VPD_OBJ_PATH_PREFIX = "/xyz/openbmc_project/inventory";
+static constexpr auto service = "xyz.openbmc_project.Inventory.Manager";
+static constexpr auto VPD_OBJ_PATH_PREFIX = "/xyz/openbmc_project/inventory";
+static constexpr auto COM_INTERFACE_PREFIX = "com.ibm.ipzvpd";
namespace lengths
{