Add virtual/phosphor-ipmi-sensor-inventory
This virtual provides a YAML file that serves as sensor
inventory configuration for phosphor-host-ipmid.
Add a native recipe that builds the configuration from MRW.
Set this recipe as the default for OpenPOWER systems.
Resolves openbmc/openbmc#781
Resolves openbmc/openbmc#1212
Change-Id: I25034dd3ed825e2ef320ab0b38ac2f733afded47
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
diff --git a/common/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory-mrw/config.yaml b/common/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory-mrw/config.yaml
new file mode 100644
index 0000000..1830611
--- /dev/null
+++ b/common/recipes-phosphor/ipmi/phosphor-ipmi-sensor-inventory-mrw/config.yaml
@@ -0,0 +1,27 @@
+0x0C:
+ xyz.openbmc_project.State.Decorator.OperationalStatus:
+ Functional:
+ 0x04:
+ type: "bool"
+ assert: false
+ deassert: true
+ xyz.openbmc_project.Inventory.Item:
+ Present:
+ 0x06:
+ type: "bool"
+ assert: true
+ deassert: false
+
+0x07:
+ xyz.openbmc_project.State.Decorator.OperationalStatus:
+ Functional:
+ 0x08:
+ type: "bool"
+ assert: false
+ deassert: true
+ xyz.openbmc_project.Inventory.Item:
+ Present:
+ 0x07:
+ type: "bool"
+ assert: true
+ deassert: false