blob: c1a616a9cff824af4ff62a9ff31992bccb1d52b6 [file] [log] [blame]
Chanh Nguyen62feab32021-02-25 22:25:53 +07001SUMMARY = "MTJade ID Button pressed application"
2PR = "r1"
3LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
5
6inherit obmc-phosphor-systemd
7
8DEPENDS += "virtual/obmc-gpio-monitor"
Thang Q. Nguyenfa1aa4d2021-08-07 05:09:50 +00009RDEPENDS:${PN} += "virtual/obmc-gpio-monitor"
Chanh Nguyen62feab32021-02-25 22:25:53 +070010
11SRC_URI += "file://toggle_identify_led.sh"
12
13do_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 Williamse83c2202021-09-01 16:17:33 -050019SYSTEMD_ENVIRONMENT_FILE:${PN} +="obmc/gpio/id_button"
Chanh Nguyen62feab32021-02-25 22:25:53 +070020
21ID_BUTTON_SERVICE = "id_button"
22
23TMPL = "phosphor-gpio-monitor@.service"
24INSTFMT = "phosphor-gpio-monitor@{0}.service"
25TGT = "multi-user.target"
26FMT = "../${TMPL}:${TGT}.requires/${INSTFMT}"
27
Thang Q. Nguyenfa1aa4d2021-08-07 05:09:50 +000028SYSTEMD_SERVICE:${PN} += "id-button-pressed.service"
Patrick Williamse83c2202021-09-01 16:17:33 -050029SYSTEMD_LINK:${PN} += "${@compose_list(d, 'FMT', 'ID_BUTTON_SERVICE')}"