| commit | a809fa5565cddcca72894738e18023a789b030c7 | [log] [tgz] |
|---|---|---|
| author | Thang Tran <thuutran@amperecomputing.com> | Thu Aug 08 14:46:34 2024 +0700 |
| committer | Thang Tran <thuutran@amperecomputing.com> | Sat Oct 12 01:06:42 2024 +0000 |
| tree | 66a0e333edfed33844bc6f86be8cc5148917d011 | |
| parent | b4b409180c2773e1cede1d2e2936881d09639f5a [diff] |
support reading System Firmware Version
This commit implements reading System Firmware Version as below steps:
- Find all object path that include xyz.openbmc_project.Software.Version
interface.
- Get the Purpose property of above object paths.
- If the Purpose is Host then get the Version property.
Tested:
1. Read system firmware version
$ipmitool mc getsysinfo system_fw_version
2. The version of firmware is shown
Change-Id: I84e25572253ddc7c2a48da9f6046920e55c8ccd4
Signed-off-by: Huy Le <hule@amperecomputing.com>
Signed-off-by: Thang Tran <thuutran@amperecomputing.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