blob: 2f46f7804a296b097063b51041a02d19d357e510 [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 \
17 sdbus++-native \
18 "
19
20RDEPENDS_${PN} += " \
21 phosphor-logging \
22 phosphor-dbus-interfaces \
23 sdbusplus \
24 "
25
26CHASSIS_ON_TGT = "obmc-chassis-poweron@0.target"
Matt Spinler0464f532017-09-19 14:02:40 -050027SEQ_MONITOR_SVC = "witherspoon-pseq-monitor.service"
28SEQ_MONITOR_FMT = "../${SEQ_MONITOR_SVC}:${CHASSIS_ON_TGT}.wants/${SEQ_MONITOR_SVC}"
29
Matt Spinlereea390f2017-08-14 13:27:09 -050030SEQ_PGOOD_SVC = "witherspoon-pseq-monitor-pgood.service"
31SEQ_PGOOD_FMT = "../${SEQ_PGOOD_SVC}:${CHASSIS_ON_TGT}.wants/${SEQ_PGOOD_SVC}"
32
Matt Spinler0464f532017-09-19 14:02:40 -050033SYSTEMD_SERVICE_${PN} += "${SEQ_MONITOR_SVC} ${SEQ_PGOOD_SVC}"
34SYSTEMD_LINK_${PN} += "${SEQ_MONITOR_FMT} ${SEQ_PGOOD_FMT}"
Brandon Wyman9f37d312017-08-15 16:41:08 -050035
36PSU_MONITOR_TMPL = "witherspoon-power-supply-monitor@.service"
37PSU_MONITOR_INSTFMT = "witherspoon-power-supply-monitor@{0}.service"
38PSU_MONITOR_TGT = "${SYSTEMD_DEFAULT_TARGET}"
39PSU_MONITOR_FMT = "../${PSU_MONITOR_TMPL}:${PSU_MONITOR_TGT}.requires/${PSU_MONITOR_INSTFMT}"
40
41FILES_witherspoon-psu-monitor = "${sbindir}/witherspoon-psu-monitor"
42SYSTEMD_SERVICE_${PN} += "${PSU_MONITOR_TMPL}"
43SYSTEMD_LINK_${PN} += "${@compose_list(d, 'PSU_MONITOR_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"
44
45PSU_MONITOR_ENV_FMT = "obmc/power-supply-monitor/power-supply-monitor-{0}.conf"
46SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'PSU_MONITOR_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"