Matt Spinler | 1696ec2 | 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 | fec8b04 | 2018-10-26 09:37:21 -0700 | [diff] [blame] | 4 | PV = "1.0+git${SRCPV}" |
Matt Spinler | 1696ec2 | 2017-08-14 13:27:09 -0500 | [diff] [blame] | 5 | |
Andrew Geissler | 3d0041d | 2019-09-17 19:00:24 +0000 | [diff] [blame] | 6 | inherit meson |
Matt Spinler | 1696ec2 | 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 | 04ff12c | 2018-01-26 21:48:20 -0500 | [diff] [blame] | 18 | openpower-dbus-interfaces \ |
Matt Spinler | 1696ec2 | 2017-08-14 13:27:09 -0500 | [diff] [blame] | 19 | sdbus++-native \ |
William A. Kennington III | b65afc7 | 2018-10-18 01:43:05 -0700 | [diff] [blame] | 20 | sdeventplus \ |
Brandon Wyman | 8c694d3 | 2019-04-12 16:07:06 -0500 | [diff] [blame] | 21 | power-sequencer \ |
Matt Spinler | 1696ec2 | 2017-08-14 13:27:09 -0500 | [diff] [blame] | 22 | " |
| 23 | |
Brandon Wyman | 8c694d3 | 2019-04-12 16:07:06 -0500 | [diff] [blame] | 24 | EXTRA_OECONF = "UCD90160_DEF_YAML_FILE=${STAGING_DIR_HOST}${datadir}/power-sequencer/ucd90160.yaml" |
| 25 | |
Matt Spinler | 1696ec2 | 2017-08-14 13:27:09 -0500 | [diff] [blame] | 26 | CHASSIS_ON_TGT = "obmc-chassis-poweron@0.target" |
Brandon Wyman | f0a24b8 | 2019-03-13 13:27:13 -0500 | [diff] [blame] | 27 | SEQ_MONITOR_SVC = "pseq-monitor.service" |
Matt Spinler | 200e501 | 2017-09-19 14:02:40 -0500 | [diff] [blame] | 28 | SEQ_MONITOR_FMT = "../${SEQ_MONITOR_SVC}:${CHASSIS_ON_TGT}.wants/${SEQ_MONITOR_SVC}" |
| 29 | |
Brandon Wyman | f0a24b8 | 2019-03-13 13:27:13 -0500 | [diff] [blame] | 30 | SEQ_PGOOD_SVC = "pseq-monitor-pgood.service" |
Matt Spinler | 1696ec2 | 2017-08-14 13:27:09 -0500 | [diff] [blame] | 31 | SEQ_PGOOD_FMT = "../${SEQ_PGOOD_SVC}:${CHASSIS_ON_TGT}.wants/${SEQ_PGOOD_SVC}" |
| 32 | |
Matt Spinler | 200e501 | 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 | 360ebeb | 2017-08-15 16:41:08 -0500 | [diff] [blame] | 35 | |
Brandon Wyman | f0a24b8 | 2019-03-13 13:27:13 -0500 | [diff] [blame] | 36 | PSU_MONITOR_TMPL = "power-supply-monitor@.service" |
| 37 | PSU_MONITOR_INSTFMT = "power-supply-monitor@{0}.service" |
Patrick Venture | 44fd5e0 | 2019-04-04 13:06:43 -0700 | [diff] [blame] | 38 | PSU_MONITOR_TGT = "multi-user.target" |
Brandon Wyman | 360ebeb | 2017-08-15 16:41:08 -0500 | [diff] [blame] | 39 | PSU_MONITOR_FMT = "../${PSU_MONITOR_TMPL}:${PSU_MONITOR_TGT}.requires/${PSU_MONITOR_INSTFMT}" |
| 40 | |
Brandon Wyman | f0a24b8 | 2019-03-13 13:27:13 -0500 | [diff] [blame] | 41 | FILES_psu-monitor = "${bindir}/psu-monitor" |
Brandon Wyman | 360ebeb | 2017-08-15 16:41:08 -0500 | [diff] [blame] | 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')}" |