Configuration yaml changes for virtual sensors
Change-Id: I270a62022340d6be382091a6595859dafdb634ae
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
diff --git a/common/recipes-phosphor/ipmi/openpower-ipmi-oem-sensor-inventory-mrw-native.bb b/common/recipes-phosphor/ipmi/openpower-ipmi-oem-sensor-inventory-mrw-native.bb
new file mode 100644
index 0000000..3e434b5
--- /dev/null
+++ b/common/recipes-phosphor/ipmi/openpower-ipmi-oem-sensor-inventory-mrw-native.bb
@@ -0,0 +1,16 @@
+SUMMARY = "OEM sensor config for phosphor-host-ipmid"
+PR = "r1"
+
+inherit native
+inherit obmc-phosphor-license
+inherit phosphor-ipmi-host
+
+SRC_URI += "file://openpower-config.yaml"
+
+S = "${WORKDIR}"
+
+do_install() {
+ DEST=${D}${sensor_yamldir}
+ install -d ${DEST}
+ install openpower-config.yaml ${DEST}/openpower-config.yaml
+}
diff --git a/common/recipes-phosphor/ipmi/openpower-ipmi-oem-sensor-inventory-mrw/openpower-config.yaml b/common/recipes-phosphor/ipmi/openpower-ipmi-oem-sensor-inventory-mrw/openpower-config.yaml
new file mode 100644
index 0000000..d0082ff
--- /dev/null
+++ b/common/recipes-phosphor/ipmi/openpower-ipmi-oem-sensor-inventory-mrw/openpower-config.yaml
@@ -0,0 +1,15 @@
+0x09:
+ path: /org/open_power/control/
+ serviceInterface: org.freedesktop.DBus.Properties
+ readingType: assertion
+ interfaces:
+ org.open_power.OCC.Status:
+ OccActive:
+ 0x00:
+ type: "bool"
+ assert: "false"
+ deassert: "true"
+ 0x01:
+ type: "bool"
+ assert: "true"
+ deassert: "false"
diff --git a/common/recipes-phosphor/packagegroups/packagegroup-obmc-ipmi-sensors.bbappend b/common/recipes-phosphor/packagegroups/packagegroup-obmc-ipmi-sensors.bbappend
new file mode 100644
index 0000000..7fac2dd
--- /dev/null
+++ b/common/recipes-phosphor/packagegroups/packagegroup-obmc-ipmi-sensors.bbappend
@@ -0,0 +1 @@
+OBMC_IPMI_SENSORS_PROVIDERS_append=" openpower-ipmi-oem-sensor-inventory-mrw-native"