blob: 58c1a5f9d20b5d72a663d331388b86e223c5b23f [file] [log] [blame]
Brad Bishop6587e6c2019-05-13 14:46:48 -04001FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
Brandon Wyman37e55d82017-04-28 18:26:45 -05002
3# Package configuration
4FAN_PACKAGES += " \
5 phosphor-cooling-type \
6"
Brandon Wyman23db01f2017-06-09 17:50:42 -05007
8PACKAGECONFIG += "cooling-type"
9
Brandon Wyman23db01f2017-06-09 17:50:42 -050010TMPL_COOLING = "phosphor-cooling-type@.service"
11INSTFMT_COOLING = "phosphor-cooling-type@{0}.service"
Patrick Venture85cff8c2019-04-04 13:06:43 -070012COOLING_TGT = "multi-user.target"
Brandon Wyman23db01f2017-06-09 17:50:42 -050013FMT_COOLING = "../${TMPL_COOLING}:${COOLING_TGT}.requires/${INSTFMT_COOLING}"
Brandon Wyman37e55d82017-04-28 18:26:45 -050014
Patrick Venture8c065e22019-03-30 08:57:39 -070015FILES_phosphor-cooling-type = "${bindir}/phosphor-cooling-type"
Brandon Wyman23db01f2017-06-09 17:50:42 -050016SYSTEMD_SERVICE_phosphor-cooling-type += "${TMPL_COOLING}"
17SYSTEMD_LINK_phosphor-cooling-type += "${@compose_list(d, 'FMT_COOLING', 'OBMC_CHASSIS_INSTANCES')}"
Brandon Wyman37e55d82017-04-28 18:26:45 -050018
19COOLING_ENV_FMT = "obmc/phosphor-fan/phosphor-cooling-type-{0}.conf"
20
Brandon Wyman23db01f2017-06-09 17:50:42 -050021SYSTEMD_ENVIRONMENT_FILE_phosphor-cooling-type += "${@compose_list(d, 'COOLING_ENV_FMT', 'OBMC_CHASSIS_INSTANCES')}"
Brandon Wyman37e55d82017-04-28 18:26:45 -050022
Matthew Barthceacb772017-10-24 14:07:09 -050023#These services are protected by the watchdog
Matthew Barth2eb5a132019-04-12 13:43:18 -050024SYSTEMD_OVERRIDE_phosphor-fan-control_witherspoon += "fan-watchdog-monitor.conf:phosphor-fan-control-init@0.service.d/fan-watchdog-monitor.conf"
25SYSTEMD_OVERRIDE_phosphor-fan-control_witherspoon += "fan-watchdog-monitor.conf:phosphor-fan-control@0.service.d/fan-watchdog-monitor.conf"
26SYSTEMD_OVERRIDE_phosphor-fan-monitor_witherspoon += "fan-watchdog-monitor.conf:phosphor-fan-monitor-init@0.service.d/fan-watchdog-monitor.conf"
27SYSTEMD_OVERRIDE_phosphor-fan-monitor_witherspoon += "fan-watchdog-monitor.conf:phosphor-fan-monitor@0.service.d/fan-watchdog-monitor.conf"
Matt Spinlerd9aee4a2017-06-19 14:55:52 -050028
Matthew Barthceacb772017-10-24 14:07:09 -050029#These services need to be stopped when watchdog expires
Matthew Barth2eb5a132019-04-12 13:43:18 -050030SYSTEMD_OVERRIDE_phosphor-fan-control_witherspoon += "fan-watchdog-conflicts.conf:phosphor-fan-control@0.service.d/fan-watchdog-conflicts.conf"
31SYSTEMD_OVERRIDE_phosphor-fan-monitor_witherspoon += "fan-watchdog-conflicts.conf:phosphor-fan-monitor@0.service.d/fan-watchdog-conflicts.conf"