Matt Spinler | eea390f | 2017-08-14 13:27:09 -0500 | [diff] [blame] | 1 | SUMMARY = "Witherspoon Power Fault Analysis" |
| 2 | DESCRIPTION = "Analyzes power devices for faults" |
| 3 | PR = "r1" |
| 4 | |
| 5 | inherit autotools |
| 6 | inherit pkgconfig |
| 7 | inherit obmc-phosphor-systemd |
| 8 | inherit pythonnative |
| 9 | |
| 10 | require ${PN}.inc |
| 11 | |
| 12 | S = "${WORKDIR}/git" |
| 13 | |
| 14 | DEPENDS += " \ |
| 15 | phosphor-logging \ |
| 16 | autoconf-archive-native \ |
| 17 | sdbus++-native \ |
| 18 | " |
| 19 | |
| 20 | RDEPENDS_${PN} += " \ |
| 21 | phosphor-logging \ |
| 22 | phosphor-dbus-interfaces \ |
| 23 | sdbusplus \ |
| 24 | " |
| 25 | |
| 26 | CHASSIS_ON_TGT = "obmc-chassis-poweron@0.target" |
Matt Spinler | 0464f53 | 2017-09-19 14:02:40 -0500 | [diff] [blame] | 27 | SEQ_MONITOR_SVC = "witherspoon-pseq-monitor.service" |
| 28 | SEQ_MONITOR_FMT = "../${SEQ_MONITOR_SVC}:${CHASSIS_ON_TGT}.wants/${SEQ_MONITOR_SVC}" |
| 29 | |
Matt Spinler | eea390f | 2017-08-14 13:27:09 -0500 | [diff] [blame] | 30 | SEQ_PGOOD_SVC = "witherspoon-pseq-monitor-pgood.service" |
| 31 | SEQ_PGOOD_FMT = "../${SEQ_PGOOD_SVC}:${CHASSIS_ON_TGT}.wants/${SEQ_PGOOD_SVC}" |
| 32 | |
Matt Spinler | 0464f53 | 2017-09-19 14:02:40 -0500 | [diff] [blame] | 33 | SYSTEMD_SERVICE_${PN} += "${SEQ_MONITOR_SVC} ${SEQ_PGOOD_SVC}" |
| 34 | SYSTEMD_LINK_${PN} += "${SEQ_MONITOR_FMT} ${SEQ_PGOOD_FMT}" |
Brandon Wyman | 9f37d31 | 2017-08-15 16:41:08 -0500 | [diff] [blame] | 35 | |
| 36 | PSU_MONITOR_TMPL = "witherspoon-power-supply-monitor@.service" |
| 37 | PSU_MONITOR_INSTFMT = "witherspoon-power-supply-monitor@{0}.service" |
| 38 | PSU_MONITOR_TGT = "${SYSTEMD_DEFAULT_TARGET}" |
| 39 | PSU_MONITOR_FMT = "../${PSU_MONITOR_TMPL}:${PSU_MONITOR_TGT}.requires/${PSU_MONITOR_INSTFMT}" |
| 40 | |
| 41 | FILES_witherspoon-psu-monitor = "${sbindir}/witherspoon-psu-monitor" |
| 42 | SYSTEMD_SERVICE_${PN} += "${PSU_MONITOR_TMPL}" |
| 43 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'PSU_MONITOR_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}" |
| 44 | |
| 45 | PSU_MONITOR_ENV_FMT = "obmc/power-supply-monitor/power-supply-monitor-{0}.conf" |
| 46 | SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'PSU_MONITOR_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}" |