blob: c09b9df24e08134b3956e0e27da1393a1e78d2d5 [file] [log] [blame]
Matt Spinler17de1eb2017-06-06 09:40:45 -05001SUMMARY = "Witherspoon fan watchdog services"
2PR = "r1"
3
4inherit obmc-phosphor-license
5inherit obmc-phosphor-systemd
6
Gunnar Mills7460b222017-07-10 15:49:43 -05007RDEPENDS_${PN} += "virtual/obmc-gpio-monitor"
Matt Spinler796f28d2017-06-13 15:57:04 -05008RDEPENDS_${PN} += "busybox"
Matt Spinler17de1eb2017-06-06 09:40:45 -05009
10RESET_SERVICE = "witherspoon-reset-fan-watchdog.service"
11TGTFMT = "obmc-chassis-poweron@0.target"
12RESET_FMT = "../${RESET_SERVICE}:${TGTFMT}.requires/${RESET_SERVICE}"
13
Matt Spinler9bce4f82017-06-08 12:46:22 -050014MONITOR_SERVICE = "witherspoon-fan-watchdog-monitor@.service"
15
Matt Spinler796f28d2017-06-13 15:57:04 -050016WATCHDOG_SERVICE = "witherspoon-fan-watchdog.service"
17WATCHDOG_FMT = "../${WATCHDOG_SERVICE}:${TGTFMT}.requires/${WATCHDOG_SERVICE}"
18
19SYSTEMD_SERVICE_${PN} += "${RESET_SERVICE} ${MONITOR_SERVICE} ${WATCHDOG_SERVICE}"
20SYSTEMD_LINK_${PN} += "${RESET_FMT} ${WATCHDOG_FMT}"
21SYSTEMD_ENVIRONMENT_FILE_${PN} += "obmc/witherspoon-fan-watchdog/reset-fan-watchdog.conf"
22SYSTEMD_ENVIRONMENT_FILE_${PN} += "obmc/witherspoon-fan-watchdog/fan-watchdog.conf"