blob: 07d024e0c429a033ae31d57d3b0167d4683cefe4 [file] [log] [blame]
Vishwanatha Subbanna55d8f762017-04-28 15:35:10 +05301SUMMARY = "OpenPOWER Host checkstop monitor application"
2PR = "r1"
3
4inherit obmc-phosphor-systemd
5inherit obmc-phosphor-license
6inherit allarch
7
8DEPENDS += "virtual/obmc-gpio-monitor"
9RDEPENDS_${PN} += "virtual/obmc-gpio-monitor"
10
11# For now, monitoring checkstop is the only usecase
12OBMC_HOST_MONITOR_INSTANCES = "checkstop"
13
14# Copies config file having arguments for monitoring host checkstop
15# via GPIO assertion
16SYSTEMD_ENVIRONMENT_FILE_${PN} +="obmc/gpio/checkstop"
17
18SYSTEMD_SERVICE_${PN} += "openpower-host-checkstop-monitor@.target"
19
20CHECKSTOP_TMPL = "openpower-host-checkstop-monitor@.target"
21CHECKSTOP_TGTFMT = "openpower-host-checkstop-monitor@{0}.target"
22CHECKSTOP_MONITOR_FMT = "${CHECKSTOP_TMPL}:${CHECKSTOP_TGTFMT}"
23SYSTEMD_LINK_${PN} += "${@compose_list(d, 'CHECKSTOP_MONITOR_FMT', 'OBMC_HOST_MONITOR_INSTANCES')}"
24
25GPIO_TMPL = "phosphor-gpio-monitor@.service"
26MONITOR_TGTFMT = "openpower-host-checkstop-monitor@{0}.target"
27GPIO_INSTFMT = "phosphor-gpio-monitor@{0}.service"
28MONITOR_GPIO_FMT = "../${GPIO_TMPL}:${MONITOR_TGTFMT}.wants/${GPIO_INSTFMT}"
29SYSTEMD_LINK_${PN} += "${@compose_list(d, 'MONITOR_GPIO_FMT', 'OBMC_HOST_MONITOR_INSTANCES')}"