Matt Spinler | b3acd56 | 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 \ |
Brad Bishop | f9c7613 | 2018-01-26 21:48:20 -0500 | [diff] [blame^] | 17 | openpower-dbus-interfaces \ |
Matt Spinler | b3acd56 | 2017-08-14 13:27:09 -0500 | [diff] [blame] | 18 | sdbus++-native \ |
| 19 | " |
| 20 | |
| 21 | RDEPENDS_${PN} += " \ |
| 22 | phosphor-logging \ |
| 23 | phosphor-dbus-interfaces \ |
| 24 | sdbusplus \ |
| 25 | " |
| 26 | |
| 27 | CHASSIS_ON_TGT = "obmc-chassis-poweron@0.target" |
Matt Spinler | 17d776f | 2017-09-19 14:02:40 -0500 | [diff] [blame] | 28 | SEQ_MONITOR_SVC = "witherspoon-pseq-monitor.service" |
| 29 | SEQ_MONITOR_FMT = "../${SEQ_MONITOR_SVC}:${CHASSIS_ON_TGT}.wants/${SEQ_MONITOR_SVC}" |
| 30 | |
Matt Spinler | b3acd56 | 2017-08-14 13:27:09 -0500 | [diff] [blame] | 31 | SEQ_PGOOD_SVC = "witherspoon-pseq-monitor-pgood.service" |
| 32 | SEQ_PGOOD_FMT = "../${SEQ_PGOOD_SVC}:${CHASSIS_ON_TGT}.wants/${SEQ_PGOOD_SVC}" |
| 33 | |
Matt Spinler | 17d776f | 2017-09-19 14:02:40 -0500 | [diff] [blame] | 34 | SYSTEMD_SERVICE_${PN} += "${SEQ_MONITOR_SVC} ${SEQ_PGOOD_SVC}" |
| 35 | SYSTEMD_LINK_${PN} += "${SEQ_MONITOR_FMT} ${SEQ_PGOOD_FMT}" |
Brandon Wyman | 8f2e7d5 | 2017-08-15 16:41:08 -0500 | [diff] [blame] | 36 | |
| 37 | PSU_MONITOR_TMPL = "witherspoon-power-supply-monitor@.service" |
| 38 | PSU_MONITOR_INSTFMT = "witherspoon-power-supply-monitor@{0}.service" |
| 39 | PSU_MONITOR_TGT = "${SYSTEMD_DEFAULT_TARGET}" |
| 40 | PSU_MONITOR_FMT = "../${PSU_MONITOR_TMPL}:${PSU_MONITOR_TGT}.requires/${PSU_MONITOR_INSTFMT}" |
| 41 | |
| 42 | FILES_witherspoon-psu-monitor = "${sbindir}/witherspoon-psu-monitor" |
| 43 | SYSTEMD_SERVICE_${PN} += "${PSU_MONITOR_TMPL}" |
| 44 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'PSU_MONITOR_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}" |
| 45 | |
| 46 | PSU_MONITOR_ENV_FMT = "obmc/power-supply-monitor/power-supply-monitor-{0}.conf" |
| 47 | SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'PSU_MONITOR_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}" |