blob: c0de3e6f9216cfd6401e3693134a58c7b77e51eb [file] [log] [blame]
Matt Spinlereea390f2017-08-14 13:27:09 -05001SUMMARY = "Witherspoon Power Fault Analysis"
2DESCRIPTION = "Analyzes power devices for faults"
3PR = "r1"
Patrick Venturec2133c22018-10-26 09:37:21 -07004PV = "1.0+git${SRCPV}"
Matt Spinlereea390f2017-08-14 13:27:09 -05005
6inherit autotools
7inherit pkgconfig
8inherit obmc-phosphor-systemd
9inherit pythonnative
10
11require ${PN}.inc
12
13S = "${WORKDIR}/git"
14
15DEPENDS += " \
16 phosphor-logging \
17 autoconf-archive-native \
Brad Bishopd6374e72018-01-26 21:48:20 -050018 openpower-dbus-interfaces \
Matt Spinlereea390f2017-08-14 13:27:09 -050019 sdbus++-native \
William A. Kennington IIIdd44eaa2018-10-18 01:43:05 -070020 sdeventplus \
Matt Spinlereea390f2017-08-14 13:27:09 -050021 "
22
23RDEPENDS_${PN} += " \
24 phosphor-logging \
25 phosphor-dbus-interfaces \
26 sdbusplus \
27 "
28
29CHASSIS_ON_TGT = "obmc-chassis-poweron@0.target"
Matt Spinler0464f532017-09-19 14:02:40 -050030SEQ_MONITOR_SVC = "witherspoon-pseq-monitor.service"
31SEQ_MONITOR_FMT = "../${SEQ_MONITOR_SVC}:${CHASSIS_ON_TGT}.wants/${SEQ_MONITOR_SVC}"
32
Matt Spinlereea390f2017-08-14 13:27:09 -050033SEQ_PGOOD_SVC = "witherspoon-pseq-monitor-pgood.service"
34SEQ_PGOOD_FMT = "../${SEQ_PGOOD_SVC}:${CHASSIS_ON_TGT}.wants/${SEQ_PGOOD_SVC}"
35
Matt Spinler0464f532017-09-19 14:02:40 -050036SYSTEMD_SERVICE_${PN} += "${SEQ_MONITOR_SVC} ${SEQ_PGOOD_SVC}"
37SYSTEMD_LINK_${PN} += "${SEQ_MONITOR_FMT} ${SEQ_PGOOD_FMT}"
Brandon Wyman9f37d312017-08-15 16:41:08 -050038
39PSU_MONITOR_TMPL = "witherspoon-power-supply-monitor@.service"
40PSU_MONITOR_INSTFMT = "witherspoon-power-supply-monitor@{0}.service"
41PSU_MONITOR_TGT = "${SYSTEMD_DEFAULT_TARGET}"
42PSU_MONITOR_FMT = "../${PSU_MONITOR_TMPL}:${PSU_MONITOR_TGT}.requires/${PSU_MONITOR_INSTFMT}"
43
44FILES_witherspoon-psu-monitor = "${sbindir}/witherspoon-psu-monitor"
45SYSTEMD_SERVICE_${PN} += "${PSU_MONITOR_TMPL}"
46SYSTEMD_LINK_${PN} += "${@compose_list(d, 'PSU_MONITOR_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"
47
48PSU_MONITOR_ENV_FMT = "obmc/power-supply-monitor/power-supply-monitor-{0}.conf"
49SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'PSU_MONITOR_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"