blob: d5d8d7f5d6d525bf03c5bf2f2b72cf185608f7b1 [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
Vishwanatha Subbannadda74442017-06-07 21:00:16 +053018STATES = "start stop"
19CHECKSTOP_SERVICE_FMT = "openpower-host-checkstop-monitor-{0}@.target"
20SYSTEMD_SERVICE_${PN} += "${@compose_list(d, 'CHECKSTOP_SERVICE_FMT', 'STATES')}"
Vishwanatha Subbanna55d8f762017-04-28 15:35:10 +053021
Vishwanatha Subbannadda74442017-06-07 21:00:16 +053022CHECKSTOP_TMPL = "openpower-host-checkstop-monitor-{0}@.target"
23CHECKSTOP_TGTFMT = "openpower-host-checkstop-monitor-{0}@{1}.target"
24CHECKSTOP_MONITOR_FMT = "../${CHECKSTOP_TMPL}:obmc-host-{0}@{2}.target.wants/${CHECKSTOP_TGTFMT}"
25SYSTEMD_LINK_${PN} += "${@compose_list(d, 'CHECKSTOP_MONITOR_FMT', 'STATES', 'OBMC_HOST_MONITOR_INSTANCES', 'OBMC_HOST_INSTANCES')}"