ThuBaNguyen | fb21478 | 2021-07-08 14:20:43 +0700 | [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 | |
| 8 | DEPENDS += "virtual/obmc-gpio-monitor" |
Thang Q. Nguyen | fa1aa4d | 2021-08-07 05:09:50 +0000 | [diff] [blame] | 9 | RDEPENDS:${PN} += "virtual/obmc-gpio-monitor" |
ThuBaNguyen | fb21478 | 2021-07-08 14:20:43 +0700 | [diff] [blame] | 10 | |
| 11 | OBMC_HOST_ACK_MONITOR_INSTANCES = "reboot_ack shutdown_ack" |
| 12 | |
Thang Q. Nguyen | ca3e1d9 | 2021-08-12 10:21:36 +0000 | [diff] [blame] | 13 | SYSTEMD_ENVIRONMENT_FILE_${PN} +="obmc/gpio/reboot_ack \ |
ThuBaNguyen | fb21478 | 2021-07-08 14:20:43 +0700 | [diff] [blame] | 14 | obmc/gpio/shutdown_ack \ |
| 15 | " |
| 16 | |
| 17 | TMPL = "phosphor-gpio-monitor@.service" |
| 18 | INSTFMT = "phosphor-gpio-monitor@{0}.service" |
| 19 | TGT = "multi-user.target" |
| 20 | FMT = "../${TMPL}:${TGT}.requires/${INSTFMT}" |
| 21 | |
Thang Q. Nguyen | fa1aa4d | 2021-08-07 05:09:50 +0000 | [diff] [blame] | 22 | SYSTEMD_SERVICE:${PN} += "ampere-host-shutdown-ack@.service" |
Thang Q. Nguyen | ca3e1d9 | 2021-08-12 10:21:36 +0000 | [diff] [blame] | 23 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_HOST_ACK_MONITOR_INSTANCES')}" |