blob: 51576216ee921fd521c9e2bb72bdd0d930516cfe [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 Geisslera42ad312024-02-22 22:00:25 -06005SRCREV = "dc0bab929c9b11f5d980ffb1421a3192253fbf4b"
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
Patrick Williams12fc9392021-08-06 09:16:53 -050015SYSTEMD_SERVICE:${PN} += "chassis-system-reset.service \
Vijay Khemka6dfddb42020-05-21 16:52:57 -070016 chassis-system-reset.target"
Vijay Khemkae810c502019-10-30 10:31:48 -070017DEPENDS += " \
18 boost \
19 i2c-tools \
20 libgpiod \
Priyatharshan P9691eaa2020-06-30 19:57:55 +053021 nlohmann-json \
Vijay Khemkae810c502019-10-30 10:31:48 -070022 sdbusplus \
23 phosphor-logging \
24 "
Patrick Williamsd61a0932021-12-15 21:28:40 -060025FILES:${PN} += "${systemd_system_unitdir}/xyz.openbmc_project.Chassis.Control.Power@.service"
Andrew Geissler0bfc05b2023-06-27 12:53:38 -050026
27pkg_postinst:${PN}:append() {
28 mkdir -p $D$systemd_system_unitdir/sysinit.target.wants
29 for i in ${OBMC_HOST_INSTANCES};
30 do
31 LINK="$D$systemd_system_unitdir/sysinit.target.wants/xyz.openbmc_project.Chassis.Control.Power@${i}.service"
32 TARGET="../xyz.openbmc_project.Chassis.Control.Power@.service"
33 ln -s $TARGET $LINK
34 done
35}
36
37pkg_prerm:${PN}:append() {
38 for i in ${OBMC_HOST_INSTANCES};
39 do
40 LINK="$D$systemd_system_unitdir/sysinit.target.requires/xyz.openbmc_project.Chassis.Control.Power@${i}.service"
41 rm $LINK
42 done
43}