Jayanth Othayoth | 9963d17 | 2017-05-08 09:25:05 -0500 | [diff] [blame] | 1 | SUMMARY = "Phosphor Debug Collector" |
| 2 | DESCRIPTION = "Phosphor Debug Collector provides mechanisms \ |
| 3 | to collect various FFDC files and system parameters. \ |
| 4 | This will be helpful for troubleshooting the problems in OpenBMC \ |
| 5 | based systems." |
| 6 | |
| 7 | PR = "r1" |
| 8 | |
Jayanth Othayoth | 9d21d6c | 2017-05-31 06:25:55 -0500 | [diff] [blame] | 9 | DEBUG_COLLECTOR_PKGS = " \ |
| 10 | ${PN}-manager \ |
| 11 | ${PN}-monitor \ |
Jayanth Othayoth | d259249 | 2017-07-29 22:28:44 -0500 | [diff] [blame] | 12 | ${PN}-dreport \ |
Jayanth Othayoth | 9d21d6c | 2017-05-31 06:25:55 -0500 | [diff] [blame] | 13 | " |
| 14 | PACKAGES =+ "${DEBUG_COLLECTOR_PKGS}" |
| 15 | PACKAGES_remove = "${PN}" |
| 16 | RDEPENDS_${PN}-dev = "${DEBUG_COLLECTOR_PKGS}" |
| 17 | RDEPENDS_${PN}-staticdev = "${DEBUG_COLLECTOR_PKGS}" |
| 18 | |
| 19 | DBUS_PACKAGES = "${PN}-manager" |
| 20 | |
| 21 | SYSTEMD_PACKAGES = "${PN}-monitor" |
| 22 | |
Jayanth Othayoth | 9963d17 | 2017-05-08 09:25:05 -0500 | [diff] [blame] | 23 | inherit autotools \ |
| 24 | pkgconfig \ |
Jayanth Othayoth | aae91e3 | 2017-06-05 03:10:00 -0500 | [diff] [blame] | 25 | obmc-phosphor-dbus-service \ |
Jayanth Othayoth | 5f6d885 | 2017-07-05 10:31:16 -0500 | [diff] [blame] | 26 | pythonnative \ |
| 27 | phosphor-debug-collector |
Jayanth Othayoth | 9963d17 | 2017-05-08 09:25:05 -0500 | [diff] [blame] | 28 | |
| 29 | require phosphor-debug-collector.inc |
| 30 | |
| 31 | DEPENDS += " \ |
| 32 | phosphor-dbus-interfaces \ |
| 33 | phosphor-dbus-interfaces-native \ |
| 34 | phosphor-logging \ |
| 35 | sdbusplus \ |
| 36 | sdbusplus-native \ |
| 37 | autoconf-archive-native \ |
Jayanth Othayoth | 9d21d6c | 2017-05-31 06:25:55 -0500 | [diff] [blame] | 38 | " |
Jayanth Othayoth | 9963d17 | 2017-05-08 09:25:05 -0500 | [diff] [blame] | 39 | |
Jayanth Othayoth | 9d21d6c | 2017-05-31 06:25:55 -0500 | [diff] [blame] | 40 | RDEPENDS_${PN}-manager += " \ |
Jayanth Othayoth | 9963d17 | 2017-05-08 09:25:05 -0500 | [diff] [blame] | 41 | sdbusplus \ |
| 42 | phosphor-dbus-interfaces \ |
| 43 | phosphor-logging \ |
Jayanth Othayoth | d259249 | 2017-07-29 22:28:44 -0500 | [diff] [blame] | 44 | ${PN}-dreport \ |
Jayanth Othayoth | 9d21d6c | 2017-05-31 06:25:55 -0500 | [diff] [blame] | 45 | " |
| 46 | RDEPENDS_${PN}-monitor += " \ |
| 47 | sdbusplus \ |
| 48 | phosphor-dbus-interfaces \ |
| 49 | phosphor-logging \ |
| 50 | " |
Jayanth Othayoth | d259249 | 2017-07-29 22:28:44 -0500 | [diff] [blame] | 51 | RDEPENDS_${PN}-dreport += " \ |
| 52 | systemd \ |
| 53 | ${VIRTUAL-RUNTIME_base-utils} \ |
| 54 | bash \ |
| 55 | " |
Jayanth Othayoth | 9963d17 | 2017-05-08 09:25:05 -0500 | [diff] [blame] | 56 | |
Jayanth Othayoth | 5f6d885 | 2017-07-05 10:31:16 -0500 | [diff] [blame] | 57 | MGR_SVC ?= "xyz.openbmc_project.Dump.Manager.service" |
| 58 | |
| 59 | SYSTEMD_SUBSTITUTIONS += "BMC_DUMP_PATH:${bmc_dump_path}:${MGR_SVC}" |
| 60 | |
Jayanth Othayoth | 9d21d6c | 2017-05-31 06:25:55 -0500 | [diff] [blame] | 61 | FILES_${PN}-manager += "${sbindir}/phosphor-dump-manager" |
| 62 | FILES_${PN}-monitor += "${sbindir}/phosphor-dump-monitor" |
Jayanth Othayoth | d259249 | 2017-07-29 22:28:44 -0500 | [diff] [blame] | 63 | FILES_${PN}-dreport += "${bindir}/dreport" |
Jayanth Othayoth | 9d21d6c | 2017-05-31 06:25:55 -0500 | [diff] [blame] | 64 | |
Jayanth Othayoth | 5f6d885 | 2017-07-05 10:31:16 -0500 | [diff] [blame] | 65 | DBUS_SERVICE_${PN}-manager += "${MGR_SVC}" |
Jayanth Othayoth | 9d21d6c | 2017-05-31 06:25:55 -0500 | [diff] [blame] | 66 | SYSTEMD_SERVICE_${PN}-monitor += "obmc-dump-monitor.service" |
Jayanth Othayoth | 9963d17 | 2017-05-08 09:25:05 -0500 | [diff] [blame] | 67 | |
Jayanth Othayoth | f1b8517 | 2017-07-05 10:54:35 -0500 | [diff] [blame] | 68 | EXTRA_OECONF = "BMC_DUMP_PATH=${bmc_dump_path}" |
Jayanth Othayoth | 5f6d885 | 2017-07-05 10:31:16 -0500 | [diff] [blame] | 69 | |
Jayanth Othayoth | 9963d17 | 2017-05-08 09:25:05 -0500 | [diff] [blame] | 70 | S = "${WORKDIR}/git" |
Jayanth Othayoth | d259249 | 2017-07-29 22:28:44 -0500 | [diff] [blame] | 71 | |
| 72 | do_install_append() { |
| 73 | install -d ${D}${bindir} |
| 74 | install -m 0755 ${S}/tools/dreport \ |
| 75 | ${D}${bindir}/dreport |
| 76 | } |