Inventory: Build inventory with eeprom vpd

Resolves openbmc/openbmc#665

Change-Id: Iccbb20c8600fb0bf52f6fda433a8853d9cf423d4
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
diff --git a/meta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/recipes-phosphor/ipmi/barreleye-ipmi-inventory-map/config.yaml b/meta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/recipes-phosphor/ipmi/barreleye-ipmi-inventory-map/config.yaml
index ea2ca44..cc8abc1 100644
--- a/meta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/recipes-phosphor/ipmi/barreleye-ipmi-inventory-map/config.yaml
+++ b/meta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/recipes-phosphor/ipmi/barreleye-ipmi-inventory-map/config.yaml
@@ -1039,3 +1039,67 @@
       Version:
         IPMIFruProperty: Version
 
+100:
+    /system/chassis/io_board:
+        xyz.openbmc_project.Inventory.Item:
+            PrettyName:
+               IPMIFruSection: Board
+               IPMIFruProperty: Name
+        xyz.openbmc_project.Inventory.Decorator.Asset:
+            PartNumber:
+               IPMIFruSection: Board
+               IPMIFruProperty: Part Number
+            SerialNumber:
+               IPMIFruSection: Board
+               IPMIFruProperty: Serial Number
+            Manufacturer:
+               IPMIFruSection: Board
+               IPMIFruProperty: Manufacturer
+            BuildDate:
+               IPMIFruSection: Board
+               IPMIFruProperty: Mfg Date
+        xyz.openbmc_project.Inventory.Item.NetworkInterface:
+            MACAddress:
+               IPMIFruSection: Board
+               IPMIFruProperty: Custom Field 2
+
+101:
+    /system/chassis/sas_expander:
+        xyz.openbmc_project.Inventory.Item:
+            PrettyName:
+               IPMIFruSection: Board
+               IPMIFruProperty: Name
+        xyz.openbmc_project.Inventory.Decorator.Asset:
+            PartNumber:
+               IPMIFruSection: Board
+               IPMIFruProperty: Part Number
+            SerialNumber:
+               IPMIFruSection: Board
+               IPMIFruProperty: Serial Number
+            Manufacturer:
+               IPMIFruSection: Board
+               IPMIFruProperty: Manufacturer
+            BuildDate:
+               IPMIFruSection: Board
+               IPMIFruProperty: Mfg Date
+
+102:
+    /system/chassis/hdd_backplane:
+        xyz.openbmc_project.Inventory.Item:
+            PrettyName:
+               IPMIFruSection: Board
+               IPMIFruProperty: Name
+        xyz.openbmc_project.Inventory.Decorator.Asset:
+            PartNumber:
+               IPMIFruSection: Board
+               IPMIFruProperty: Part Number
+            SerialNumber:
+               IPMIFruSection: Board
+               IPMIFruProperty: Serial Number
+            Manufacturer:
+               IPMIFruSection: Board
+               IPMIFruProperty: Manufacturer
+            BuildDate:
+               IPMIFruSection: Board
+               IPMIFruProperty: Mfg Date
+
diff --git a/meta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/recipes-phosphor/ipmi/phosphor-ipmi-fru-properties%/extra-properties.yaml b/meta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/recipes-phosphor/ipmi/phosphor-ipmi-fru-properties%/extra-properties.yaml
index 5b60059..8addfd5 100644
--- a/meta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/recipes-phosphor/ipmi/phosphor-ipmi-fru-properties%/extra-properties.yaml
+++ b/meta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/recipes-phosphor/ipmi/phosphor-ipmi-fru-properties%/extra-properties.yaml
@@ -350,3 +350,26 @@
     xyz.openbmc_project.Inventory.Item:
         Present: 'true'
 
+/system/chassis/io_board:
+    xyz.openbmc_project.Inventory.Decorator.Replaceable:
+        FieldReplaceable: 'true'
+    xyz.openbmc_project.Inventory.Decorator.Cacheable:
+        Cached: 'false'
+    xyz.openbmc_project.Inventory.Item:
+        Present: 'true'
+
+/system/chassis/hdd_backplane:
+    xyz.openbmc_project.Inventory.Decorator.Replaceable:
+        FieldReplaceable: 'true'
+    xyz.openbmc_project.Inventory.Decorator.Cacheable:
+        Cached: 'false'
+    xyz.openbmc_project.Inventory.Item:
+        Present: 'true'
+
+/system/chassis/sas_expander:
+    xyz.openbmc_project.Inventory.Decorator.Replaceable:
+        FieldReplaceable: 'true'
+    xyz.openbmc_project.Inventory.Decorator.Cacheable:
+        Cached: 'false'
+    xyz.openbmc_project.Inventory.Item:
+        Present: 'true'