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" |
Patrick Venture | c2133c2 | 2018-10-26 09:37:21 -0700 | [diff] [blame] | 4 | PV = "1.0+git${SRCPV}" |
Matt Spinler | eea390f | 2017-08-14 13:27:09 -0500 | [diff] [blame] | 5 | |
| 6 | inherit autotools |
| 7 | inherit pkgconfig |
| 8 | inherit obmc-phosphor-systemd |
| 9 | inherit pythonnative |
| 10 | |
| 11 | require ${PN}.inc |
| 12 | |
| 13 | S = "${WORKDIR}/git" |
| 14 | |
| 15 | DEPENDS += " \ |
| 16 | phosphor-logging \ |
| 17 | autoconf-archive-native \ |
Brad Bishop | d6374e7 | 2018-01-26 21:48:20 -0500 | [diff] [blame] | 18 | openpower-dbus-interfaces \ |
Matt Spinler | eea390f | 2017-08-14 13:27:09 -0500 | [diff] [blame] | 19 | sdbus++-native \ |
William A. Kennington III | dd44eaa | 2018-10-18 01:43:05 -0700 | [diff] [blame] | 20 | sdeventplus \ |
Matt Spinler | eea390f | 2017-08-14 13:27:09 -0500 | [diff] [blame] | 21 | " |
| 22 | |
Matt Spinler | eea390f | 2017-08-14 13:27:09 -0500 | [diff] [blame] | 23 | CHASSIS_ON_TGT = "obmc-chassis-poweron@0.target" |
Matt Spinler | 0464f53 | 2017-09-19 14:02:40 -0500 | [diff] [blame] | 24 | SEQ_MONITOR_SVC = "witherspoon-pseq-monitor.service" |
| 25 | SEQ_MONITOR_FMT = "../${SEQ_MONITOR_SVC}:${CHASSIS_ON_TGT}.wants/${SEQ_MONITOR_SVC}" |
| 26 | |
Matt Spinler | eea390f | 2017-08-14 13:27:09 -0500 | [diff] [blame] | 27 | SEQ_PGOOD_SVC = "witherspoon-pseq-monitor-pgood.service" |
| 28 | SEQ_PGOOD_FMT = "../${SEQ_PGOOD_SVC}:${CHASSIS_ON_TGT}.wants/${SEQ_PGOOD_SVC}" |
| 29 | |
Matt Spinler | 0464f53 | 2017-09-19 14:02:40 -0500 | [diff] [blame] | 30 | SYSTEMD_SERVICE_${PN} += "${SEQ_MONITOR_SVC} ${SEQ_PGOOD_SVC}" |
| 31 | SYSTEMD_LINK_${PN} += "${SEQ_MONITOR_FMT} ${SEQ_PGOOD_FMT}" |
Brandon Wyman | 9f37d31 | 2017-08-15 16:41:08 -0500 | [diff] [blame] | 32 | |
| 33 | PSU_MONITOR_TMPL = "witherspoon-power-supply-monitor@.service" |
| 34 | PSU_MONITOR_INSTFMT = "witherspoon-power-supply-monitor@{0}.service" |
| 35 | PSU_MONITOR_TGT = "${SYSTEMD_DEFAULT_TARGET}" |
| 36 | PSU_MONITOR_FMT = "../${PSU_MONITOR_TMPL}:${PSU_MONITOR_TGT}.requires/${PSU_MONITOR_INSTFMT}" |
| 37 | |
| 38 | FILES_witherspoon-psu-monitor = "${sbindir}/witherspoon-psu-monitor" |
| 39 | SYSTEMD_SERVICE_${PN} += "${PSU_MONITOR_TMPL}" |
| 40 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'PSU_MONITOR_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}" |
| 41 | |
| 42 | PSU_MONITOR_ENV_FMT = "obmc/power-supply-monitor/power-supply-monitor-{0}.conf" |
| 43 | SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'PSU_MONITOR_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}" |