Thang Q. Nguyen | bd7d633 | 2021-12-06 10:18:21 +0000 | [diff] [blame] | 1 | SUMMARY = "Ampere Computing LLC Host Gpio Handling" |
| 2 | PR = "r1" |
| 3 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
| 5 | |
| 6 | inherit obmc-phosphor-systemd |
| 7 | |
Brad Bishop | 5747dac | 2022-10-12 17:45:15 -0400 | [diff] [blame] | 8 | DEPENDS += "phosphor-gpio-monitor" |
| 9 | RDEPENDS:${PN} += "phosphor-gpio-monitor-monitor" |
Thang Q. Nguyen | bd7d633 | 2021-12-06 10:18:21 +0000 | [diff] [blame] | 10 | RDEPENDS:${PN} += "bash" |
| 11 | |
Thang Q. Nguyen | bd7d633 | 2021-12-06 10:18:21 +0000 | [diff] [blame] | 12 | AMPERE_MONITOR_INSTANCES = " \ |
Thang Q. Nguyen | 45a89b6 | 2022-09-16 14:26:53 +0700 | [diff] [blame] | 13 | S0_hightemp_start S0_hightemp_stop \ |
| 14 | S1_hightemp_start S1_hightemp_stop \ |
Thang Q. Nguyen | bd7d633 | 2021-12-06 10:18:21 +0000 | [diff] [blame] | 15 | " |
| 16 | |
| 17 | SYSTEMD_ENVIRONMENT_FILE:${PN} +=" \ |
Thang Q. Nguyen | bd7d633 | 2021-12-06 10:18:21 +0000 | [diff] [blame] | 18 | obmc/gpio/S0_hightemp_start \ |
| 19 | obmc/gpio/S0_hightemp_stop \ |
Thang Q. Nguyen | bd7d633 | 2021-12-06 10:18:21 +0000 | [diff] [blame] | 20 | obmc/gpio/S1_hightemp_start \ |
| 21 | obmc/gpio/S1_hightemp_stop \ |
Thang Q. Nguyen | bd7d633 | 2021-12-06 10:18:21 +0000 | [diff] [blame] | 22 | " |
| 23 | |
| 24 | TMPL = "phosphor-gpio-monitor@.service" |
| 25 | INSTFMT = "phosphor-gpio-monitor@{0}.service" |
| 26 | TGT = "multi-user.target" |
| 27 | FMT = "../${TMPL}:${TGT}.requires/${INSTFMT}" |
| 28 | |
| 29 | SYSTEMD_SERVICE:${PN} += " \ |
Thang Q. Nguyen | bd7d633 | 2021-12-06 10:18:21 +0000 | [diff] [blame] | 30 | ampere_hightemp_start@.service \ |
| 31 | ampere_hightemp_stop@.service \ |
Thang Q. Nguyen | bd7d633 | 2021-12-06 10:18:21 +0000 | [diff] [blame] | 32 | " |
| 33 | SYSTEMD_LINK:${PN} += "${@compose_list(d, 'FMT', 'AMPERE_MONITOR_INSTANCES')}" |
| 34 | |