| commit | bfd3a17f2ce783fe283ddb884bde9a8f41e30743 | [log] [tgz] |
|---|---|---|
| author | Willy Tu <wltu@google.com> | Tue May 31 13:57:54 2022 -0700 |
| committer | Willy Tu <wltu@google.com> | Tue Jul 19 18:39:43 2022 +0000 |
| tree | b5f2e9ca2e755e33800c8b840d66e36856eee746 | |
| parent | bef102a3038a6127b71850b1db35803b944c1cd2 [diff] |
apphandler: Add firmware_revision support for ipmi config
Allow us to configure the firmware revision if needed. The field is
optional and will override the existing firmware revision.
This provide us a way to customize the firmware revision to anything we
want.
Tested:
With firmware_revision in dev_id.json
```
$ cat /usr/share/ipmi-providers/dev_id.json
$ ipmitool mc info
{
"id": 0,
"revision": 0,
"addn_dev_support": 0,
"firmware_revision": {
"major": 35,
"minor": 16
},
"manuf_id": 11129,
"prod_id": 14426,
"aux": 0
}
ipmitool mc info
Device ID : 0
Device Revision : 0
Firmware Revision : 35.10
IPMI Version : 2.0
Manufacturer ID : 11129
Manufacturer Name : Google, Inc.
Product ID : 14426 (0x385a)
Product Name : Unknown (0x385A)
Device Available : yes
Provides Device SDRs : no
Additional Device Support :
Aux Firmware Rev Info :
0x00
0x00
0x00
0x00
```
Change-Id: Ia05ceb9ff5ca46b104e70ad9230432e79fc70d07
Signed-off-by: Willy Tu <wltu@google.com>
meson builddir ninja -C builddir
meson builddir -Dbuildtype=minsize -Db_lto=true -Dtests=disabled ninja -C builddir
If any of the dependencies are not found on the host system during configuration, meson automatically gets them via its wrap dependencies mentioned in ipmid/subprojects.
meson builddir -Dwrap_mode=nofallback ninja -C builddir
meson builddir -Dbuildtype=debug ninja -C builddir
meson builddir -Db_coverage=true -Dtests=enabled ninja -C builddir test ninja -C builddir coverage