blob: 41c6e2e380f4121cdef8c1a907021f2fae86f4d5 [file] [log] [blame]
Marri Devender Rao6a48c3c2017-04-27 03:38:39 -05001SUMMARY = "OpenPOWER Debug Collector"
Vishwanatha Subbanna3a532e92017-06-13 15:00:24 +05302DESCRIPTION = "Application to log error during host checkstop and watchdog timeout"
Marri Devender Rao6a48c3c2017-04-27 03:38:39 -05003
4PR = "r1"
5
6inherit autotools \
7 pkgconfig \
8 obmc-phosphor-systemd \
Marri Devender Rao9d873302017-05-14 08:53:45 -05009 pythonnative
Marri Devender Rao6a48c3c2017-04-27 03:38:39 -050010
11require ${PN}.inc
12
13DEPENDS += " \
14 phosphor-logging \
15 autoconf-archive-native \
Marri Devender Rao9d873302017-05-14 08:53:45 -050016 sdbus++-native \
Marri Devender Rao6a48c3c2017-04-27 03:38:39 -050017 "
Marri Devender Rao6a48c3c2017-04-27 03:38:39 -050018RDEPENDS_${PN} += " \
19 phosphor-logging \
20 "
21
22S = "${WORKDIR}/git"
23
Vishwanatha Subbannabe519ef2017-06-13 14:11:06 +053024# This provides below 2 applications that are called into in case
25# of host checkstop and host watchdog timeout respectively.
26APPS = "checkstop watchdog"
Marri Devender Rao6a48c3c2017-04-27 03:38:39 -050027
Vishwanatha Subbannabe519ef2017-06-13 14:11:06 +053028DEBUG_TMPL = "openpower-debug-collector-{0}@.service"
29SYSTEMD_SERVICE_${PN} += "${@compose_list(d, 'DEBUG_TMPL', 'APPS')}"
30
31# This needs to be executed as part of host crash
32CHECKSTOP_TMPL = "openpower-debug-collector-checkstop@.service"
33CRASH_TGTFMT = "obmc-host-crash@{0}.target"
34CHECKSTOP_INSTFMT = "openpower-debug-collector-checkstop@{0}.service"
35CRASH_CHECKSTOP_FMT = "../${CHECKSTOP_TMPL}:${CRASH_TGTFMT}.wants/${CHECKSTOP_INSTFMT}"
36
Vishwanatha Subbanna3a532e92017-06-13 15:00:24 +053037# Make watchdog part of obmc-host-timeout target
Vishwanatha Subbannabe519ef2017-06-13 14:11:06 +053038WDOG_TMPL = "openpower-debug-collector-watchdog@.service"
Vishwanatha Subbanna3a532e92017-06-13 15:00:24 +053039TIMEOUT_TGTFMT = "obmc-host-timeout@{0}.target"
Vishwanatha Subbannabe519ef2017-06-13 14:11:06 +053040WDOG_INSTFMT = "openpower-debug-collector-watchdog@{0}.service"
Vishwanatha Subbanna3a532e92017-06-13 15:00:24 +053041TIMEOUT_WDOG_FMT = "../${WDOG_TMPL}:${TIMEOUT_TGTFMT}.wants/${WDOG_INSTFMT}"
Vishwanatha Subbannabe519ef2017-06-13 14:11:06 +053042
43SYSTEMD_LINK_${PN} += "${@compose_list(d, 'CRASH_CHECKSTOP_FMT', 'OBMC_HOST_INSTANCES')}"
Vishwanatha Subbanna3a532e92017-06-13 15:00:24 +053044SYSTEMD_LINK_${PN} += "${@compose_list(d, 'TIMEOUT_WDOG_FMT', 'OBMC_HOST_INSTANCES')}"