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