blob: 6dc332ea640640d9830a274e98eac5cbd918892a [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 Geissler1e6da562024-03-14 20:40:31 -05005SRCREV = "33737913190fe03882ac3d978dfa7c1c616b1484"
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}