1SUMMARY = "Phosphor Watchdog application" 2DESCRIPTION = "Application that implements software watchdog" 3HOMEPAGE = "http://github.com/openbmc/phosphor-watchdog" 4PR = "r1" 5PV = "1.0+git${SRCPV}" 6LICENSE = "Apache-2.0" 7LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" 8 9inherit meson pkgconfig 10inherit obmc-phosphor-dbus-service 11 12DEPENDS += "cli11" 13DEPENDS += "sdbusplus" 14DEPENDS += "sdeventplus" 15DEPENDS += "phosphor-dbus-interfaces" 16DEPENDS += "phosphor-logging" 17DEPENDS += "systemd" 18 19SRC_URI = "git://github.com/openbmc/phosphor-watchdog;branch=master;protocol=https" 20SRCREV = "5c423703431b83520d5c7f05f479a244bc3590af" 21S = "${WORKDIR}/git" 22 23EXTRA_OEMESON = " \ 24 -Dtests=disabled \ 25 " 26 27# Copies config file having arguments for host watchdog 28SYSTEMD_ENVIRONMENT_FILE:${PN} +="obmc/watchdog/poweron" 29 30# Install the override to set up a Conflicts relation 31SYSTEMD_OVERRIDE:${PN} += "poweron.conf:phosphor-watchdog@poweron.service.d/poweron.conf" 32 33# For now, watching PowerOn is the only usecase 34OBMC_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. 38WATCHDOG_TMPL = "phosphor-watchdog@.service" 39ENABLE_WATCHDOG_TMPL = "obmc-enable-host-watchdog@.service" 40SYSTEMD_SERVICE:${PN} += "${WATCHDOG_TMPL}" 41 42# To Enable Host Watchdog early during poweron 43SYSTEMD_SERVICE:${PN} += "${ENABLE_WATCHDOG_TMPL}" 44 45WATCHDOG_TGTFMT = "phosphor-watchdog@{0}.service" 46ENABLE_WATCHDOG_TGTFMT = "obmc-enable-host-watchdog@{0}.service" 47 48WATCHDOG_FMT = "../${WATCHDOG_TMPL}:obmc-host-startmin@{1}.target.wants/${WATCHDOG_TGTFMT}" 49ENABLE_WATCHDOG_FMT = "../${ENABLE_WATCHDOG_TMPL}:obmc-host-startmin@{0}.target.wants/${ENABLE_WATCHDOG_TGTFMT}" 50 51SYSTEMD_LINK:${PN} += "${@compose_list(d, 'WATCHDOG_FMT', 'OBMC_HOST_WATCHDOG_INSTANCES', 'OBMC_HOST_INSTANCES')}" 52SYSTEMD_LINK:${PN} += "${@compose_list(d, 'ENABLE_WATCHDOG_FMT', 'OBMC_HOST_INSTANCES')}" 53