blob: a9e1583fb7febd7c63b77975342ecdaf3865a5c4 [file] [log] [blame]
Vijay Khemkae810c502019-10-30 10:31:48 -07001SUMMARY = "Chassis Power Control service for Intel based platforms"
2DESCRIPTION = "Chassis Power Control service for Intel based platforms"
Vijay Khemkae810c502019-10-30 10:31:48 -07003LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
Andrew Geissler89f2fc82022-11-02 10:12:51 -05005SRCREV = "fa2b6448a5169b5e981a24ae4ca0c03b80a07149"
Ed Tanous9936f862022-09-19 09:13:20 -07006PV = "1.0+git${SRCPV}"
7
8SRC_URI = "git://github.com/openbmc/x86-power-control.git;protocol=https;branch=master"
9
10S = "${WORKDIR}/git"
Vijay Khemkae810c502019-10-30 10:31:48 -070011
Jason M. Bills26f92762021-10-26 13:58:15 -070012inherit meson systemd pkgconfig
Vijay Khemkaa5bc17f2020-06-12 16:26:47 -070013inherit obmc-phosphor-dbus-service
Vijay Khemkae810c502019-10-30 10:31:48 -070014
Andrew Geissler9e6f0342021-07-15 06:51:21 +000015def get_service(d):
16 if(d.getVar('OBMC_HOST_INSTANCES') == '0'):
17 return "xyz.openbmc_project.Chassis.Control.Power@0.service"
18 else:
19 return " ".join(["xyz.openbmc_project.Chassis.Control.Power@{}.service".format(x) for x in d.getVar('OBMC_HOST_INSTANCES').split()])
Patrick Williams12fc9392021-08-06 09:16:53 -050020SYSTEMD_SERVICE:${PN} = "${@get_service(d)}"
Patrick Williams12fc9392021-08-06 09:16:53 -050021SYSTEMD_SERVICE:${PN} += "chassis-system-reset.service \
Vijay Khemka6dfddb42020-05-21 16:52:57 -070022 chassis-system-reset.target"
Vijay Khemkae810c502019-10-30 10:31:48 -070023DEPENDS += " \
24 boost \
25 i2c-tools \
26 libgpiod \
Priyatharshan P9691eaa2020-06-30 19:57:55 +053027 nlohmann-json \
Vijay Khemkae810c502019-10-30 10:31:48 -070028 sdbusplus \
29 phosphor-logging \
30 "
Patrick Williamsd61a0932021-12-15 21:28:40 -060031FILES:${PN} += "${systemd_system_unitdir}/xyz.openbmc_project.Chassis.Control.Power@.service"