Kuiying Wang | 91ff72a | 2018-11-08 16:52:49 +0800 | [diff] [blame] | 1 | SUMMARY = "OpenBMC Buttons" |
| 2 | DESCRIPTION = "OpenBMC All buttons" |
Kuiying Wang | 91ff72a | 2018-11-08 16:52:49 +0800 | [diff] [blame] | 3 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" |
Kuiying Wang | 91ff72a | 2018-11-08 16:52:49 +0800 | [diff] [blame] | 5 | DEPENDS += " \ |
| 6 | systemd \ |
| 7 | sdbusplus \ |
| 8 | phosphor-dbus-interfaces \ |
| 9 | phosphor-logging \ |
Kuiying Wang | 91ff72a | 2018-11-08 16:52:49 +0800 | [diff] [blame] | 10 | " |
Andrew Geissler | ea947ac | 2023-04-12 11:40:20 -0500 | [diff] [blame^] | 11 | SRCREV = "149452b012b72bd5db816ceea5c13c9b92e9f31c" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 12 | PACKAGECONFIG ??= "signals handler" |
| 13 | PACKAGECONFIG[signals] = ",,gpioplus nlohmann-json," |
Naveen Moses | b7590f6 | 2022-08-30 03:38:12 +0530 | [diff] [blame] | 14 | PACKAGECONFIG[handler] = ",,,${VIRTUAL-RUNTIME_obmc-host-state-manager} ${VIRTUAL-RUNTIME_obmc-chassis-state-manager}" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 15 | PV = "1.0+git${SRCPV}" |
| 16 | PR = "r1" |
| 17 | |
| 18 | SRC_URI += "git://github.com/openbmc/phosphor-buttons.git;branch=master;protocol=https" |
| 19 | |
| 20 | S = "${WORKDIR}/git" |
| 21 | SYSTEMD_PACKAGES = "${BUTTON_PACKAGES}" |
| 22 | SYSTEMD_SERVICE:${PN}-signals = "xyz.openbmc_project.Chassis.Buttons.service" |
| 23 | SYSTEMD_SERVICE:${PN}-handler = "phosphor-button-handler.service" |
| 24 | |
| 25 | inherit meson pkgconfig systemd |
| 26 | |
| 27 | FILES:${PN}-signals = "${bindir}/buttons" |
| 28 | FILES:${PN}-handler = "${bindir}/button-handler" |
| 29 | |
| 30 | ALLOW_EMPTY:${PN} = "1" |
| 31 | |
| 32 | BUTTON_PACKAGES = "${PN}-signals ${PN}-handler" |
| 33 | |
| 34 | PACKAGE_BEFORE_PN += "${BUTTON_PACKAGES}" |
Naveen Moses | 1ede6c1 | 2022-07-20 00:36:02 +0530 | [diff] [blame] | 35 | |
| 36 | do_install:append() { |
| 37 | if [ -e "${WORKDIR}/gpio_defs.json" ]; then |
| 38 | install -m 0755 -d ${D}/etc/default/obmc/gpio |
| 39 | install -m 0644 -D ${WORKDIR}/gpio_defs.json \ |
| 40 | ${D}/etc/default/obmc/gpio |
| 41 | fi |
| 42 | } |