Vishwanatha Subbanna | 2d78dd0 | 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 | a1a628b | 2018-10-01 20:48:41 -0700 | [diff] [blame] | 5 | PV = "1.0+git${SRCPV}" |
Vishwanatha Subbanna | 2d78dd0 | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 6 | LICENSE = "Apache-2.0" |
| 7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" |
Patrick Venture | a1a628b | 2018-10-01 20:48:41 -0700 | [diff] [blame] | 8 | |
William A. Kennington III | 7d98c92 | 2019-03-28 03:38:35 -0700 | [diff] [blame] | 9 | inherit meson pkgconfig |
Vishwanatha Subbanna | 2d78dd0 | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 10 | inherit obmc-phosphor-dbus-service |
| 11 | |
William A. Kennington III | f33e9a1 | 2018-09-14 00:25:00 -0700 | [diff] [blame] | 12 | DEPENDS += "cli11" |
William A. Kennington III | f37d096 | 2019-03-27 20:21:26 -0700 | [diff] [blame] | 13 | DEPENDS += "sdbusplus" |
William A. Kennington III | 83d610a | 2018-09-13 23:32:19 -0700 | [diff] [blame] | 14 | DEPENDS += "sdeventplus" |
Vishwanatha Subbanna | 2d78dd0 | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 15 | DEPENDS += "phosphor-dbus-interfaces" |
| 16 | DEPENDS += "phosphor-logging" |
Brad Bishop | 44f3cce | 2019-03-22 23:41:42 -0400 | [diff] [blame] | 17 | DEPENDS += "systemd" |
Vishwanatha Subbanna | 2d78dd0 | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 18 | |
Patrick Williams | bb99d22 | 2022-01-24 15:55:09 -0600 | [diff] [blame] | 19 | SRC_URI += "git://github.com/openbmc/phosphor-watchdog;branch=master;protocol=https" |
Andrew Geissler | 683138d | 2022-12-09 14:20:23 -0600 | [diff] [blame] | 20 | SRCREV = "d1b1e79b74238694c7a25f873ace2ff6dab1b683" |
Vishwanatha Subbanna | 2d78dd0 | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 21 | S = "${WORKDIR}/git" |
| 22 | |
William A. Kennington III | 7d98c92 | 2019-03-28 03:38:35 -0700 | [diff] [blame] | 23 | EXTRA_OEMESON = " \ |
| 24 | -Dtests=disabled \ |
| 25 | " |
| 26 | |
Vishwanatha Subbanna | 2d78dd0 | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 27 | # Copies config file having arguments for host watchdog |
Patrick Williams | e83c220 | 2021-09-01 16:17:33 -0500 | [diff] [blame] | 28 | SYSTEMD_ENVIRONMENT_FILE:${PN} +="obmc/watchdog/poweron" |
Vishwanatha Subbanna | 2d78dd0 | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 29 | |
| 30 | # Install the override to set up a Conflicts relation |
Patrick Williams | e83c220 | 2021-09-01 16:17:33 -0500 | [diff] [blame] | 31 | SYSTEMD_OVERRIDE:${PN} += "poweron.conf:phosphor-watchdog@poweron.service.d/poweron.conf" |
Vishwanatha Subbanna | 2d78dd0 | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 32 | |
| 33 | # For now, watching PowerOn is the only usecase |
| 34 | OBMC_HOST_WATCHDOG_INSTANCES = "poweron" |
| 35 | |
| 36 | # This is really a DBUS service but the service name is |
| 37 | # an argument, so making it this way. |
| 38 | WATCHDOG_TMPL = "phosphor-watchdog@.service" |
Vishwanatha Subbanna | b5e5644 | 2017-07-03 19:21:18 +0530 | [diff] [blame] | 39 | ENABLE_WATCHDOG_TMPL = "obmc-enable-host-watchdog@.service" |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 40 | SYSTEMD_SERVICE:${PN} += "${WATCHDOG_TMPL}" |
Vishwanatha Subbanna | 2d78dd0 | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 41 | |
Vishwanatha Subbanna | b5e5644 | 2017-07-03 19:21:18 +0530 | [diff] [blame] | 42 | # To Enable Host Watchdog early during poweron |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 43 | SYSTEMD_SERVICE:${PN} += "${ENABLE_WATCHDOG_TMPL}" |
Vishwanatha Subbanna | b5e5644 | 2017-07-03 19:21:18 +0530 | [diff] [blame] | 44 | |
Vishwanatha Subbanna | 2d78dd0 | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 45 | WATCHDOG_TGTFMT = "phosphor-watchdog@{0}.service" |
Vishwanatha Subbanna | b5e5644 | 2017-07-03 19:21:18 +0530 | [diff] [blame] | 46 | ENABLE_WATCHDOG_TGTFMT = "obmc-enable-host-watchdog@{0}.service" |
| 47 | |
Andrew Geissler | 5c76e0c | 2018-03-27 13:56:26 -0700 | [diff] [blame] | 48 | WATCHDOG_FMT = "../${WATCHDOG_TMPL}:obmc-host-startmin@{1}.target.wants/${WATCHDOG_TGTFMT}" |
| 49 | ENABLE_WATCHDOG_FMT = "../${ENABLE_WATCHDOG_TMPL}:obmc-host-startmin@{0}.target.wants/${ENABLE_WATCHDOG_TGTFMT}" |
Vishwanatha Subbanna | b5e5644 | 2017-07-03 19:21:18 +0530 | [diff] [blame] | 50 | |
Patrick Williams | e83c220 | 2021-09-01 16:17:33 -0500 | [diff] [blame] | 51 | SYSTEMD_LINK:${PN} += "${@compose_list(d, 'WATCHDOG_FMT', 'OBMC_HOST_WATCHDOG_INSTANCES', 'OBMC_HOST_INSTANCES')}" |
| 52 | SYSTEMD_LINK:${PN} += "${@compose_list(d, 'ENABLE_WATCHDOG_FMT', 'OBMC_HOST_INSTANCES')}" |