Thang Q. Nguyen | 98de8b9 | 2023-05-05 15:33:27 +0700 | [diff] [blame] | 1 | SUMMARY = "Ampere Computing LLC Fault Monitor" |
| 2 | DESCRIPTION = "Monitor fault events and update fault led status for Ampere systems" |
| 3 | PR = "r1" |
| 4 | |
| 5 | LICENSE = "Apache-2.0" |
| 6 | |
| 7 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
| 8 | |
| 9 | inherit systemd |
| 10 | inherit obmc-phosphor-systemd |
| 11 | |
| 12 | FILESEXTRAPATHS:append := "${THISDIR}/${PN}:" |
| 13 | |
| 14 | SYSTEMD_SERVICE:${PN} = "ampere-fault-monitor.service" |
| 15 | |
| 16 | GPIO_FAULT_START_TGT = "ampere-check-gpio-fault@.service" |
| 17 | GPIO_FAULT_START_S0_INSTMPL = "ampere-check-gpio-fault@{0}.service" |
| 18 | SYSTEMD_SERVICE:${PN} += "${GPIO_FAULT_START_TGT}" |
| 19 | |
| 20 | HOST_ON_STARTMIN_TGTFMT = "obmc-host-startmin@{0}.target" |
| 21 | GPIO_FAULT_START_S0_STARTMIN_FMT = "../${GPIO_FAULT_START_TGT}:${HOST_ON_STARTMIN_TGTFMT}.wants/${GPIO_FAULT_START_S0_INSTMPL}" |
| 22 | SYSTEMD_LINK:${PN} += "${@compose_list_zip(d, 'GPIO_FAULT_START_S0_STARTMIN_FMT', 'OBMC_HOST_INSTANCES')}" |
| 23 | |