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