diff options
author | Timothy Pearson <tpearson@raptorengineering.com> | 2019-04-20 11:08:01 +0000 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-04-27 08:06:40 +0000 |
commit | fc010d48f3a9686e4898114bfa870fde16eab3eb (patch) | |
tree | 1367549a24b522120ea1302b1b128cba52fff41b /meta-rcs/meta-talos/recipes-phosphor/gpio/id-button.bb | |
parent | 4080949e757977768c1403269afc61d4495e02b5 (diff) | |
download | talos-openbmc-fc010d48f3a9686e4898114bfa870fde16eab3eb.tar.gz talos-openbmc-fc010d48f3a9686e4898114bfa870fde16eab3eb.zip |
Add flash, GPIO, and state recipies from Romulus
Diffstat (limited to 'meta-rcs/meta-talos/recipes-phosphor/gpio/id-button.bb')
-rw-r--r-- | meta-rcs/meta-talos/recipes-phosphor/gpio/id-button.bb | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-rcs/meta-talos/recipes-phosphor/gpio/id-button.bb b/meta-rcs/meta-talos/recipes-phosphor/gpio/id-button.bb new file mode 100644 index 000000000..4d4520e59 --- /dev/null +++ b/meta-rcs/meta-talos/recipes-phosphor/gpio/id-button.bb @@ -0,0 +1,30 @@ +SUMMARY = "Talos II ID Button pressed application" +PR = "r1" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://${IBMBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658" + +inherit obmc-phosphor-systemd + +DEPENDS += "virtual/obmc-gpio-monitor" +RDEPENDS_${PN} += "virtual/obmc-gpio-monitor" + +S = "${WORKDIR}" +SRC_URI += "file://toggle_identify_led.sh" + +do_install() { + install -d ${D}${bindir} + install -m 0755 ${WORKDIR}/toggle_identify_led.sh \ + ${D}${bindir}/toggle_identify_led.sh +} + +SYSTEMD_ENVIRONMENT_FILE_${PN} +="obmc/gpio/id_button" + +ID_BUTTON_SERVICE = "id_button" + +TMPL = "phosphor-gpio-monitor@.service" +INSTFMT = "phosphor-gpio-monitor@{0}.service" +TGT = "multi-user.target" +FMT = "../${TMPL}:${TGT}.requires/${INSTFMT}" + +SYSTEMD_SERVICE_${PN} += "id-button-pressed.service" +SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'ID_BUTTON_SERVICE')}" |