blob: 012b4939e95a312700c890c22097e1fbda3ebec1 [file] [log] [blame]
Lei YU4d8175e2019-10-21 10:39:07 +08001SUMMARY = "Phosphor Power services and utilities"
2DESCRIPTION = "Configure and monitor power supplies, power sequencers, and \
3voltage regulators, and analyzes power devices for faults"
4PR = "r1"
5PV = "1.0+git${SRCPV}"
6
7inherit meson
8inherit pkgconfig
9inherit systemd
Lei YU404e1632020-03-06 10:26:57 +080010inherit python3native
Lei YU4d8175e2019-10-21 10:39:07 +080011
Patrick Williamsc7d848e2020-04-03 15:48:30 -050012require ${BPN}.inc
Lei YU4d8175e2019-10-21 10:39:07 +080013
14S = "${WORKDIR}/git"
15
Lei YU2172cd12020-02-06 15:43:35 +080016POWER_SERVICE_PACKAGES = " \
17 ${PN}-cold-redundancy \
18 ${PN}-monitor \
19 ${PN}-psu-monitor \
20 ${PN}-regulators \
21 ${PN}-sequencer \
22"
23POWER_UTIL_PACKAGES = "${PN}-utils"
24
25PACKAGE_BEFORE_PN = "${POWER_SERVICE_PACKAGES} ${POWER_UTIL_PACKAGES}"
26ALLOW_EMPTY_${PN} = "1"
27
28SYSTEMD_PACKAGES = "${POWER_SERVICE_PACKAGES}"
29
Lei YU4d8175e2019-10-21 10:39:07 +080030DEPENDS += " \
31 phosphor-logging \
Patrick Williams2bebd122020-03-31 16:43:15 -050032 ${PYTHON_PN}-sdbus++-native \
Lei YU4d8175e2019-10-21 10:39:07 +080033 sdeventplus \
34 nlohmann-json \
Jim Wright7a0e57f2019-11-06 15:43:43 -060035 cli11 \
Matthew Barth16867e42019-12-20 15:37:07 -060036 i2c-tools \
Lei YUb16b3062020-03-05 13:39:10 +080037 ${PYTHON_PN}-native \
38 ${PYTHON_PN}-pyyaml-native \
39 ${PYTHON_PN}-setuptools-native \
40 ${PYTHON_PN}-mako-native \
Andrew Geisslerda29f232020-05-30 23:24:44 -050041 boost \
Lei YU4d8175e2019-10-21 10:39:07 +080042 "
43
Lei YU4d8175e2019-10-21 10:39:07 +080044SEQ_MONITOR_SVC = "pseq-monitor.service"
45SEQ_PGOOD_SVC = "pseq-monitor-pgood.service"
46PSU_MONITOR_TMPL = "power-supply-monitor@.service"
Lei YU2172cd12020-02-06 15:43:35 +080047PSU_MONITOR_SVC = "phosphor-psu-monitor.service"
Matthew Barthfa58fcd2019-12-20 15:42:35 -060048REGS_SVC = "phosphor-regulators.service"
Matthew Barth3e796862019-12-20 15:49:12 -060049REGS_CONF_SVC = "phosphor-regulators-config.service"
Matthew Bartha51bc302019-12-20 15:54:02 -060050REGS_MON_ENA_SVC = "phosphor-regulators-monitor-enable.service"
51REGS_MON_DIS_SVC = "phosphor-regulators-monitor-disable.service"
Lei YU2172cd12020-02-06 15:43:35 +080052
53SYSTEMD_SERVICE_${PN}-sequencer = "${SEQ_MONITOR_SVC} ${SEQ_PGOOD_SVC}"
54SYSTEMD_SERVICE_${PN}-monitor = "${PSU_MONITOR_TMPL}"
55SYSTEMD_SERVICE_${PN}-psu-monitor = "${PSU_MONITOR_SVC}"
Matthew Bartha51bc302019-12-20 15:54:02 -060056SYSTEMD_SERVICE_${PN}-regulators = "${REGS_SVC} ${REGS_CONF_SVC} ${REGS_MON_ENA_SVC} ${REGS_MON_DIS_SVC}"
Lei YU2172cd12020-02-06 15:43:35 +080057
58
59# TODO: cold-redundancy is not installed in the repo yet
60# FILES_${PN}-cold-redundancy = "${bindir}/cold-redundancy"
61
62FILES_${PN}-monitor = "${bindir}/psu-monitor"
Brandon Wymanf363ebf2020-03-12 15:10:48 -050063FILES_${PN}-psu-monitor = "${bindir}/phosphor-psu-monitor ${datadir}/phosphor-psu-monitor"
Lei YUae688cf2020-03-13 11:02:18 +080064FILES_${PN}-regulators = "${bindir}/phosphor-regulators ${datadir}/phosphor-regulators"
Matthew Barth71667502020-04-23 14:35:32 -050065FILES_${PN}-regulators += "${bindir}/regsctl"
Lei YU2172cd12020-02-06 15:43:35 +080066FILES_${PN}-sequencer = "${bindir}/pseq-monitor"
67FILES_${PN}-utils = "${bindir}/psutils"