blob: f2878fb77170f15f00b6f55ae53c953c1d1017b3 [file] [log] [blame]
Brandon Wyman23db01f2017-06-09 17:50:42 -05001FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"
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
Matt Spinler736d3e02018-05-02 16:06:36 -050024SYSTEMD_OVERRIDE_phosphor-fan-control += "fan-watchdog-monitor.conf:phosphor-fan-control-init@0.service.d/fan-watchdog-monitor.conf"
Matt Spinler9bce4f82017-06-08 12:46:22 -050025SYSTEMD_OVERRIDE_phosphor-fan-control += "fan-watchdog-monitor.conf:phosphor-fan-control@0.service.d/fan-watchdog-monitor.conf"
Matt Spinler736d3e02018-05-02 16:06:36 -050026SYSTEMD_OVERRIDE_phosphor-fan-monitor += "fan-watchdog-monitor.conf:phosphor-fan-monitor-init@0.service.d/fan-watchdog-monitor.conf"
Matt Spinler9bce4f82017-06-08 12:46:22 -050027SYSTEMD_OVERRIDE_phosphor-fan-monitor += "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
30SYSTEMD_OVERRIDE_phosphor-fan-control += "fan-watchdog-conflicts.conf:phosphor-fan-control@0.service.d/fan-watchdog-conflicts.conf"
Matt Spinlerd9aee4a2017-06-19 14:55:52 -050031SYSTEMD_OVERRIDE_phosphor-fan-monitor += "fan-watchdog-conflicts.conf:phosphor-fan-monitor@0.service.d/fan-watchdog-conflicts.conf"