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" |
Lei YU | 1903416 | 2019-10-24 13:01:46 +0800 | [diff] [blame] | 14 | SRC_URI += "file://psu.json" |
Matt Spinler | eea390f | 2017-08-14 13:27:09 -0500 | [diff] [blame] | 15 | |
| 16 | DEPENDS += " \ |
| 17 | phosphor-logging \ |
| 18 | autoconf-archive-native \ |
Brad Bishop | d6374e7 | 2018-01-26 21:48:20 -0500 | [diff] [blame] | 19 | openpower-dbus-interfaces \ |
Matt Spinler | eea390f | 2017-08-14 13:27:09 -0500 | [diff] [blame] | 20 | sdbus++-native \ |
William A. Kennington III | dd44eaa | 2018-10-18 01:43:05 -0700 | [diff] [blame] | 21 | sdeventplus \ |
Brandon Wyman | b5b193f | 2019-04-12 16:07:06 -0500 | [diff] [blame] | 22 | power-sequencer \ |
Andrew Geissler | 78be066 | 2019-10-14 14:00:23 +0000 | [diff] [blame] | 23 | nlohmann-json \ |
Matt Spinler | eea390f | 2017-08-14 13:27:09 -0500 | [diff] [blame] | 24 | " |
| 25 | |
Matt Spinler | 6017c7f | 2019-10-14 14:16:40 -0500 | [diff] [blame] | 26 | EXTRA_OEMESON += "-Ducd90160-yaml=${STAGING_DIR_HOST}${datadir}/power-sequencer/ucd90160.yaml" |
Brandon Wyman | b5b193f | 2019-04-12 16:07:06 -0500 | [diff] [blame] | 27 | |
Lei YU | 1903416 | 2019-10-24 13:01:46 +0800 | [diff] [blame] | 28 | do_install_append(){ |
| 29 | install -D ${WORKDIR}/psu.json ${D}${datadir}/phosphor-power/psu.json |
| 30 | } |
| 31 | FILES_${PN} += "${datadir}/phosphor-power/psu.json" |
| 32 | |
Matt Spinler | eea390f | 2017-08-14 13:27:09 -0500 | [diff] [blame] | 33 | CHASSIS_ON_TGT = "obmc-chassis-poweron@0.target" |
Brandon Wyman | fe3a464 | 2019-03-13 13:27:13 -0500 | [diff] [blame] | 34 | SEQ_MONITOR_SVC = "pseq-monitor.service" |
Matt Spinler | 0464f53 | 2017-09-19 14:02:40 -0500 | [diff] [blame] | 35 | SEQ_MONITOR_FMT = "../${SEQ_MONITOR_SVC}:${CHASSIS_ON_TGT}.wants/${SEQ_MONITOR_SVC}" |
| 36 | |
Brandon Wyman | fe3a464 | 2019-03-13 13:27:13 -0500 | [diff] [blame] | 37 | SEQ_PGOOD_SVC = "pseq-monitor-pgood.service" |
Matt Spinler | eea390f | 2017-08-14 13:27:09 -0500 | [diff] [blame] | 38 | SEQ_PGOOD_FMT = "../${SEQ_PGOOD_SVC}:${CHASSIS_ON_TGT}.wants/${SEQ_PGOOD_SVC}" |
| 39 | |
Matt Spinler | 0464f53 | 2017-09-19 14:02:40 -0500 | [diff] [blame] | 40 | SYSTEMD_SERVICE_${PN} += "${SEQ_MONITOR_SVC} ${SEQ_PGOOD_SVC}" |
| 41 | SYSTEMD_LINK_${PN} += "${SEQ_MONITOR_FMT} ${SEQ_PGOOD_FMT}" |
Brandon Wyman | 9f37d31 | 2017-08-15 16:41:08 -0500 | [diff] [blame] | 42 | |
Brandon Wyman | fe3a464 | 2019-03-13 13:27:13 -0500 | [diff] [blame] | 43 | PSU_MONITOR_TMPL = "power-supply-monitor@.service" |
| 44 | PSU_MONITOR_INSTFMT = "power-supply-monitor@{0}.service" |
Patrick Venture | 85cff8c | 2019-04-04 13:06:43 -0700 | [diff] [blame] | 45 | PSU_MONITOR_TGT = "multi-user.target" |
Brandon Wyman | 9f37d31 | 2017-08-15 16:41:08 -0500 | [diff] [blame] | 46 | PSU_MONITOR_FMT = "../${PSU_MONITOR_TMPL}:${PSU_MONITOR_TGT}.requires/${PSU_MONITOR_INSTFMT}" |
| 47 | |
Brandon Wyman | fe3a464 | 2019-03-13 13:27:13 -0500 | [diff] [blame] | 48 | FILES_psu-monitor = "${bindir}/psu-monitor" |
Brandon Wyman | 9f37d31 | 2017-08-15 16:41:08 -0500 | [diff] [blame] | 49 | SYSTEMD_SERVICE_${PN} += "${PSU_MONITOR_TMPL}" |
| 50 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'PSU_MONITOR_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}" |
| 51 | |
| 52 | PSU_MONITOR_ENV_FMT = "obmc/power-supply-monitor/power-supply-monitor-{0}.conf" |
| 53 | SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'PSU_MONITOR_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}" |