blob: 31cc9545d6db993766ea8d59dda2f2c9d4cf1123 [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 \
William A. Kennington IIIdd44eaa2018-10-18 01:43:05 -070019 sdeventplus \
Matt Spinlereea390f2017-08-14 13:27:09 -050020 "
21
22RDEPENDS_${PN} += " \
23 phosphor-logging \
24 phosphor-dbus-interfaces \
25 sdbusplus \
26 "
27
28CHASSIS_ON_TGT = "obmc-chassis-poweron@0.target"
Matt Spinler0464f532017-09-19 14:02:40 -050029SEQ_MONITOR_SVC = "witherspoon-pseq-monitor.service"
30SEQ_MONITOR_FMT = "../${SEQ_MONITOR_SVC}:${CHASSIS_ON_TGT}.wants/${SEQ_MONITOR_SVC}"
31
Matt Spinlereea390f2017-08-14 13:27:09 -050032SEQ_PGOOD_SVC = "witherspoon-pseq-monitor-pgood.service"
33SEQ_PGOOD_FMT = "../${SEQ_PGOOD_SVC}:${CHASSIS_ON_TGT}.wants/${SEQ_PGOOD_SVC}"
34
Matt Spinler0464f532017-09-19 14:02:40 -050035SYSTEMD_SERVICE_${PN} += "${SEQ_MONITOR_SVC} ${SEQ_PGOOD_SVC}"
36SYSTEMD_LINK_${PN} += "${SEQ_MONITOR_FMT} ${SEQ_PGOOD_FMT}"
Brandon Wyman9f37d312017-08-15 16:41:08 -050037
38PSU_MONITOR_TMPL = "witherspoon-power-supply-monitor@.service"
39PSU_MONITOR_INSTFMT = "witherspoon-power-supply-monitor@{0}.service"
40PSU_MONITOR_TGT = "${SYSTEMD_DEFAULT_TARGET}"
41PSU_MONITOR_FMT = "../${PSU_MONITOR_TMPL}:${PSU_MONITOR_TGT}.requires/${PSU_MONITOR_INSTFMT}"
42
43FILES_witherspoon-psu-monitor = "${sbindir}/witherspoon-psu-monitor"
44SYSTEMD_SERVICE_${PN} += "${PSU_MONITOR_TMPL}"
45SYSTEMD_LINK_${PN} += "${@compose_list(d, 'PSU_MONITOR_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"
46
47PSU_MONITOR_ENV_FMT = "obmc/power-supply-monitor/power-supply-monitor-{0}.conf"
48SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'PSU_MONITOR_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"