blob: cd2bab996b43243f7952f1e0d42f7a71eaccbd27 [file] [log] [blame]
Lei YU10655592018-04-11 11:10:31 +08001SUMMARY = "Romulus ID Button pressed application"
2PR = "r1"
Brad Bishop6738f352018-11-07 13:04:06 -08003LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://${IBMBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658"
Lei YU10655592018-04-11 11:10:31 +08005
6inherit obmc-phosphor-systemd
Lei YU10655592018-04-11 11:10:31 +08007
8DEPENDS += "virtual/obmc-gpio-monitor"
9RDEPENDS_${PN} += "virtual/obmc-gpio-monitor"
10
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
20SYSTEMD_ENVIRONMENT_FILE_${PN} +="obmc/gpio/id_button"
21
22ID_BUTTON_SERVICE = "id_button"
23
24TMPL = "phosphor-gpio-monitor@.service"
25INSTFMT = "phosphor-gpio-monitor@{0}.service"
Patrick Venture44fd5e02019-04-04 13:06:43 -070026TGT = "multi-user.target"
Lei YU10655592018-04-11 11:10:31 +080027FMT = "../${TMPL}:${TGT}.requires/${INSTFMT}"
28
29SYSTEMD_SERVICE_${PN} += "id-button-pressed.service"
30SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'ID_BUTTON_SERVICE')}"