Kuiying Wang | 0d73765 | 2018-11-08 16:52:49 +0800 | [diff] [blame] | 1 | SUMMARY = "OpenBMC Buttons" |
| 2 | DESCRIPTION = "OpenBMC All buttons" |
| 3 | PR = "r1" |
| 4 | PV = "1.0+git${SRCPV}" |
| 5 | LICENSE = "Apache-2.0" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" |
| 7 | |
| 8 | S = "${WORKDIR}/git" |
| 9 | SRC_URI += "git://github.com/openbmc/phosphor-buttons.git" |
Patrick Venture | 1eed372 | 2019-04-01 10:20:46 -0700 | [diff] [blame] | 10 | SRCREV = "69101225892575db3d29cb4cfe7683773f1e4f52" |
Kuiying Wang | 0d73765 | 2018-11-08 16:52:49 +0800 | [diff] [blame] | 11 | |
| 12 | inherit cmake pkgconfig systemd |
| 13 | |
Matt Spinler | f69dd65 | 2018-11-26 15:37:30 -0600 | [diff] [blame] | 14 | BUTTON_PACKAGES="${PN}-signals ${PN}-handler" |
| 15 | |
| 16 | ALLOW_EMPTY_${PN} = "1" |
| 17 | PACKAGE_BEFORE_PN += "${BUTTON_PACKAGES}" |
| 18 | PACKAGECONFIG ??= "signals handler" |
| 19 | SYSTEMD_PACKAGES = "${BUTTON_PACKAGES}" |
| 20 | |
| 21 | PACKAGECONFIG[signals] = ",,gpioplus nlohmann-json," |
| 22 | PACKAGECONFIG[handler] = ",,,phosphor-state-manager-chassis phosphor-state-manager-host" |
| 23 | |
Patrick Venture | 1eed372 | 2019-04-01 10:20:46 -0700 | [diff] [blame] | 24 | FILES_${PN}-signals = "${bindir}/buttons" |
Matt Spinler | f69dd65 | 2018-11-26 15:37:30 -0600 | [diff] [blame] | 25 | SYSTEMD_SERVICE_${PN}-signals = "xyz.openbmc_project.Chassis.Buttons.service" |
| 26 | |
Patrick Venture | 1eed372 | 2019-04-01 10:20:46 -0700 | [diff] [blame] | 27 | FILES_${PN}-handler = "${bindir}/button-handler" |
Matt Spinler | f69dd65 | 2018-11-26 15:37:30 -0600 | [diff] [blame] | 28 | SYSTEMD_SERVICE_${PN}-handler = "phosphor-button-handler.service" |
Kuiying Wang | 0d73765 | 2018-11-08 16:52:49 +0800 | [diff] [blame] | 29 | |
| 30 | DEPENDS += " \ |
| 31 | systemd \ |
| 32 | sdbusplus \ |
| 33 | phosphor-dbus-interfaces \ |
| 34 | phosphor-logging \ |
Kuiying Wang | 0d73765 | 2018-11-08 16:52:49 +0800 | [diff] [blame] | 35 | " |