Vishwanatha Subbanna | 55c545a | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 1 | SUMMARY = "Phosphor Watchdog application" |
| 2 | DESCRIPTION = "Application that implements software watchdog" |
| 3 | HOMEPAGE = "http://github.com/openbmc/phosphor-watchdog" |
| 4 | PR = "r1" |
| 5 | |
| 6 | LICENSE = "Apache-2.0" |
| 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" |
| 8 | inherit autotools pkgconfig |
| 9 | inherit obmc-phosphor-dbus-service |
| 10 | |
| 11 | RPROVIDES_${PN} += "virtual/obmc-watchdog" |
| 12 | PROVIDES += "virtual/obmc-watchdog" |
| 13 | |
| 14 | DEPENDS += "autoconf-archive-native" |
| 15 | DEPENDS += "sdbusplus sdbusplus-native" |
William A. Kennington III | 6e1dfdd | 2018-09-13 23:32:19 -0700 | [diff] [blame] | 16 | DEPENDS += "sdeventplus" |
Vishwanatha Subbanna | 55c545a | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 17 | DEPENDS += "phosphor-dbus-interfaces" |
| 18 | DEPENDS += "phosphor-logging" |
| 19 | RDEPENDS_${PN} += "libsystemd" |
| 20 | RDEPENDS_${PN} += "phosphor-logging" |
| 21 | |
| 22 | SRC_URI += "git://github.com/openbmc/phosphor-watchdog" |
Andrew Geissler | 21fd695 | 2018-09-26 20:20:31 +0000 | [diff] [blame^] | 23 | SRCREV = "d4cbc5aad28f32c90e18d0fdd5ff8d1150fbd663" |
Vishwanatha Subbanna | 55c545a | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 24 | S = "${WORKDIR}/git" |
| 25 | |
| 26 | # Copies config file having arguments for host watchdog |
| 27 | SYSTEMD_ENVIRONMENT_FILE_${PN} +="obmc/watchdog/poweron" |
| 28 | |
| 29 | # Install the override to set up a Conflicts relation |
| 30 | SYSTEMD_OVERRIDE_${PN} += "poweron.conf:phosphor-watchdog@poweron.service.d/poweron.conf" |
| 31 | |
| 32 | # For now, watching PowerOn is the only usecase |
| 33 | OBMC_HOST_WATCHDOG_INSTANCES = "poweron" |
| 34 | |
| 35 | # This is really a DBUS service but the service name is |
| 36 | # an argument, so making it this way. |
| 37 | WATCHDOG_TMPL = "phosphor-watchdog@.service" |
Vishwanatha Subbanna | d8b3f61 | 2017-07-03 19:21:18 +0530 | [diff] [blame] | 38 | ENABLE_WATCHDOG_TMPL = "obmc-enable-host-watchdog@.service" |
Vishwanatha Subbanna | 55c545a | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 39 | SYSTEMD_SERVICE_${PN} += "${WATCHDOG_TMPL}" |
| 40 | |
Vishwanatha Subbanna | d8b3f61 | 2017-07-03 19:21:18 +0530 | [diff] [blame] | 41 | # To Enable Host Watchdog early during poweron |
| 42 | SYSTEMD_SERVICE_${PN} += "${ENABLE_WATCHDOG_TMPL}" |
| 43 | |
Vishwanatha Subbanna | 55c545a | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 44 | WATCHDOG_TGTFMT = "phosphor-watchdog@{0}.service" |
Vishwanatha Subbanna | d8b3f61 | 2017-07-03 19:21:18 +0530 | [diff] [blame] | 45 | ENABLE_WATCHDOG_TGTFMT = "obmc-enable-host-watchdog@{0}.service" |
| 46 | |
Andrew Geissler | 510ae37 | 2018-03-27 13:56:26 -0700 | [diff] [blame] | 47 | WATCHDOG_FMT = "../${WATCHDOG_TMPL}:obmc-host-startmin@{1}.target.wants/${WATCHDOG_TGTFMT}" |
| 48 | ENABLE_WATCHDOG_FMT = "../${ENABLE_WATCHDOG_TMPL}:obmc-host-startmin@{0}.target.wants/${ENABLE_WATCHDOG_TGTFMT}" |
Vishwanatha Subbanna | d8b3f61 | 2017-07-03 19:21:18 +0530 | [diff] [blame] | 49 | |
Vishwanatha Subbanna | 55c545a | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 50 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'WATCHDOG_FMT', 'OBMC_HOST_WATCHDOG_INSTANCES', 'OBMC_HOST_INSTANCES')}" |
Vishwanatha Subbanna | d8b3f61 | 2017-07-03 19:21:18 +0530 | [diff] [blame] | 51 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'ENABLE_WATCHDOG_FMT', 'OBMC_HOST_INSTANCES')}" |