blob: e068b4d24030a0ef29d581c33c0b62b3c340f46c [file] [log] [blame]
Chanh Nguyen803ae912021-02-25 17:50:05 +07001SUMMARY = "MTJade fault-led 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"
9RDEPENDS_${PN} += "virtual/obmc-gpio-monitor"
10
11S = "${WORKDIR}"
12SRC_URI += "file://toggle_fault_led.sh"
13
14do_install() {
15 install -d ${D}${bindir}
16 install -m 0755 ${WORKDIR}/toggle_fault_led.sh \
17 ${D}${bindir}/toggle_fault_led.sh
18}
19
20OBMC_FAULT_MONITOR_INSTANCES = "s0_fault_alert s1_fault_alert"
21
22SYSTEMD_ENVIRONMENT_FILE_${PN} += "obmc/gpio/s0_fault_alert \
23 obmc/gpio/s1_fault_alert \
24 "
25
26TMPL = "phosphor-gpio-monitor@.service"
27INSTFMT = "phosphor-gpio-monitor@{0}.service"
28TGT = "multi-user.target"
29FMT = "../${TMPL}:${TGT}.requires/${INSTFMT}"
30
31SYSTEMD_SERVICE_${PN} += "ampere_fault_led.service"
32SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_FAULT_MONITOR_INSTANCES')}"
33