commit | 33b9a7f8e37e91b903b8b2bce145eea402a531a5 | [log] [tgz] |
---|---|---|
author | Matt Spinler <spinler@us.ibm.com> | Mon Feb 07 16:20:14 2022 -0600 |
committer | Patrick Williams <patrick@stwcx.xyz> | Wed Apr 13 14:15:06 2022 +0000 |
tree | 8d989a3cefa374d9f67d6ee55eececc289088cce | |
parent | e11e2faa924243c298ade492a770a01c6179d6d0 [diff] |
inventory.decorator: Add slot number interface This interface provides a slot number property for an inventory item. The initial use case is to hang this on certain phosphor-inventory-manager paths so that when entity-manager probes on them it can have $SlotNumber available as a variable to give a stable sensor name, such as 'PCIe Card $SlotNumber Temp'. Without this, if say the $index variable is used instead, and then there is no guarantee which device will have which sensor name, especially for cards that can be added in any order when the BMC is running. Stable sensor names are important in the phosphor-inventory-manager/entity-manager hybrid model where PIM is used for inventory and EM is just used for config. There is a LocationCode property already that could possibly be used on some systems, but on IBM systems at least it contains the system serial number so would vary from system to system which isn't desired either. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Iea95d7ad123672909799244b0d80f564cb40d425
YAML descriptors of standard D-Bus interfaces. The format is described by the sdbusplus binding generation tool sdbus++.
This project can be built with meson
. The typical meson
workflow is: meson builddir && ninja -C builddir
.
The meson files used to handle the YAML files are automatically generated and found under the gen
subdirectory. When adding or removing YAML files, this must be regenerated. This can be done with the helper script found in the gen
subdirectory: cd gen && ./regenerate-meson
.
Only the xyz/openbmc_project and org/freedesktop interfaces are built by default. Other interfaces can be enabled by meson options:
-Ddata_com_ibm=true
-Ddata_org_open_power=true
Example: meson builddir -Ddata_com_ibm=true && ninja -C builddir