blob: cdb9275ba7078e5965c8e9d7056e2b0eef098c67 [file] [log] [blame]
Vishwanatha Subbanna55c545a2017-06-12 13:09:10 +05301SUMMARY = "Phosphor Watchdog application"
2DESCRIPTION = "Application that implements software watchdog"
3HOMEPAGE = "http://github.com/openbmc/phosphor-watchdog"
4PR = "r1"
5
6LICENSE = "Apache-2.0"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
8inherit autotools pkgconfig
9inherit obmc-phosphor-dbus-service
10
11RPROVIDES_${PN} += "virtual/obmc-watchdog"
12PROVIDES += "virtual/obmc-watchdog"
13
14DEPENDS += "autoconf-archive-native"
15DEPENDS += "sdbusplus sdbusplus-native"
16DEPENDS += "phosphor-dbus-interfaces"
17DEPENDS += "phosphor-logging"
18RDEPENDS_${PN} += "libsystemd"
19RDEPENDS_${PN} += "phosphor-logging"
20
21SRC_URI += "git://github.com/openbmc/phosphor-watchdog"
Andrew Geisslercda62fb2018-02-21 02:35:12 +000022SRCREV = "1232a151514f722bc13e4e0165f3dd02dc63de2a"
Vishwanatha Subbanna55c545a2017-06-12 13:09:10 +053023S = "${WORKDIR}/git"
24
25# Copies config file having arguments for host watchdog
26SYSTEMD_ENVIRONMENT_FILE_${PN} +="obmc/watchdog/poweron"
27
28# Install the override to set up a Conflicts relation
29SYSTEMD_OVERRIDE_${PN} += "poweron.conf:phosphor-watchdog@poweron.service.d/poweron.conf"
30
31# For now, watching PowerOn is the only usecase
32OBMC_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.
36WATCHDOG_TMPL = "phosphor-watchdog@.service"
Vishwanatha Subbannad8b3f612017-07-03 19:21:18 +053037ENABLE_WATCHDOG_TMPL = "obmc-enable-host-watchdog@.service"
Vishwanatha Subbanna55c545a2017-06-12 13:09:10 +053038SYSTEMD_SERVICE_${PN} += "${WATCHDOG_TMPL}"
39
Vishwanatha Subbannad8b3f612017-07-03 19:21:18 +053040# To Enable Host Watchdog early during poweron
41SYSTEMD_SERVICE_${PN} += "${ENABLE_WATCHDOG_TMPL}"
42
Vishwanatha Subbanna55c545a2017-06-12 13:09:10 +053043WATCHDOG_TGTFMT = "phosphor-watchdog@{0}.service"
Vishwanatha Subbannad8b3f612017-07-03 19:21:18 +053044ENABLE_WATCHDOG_TGTFMT = "obmc-enable-host-watchdog@{0}.service"
45
Vishwanatha Subbanna55c545a2017-06-12 13:09:10 +053046WATCHDOG_FMT = "../${WATCHDOG_TMPL}:obmc-host-start@{1}.target.wants/${WATCHDOG_TGTFMT}"
Vishwanatha Subbannad8b3f612017-07-03 19:21:18 +053047ENABLE_WATCHDOG_FMT = "../${ENABLE_WATCHDOG_TMPL}:obmc-host-start@{0}.target.wants/${ENABLE_WATCHDOG_TGTFMT}"
48
Vishwanatha Subbanna55c545a2017-06-12 13:09:10 +053049SYSTEMD_LINK_${PN} += "${@compose_list(d, 'WATCHDOG_FMT', 'OBMC_HOST_WATCHDOG_INSTANCES', 'OBMC_HOST_INSTANCES')}"
Vishwanatha Subbannad8b3f612017-07-03 19:21:18 +053050SYSTEMD_LINK_${PN} += "${@compose_list(d, 'ENABLE_WATCHDOG_FMT', 'OBMC_HOST_INSTANCES')}"