blob: 357de9516e7c10cfa3e81facaf6fb156979ae9a7 [file] [log] [blame]
Matt Spinler17de1eb2017-06-06 09:40:45 -05001SUMMARY = "Witherspoon fan watchdog services"
2PR = "r1"
Patrick Venture232b5bd2018-11-05 20:20:14 -08003LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://${IBMBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658"
Matt Spinler17de1eb2017-06-06 09:40:45 -05005
Matt Spinler17de1eb2017-06-06 09:40:45 -05006inherit obmc-phosphor-systemd
7
Gunnar Mills7460b222017-07-10 15:49:43 -05008RDEPENDS_${PN} += "virtual/obmc-gpio-monitor"
Matt Spinler796f28d2017-06-13 15:57:04 -05009RDEPENDS_${PN} += "busybox"
Matt Spinler17de1eb2017-06-06 09:40:45 -050010
11RESET_SERVICE = "witherspoon-reset-fan-watchdog.service"
12TGTFMT = "obmc-chassis-poweron@0.target"
13RESET_FMT = "../${RESET_SERVICE}:${TGTFMT}.requires/${RESET_SERVICE}"
14
Matt Spinler9bce4f82017-06-08 12:46:22 -050015MONITOR_SERVICE = "witherspoon-fan-watchdog-monitor@.service"
16
Matt Spinler796f28d2017-06-13 15:57:04 -050017WATCHDOG_SERVICE = "witherspoon-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/witherspoon-fan-watchdog/reset-fan-watchdog.conf"
23SYSTEMD_ENVIRONMENT_FILE_${PN} += "obmc/witherspoon-fan-watchdog/fan-watchdog.conf"