From c358bce9b48a07b86133b443ad07f17d72ddfd6e Mon Sep 17 00:00:00 2001 From: Matthew Barth Date: Tue, 12 May 2020 14:08:30 -0500 Subject: witherspoon: Remove `witherspoon` naming from fan watchdog Remove the use of `witherspoon` in the names of the recipe, config files, and services of the fan watchdog. This is in prep to use this same fan watchdog on other machines within meta-ibm that have different configurations. Tested: Witherspoon image matches image prior to change Flash image to Witherspoon and force watchdog to trip (From meta-ibm rev: 80f819efec08f7cc7de6988f64c0c77e20990f05) Change-Id: I77295974397cd4903cd1a723b9ef97ee744d2557 Signed-off-by: Matthew Barth Signed-off-by: Andrew Geissler --- meta-ibm/recipes-phosphor/fans/fan-watchdog.bb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 meta-ibm/recipes-phosphor/fans/fan-watchdog.bb (limited to 'meta-ibm/recipes-phosphor/fans/fan-watchdog.bb') diff --git a/meta-ibm/recipes-phosphor/fans/fan-watchdog.bb b/meta-ibm/recipes-phosphor/fans/fan-watchdog.bb new file mode 100644 index 000000000..d71b378cf --- /dev/null +++ b/meta-ibm/recipes-phosphor/fans/fan-watchdog.bb @@ -0,0 +1,23 @@ +SUMMARY = "Fan watchdog services" +PR = "r1" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" + +inherit obmc-phosphor-systemd + +RDEPENDS_${PN} += "virtual/obmc-gpio-monitor" +RDEPENDS_${PN} += "busybox" + +RESET_SERVICE = "reset-fan-watchdog.service" +TGTFMT = "obmc-chassis-poweron@0.target" +RESET_FMT = "../${RESET_SERVICE}:${TGTFMT}.requires/${RESET_SERVICE}" + +MONITOR_SERVICE = "fan-watchdog-monitor@.service" + +WATCHDOG_SERVICE = "fan-watchdog.service" +WATCHDOG_FMT = "../${WATCHDOG_SERVICE}:${TGTFMT}.requires/${WATCHDOG_SERVICE}" + +SYSTEMD_SERVICE_${PN} += "${RESET_SERVICE} ${MONITOR_SERVICE} ${WATCHDOG_SERVICE}" +SYSTEMD_LINK_${PN} += "${RESET_FMT} ${WATCHDOG_FMT}" +SYSTEMD_ENVIRONMENT_FILE_${PN} += "obmc/fan-watchdog/reset-fan-watchdog.conf" +SYSTEMD_ENVIRONMENT_FILE_${PN} += "obmc/fan-watchdog/fan-watchdog.conf" -- cgit v1.2.3