blob: a1833ca8b39ffc0068e7155aca7972c8c4862be5 [file] [log] [blame]
SUMMARY = "OpenBMC Buttons"
DESCRIPTION = "OpenBMC All buttons"
PR = "r1"
PV = "1.0+git${SRCPV}"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
S = "${WORKDIR}/git"
SRC_URI += "git://github.com/openbmc/phosphor-buttons.git;branch=master;protocol=https"
SRCREV = "dd5495cf40d5911fb9ad04acc6689ae8af054524"
inherit cmake pkgconfig systemd
BUTTON_PACKAGES="${PN}-signals ${PN}-handler"
ALLOW_EMPTY:${PN} = "1"
PACKAGE_BEFORE_PN += "${BUTTON_PACKAGES}"
PACKAGECONFIG ??= "signals handler"
SYSTEMD_PACKAGES = "${BUTTON_PACKAGES}"
PACKAGECONFIG[signals] = ",,gpioplus nlohmann-json,"
PACKAGECONFIG[handler] = ",,,phosphor-state-manager-chassis phosphor-state-manager-host"
FILES:${PN}-signals = "${bindir}/buttons"
SYSTEMD_SERVICE:${PN}-signals = "xyz.openbmc_project.Chassis.Buttons.service"
FILES:${PN}-handler = "${bindir}/button-handler"
SYSTEMD_SERVICE:${PN}-handler = "phosphor-button-handler.service"
DEPENDS += " \
systemd \
sdbusplus \
phosphor-dbus-interfaces \
phosphor-logging \
"