blob: 86cfe98d9d25e5fab38ef2dcfb2248572ee3cd92 [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"
3
4SRC_URI = "git://github.com/openbmc/x86-power-control.git;protocol=ssh"
Andrew Geissler6b44a6a2021-10-01 23:31:36 +00005SRCREV = "418ce11fce57cecce7d26a3dc368db824998926c"
Vijay Khemkae810c502019-10-30 10:31:48 -07006
7PV = "1.0+git${SRCPV}"
8
9S = "${WORKDIR}/git"
10
11LICENSE = "Apache-2.0"
12LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
13
14inherit cmake systemd
Vijay Khemkaa5bc17f2020-06-12 16:26:47 -070015inherit obmc-phosphor-dbus-service
Vijay Khemkae810c502019-10-30 10:31:48 -070016
Andrew Geissler9e6f0342021-07-15 06:51:21 +000017def get_service(d):
18 if(d.getVar('OBMC_HOST_INSTANCES') == '0'):
19 return "xyz.openbmc_project.Chassis.Control.Power@0.service"
20 else:
21 return " ".join(["xyz.openbmc_project.Chassis.Control.Power@{}.service".format(x) for x in d.getVar('OBMC_HOST_INSTANCES').split()])
22
Patrick Williams12fc9392021-08-06 09:16:53 -050023SYSTEMD_SERVICE:${PN} = "${@get_service(d)}"
Andrew Geissler9e6f0342021-07-15 06:51:21 +000024
Patrick Williams12fc9392021-08-06 09:16:53 -050025SYSTEMD_SERVICE:${PN} += "chassis-system-reset.service \
Vijay Khemka6dfddb42020-05-21 16:52:57 -070026 chassis-system-reset.target"
Vijay Khemkae810c502019-10-30 10:31:48 -070027
28DEPENDS += " \
29 boost \
30 i2c-tools \
31 libgpiod \
Priyatharshan P9691eaa2020-06-30 19:57:55 +053032 nlohmann-json \
Vijay Khemkae810c502019-10-30 10:31:48 -070033 sdbusplus \
34 phosphor-logging \
35 "
Patrick Williams12fc9392021-08-06 09:16:53 -050036FILES:${PN} += "${systemd_system_unitdir}/xyz.openbmc_project.Chassis.Control.Power@.service"