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" |
Patrick Venture | 4e4a296 | 2018-10-01 20:48:41 -0700 | [diff] [blame] | 5 | PV = "1.0+git${SRCPV}" |
Vishwanatha Subbanna | 55c545a | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 6 | LICENSE = "Apache-2.0" |
| 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" |
Patrick Venture | 4e4a296 | 2018-10-01 20:48:41 -0700 | [diff] [blame] | 8 | |
William A. Kennington III | 5fef274 | 2019-03-28 03:38:35 -0700 | [diff] [blame] | 9 | inherit meson pkgconfig |
Vishwanatha Subbanna | 55c545a | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 10 | inherit obmc-phosphor-dbus-service |
| 11 | |
| 12 | RPROVIDES_${PN} += "virtual/obmc-watchdog" |
| 13 | PROVIDES += "virtual/obmc-watchdog" |
| 14 | |
William A. Kennington III | 95fd2b8 | 2018-09-14 00:25:00 -0700 | [diff] [blame] | 15 | DEPENDS += "cli11" |
William A. Kennington III | d7d59cf | 2019-03-27 20:21:26 -0700 | [diff] [blame] | 16 | DEPENDS += "sdbusplus" |
William A. Kennington III | 6e1dfdd | 2018-09-13 23:32:19 -0700 | [diff] [blame] | 17 | DEPENDS += "sdeventplus" |
Vishwanatha Subbanna | 55c545a | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 18 | DEPENDS += "phosphor-dbus-interfaces" |
| 19 | DEPENDS += "phosphor-logging" |
Brad Bishop | 26873c9 | 2019-03-22 23:41:42 -0400 | [diff] [blame] | 20 | DEPENDS += "systemd" |
Vishwanatha Subbanna | 55c545a | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 21 | |
| 22 | SRC_URI += "git://github.com/openbmc/phosphor-watchdog" |
Andrew Geissler | 9911339 | 2019-04-19 00:03:15 +0000 | [diff] [blame] | 23 | SRCREV = "47a9ec4ee9b05a9794a09d16762e3ef7318c5489" |
Vishwanatha Subbanna | 55c545a | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 24 | S = "${WORKDIR}/git" |
| 25 | |
William A. Kennington III | 5fef274 | 2019-03-28 03:38:35 -0700 | [diff] [blame] | 26 | EXTRA_OEMESON = " \ |
| 27 | -Dtests=disabled \ |
| 28 | " |
| 29 | |
Vishwanatha Subbanna | 55c545a | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 30 | # Copies config file having arguments for host watchdog |
| 31 | SYSTEMD_ENVIRONMENT_FILE_${PN} +="obmc/watchdog/poweron" |
| 32 | |
| 33 | # Install the override to set up a Conflicts relation |
| 34 | SYSTEMD_OVERRIDE_${PN} += "poweron.conf:phosphor-watchdog@poweron.service.d/poweron.conf" |
| 35 | |
| 36 | # For now, watching PowerOn is the only usecase |
| 37 | OBMC_HOST_WATCHDOG_INSTANCES = "poweron" |
| 38 | |
| 39 | # This is really a DBUS service but the service name is |
| 40 | # an argument, so making it this way. |
| 41 | WATCHDOG_TMPL = "phosphor-watchdog@.service" |
Vishwanatha Subbanna | d8b3f61 | 2017-07-03 19:21:18 +0530 | [diff] [blame] | 42 | ENABLE_WATCHDOG_TMPL = "obmc-enable-host-watchdog@.service" |
Vishwanatha Subbanna | 55c545a | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 43 | SYSTEMD_SERVICE_${PN} += "${WATCHDOG_TMPL}" |
| 44 | |
Vishwanatha Subbanna | d8b3f61 | 2017-07-03 19:21:18 +0530 | [diff] [blame] | 45 | # To Enable Host Watchdog early during poweron |
| 46 | SYSTEMD_SERVICE_${PN} += "${ENABLE_WATCHDOG_TMPL}" |
| 47 | |
Vishwanatha Subbanna | 55c545a | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 48 | WATCHDOG_TGTFMT = "phosphor-watchdog@{0}.service" |
Vishwanatha Subbanna | d8b3f61 | 2017-07-03 19:21:18 +0530 | [diff] [blame] | 49 | ENABLE_WATCHDOG_TGTFMT = "obmc-enable-host-watchdog@{0}.service" |
| 50 | |
Andrew Geissler | 510ae37 | 2018-03-27 13:56:26 -0700 | [diff] [blame] | 51 | WATCHDOG_FMT = "../${WATCHDOG_TMPL}:obmc-host-startmin@{1}.target.wants/${WATCHDOG_TGTFMT}" |
| 52 | 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] | 53 | |
Vishwanatha Subbanna | 55c545a | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 54 | 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] | 55 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'ENABLE_WATCHDOG_FMT', 'OBMC_HOST_INSTANCES')}" |