| commit | 6d2ab689e2482f8cd22455e0c0cbb7534f71f881 | [log] [tgz] |
|---|---|---|
| author | Patrick Williams <patrick@stwcx.xyz> | Thu Jan 15 10:59:21 2026 -0500 |
| committer | Patrick Williams <patrick@stwcx.xyz> | Fri Jan 16 19:22:54 2026 +0000 |
| tree | a0c3225f33c1e43f5661d1b3a9d0598437f7d73c | |
| parent | 526d65505c78c22c3f74a8b88d07ba67f94d2528 [diff] |
State.BMC: Set default state to 'NotReady'
By default the initial value of a property will be either the 'default'
value specified or the default C++ initialization. For an enumeration
that would be the first enum value, which in the case of the BMC is
"Ready". This makes it difficult to determine the initial case, in
order to send `BMC.StateChanged` events. There are two obvious options:
- Create an "Unknown" value which is only used for the
initialization case.
- Set "NotReady" as the default.
Since it isn't particularly useful to have a "NotReady" event emitted
during the boot sequence, and likely we are "NotReady" when the BMC
management application starts, setting this to the `default` makes
the code straight-forward for not emitting a spurious "NotReady" event.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Iab39ed4efbae96af11e2eebf53ff04a560ce4684
YAML descriptors of standard D-Bus interfaces. The format is described by the sdbusplus binding generation tool sdbus++.
Before defining a new D-Bus interface or modifying an existing one, please read through the documented set of the common requirements and expectations.
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=trueExample: meson builddir -Ddata_com_ibm=true && ninja -C builddir