[PATCH phosphor-host-ipmid v2] Adjust ipmi device id to accept dbus versioning

OpenBMC Patches openbmc-patches at stwcx.xyz
Tue Apr 19 08:50:37 AEST 2016


Before this the ipmi device id would return
ipmitool -Idbus  mc info

...
Firmware Revision         : 1.0

Now it will track the version that you get from the version property of
/org/openbmc/inventory/system/chassis/motherboard/bmc
i.e.
```
version = v0.6-19-gf363f61-dirty
           ^ ^ ^^          ^
           | |  |----------|-- additional details
           | |---------------- Minor
           |------------------ Major

```
Now... ipmitool -Idbus  mc info
...
Firmware Revision         : 0.06
...
Aux Firmware Rev Info     :
    0x00
    0x19
    0x00
    0x01

If there is no -dirty (or anything really after the last '-') will force
the aux details byte 4 to 0.  A 0 means the FW image was created without
any changes in the yocto build.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/openbmc/phosphor-host-ipmid/84)
<!-- Reviewable:end -->


https://github.com/openbmc/phosphor-host-ipmid/pull/84

Chris Austen (1):
  Adjust ipmi device id to accept dbus versioning

 apphandler.C | 91 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 88 insertions(+), 3 deletions(-)

-- 
2.7.1




More information about the openbmc mailing list