blob: 51086c6756e203194f5a3b8e95c751e5908aa131 [file] [log] [blame]
Matt Spinler1696ec22017-08-14 13:27:09 -05001SUMMARY = "Witherspoon Power Fault Analysis"
2DESCRIPTION = "Analyzes power devices for faults"
3PR = "r1"
Patrick Venturefec8b042018-10-26 09:37:21 -07004PV = "1.0+git${SRCPV}"
Matt Spinler1696ec22017-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 Bishop04ff12c2018-01-26 21:48:20 -050018 openpower-dbus-interfaces \
Matt Spinler1696ec22017-08-14 13:27:09 -050019 sdbus++-native \
William A. Kennington IIIb65afc72018-10-18 01:43:05 -070020 sdeventplus \
Matt Spinler1696ec22017-08-14 13:27:09 -050021 "
22
Matt Spinler1696ec22017-08-14 13:27:09 -050023CHASSIS_ON_TGT = "obmc-chassis-poweron@0.target"
Brandon Wymanf0a24b82019-03-13 13:27:13 -050024SEQ_MONITOR_SVC = "pseq-monitor.service"
Matt Spinler200e5012017-09-19 14:02:40 -050025SEQ_MONITOR_FMT = "../${SEQ_MONITOR_SVC}:${CHASSIS_ON_TGT}.wants/${SEQ_MONITOR_SVC}"
26
Brandon Wymanf0a24b82019-03-13 13:27:13 -050027SEQ_PGOOD_SVC = "pseq-monitor-pgood.service"
Matt Spinler1696ec22017-08-14 13:27:09 -050028SEQ_PGOOD_FMT = "../${SEQ_PGOOD_SVC}:${CHASSIS_ON_TGT}.wants/${SEQ_PGOOD_SVC}"
29
Matt Spinler200e5012017-09-19 14:02:40 -050030SYSTEMD_SERVICE_${PN} += "${SEQ_MONITOR_SVC} ${SEQ_PGOOD_SVC}"
31SYSTEMD_LINK_${PN} += "${SEQ_MONITOR_FMT} ${SEQ_PGOOD_FMT}"
Brandon Wyman360ebeb2017-08-15 16:41:08 -050032
Brandon Wymanf0a24b82019-03-13 13:27:13 -050033PSU_MONITOR_TMPL = "power-supply-monitor@.service"
34PSU_MONITOR_INSTFMT = "power-supply-monitor@{0}.service"
Patrick Venture44fd5e02019-04-04 13:06:43 -070035PSU_MONITOR_TGT = "multi-user.target"
Brandon Wyman360ebeb2017-08-15 16:41:08 -050036PSU_MONITOR_FMT = "../${PSU_MONITOR_TMPL}:${PSU_MONITOR_TGT}.requires/${PSU_MONITOR_INSTFMT}"
37
Brandon Wymanf0a24b82019-03-13 13:27:13 -050038FILES_psu-monitor = "${bindir}/psu-monitor"
Brandon Wyman360ebeb2017-08-15 16:41:08 -050039SYSTEMD_SERVICE_${PN} += "${PSU_MONITOR_TMPL}"
40SYSTEMD_LINK_${PN} += "${@compose_list(d, 'PSU_MONITOR_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"
41
42PSU_MONITOR_ENV_FMT = "obmc/power-supply-monitor/power-supply-monitor-{0}.conf"
43SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'PSU_MONITOR_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"