blob: 730335a0ff388dd55c54e3d4feb5afba09e6e860 [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 \
Lei YU4d8175e2019-10-21 10:39:07 +080044 "
45
Lei YU4d8175e2019-10-21 10:39:07 +080046SEQ_MONITOR_SVC = "pseq-monitor.service"
47SEQ_PGOOD_SVC = "pseq-monitor-pgood.service"
48PSU_MONITOR_TMPL = "power-supply-monitor@.service"
Lei YU2172cd12020-02-06 15:43:35 +080049PSU_MONITOR_SVC = "phosphor-psu-monitor.service"
Matthew Barthfa58fcd2019-12-20 15:42:35 -060050REGS_SVC = "phosphor-regulators.service"
Lei YU2172cd12020-02-06 15:43:35 +080051
52SYSTEMD_SERVICE_${PN}-sequencer = "${SEQ_MONITOR_SVC} ${SEQ_PGOOD_SVC}"
53SYSTEMD_SERVICE_${PN}-monitor = "${PSU_MONITOR_TMPL}"
54SYSTEMD_SERVICE_${PN}-psu-monitor = "${PSU_MONITOR_SVC}"
55SYSTEMD_SERVICE_${PN}-regulators = "${REGS_SVC}"
56
57
58# TODO: cold-redundancy is not installed in the repo yet
59# FILES_${PN}-cold-redundancy = "${bindir}/cold-redundancy"
60
61FILES_${PN}-monitor = "${bindir}/psu-monitor"
Brandon Wymanf363ebf2020-03-12 15:10:48 -050062FILES_${PN}-psu-monitor = "${bindir}/phosphor-psu-monitor ${datadir}/phosphor-psu-monitor"
Lei YUae688cf2020-03-13 11:02:18 +080063FILES_${PN}-regulators = "${bindir}/phosphor-regulators ${datadir}/phosphor-regulators"
Lei YU2172cd12020-02-06 15:43:35 +080064FILES_${PN}-sequencer = "${bindir}/pseq-monitor"
65FILES_${PN}-utils = "${bindir}/psutils"