blob: a2790fcd1ec6d2e8c4a4812f19fcbdd37cb4bba8 [file] [log] [blame]
Vishwanatha Subbanna3de84052017-04-28 15:35:10 +05301SUMMARY = "Phosphor GPIO monitor application"
2DESCRIPTION = "Application to monitor gpio assertions"
3HOMEPAGE = "http://github.com/openbmc/phosphor-gpio-monitor"
Vishwanatha Subbanna3de84052017-04-28 15:35:10 +05304LICENSE = "Apache-2.0"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
Patrick Williams4b32c9a2020-03-31 16:43:15 -05006DEPENDS += "sdbusplus"
Vishwanatha Subbanna3de84052017-04-28 15:35:10 +05307DEPENDS += "phosphor-dbus-interfaces"
Patrick Williams158f5f52017-06-08 08:48:06 -05008DEPENDS += "libevdev"
Vishwanatha Subbanna3de84052017-04-28 15:35:10 +05309DEPENDS += "phosphor-logging"
Brad Bishop44f3cce2019-03-22 23:41:42 -040010DEPENDS += "systemd"
Vijay Khemka6890d302019-10-18 18:21:27 -070011DEPENDS += "boost"
12DEPENDS += "libgpiod"
13DEPENDS += "cli11"
14DEPENDS += "nlohmann-json"
Andrew Geisslerf64aff62023-12-07 15:40:29 -060015SRCREV = "ccfea22159eba4198ec04013f19612dc1ef59b46"
Ed Tanous9936f862022-09-19 09:13:20 -070016PV = "1.0+git${SRCPV}"
17PR = "r1"
Gunnar Millsb163e9b2017-07-10 15:49:43 -050018
Patrick Williamsbccaff32023-04-14 11:24:47 -050019SRC_URI = "git://github.com/openbmc/phosphor-gpio-monitor;branch=master;protocol=https"
Andrew Geissler98d6d632023-10-19 07:22:24 -060020SRC_URI += " file://phosphor-multi-gpio-presence.json"
Ed Tanous9936f862022-09-19 09:13:20 -070021
22SYSTEMD_PACKAGES = "${GPIO_PACKAGES}"
Patrick Williams12fc9392021-08-06 09:16:53 -050023SYSTEMD_SERVICE:${PN}-monitor += "phosphor-multi-gpio-monitor.service"
24SYSTEMD_SERVICE:${PN}-monitor += "phosphor-gpio-monitor@.service"
25SYSTEMD_SERVICE:${PN}-presence += "phosphor-gpio-presence@.service"
Patrick Rudolphbe5c6502023-10-19 09:21:57 +020026SYSTEMD_SERVICE:${PN}-presence += "phosphor-multi-gpio-presence.service"
Ed Tanous9936f862022-09-19 09:13:20 -070027S = "${WORKDIR}/git"
28
29inherit meson pkgconfig
30inherit obmc-phosphor-dbus-service
31
32EXTRA_OEMESON:append = " -Dtests=disabled"
33
Patrick Williams12fc9392021-08-06 09:16:53 -050034FILES:${PN}-monitor += "${bindir}/phosphor-gpio-monitor"
35FILES:${PN}-monitor += "${bindir}/phosphor-multi-gpio-monitor"
36FILES:${PN}-monitor += "${bindir}/phosphor-gpio-util"
Anton Blanchard782d7192021-08-16 23:51:27 -060037FILES:${PN}-monitor += "${nonarch_base_libdir}/udev/rules.d/99-gpio-keys.rules"
Patrick Williams12fc9392021-08-06 09:16:53 -050038FILES:${PN}-presence += "${bindir}/phosphor-gpio-presence"
Patrick Rudolphbe5c6502023-10-19 09:21:57 +020039FILES:${PN}-presence += "${bindir}/phosphor-multi-gpio-presence"
Andrew Geissler98d6d632023-10-19 07:22:24 -060040FILES:${PN}-presence += "${datadir}/${PN}/phosphor-multi-gpio-presence.json"
Vishwanatha Subbanna3de84052017-04-28 15:35:10 +053041
Ed Tanous9936f862022-09-19 09:13:20 -070042ALLOW_EMPTY:${PN} = "1"
William A. Kennington III626c2cf2021-06-04 18:08:38 -070043
Ed Tanous9936f862022-09-19 09:13:20 -070044GPIO_PACKAGES = " \
45 ${PN}-monitor \
46 ${PN}-presence \
47"
48PACKAGE_BEFORE_PN += "${GPIO_PACKAGES}"
Andrew Geissler98d6d632023-10-19 07:22:24 -060049
50do_install:append() {
51 install -d ${D}${datadir}/phosphor-gpio-monitor/
52 install -m 0644 ${WORKDIR}/phosphor-multi-gpio-presence.json ${D}${datadir}/${PN}/
53}