summaryrefslogtreecommitdiffstats
path: root/meta-rcs/meta-talos/recipes-phosphor/fans/talos-fan-watchdog.bb
diff options
context:
space:
mode:
authorRaptor Engineering Development Team <support@raptorengineering.com>2019-04-19 08:35:02 +0000
committerTimothy Pearson <tpearson@raptorengineering.com>2019-04-25 08:02:05 +0000
commitc6a41036bb2f2fedb9a37ab3e1721839110b32a1 (patch)
tree5d3723e067adac7eaa4843d7ef24fbd82dc2aceb /meta-rcs/meta-talos/recipes-phosphor/fans/talos-fan-watchdog.bb
parentfb83e16d3529ade1057088c33faeb4ea7ff922ed (diff)
downloadtalos-openbmc-c6a41036bb2f2fedb9a37ab3e1721839110b32a1.tar.gz
talos-openbmc-c6a41036bb2f2fedb9a37ab3e1721839110b32a1.zip
[Subtree] Bring openbmc machines to top level
Diffstat (limited to 'meta-rcs/meta-talos/recipes-phosphor/fans/talos-fan-watchdog.bb')
-rw-r--r--meta-rcs/meta-talos/recipes-phosphor/fans/talos-fan-watchdog.bb22
1 files changed, 22 insertions, 0 deletions
diff --git a/meta-rcs/meta-talos/recipes-phosphor/fans/talos-fan-watchdog.bb b/meta-rcs/meta-talos/recipes-phosphor/fans/talos-fan-watchdog.bb
new file mode 100644
index 000000000..19be898dd
--- /dev/null
+++ b/meta-rcs/meta-talos/recipes-phosphor/fans/talos-fan-watchdog.bb
@@ -0,0 +1,22 @@
+SUMMARY = "Talos fan watchdog services"
+PR = "r1"
+
+inherit obmc-phosphor-license
+inherit obmc-phosphor-systemd
+
+RDEPENDS_${PN} += "virtual/obmc-gpio-monitor"
+RDEPENDS_${PN} += "busybox"
+
+RESET_SERVICE = "talos-reset-fan-watchdog.service"
+TGTFMT = "obmc-chassis-poweron@0.target"
+RESET_FMT = "../${RESET_SERVICE}:${TGTFMT}.requires/${RESET_SERVICE}"
+
+MONITOR_SERVICE = "talos-fan-watchdog-monitor@.service"
+
+WATCHDOG_SERVICE = "talos-fan-watchdog.service"
+WATCHDOG_FMT = "../${WATCHDOG_SERVICE}:${TGTFMT}.requires/${WATCHDOG_SERVICE}"
+
+SYSTEMD_SERVICE_${PN} += "${RESET_SERVICE} ${MONITOR_SERVICE} ${WATCHDOG_SERVICE}"
+SYSTEMD_LINK_${PN} += "${RESET_FMT} ${WATCHDOG_FMT}"
+SYSTEMD_ENVIRONMENT_FILE_${PN} += "obmc/talos-fan-watchdog/reset-fan-watchdog.conf"
+SYSTEMD_ENVIRONMENT_FILE_${PN} += "obmc/talos-fan-watchdog/fan-watchdog.conf"
OpenPOWER on IntegriCloud