blob: 1d148dfa08337504ea82fbfc58dcc5244990272a [file] [log] [blame]
Matt Spinlereea390f2017-08-14 13:27:09 -05001SUMMARY = "Witherspoon Power Fault Analysis"
2DESCRIPTION = "Analyzes power devices for faults"
3PR = "r1"
4
5inherit autotools
6inherit pkgconfig
7inherit obmc-phosphor-systemd
8inherit pythonnative
9
10require ${PN}.inc
11
12S = "${WORKDIR}/git"
13
14DEPENDS += " \
15 phosphor-logging \
16 autoconf-archive-native \
Brad Bishopd6374e72018-01-26 21:48:20 -050017 openpower-dbus-interfaces \
Matt Spinlereea390f2017-08-14 13:27:09 -050018 sdbus++-native \
19 "
20
21RDEPENDS_${PN} += " \
22 phosphor-logging \
23 phosphor-dbus-interfaces \
24 sdbusplus \
25 "
26
27CHASSIS_ON_TGT = "obmc-chassis-poweron@0.target"
Matt Spinler0464f532017-09-19 14:02:40 -050028SEQ_MONITOR_SVC = "witherspoon-pseq-monitor.service"
29SEQ_MONITOR_FMT = "../${SEQ_MONITOR_SVC}:${CHASSIS_ON_TGT}.wants/${SEQ_MONITOR_SVC}"
30
Matt Spinlereea390f2017-08-14 13:27:09 -050031SEQ_PGOOD_SVC = "witherspoon-pseq-monitor-pgood.service"
32SEQ_PGOOD_FMT = "../${SEQ_PGOOD_SVC}:${CHASSIS_ON_TGT}.wants/${SEQ_PGOOD_SVC}"
33
Matt Spinler0464f532017-09-19 14:02:40 -050034SYSTEMD_SERVICE_${PN} += "${SEQ_MONITOR_SVC} ${SEQ_PGOOD_SVC}"
35SYSTEMD_LINK_${PN} += "${SEQ_MONITOR_FMT} ${SEQ_PGOOD_FMT}"
Brandon Wyman9f37d312017-08-15 16:41:08 -050036
37PSU_MONITOR_TMPL = "witherspoon-power-supply-monitor@.service"
38PSU_MONITOR_INSTFMT = "witherspoon-power-supply-monitor@{0}.service"
39PSU_MONITOR_TGT = "${SYSTEMD_DEFAULT_TARGET}"
40PSU_MONITOR_FMT = "../${PSU_MONITOR_TMPL}:${PSU_MONITOR_TGT}.requires/${PSU_MONITOR_INSTFMT}"
41
42FILES_witherspoon-psu-monitor = "${sbindir}/witherspoon-psu-monitor"
43SYSTEMD_SERVICE_${PN} += "${PSU_MONITOR_TMPL}"
44SYSTEMD_LINK_${PN} += "${@compose_list(d, 'PSU_MONITOR_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"
45
46PSU_MONITOR_ENV_FMT = "obmc/power-supply-monitor/power-supply-monitor-{0}.conf"
47SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'PSU_MONITOR_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"