blob: cde625f5bcd7e9e7622f9bd3c273573f88185816 [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"
Thang Q. Nguyenfa1aa4d2021-08-07 05:09:50 +00009RDEPENDS:${PN} += "virtual/obmc-gpio-monitor"
ThuBaNguyenfb214782021-07-08 14:20:43 +070010
11OBMC_HOST_ACK_MONITOR_INSTANCES = "reboot_ack shutdown_ack"
12
Thang Q. Nguyenca3e1d92021-08-12 10:21:36 +000013SYSTEMD_ENVIRONMENT_FILE_${PN} +="obmc/gpio/reboot_ack \
ThuBaNguyenfb214782021-07-08 14:20:43 +070014 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
Thang Q. Nguyenfa1aa4d2021-08-07 05:09:50 +000022SYSTEMD_SERVICE:${PN} += "ampere-host-shutdown-ack@.service"
Thang Q. Nguyenca3e1d92021-08-12 10:21:36 +000023SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_HOST_ACK_MONITOR_INSTANCES')}"