commit | 9012243e543abdc5851b7e878c17c991b2a2a8b7 | [log] [tgz] |
---|---|---|
author | Adriana Kobylak <anoo@us.ibm.com> | Tue Mar 19 10:32:20 2024 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Wed Apr 03 03:11:02 2024 +0000 |
tree | 9c274bdde5396b7d3d6388c0f5f7dddae62c2fce | |
parent | 3cfcc9c0eb86954846daacb7a05e3293b9864659 [diff] [blame] |
software: Add Minimum Version interface The minimum version is an optional meson option (bmc-msl)[1] that prevents firmware updates to a level lower than the one set via this option. The error logged is a Software Incompatible[2] error. Add the minimum version as a property of a new interface. This will be populated by the code updater app. It can then be mapped to the SoftwareInventory LowestSupportedVersion Redfish property and be available to the user via Redfish and the GUI so that the user can know in advance which version of software is not supported on their system and avoid having to debug a code update failure after they attempt to install an incompatible version. ``` 1: https://github.com/openbmc/phosphor-bmc-code-mgmt/blob/85c71a13e0938cc4d36caf6b8e735e9740b2e351/meson.options#L100 2: https://github.com/openbmc/phosphor-dbus-interfaces/blob/1c140b9766a15d1cbb8546fa02d5050d772a171d/yaml/xyz/openbmc_project/Software/Version.errors.yaml#L1 ``` Change-Id: I1f6aacf8ad7fa63e58d832409698f4d923184ec2 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
diff --git a/yaml/xyz/openbmc_project/Software/MinimumVersion.interface.yaml b/yaml/xyz/openbmc_project/Software/MinimumVersion.interface.yaml new file mode 100644 index 0000000..d4706e6 --- /dev/null +++ b/yaml/xyz/openbmc_project/Software/MinimumVersion.interface.yaml
@@ -0,0 +1,9 @@ +description: > + The minimum version string for a xyz.openbmc_project.Software.Version. +properties: + - name: MinimumVersion + type: string + description: > + The minimum software version that a component must have to operate. + The string format should be the same format used for the Version + property of the component.