Chanh Nguyen | 62feab3 | 2021-02-25 22:25:53 +0700 | [diff] [blame] | 1 | SUMMARY = "MTJade ID Button pressed application" |
| 2 | PR = "r1" |
| 3 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
| 5 | |
| 6 | inherit obmc-phosphor-systemd |
| 7 | |
| 8 | DEPENDS += "virtual/obmc-gpio-monitor" |
Thang Q. Nguyen | fa1aa4d | 2021-08-07 05:09:50 +0000 | [diff] [blame] | 9 | RDEPENDS:${PN} += "virtual/obmc-gpio-monitor" |
Chanh Nguyen | 62feab3 | 2021-02-25 22:25:53 +0700 | [diff] [blame] | 10 | |
| 11 | SRC_URI += "file://toggle_identify_led.sh" |
| 12 | |
| 13 | do_install() { |
| 14 | install -d ${D}${bindir} |
| 15 | install -m 0755 ${WORKDIR}/toggle_identify_led.sh \ |
| 16 | ${D}${bindir}/toggle_identify_led.sh |
| 17 | } |
| 18 | |
Patrick Williams | e83c220 | 2021-09-01 16:17:33 -0500 | [diff] [blame] | 19 | SYSTEMD_ENVIRONMENT_FILE:${PN} +="obmc/gpio/id_button" |
Chanh Nguyen | 62feab3 | 2021-02-25 22:25:53 +0700 | [diff] [blame] | 20 | |
| 21 | ID_BUTTON_SERVICE = "id_button" |
| 22 | |
| 23 | TMPL = "phosphor-gpio-monitor@.service" |
| 24 | INSTFMT = "phosphor-gpio-monitor@{0}.service" |
| 25 | TGT = "multi-user.target" |
| 26 | FMT = "../${TMPL}:${TGT}.requires/${INSTFMT}" |
| 27 | |
Thang Q. Nguyen | fa1aa4d | 2021-08-07 05:09:50 +0000 | [diff] [blame] | 28 | SYSTEMD_SERVICE:${PN} += "id-button-pressed.service" |
Patrick Williams | e83c220 | 2021-09-01 16:17:33 -0500 | [diff] [blame] | 29 | SYSTEMD_LINK:${PN} += "${@compose_list(d, 'FMT', 'ID_BUTTON_SERVICE')}" |