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 \ |
Brandon Wyman | b5b193f | 2019-04-12 16:07:06 -0500 | [diff] [blame] | 21 | power-sequencer \ |
Matt Spinler | eea390f | 2017-08-14 13:27:09 -0500 | [diff] [blame] | 22 | " |
| 23 | |
Brandon Wyman | b5b193f | 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 | eea390f | 2017-08-14 13:27:09 -0500 | [diff] [blame] | 26 | CHASSIS_ON_TGT = "obmc-chassis-poweron@0.target" |
Brandon Wyman | fe3a464 | 2019-03-13 13:27:13 -0500 | [diff] [blame] | 27 | SEQ_MONITOR_SVC = "pseq-monitor.service" |
Matt Spinler | 0464f53 | 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 | fe3a464 | 2019-03-13 13:27:13 -0500 | [diff] [blame] | 30 | SEQ_PGOOD_SVC = "pseq-monitor-pgood.service" |
Matt Spinler | eea390f | 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 | 0464f53 | 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 | 9f37d31 | 2017-08-15 16:41:08 -0500 | [diff] [blame] | 35 | |
Brandon Wyman | fe3a464 | 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 | 85cff8c | 2019-04-04 13:06:43 -0700 | [diff] [blame] | 38 | PSU_MONITOR_TGT = "multi-user.target" |
Brandon Wyman | 9f37d31 | 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 | fe3a464 | 2019-03-13 13:27:13 -0500 | [diff] [blame] | 41 | FILES_psu-monitor = "${bindir}/psu-monitor" |
Brandon Wyman | 9f37d31 | 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')}" |