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" |
| 9 | RDEPENDS_${PN} += "virtual/obmc-gpio-monitor" |
| 10 | |
| 11 | OBMC_HOST_ACK_MONITOR_INSTANCES = "reboot_ack shutdown_ack" |
| 12 | |
| 13 | SYSTEMD_ENVIRONMENT_FILE_${PN} +="obmc/gpio/reboot_ack \ |
| 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 | |
| 22 | SYSTEMD_SERVICE_${PN} += "ampere-host-shutdown-ack@.service" |
| 23 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_HOST_ACK_MONITOR_INSTANCES')}" |