blob: bcf356eee3f929ee72109c2333b6ca33afa6a596 [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 \
Andrew Geissler962fa6a2021-10-29 04:10:19 +000019 ipl \
Marri Devender Rao84f125e2017-04-27 03:38:39 -050020 "
Marri Devender Rao84f125e2017-04-27 03:38:39 -050021S = "${WORKDIR}/git"
22
Shantappa Teekappanavar47acdb12021-08-24 22:08:31 -050023# This provides below applications that are called into in case
24# of host checkstop, host watchdog and host watchdog-timeout respectively.
Shantappa Teekappanavar2ffa05e2021-08-31 17:49:10 -050025APPS = " \
26 checkstop \
27 watchdog \
Patrick Williams8c561ee2021-10-22 14:20:12 -050028 ${@bb.utils.contains('MACHINE_FEATURES', 'phal', '', 'watchdog-timeout', d)} \
Shantappa Teekappanavar2ffa05e2021-08-31 17:49:10 -050029 "
Marri Devender Rao84f125e2017-04-27 03:38:39 -050030
Vishwanatha Subbannab7f74192017-06-13 14:11:06 +053031DEBUG_TMPL = "openpower-debug-collector-{0}@.service"
Adriana Kobylak8c6707f2021-08-06 17:35:36 +000032SYSTEMD_SERVICE:${PN} += "${@compose_list(d, 'DEBUG_TMPL', 'APPS')}"
Vishwanatha Subbannab7f74192017-06-13 14:11:06 +053033
Marri Devender Raodb5a6c42017-09-27 21:55:57 -050034# Do not depend on phosphor-logging for native build
Adriana Kobylak8c6707f2021-08-06 17:35:36 +000035DEPENDS:remove:class-native = "phosphor-logging"
Marri Devender Raodb5a6c42017-09-27 21:55:57 -050036
37# Do not depend on phosphor-logging for native SDK build
Andrew Geissler962fa6a2021-10-29 04:10:19 +000038DEPENDS:remove:class-nativesdk = "phosphor-logging ipl"