Vishwanatha Subbanna | 55d8f76 | 2017-04-28 15:35:10 +0530 | [diff] [blame] | 1 | SUMMARY = "OpenPOWER Host checkstop monitor application" |
| 2 | PR = "r1" |
| 3 | |
| 4 | inherit obmc-phosphor-systemd |
| 5 | inherit obmc-phosphor-license |
| 6 | inherit allarch |
| 7 | |
| 8 | DEPENDS += "virtual/obmc-gpio-monitor" |
| 9 | RDEPENDS_${PN} += "virtual/obmc-gpio-monitor" |
| 10 | |
| 11 | # For now, monitoring checkstop is the only usecase |
| 12 | OBMC_HOST_MONITOR_INSTANCES = "checkstop" |
| 13 | |
| 14 | # Copies config file having arguments for monitoring host checkstop |
| 15 | # via GPIO assertion |
| 16 | SYSTEMD_ENVIRONMENT_FILE_${PN} +="obmc/gpio/checkstop" |
| 17 | |
Vishwanatha Subbanna | 610a8ff | 2017-07-26 16:41:03 +0530 | [diff] [blame] | 18 | # This package is not supplying the unit file and also this is not a native |
| 19 | # recipe since state-mgmt needs this package at runtime. Unsetting this below |
| 20 | # variable will let the build go through |
| 21 | SYSTEMD_SERVICE_${PN} ?="" |
Vishwanatha Subbanna | 55d8f76 | 2017-04-28 15:35:10 +0530 | [diff] [blame] | 22 | |
Vishwanatha Subbanna | 610a8ff | 2017-07-26 16:41:03 +0530 | [diff] [blame] | 23 | # Install the override to set up a Conflicts relation |
| 24 | SYSTEMD_OVERRIDE_${PN} +="checkstop.conf:phosphor-gpio-monitor@checkstop.service.d/checkstop.conf" |
| 25 | |
| 26 | STATES = "start" |
| 27 | GPIO_MONITOR_TMPL = "phosphor-gpio-monitor@.service" |
| 28 | GPIO_MONITOR_TGTFMT = "phosphor-gpio-monitor@{1}.service" |
| 29 | CHECKSTOP_MONITOR_FMT = "../${GPIO_MONITOR_TMPL}:obmc-host-{0}@{2}.target.wants/${GPIO_MONITOR_TGTFMT}" |
Vishwanatha Subbanna | dda7444 | 2017-06-07 21:00:16 +0530 | [diff] [blame] | 30 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'CHECKSTOP_MONITOR_FMT', 'STATES', 'OBMC_HOST_MONITOR_INSTANCES', 'OBMC_HOST_INSTANCES')}" |