Lei YU | e36b2af | 2018-04-11 11:10:31 +0800 | [diff] [blame] | 1 | SUMMARY = "Romulus ID Button pressed application" |
| 2 | PR = "r1" |
| 3 | |
| 4 | inherit obmc-phosphor-systemd |
| 5 | inherit obmc-phosphor-license |
| 6 | |
| 7 | DEPENDS += "virtual/obmc-gpio-monitor" |
| 8 | RDEPENDS_${PN} += "virtual/obmc-gpio-monitor" |
| 9 | |
| 10 | S = "${WORKDIR}" |
| 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 | |
| 19 | SYSTEMD_ENVIRONMENT_FILE_${PN} +="obmc/gpio/id_button" |
| 20 | |
| 21 | ID_BUTTON_SERVICE = "id_button" |
| 22 | |
| 23 | TMPL = "phosphor-gpio-monitor@.service" |
| 24 | INSTFMT = "phosphor-gpio-monitor@{0}.service" |
| 25 | TGT = "${SYSTEMD_DEFAULT_TARGET}" |
| 26 | FMT = "../${TMPL}:${TGT}.requires/${INSTFMT}" |
| 27 | |
| 28 | SYSTEMD_SERVICE_${PN} += "id-button-pressed.service" |
| 29 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'ID_BUTTON_SERVICE')}" |