Implement BMC position for RBMC prototype system
BMC’s role in RBMC prototype system is determined based on its
position.
This commit adds the code to implement BMC position for RBMC
prototype system based on whether BMC has access to motherboard EEPROM
or not.
Test:
```
Tested the changes by keeping lab system IM value in constants file, observed that position interface is created for the system.
root@rainvpdteam:~# busctl introspect xyz.openbmc_project.Inventory.Manager /xyz/openbmc_project/inventory/system xyz.openbmc_project.Inventory.Decorator.Position
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
.Position property u 0 emits-change writable
```
Change-Id: Ia66065950ac75b7b7e95b4b6cce938663ebb9756
Signed-off-by: Anupama B R <anupama.b.r1@ibm.com>
diff --git a/vpd-manager/include/constants.hpp b/vpd-manager/include/constants.hpp
index 9708beb..f5068c9 100644
--- a/vpd-manager/include/constants.hpp
+++ b/vpd-manager/include/constants.hpp
@@ -2,6 +2,7 @@
#include <cstdint>
#include <iostream>
+#include <vector>
namespace vpd
{
namespace constants
@@ -239,5 +240,10 @@
"/usr/share/vpd/50001_power_vs.json";
static constexpr auto correlatedPropJsonFile =
"/usr/share/vpd/correlated_properties.json";
+
+static constexpr auto rbmcPositionInterface =
+ "xyz.openbmc_project.Inventory.Decorator.Position";
+static std::vector<uint8_t> rbmcPrototypeSystemImValue{
+ 55, 54, 48, 48, 50, 48, 48, 48};
} // namespace constants
} // namespace vpd