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" |
| 16 | DEPENDS += "phosphor-dbus-interfaces" |
| 17 | DEPENDS += "phosphor-logging" |
| 18 | RDEPENDS_${PN} += "libsystemd" |
| 19 | RDEPENDS_${PN} += "phosphor-logging" |
| 20 | |
| 21 | SRC_URI += "git://github.com/openbmc/phosphor-watchdog" |
Patrick Williams | e311bb5 | 2017-06-15 08:40:04 -0500 | [diff] [blame^] | 22 | SRCREV = "50c30945b8195344da1b38bfc62dcb790f0eb29e" |
Vishwanatha Subbanna | 55c545a | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 23 | S = "${WORKDIR}/git" |
| 24 | |
| 25 | # Copies config file having arguments for host watchdog |
| 26 | SYSTEMD_ENVIRONMENT_FILE_${PN} +="obmc/watchdog/poweron" |
| 27 | |
| 28 | # Install the override to set up a Conflicts relation |
| 29 | SYSTEMD_OVERRIDE_${PN} += "poweron.conf:phosphor-watchdog@poweron.service.d/poweron.conf" |
| 30 | |
| 31 | # For now, watching PowerOn is the only usecase |
| 32 | OBMC_HOST_WATCHDOG_INSTANCES = "poweron" |
| 33 | |
| 34 | # This is really a DBUS service but the service name is |
| 35 | # an argument, so making it this way. |
| 36 | WATCHDOG_TMPL = "phosphor-watchdog@.service" |
| 37 | SYSTEMD_SERVICE_${PN} += "${WATCHDOG_TMPL}" |
| 38 | |
| 39 | WATCHDOG_TGTFMT = "phosphor-watchdog@{0}.service" |
| 40 | WATCHDOG_FMT = "../${WATCHDOG_TMPL}:obmc-host-start@{1}.target.wants/${WATCHDOG_TGTFMT}" |
| 41 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'WATCHDOG_FMT', 'OBMC_HOST_WATCHDOG_INSTANCES', 'OBMC_HOST_INSTANCES')}" |