Matt Spinler | cd47223 | 2017-06-06 09:40:45 -0500 | [diff] [blame] | 1 | SUMMARY = "Witherspoon fan watchdog services" |
| 2 | PR = "r1" |
| 3 | |
| 4 | inherit obmc-phosphor-license |
| 5 | inherit obmc-phosphor-systemd |
| 6 | |
Gunnar Mills | 6cf9635 | 2017-07-10 15:49:43 -0500 | [diff] [blame] | 7 | RDEPENDS_${PN} += "virtual/obmc-gpio-monitor" |
Matt Spinler | f27d141 | 2017-06-13 15:57:04 -0500 | [diff] [blame] | 8 | RDEPENDS_${PN} += "busybox" |
Matt Spinler | cd47223 | 2017-06-06 09:40:45 -0500 | [diff] [blame] | 9 | |
| 10 | RESET_SERVICE = "witherspoon-reset-fan-watchdog.service" |
| 11 | TGTFMT = "obmc-chassis-poweron@0.target" |
| 12 | RESET_FMT = "../${RESET_SERVICE}:${TGTFMT}.requires/${RESET_SERVICE}" |
| 13 | |
Matt Spinler | 2cb6771 | 2017-06-08 12:46:22 -0500 | [diff] [blame] | 14 | MONITOR_SERVICE = "witherspoon-fan-watchdog-monitor@.service" |
| 15 | |
Matt Spinler | f27d141 | 2017-06-13 15:57:04 -0500 | [diff] [blame] | 16 | WATCHDOG_SERVICE = "witherspoon-fan-watchdog.service" |
| 17 | WATCHDOG_FMT = "../${WATCHDOG_SERVICE}:${TGTFMT}.requires/${WATCHDOG_SERVICE}" |
| 18 | |
| 19 | SYSTEMD_SERVICE_${PN} += "${RESET_SERVICE} ${MONITOR_SERVICE} ${WATCHDOG_SERVICE}" |
| 20 | SYSTEMD_LINK_${PN} += "${RESET_FMT} ${WATCHDOG_FMT}" |
| 21 | SYSTEMD_ENVIRONMENT_FILE_${PN} += "obmc/witherspoon-fan-watchdog/reset-fan-watchdog.conf" |
| 22 | SYSTEMD_ENVIRONMENT_FILE_${PN} += "obmc/witherspoon-fan-watchdog/fan-watchdog.conf" |