diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-08-31 13:30:50 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-09-05 00:28:29 +0300 |
commit | d3f78932cf6b3063caceacdae9ddd6ca30d48786 (patch) | |
tree | 765de745d26798d7a37340d2851b86b57cda7eb8 /meta-openpower/recipes-phosphor/host/checkstop-monitor.bb | |
parent | f1ade61b5994799a4cffca0c124b2ed36e640cbf (diff) | |
download | openbmc-d3f78932cf6b3063caceacdae9ddd6ca30d48786.tar.xz |
meta-openpower: Move layer content from common/
Adopt a more conventional directory hierarchy. meta-openpower is still
a _long_ way from suitable for hosting on yoctoproject.org but things
like this don't help.
(From meta-openpower rev: 2c8db5661cecd7e4cc20bcb96df76490e62cfb67)
Change-Id: I415caaa28ec728f24e755ddb549012f24874fefe
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-openpower/recipes-phosphor/host/checkstop-monitor.bb')
-rw-r--r-- | meta-openpower/recipes-phosphor/host/checkstop-monitor.bb | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-openpower/recipes-phosphor/host/checkstop-monitor.bb b/meta-openpower/recipes-phosphor/host/checkstop-monitor.bb new file mode 100644 index 0000000000..4959a3b73f --- /dev/null +++ b/meta-openpower/recipes-phosphor/host/checkstop-monitor.bb @@ -0,0 +1,30 @@ +SUMMARY = "OpenPOWER Host checkstop monitor application" +PR = "r1" + +inherit obmc-phosphor-systemd +inherit obmc-phosphor-license +inherit allarch + +DEPENDS += "virtual/obmc-gpio-monitor" +RDEPENDS_${PN} += "virtual/obmc-gpio-monitor" + +# For now, monitoring checkstop is the only usecase +OBMC_HOST_MONITOR_INSTANCES = "checkstop" + +# Copies config file having arguments for monitoring host checkstop +# via GPIO assertion +SYSTEMD_ENVIRONMENT_FILE_${PN} +="obmc/gpio/checkstop" + +# This package is not supplying the unit file and also this is not a native +# recipe since state-mgmt needs this package at runtime. Unsetting this below +# variable will let the build go through +SYSTEMD_SERVICE_${PN} ?="" + +# Install the override to set up a Conflicts relation +SYSTEMD_OVERRIDE_${PN} +="checkstop.conf:phosphor-gpio-monitor@checkstop.service.d/checkstop.conf" + +STATES = "startmin" +GPIO_MONITOR_TMPL = "phosphor-gpio-monitor@.service" +GPIO_MONITOR_TGTFMT = "phosphor-gpio-monitor@{1}.service" +CHECKSTOP_MONITOR_FMT = "../${GPIO_MONITOR_TMPL}:obmc-host-{0}@{2}.target.wants/${GPIO_MONITOR_TGTFMT}" +SYSTEMD_LINK_${PN} += "${@compose_list(d, 'CHECKSTOP_MONITOR_FMT', 'STATES', 'OBMC_HOST_MONITOR_INSTANCES', 'OBMC_HOST_INSTANCES')}" |