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 | |
Andrew Geissler | 23d2fef | 2019-09-17 19:00:24 +0000 | [diff] [blame] | 6 | inherit meson |
Matt Spinler | eea390f | 2017-08-14 13:27:09 -0500 | [diff] [blame] | 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 \ |
Brandon Wyman | b5b193f | 2019-04-12 16:07:06 -0500 | [diff] [blame] | 21 | power-sequencer \ |
Andrew Geissler | 78be066 | 2019-10-14 14:00:23 +0000 | [diff] [blame] | 22 | nlohmann-json \ |
Matt Spinler | eea390f | 2017-08-14 13:27:09 -0500 | [diff] [blame] | 23 | " |
| 24 | |
Matt Spinler | 6017c7f | 2019-10-14 14:16:40 -0500 | [diff] [blame] | 25 | EXTRA_OEMESON += "-Ducd90160-yaml=${STAGING_DIR_HOST}${datadir}/power-sequencer/ucd90160.yaml" |
Brandon Wyman | b5b193f | 2019-04-12 16:07:06 -0500 | [diff] [blame] | 26 | |
Matt Spinler | eea390f | 2017-08-14 13:27:09 -0500 | [diff] [blame] | 27 | CHASSIS_ON_TGT = "obmc-chassis-poweron@0.target" |
Brandon Wyman | fe3a464 | 2019-03-13 13:27:13 -0500 | [diff] [blame] | 28 | SEQ_MONITOR_SVC = "pseq-monitor.service" |
Matt Spinler | 0464f53 | 2017-09-19 14:02:40 -0500 | [diff] [blame] | 29 | SEQ_MONITOR_FMT = "../${SEQ_MONITOR_SVC}:${CHASSIS_ON_TGT}.wants/${SEQ_MONITOR_SVC}" |
| 30 | |
Brandon Wyman | fe3a464 | 2019-03-13 13:27:13 -0500 | [diff] [blame] | 31 | SEQ_PGOOD_SVC = "pseq-monitor-pgood.service" |
Matt Spinler | eea390f | 2017-08-14 13:27:09 -0500 | [diff] [blame] | 32 | SEQ_PGOOD_FMT = "../${SEQ_PGOOD_SVC}:${CHASSIS_ON_TGT}.wants/${SEQ_PGOOD_SVC}" |
| 33 | |
Matt Spinler | 0464f53 | 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 | 9f37d31 | 2017-08-15 16:41:08 -0500 | [diff] [blame] | 36 | |
Brandon Wyman | fe3a464 | 2019-03-13 13:27:13 -0500 | [diff] [blame] | 37 | PSU_MONITOR_TMPL = "power-supply-monitor@.service" |
| 38 | PSU_MONITOR_INSTFMT = "power-supply-monitor@{0}.service" |
Patrick Venture | 85cff8c | 2019-04-04 13:06:43 -0700 | [diff] [blame] | 39 | PSU_MONITOR_TGT = "multi-user.target" |
Brandon Wyman | 9f37d31 | 2017-08-15 16:41:08 -0500 | [diff] [blame] | 40 | PSU_MONITOR_FMT = "../${PSU_MONITOR_TMPL}:${PSU_MONITOR_TGT}.requires/${PSU_MONITOR_INSTFMT}" |
| 41 | |
Brandon Wyman | fe3a464 | 2019-03-13 13:27:13 -0500 | [diff] [blame] | 42 | FILES_psu-monitor = "${bindir}/psu-monitor" |
Brandon Wyman | 9f37d31 | 2017-08-15 16:41:08 -0500 | [diff] [blame] | 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')}" |