blob: b9a2393d9682670e00c0227f39d70e30e7f40655 [file] [log] [blame]
Marri Devender Rao84f125e2017-04-27 03:38:39 -05001SUMMARY = "OpenPOWER Debug Collector"
Vishwanatha Subbannaeeae33c2017-06-13 15:00:24 +05302DESCRIPTION = "Application to log error during host checkstop and watchdog timeout"
Marri Devender Rao84f125e2017-04-27 03:38:39 -05003
4PR = "r1"
Patrick Venturee2e5fa72018-10-26 09:43:44 -07005PV = "1.0+git${SRCPV}"
Marri Devender Rao84f125e2017-04-27 03:38:39 -05006
Andrew Geisslerbaf5ba72021-11-03 10:01:23 -05007inherit pkgconfig meson \
Marri Devender Rao84f125e2017-04-27 03:38:39 -05008 obmc-phosphor-systemd \
Jayanth Othayoth9b2384a2020-02-20 00:13:48 -06009 python3native \
Marri Devender Raodb5a6c42017-09-27 21:55:57 -050010 phosphor-dbus-yaml
Marri Devender Rao84f125e2017-04-27 03:38:39 -050011
Patrick Williams6c9e0142020-04-03 15:45:27 -050012require ${BPN}.inc
Andrew Geissleree126002021-02-01 16:17:23 -060013require ${BPN}-systemd-links.inc
Marri Devender Rao84f125e2017-04-27 03:38:39 -050014
15DEPENDS += " \
16 phosphor-logging \
Patrick Williamsba5282b2020-03-31 16:43:15 -050017 ${PYTHON_PN}-sdbus++-native \
Andrew Geissler6fe762a2021-08-11 05:00:23 +000018 cli11 \
Marri Devender Rao84f125e2017-04-27 03:38:39 -050019 "
Marri Devender Rao84f125e2017-04-27 03:38:39 -050020S = "${WORKDIR}/git"
21
Shantappa Teekappanavar47acdb12021-08-24 22:08:31 -050022# This provides below applications that are called into in case
23# of host checkstop, host watchdog and host watchdog-timeout respectively.
Shantappa Teekappanavar2ffa05e2021-08-31 17:49:10 -050024APPS = " \
25 checkstop \
26 watchdog \
Patrick Williams8c561ee2021-10-22 14:20:12 -050027 ${@bb.utils.contains('MACHINE_FEATURES', 'phal', '', 'watchdog-timeout', d)} \
Shantappa Teekappanavar2ffa05e2021-08-31 17:49:10 -050028 "
Marri Devender Rao84f125e2017-04-27 03:38:39 -050029
Vishwanatha Subbannab7f74192017-06-13 14:11:06 +053030DEBUG_TMPL = "openpower-debug-collector-{0}@.service"
Adriana Kobylak8c6707f2021-08-06 17:35:36 +000031SYSTEMD_SERVICE:${PN} += "${@compose_list(d, 'DEBUG_TMPL', 'APPS')}"
Vishwanatha Subbannab7f74192017-06-13 14:11:06 +053032
Marri Devender Raodb5a6c42017-09-27 21:55:57 -050033# Do not depend on phosphor-logging for native build
Adriana Kobylak8c6707f2021-08-06 17:35:36 +000034DEPENDS:remove:class-native = "phosphor-logging"
Marri Devender Raodb5a6c42017-09-27 21:55:57 -050035
36# Do not depend on phosphor-logging for native SDK build
Adriana Kobylak8c6707f2021-08-06 17:35:36 +000037DEPENDS:remove:class-nativesdk = "phosphor-logging"