blob: 8c68d91e00878d4e88dd0ba35f24aebc3788643d [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 +080030# TODO: in future when openpower-dbus-interfaces is removed from
31# phosphor-power, remove the dependency here.
32DEPENDS += " \
33 phosphor-logging \
34 openpower-dbus-interfaces \
Patrick Williams2bebd122020-03-31 16:43:15 -050035 ${PYTHON_PN}-sdbus++-native \
Lei YU4d8175e2019-10-21 10:39:07 +080036 sdeventplus \
37 nlohmann-json \
Jim Wright7a0e57f2019-11-06 15:43:43 -060038 cli11 \
Matthew Barth16867e42019-12-20 15:37:07 -060039 i2c-tools \
Lei YUb16b3062020-03-05 13:39:10 +080040 ${PYTHON_PN}-native \
41 ${PYTHON_PN}-pyyaml-native \
42 ${PYTHON_PN}-setuptools-native \
43 ${PYTHON_PN}-mako-native \
Andrew Geisslerda29f232020-05-30 23:24:44 -050044 boost \
Lei YU4d8175e2019-10-21 10:39:07 +080045 "
46
Lei YU4d8175e2019-10-21 10:39:07 +080047SEQ_MONITOR_SVC = "pseq-monitor.service"
48SEQ_PGOOD_SVC = "pseq-monitor-pgood.service"
49PSU_MONITOR_TMPL = "power-supply-monitor@.service"
Lei YU2172cd12020-02-06 15:43:35 +080050PSU_MONITOR_SVC = "phosphor-psu-monitor.service"
Matthew Barthfa58fcd2019-12-20 15:42:35 -060051REGS_SVC = "phosphor-regulators.service"
Matthew Barth3e796862019-12-20 15:49:12 -060052REGS_CONF_SVC = "phosphor-regulators-config.service"
Matthew Bartha51bc302019-12-20 15:54:02 -060053REGS_MON_ENA_SVC = "phosphor-regulators-monitor-enable.service"
54REGS_MON_DIS_SVC = "phosphor-regulators-monitor-disable.service"
Lei YU2172cd12020-02-06 15:43:35 +080055
56SYSTEMD_SERVICE_${PN}-sequencer = "${SEQ_MONITOR_SVC} ${SEQ_PGOOD_SVC}"
57SYSTEMD_SERVICE_${PN}-monitor = "${PSU_MONITOR_TMPL}"
58SYSTEMD_SERVICE_${PN}-psu-monitor = "${PSU_MONITOR_SVC}"
Matthew Bartha51bc302019-12-20 15:54:02 -060059SYSTEMD_SERVICE_${PN}-regulators = "${REGS_SVC} ${REGS_CONF_SVC} ${REGS_MON_ENA_SVC} ${REGS_MON_DIS_SVC}"
Lei YU2172cd12020-02-06 15:43:35 +080060
61
62# TODO: cold-redundancy is not installed in the repo yet
63# FILES_${PN}-cold-redundancy = "${bindir}/cold-redundancy"
64
65FILES_${PN}-monitor = "${bindir}/psu-monitor"
Brandon Wymanf363ebf2020-03-12 15:10:48 -050066FILES_${PN}-psu-monitor = "${bindir}/phosphor-psu-monitor ${datadir}/phosphor-psu-monitor"
Lei YUae688cf2020-03-13 11:02:18 +080067FILES_${PN}-regulators = "${bindir}/phosphor-regulators ${datadir}/phosphor-regulators"
Matthew Barth71667502020-04-23 14:35:32 -050068FILES_${PN}-regulators += "${bindir}/regsctl"
Lei YU2172cd12020-02-06 15:43:35 +080069FILES_${PN}-sequencer = "${bindir}/pseq-monitor"
70FILES_${PN}-utils = "${bindir}/psutils"