meta-ibm: romulus: new YAML config recipe
YAML configuration files exist scattered throughout the OpenBMC tree and
how they are used is controlled with layers dependencies of virtuals and
preferred providers.
Most of the time the above scheme is very difficult to comprehend. This
patch continues a re-thinking of that approach towards a more
centralized scheme.
Specifically this patch implements a single YAML config recipe for the
Romulus systems. The logic contained in the recipe was pulled from all
over the OpenBMC tree - the ability to comprehend how the different YAML
files are generated and consumed should be greatly eased.
One notable detail - unlike the upstream recipes, romulus-yaml-config
is a target recipe and as such enables MACHINE based overrides.
YAML files were copied from different locations in the tree, and run
through a styling application (pyyaml dump(load(yaml))):
romulus-ipmi-fru-properties-native:extra-properties.yaml ->
romulus-yaml-config:romulus-ipmi-fru-properties.yaml
romulus-ipmi-fru-read-inventory-native:config.yaml ->
romulus-yaml-config:romulus-ipmi-fru.yaml
romulus-ipmi-fru-read-bmc-inventory-native:bmc-fru-config.yaml ->
romulus-yaml-config:romulus-ipmi-fru-properties.yaml
romulus-ipmi-inventory-sel-native:sel-config.yaml ->
romulus-yaml-config:romulus-ipmi-inventory-sensors.yaml
romulus-ipmi-sensor-inventory-native:config.yaml ->
romulus-yaml-config:romulus-ipmi-sensors.yaml
Change-Id: I89fee48dd579d6fe21b970f65ef47cd73065672f
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-romulus/recipes-phosphor/configuration/romulus-yaml-config/romulus-ipmi-fru-bmc.yaml b/meta-romulus/recipes-phosphor/configuration/romulus-yaml-config/romulus-ipmi-fru-bmc.yaml
new file mode 100644
index 0000000..c48f502
--- /dev/null
+++ b/meta-romulus/recipes-phosphor/configuration/romulus-yaml-config/romulus-ipmi-fru-bmc.yaml
@@ -0,0 +1,27 @@
+50:
+ /system/chassis/motherboard/fan0:
+ entityID: 29
+ entityInstance: 1
+ interfaces:
+ xyz.openbmc_project.Inventory.Item:
+ PrettyName:
+ IPMIFruProperty: Product Name
+ IPMIFruSection: Product
+51:
+ /system/chassis/motherboard/fan1:
+ entityID: 29
+ entityInstance: 2
+ interfaces:
+ xyz.openbmc_project.Inventory.Item:
+ PrettyName:
+ IPMIFruProperty: Product Name
+ IPMIFruSection: Product
+52:
+ /system/chassis/motherboard/fan2:
+ entityID: 29
+ entityInstance: 3
+ interfaces:
+ xyz.openbmc_project.Inventory.Item:
+ PrettyName:
+ IPMIFruProperty: Product Name
+ IPMIFruSection: Product