meta-ibm/sbp1: Assign static MAC
Add phosphor-ipmi-fru and ipmi-fru-properties configurations
to parse the MAC address from board IPMI EEPROM.
Add config for phosphor-network to sync MAC to u-boot env.
Change-Id: Ib470d71df06e75f9936f31efa3b86708dc226d57
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
diff --git a/meta-ibm/meta-sbp1/recipes-phosphor/configuration/sbp1-yaml-config/sbp1-ipmi-fru-properties.yaml b/meta-ibm/meta-sbp1/recipes-phosphor/configuration/sbp1-yaml-config/sbp1-ipmi-fru-properties.yaml
new file mode 100644
index 0000000..38ced08
--- /dev/null
+++ b/meta-ibm/meta-sbp1/recipes-phosphor/configuration/sbp1-yaml-config/sbp1-ipmi-fru-properties.yaml
@@ -0,0 +1,15 @@
+/system/chassis/motherboard/bmc/ethernet0:
+ xyz.openbmc_project.Inventory.Decorator.Replaceable:
+ FieldReplaceable: 'false'
+ xyz.openbmc_project.Inventory.Decorator.Cacheable:
+ Cached: 'true'
+ xyz.openbmc_project.Inventory.Item:
+ Present: 'true'
+
+/system/chassis/motherboard/bmc/ethernet1:
+ xyz.openbmc_project.Inventory.Decorator.Replaceable:
+ FieldReplaceable: 'false'
+ xyz.openbmc_project.Inventory.Decorator.Cacheable:
+ Cached: 'true'
+ xyz.openbmc_project.Inventory.Item:
+ Present: 'true'
diff --git a/meta-ibm/meta-sbp1/recipes-phosphor/configuration/sbp1-yaml-config/sbp1-ipmi-fru.yaml b/meta-ibm/meta-sbp1/recipes-phosphor/configuration/sbp1-yaml-config/sbp1-ipmi-fru.yaml
new file mode 100644
index 0000000..a48757c
--- /dev/null
+++ b/meta-ibm/meta-sbp1/recipes-phosphor/configuration/sbp1-yaml-config/sbp1-ipmi-fru.yaml
@@ -0,0 +1,20 @@
+0:
+ /system/chassis/motherboard/bmc/ethernet0:
+ entityID: 6
+ entityInstance: 1
+ interfaces:
+ xyz.openbmc_project.Inventory.Item.NetworkInterface:
+ MACAddress:
+ IPMIFruProperty: Custom Field 2
+ IPMIFruSection: Board
+ xyz.openbmc_project.Inventory.Item.Ethernet:
+ /system/chassis/motherboard/bmc/ethernet1:
+ entityID: 6
+ entityInstance: 2
+ interfaces:
+ xyz.openbmc_project.Inventory.Item.NetworkInterface:
+ MACAddress:
+ IPMIFruProperty: Custom Field 3
+ IPMIFruSection: Board
+ xyz.openbmc_project.Inventory.Item.Ethernet:
+