blob: 4673c44c0cdd13b8a26f40dda0738878431fc794 [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"
13RESET_FMT = "../${RESET_SERVICE}:${TGTFMT}.requires/${RESET_SERVICE}"
14
15MONITOR_SERVICE = "fan-watchdog-monitor@.service"
16
17WATCHDOG_SERVICE = "fan-watchdog.service"
18WATCHDOG_FMT = "../${WATCHDOG_SERVICE}:${TGTFMT}.requires/${WATCHDOG_SERVICE}"
19
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"