commit | e561d3ea345d77e281ada75b58f3153bbee66290 | [log] [tgz] |
---|---|---|
author | George Liu <liuxiwei@ieisystem.com> | Sun Feb 04 15:19:30 2024 +0800 |
committer | George Liu <liuxiwei@ieisystem.com> | Thu Mar 14 00:32:56 2024 +0000 |
tree | 8f651af87047c76b04db39338108994aaf0f00e7 | |
parent | d9eb721ef581c8968b1a7994b9ba4b1edb5a5c09 [diff] |
chassishanlder: restorePolicy supports Unknown type The PDI interface of RestorePolicy already supports None type [1], and ipmitool will resolve it to 0x03 by default. This commit is adding None type. [1] https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/yaml/xyz/openbmc_project/Control/Power/RestorePolicy.interface.yaml#L24 Tested: If the value of the PowerRestorePolicy attribute on DBus is equal to xyz.openbmc_project.Control.Power.RestorePolicy.Policy.None 1. without this patch: ~# ipmitool chassis status Error sending Chassis Status command: Unspecified error 2. with this patch: ~# ipmitool chassis status System Power : off Power Overload : false Power Interlock : inactive Main Power Fault : false Power Control Fault : false Power Restore Policy : unknown Last Power Event : Chassis Intrusion : inactive Front-Panel Lockout : inactive Drive Fault : false Cooling/Fan Fault : false Front Panel Control : none Signed-off-by: George Liu <liuxiwei@ieisystem.com> Change-Id: I91ae1c40229c8646846443c0977685241f456838
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