Matthew Barth | c358bce | 2020-05-12 14:08:30 -0500 | [diff] [blame] | 1 | SUMMARY = "Fan watchdog services" |
| 2 | PR = "r1" |
| 3 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
| 5 | |
| 6 | inherit obmc-phosphor-systemd |
| 7 | |
Brad Bishop | 5747dac | 2022-10-12 17:45:15 -0400 | [diff] [blame] | 8 | RDEPENDS:${PN} += "phosphor-gpio-monitor-monitor" |
Adriana Kobylak | b96c750 | 2021-08-06 16:25:30 +0000 | [diff] [blame] | 9 | RDEPENDS:${PN} += "busybox" |
Matthew Barth | c358bce | 2020-05-12 14:08:30 -0500 | [diff] [blame] | 10 | |
| 11 | RESET_SERVICE = "reset-fan-watchdog.service" |
| 12 | TGTFMT = "obmc-chassis-poweron@0.target" |
Matt Spinler | 014c137 | 2022-08-01 19:46:42 +0000 | [diff] [blame] | 13 | RESET_FMT = "../${RESET_SERVICE}:${TGTFMT}.wants/${RESET_SERVICE}" |
Matthew Barth | c358bce | 2020-05-12 14:08:30 -0500 | [diff] [blame] | 14 | |
| 15 | MONITOR_SERVICE = "fan-watchdog-monitor@.service" |
| 16 | |
| 17 | WATCHDOG_SERVICE = "fan-watchdog.service" |
Matt Spinler | 014c137 | 2022-08-01 19:46:42 +0000 | [diff] [blame] | 18 | WATCHDOG_FMT = "../${WATCHDOG_SERVICE}:${TGTFMT}.wants/${WATCHDOG_SERVICE}" |
Matthew Barth | c358bce | 2020-05-12 14:08:30 -0500 | [diff] [blame] | 19 | |
Adriana Kobylak | b96c750 | 2021-08-06 16:25:30 +0000 | [diff] [blame] | 20 | SYSTEMD_SERVICE:${PN} += "${RESET_SERVICE} ${MONITOR_SERVICE} ${WATCHDOG_SERVICE}" |
Patrick Williams | e83c220 | 2021-09-01 16:17:33 -0500 | [diff] [blame] | 21 | SYSTEMD_LINK:${PN} += "${RESET_FMT} ${WATCHDOG_FMT}" |
| 22 | SYSTEMD_ENVIRONMENT_FILE:${PN} += "obmc/fan-watchdog/reset-fan-watchdog.conf" |
| 23 | SYSTEMD_ENVIRONMENT_FILE:${PN} += "obmc/fan-watchdog/fan-watchdog.conf" |