blob: d71b378cfbe466426c8d03f02920f5db11383b9b [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
8RDEPENDS_${PN} += "virtual/obmc-gpio-monitor"
9RDEPENDS_${PN} += "busybox"
10
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
20SYSTEMD_SERVICE_${PN} += "${RESET_SERVICE} ${MONITOR_SERVICE} ${WATCHDOG_SERVICE}"
21SYSTEMD_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"