Andrew Jeffery | 858c971 | 2021-05-04 12:46:46 +0930 | [diff] [blame] | 1 | SUMMARY = "Debug trigger" |
| 2 | DESCRIPTION = "Forcibly crash an unresponsive system to collect debug data" |
| 3 | HOMEPAGE = "https://github.com/openbmc/debug-trigger" |
| 4 | |
| 5 | SRC_URI = "git://github.com/openbmc/debug-trigger" |
| 6 | |
| 7 | LICENSE = "Apache-2.0" |
| 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" |
| 9 | |
| 10 | S = "${WORKDIR}/git" |
| 11 | |
| 12 | inherit meson |
| 13 | inherit pkgconfig |
| 14 | inherit systemd |
| 15 | |
| 16 | PR = "r1" |
| 17 | PV = "0.1+git${SRCPV}" |
Andrew Geissler | f1f5524 | 2021-06-17 13:20:40 +0000 | [diff] [blame] | 18 | SRCREV = "15fe59cb0fc1430bdd05a85e7c7887ccc4e5c013" |
Andrew Jeffery | 858c971 | 2021-05-04 12:46:46 +0930 | [diff] [blame] | 19 | |
| 20 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" |
| 21 | |
| 22 | DEBUG_TRIGGERS ?= "" |
| 23 | |
| 24 | PACKAGECONFIG[systemd] = " \ |
| 25 | -Dsystemd=true, \ |
| 26 | -Dsystemd=false, \ |
| 27 | systemd" |
| 28 | |
| 29 | PACKAGECONFIG[triggers] = " \ |
| 30 | -Dtriggers=${DEBUG_TRIGGERS}, \ |
| 31 | -Dtriggers=[], \ |
| 32 | systemd udev" |
| 33 | |
| 34 | SYSTEMD_SERVICE_${PN} += "debug-trigger@.service" |