summaryrefslogtreecommitdiffstats
path: root/meta-openbmc-machines
diff options
context:
space:
mode:
authorVishwanatha Subbanna <vishwa@linux.vnet.ibm.com>2017-06-13 15:00:24 +0530
committerPatrick Williams <patrick@stwcx.xyz>2017-06-15 04:48:21 +0000
commiteeae33c28cc4bda55d6db4a6dc144b8f1833ff2f (patch)
tree1a803bad7b22a9723cbdc0ac1d7b159931d815a2 /meta-openbmc-machines
parentb7f7419cc225a84f141310f160b2ef70bffa8e40 (diff)
downloadtalos-openbmc-eeae33c28cc4bda55d6db4a6dc144b8f1833ff2f.tar.gz
talos-openbmc-eeae33c28cc4bda55d6db4a6dc144b8f1833ff2f.zip
Add openpower-debug-collector-watchdog to host-timeout target
When the host watchdog times out, we need some kind of debug data before it is taken to quiesce state. Change-Id: I3ca2ff033c2f0d9f5484b06c9ebe831b500d6df2 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Diffstat (limited to 'meta-openbmc-machines')
-rw-r--r--meta-openbmc-machines/meta-openpower/common/recipes-phosphor/debug/openpower-debug-collector.bb9
1 files changed, 5 insertions, 4 deletions
diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/debug/openpower-debug-collector.bb b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/debug/openpower-debug-collector.bb
index 21737de4e..41c6e2e38 100644
--- a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/debug/openpower-debug-collector.bb
+++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/debug/openpower-debug-collector.bb
@@ -1,5 +1,5 @@
SUMMARY = "OpenPOWER Debug Collector"
-DESCRIPTION = "Application to log error during host checkstop"
+DESCRIPTION = "Application to log error during host checkstop and watchdog timeout"
PR = "r1"
@@ -34,10 +34,11 @@ CRASH_TGTFMT = "obmc-host-crash@{0}.target"
CHECKSTOP_INSTFMT = "openpower-debug-collector-checkstop@{0}.service"
CRASH_CHECKSTOP_FMT = "../${CHECKSTOP_TMPL}:${CRASH_TGTFMT}.wants/${CHECKSTOP_INSTFMT}"
-# For now, just create a watchdog symlink in base
+# Make watchdog part of obmc-host-timeout target
WDOG_TMPL = "openpower-debug-collector-watchdog@.service"
+TIMEOUT_TGTFMT = "obmc-host-timeout@{0}.target"
WDOG_INSTFMT = "openpower-debug-collector-watchdog@{0}.service"
-LINK_FMT = "${WDOG_TMPL}:${WDOG_INSTFMT}"
+TIMEOUT_WDOG_FMT = "../${WDOG_TMPL}:${TIMEOUT_TGTFMT}.wants/${WDOG_INSTFMT}"
SYSTEMD_LINK_${PN} += "${@compose_list(d, 'CRASH_CHECKSTOP_FMT', 'OBMC_HOST_INSTANCES')}"
-SYSTEMD_LINK_${PN} += "${@compose_list(d, 'LINK_FMT', 'OBMC_HOST_INSTANCES')}"
+SYSTEMD_LINK_${PN} += "${@compose_list(d, 'TIMEOUT_WDOG_FMT', 'OBMC_HOST_INSTANCES')}"
OpenPOWER on IntegriCloud