blob: 933d43119fc180f825cb010ec26b7c3258a3fb6e [file] [log] [blame]
Kuiying Wang0d737652018-11-08 16:52:49 +08001SUMMARY = "OpenBMC Buttons"
2DESCRIPTION = "OpenBMC All buttons"
3PR = "r1"
4PV = "1.0+git${SRCPV}"
5LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
7
8S = "${WORKDIR}/git"
9SRC_URI += "git://github.com/openbmc/phosphor-buttons.git"
Andrew Geissler7041e392020-05-14 00:50:57 +000010SRCREV = "5ed4cc0f0947e589c430618c29bd474f0fce32b3"
Kuiying Wang0d737652018-11-08 16:52:49 +080011
12inherit cmake pkgconfig systemd
13
Matt Spinlerf69dd652018-11-26 15:37:30 -060014BUTTON_PACKAGES="${PN}-signals ${PN}-handler"
15
16ALLOW_EMPTY_${PN} = "1"
17PACKAGE_BEFORE_PN += "${BUTTON_PACKAGES}"
18PACKAGECONFIG ??= "signals handler"
19SYSTEMD_PACKAGES = "${BUTTON_PACKAGES}"
20
21PACKAGECONFIG[signals] = ",,gpioplus nlohmann-json,"
22PACKAGECONFIG[handler] = ",,,phosphor-state-manager-chassis phosphor-state-manager-host"
23
Patrick Venture1eed3722019-04-01 10:20:46 -070024FILES_${PN}-signals = "${bindir}/buttons"
Matt Spinlerf69dd652018-11-26 15:37:30 -060025SYSTEMD_SERVICE_${PN}-signals = "xyz.openbmc_project.Chassis.Buttons.service"
26
Patrick Venture1eed3722019-04-01 10:20:46 -070027FILES_${PN}-handler = "${bindir}/button-handler"
Matt Spinlerf69dd652018-11-26 15:37:30 -060028SYSTEMD_SERVICE_${PN}-handler = "phosphor-button-handler.service"
Kuiying Wang0d737652018-11-08 16:52:49 +080029
30DEPENDS += " \
31 systemd \
32 sdbusplus \
33 phosphor-dbus-interfaces \
34 phosphor-logging \
Kuiying Wang0d737652018-11-08 16:52:49 +080035 "