meta-phosphor:fans: Include `fanctl` tool with phosphor-fan-control
This tool allows for controlling fan speeds, viewing targets and
feedback values, and diagnostic info about fans and fan-control services.
Commands:
- status: print the RPM or PWM targets and view RPM feedback values for
each fan/rotor. Also shows the health of the fan-control service and
BMC power states.
- set <target> : sets the targets for all fans (if no additional args)
or for a list of one-or-more specific fans.
- get : gets the targets and prints rotor speeds for all fans
- reload: forces phosphor-fan-control to reload its configuration files
by sending the service an interrupt signal.
- resume: shortcut to restart phosphor-fan-control if it had been
stopped for maintenance.
Signed-off-by: Mike Capps <mikepcapps@gmail.com>
Change-Id: Iaa7e447d2d5aa977482663ef6dd45aadffc58f55
diff --git a/meta-phosphor/recipes-phosphor/fans/phosphor-fan_git.bb b/meta-phosphor/recipes-phosphor/fans/phosphor-fan_git.bb
index ccf079b..9e01493 100644
--- a/meta-phosphor/recipes-phosphor/fans/phosphor-fan_git.bb
+++ b/meta-phosphor/recipes-phosphor/fans/phosphor-fan_git.bb
@@ -99,6 +99,7 @@
FMT_CONTROL_INIT = "../${TMPL_CONTROL_INIT}:${POWERON_TGT}.wants/${INSTFMT_CONTROL_INIT}"
FILES:${PN}-control = "${bindir}/phosphor-fan-control"
+FILES:${PN}-control += "${bindir}/fanctl"
SYSTEMD_SERVICE:${PN}-control += "${TMPL_CONTROL}"
SYSTEMD_SERVICE:${PN}-control += "${@bb.utils.contains('PACKAGECONFIG', 'json', '', '${TMPL_CONTROL_INIT}', d)}"