blob: 1fdca1787272f30551da5dd3819c0ad7501d0987 [file] [log] [blame]
Matt Spinlercd472232017-06-06 09:40:45 -05001SUMMARY = "Witherspoon fan watchdog services"
2PR = "r1"
3
4inherit obmc-phosphor-license
5inherit obmc-phosphor-systemd
6
7RDEPENDS_${PN} += "phosphor-gpio-monitor"
Matt Spinlerf27d1412017-06-13 15:57:04 -05008RDEPENDS_${PN} += "busybox"
Matt Spinlercd472232017-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 Spinler2cb67712017-06-08 12:46:22 -050014MONITOR_SERVICE = "witherspoon-fan-watchdog-monitor@.service"
15
Matt Spinlerf27d1412017-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"