blob: 8f99b24e3291acefc35a4a139ecd8275225a15ef [file] [log] [blame]
Matthew Barthc358bce2020-05-12 14:08:30 -05001SUMMARY = "Fan watchdog services"
2PR = "r1"
3LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
5
6inherit obmc-phosphor-systemd
7
Adriana Kobylakb96c7502021-08-06 16:25:30 +00008RDEPENDS:${PN} += "virtual/obmc-gpio-monitor"
9RDEPENDS:${PN} += "busybox"
Matthew Barthc358bce2020-05-12 14:08:30 -050010
11RESET_SERVICE = "reset-fan-watchdog.service"
12TGTFMT = "obmc-chassis-poweron@0.target"
Matt Spinler014c1372022-08-01 19:46:42 +000013RESET_FMT = "../${RESET_SERVICE}:${TGTFMT}.wants/${RESET_SERVICE}"
Matthew Barthc358bce2020-05-12 14:08:30 -050014
15MONITOR_SERVICE = "fan-watchdog-monitor@.service"
16
17WATCHDOG_SERVICE = "fan-watchdog.service"
Matt Spinler014c1372022-08-01 19:46:42 +000018WATCHDOG_FMT = "../${WATCHDOG_SERVICE}:${TGTFMT}.wants/${WATCHDOG_SERVICE}"
Matthew Barthc358bce2020-05-12 14:08:30 -050019
Adriana Kobylakb96c7502021-08-06 16:25:30 +000020SYSTEMD_SERVICE:${PN} += "${RESET_SERVICE} ${MONITOR_SERVICE} ${WATCHDOG_SERVICE}"
Patrick Williamse83c2202021-09-01 16:17:33 -050021SYSTEMD_LINK:${PN} += "${RESET_FMT} ${WATCHDOG_FMT}"
22SYSTEMD_ENVIRONMENT_FILE:${PN} += "obmc/fan-watchdog/reset-fan-watchdog.conf"
23SYSTEMD_ENVIRONMENT_FILE:${PN} += "obmc/fan-watchdog/fan-watchdog.conf"