blob: 3e53f9d084200c50bccef99ae39971a9d332c24e [file] [log] [blame]
Ben_Paib24a3e52019-07-15 16:19:02 +08001SUMMARY = "ID Button pressed application"
2PR = "r1"
3LICENSE = "Apache-2.0"
Brad Bishopd77088a2019-09-13 13:06:15 -04004LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
Ben_Paib24a3e52019-07-15 16:19:02 +08005
6inherit obmc-phosphor-systemd
7
8DEPENDS += "virtual/obmc-gpio-monitor"
Adriana Kobylakb96c7502021-08-06 16:25:30 +00009RDEPENDS:${PN} += "virtual/obmc-gpio-monitor"
Ben_Paib24a3e52019-07-15 16:19:02 +080010
11S = "${WORKDIR}"
12SRC_URI += "file://toggle_identify_led.sh"
13
14do_install() {
15 install -d ${D}${bindir}
16 install -m 0755 ${WORKDIR}/toggle_identify_led.sh \
17 ${D}${bindir}/toggle_identify_led.sh
18}
19
Patrick Williamse83c2202021-09-01 16:17:33 -050020SYSTEMD_ENVIRONMENT_FILE:${PN} +="obmc/gpio/id_button"
Ben_Paib24a3e52019-07-15 16:19:02 +080021
22ID_BUTTON_SERVICE = "id_button"
23
24TMPL = "phosphor-gpio-monitor@.service"
25INSTFMT = "phosphor-gpio-monitor@{0}.service"
26TGT = "multi-user.target"
27FMT = "../${TMPL}:${TGT}.requires/${INSTFMT}"
28
Adriana Kobylakb96c7502021-08-06 16:25:30 +000029SYSTEMD_SERVICE:${PN} += "id-button-pressed.service"
Patrick Williamse83c2202021-09-01 16:17:33 -050030SYSTEMD_LINK:${PN} += "${@compose_list(d, 'FMT', 'ID_BUTTON_SERVICE')}"