blob: 4358b1242a14772b8e761ab747968c6983d56c25 [file] [log] [blame]
ThuBaNguyenfb214782021-07-08 14:20:43 +07001SUMMARY = "Ampere Computing LLC Host Gpio Handling"
2PR = "r1"
3LICENSE = "Apache-2.0"
4LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
5
6inherit obmc-phosphor-systemd
7
8DEPENDS += "virtual/obmc-gpio-monitor"
9RDEPENDS_${PN} += "virtual/obmc-gpio-monitor"
10
11OBMC_HOST_ACK_MONITOR_INSTANCES = "reboot_ack shutdown_ack"
12
13SYSTEMD_ENVIRONMENT_FILE_${PN} +="obmc/gpio/reboot_ack \
14 obmc/gpio/shutdown_ack \
15 "
16
17TMPL = "phosphor-gpio-monitor@.service"
18INSTFMT = "phosphor-gpio-monitor@{0}.service"
19TGT = "multi-user.target"
20FMT = "../${TMPL}:${TGT}.requires/${INSTFMT}"
21
22SYSTEMD_SERVICE_${PN} += "ampere-host-shutdown-ack@.service"
23SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_HOST_ACK_MONITOR_INSTANCES')}"