blob: e28bcb1d04ce815556e9a5c1f50cc4b1a09b81e9 [file] [log] [blame]
Brandon Wyman23db01f2017-06-09 17:50:42 -05001FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"
Matthew Bartha63359e2019-04-12 13:20:39 -05002# Machine specific files override shared files with the same name
3FILESEXTRAPATHS_prepend := "${THISDIR}/${MACHINE}-${PN}:"
Brandon Wyman37e55d82017-04-28 18:26:45 -05004
5# Package configuration
6FAN_PACKAGES += " \
7 phosphor-cooling-type \
8"
Brandon Wyman23db01f2017-06-09 17:50:42 -05009
10PACKAGECONFIG += "cooling-type"
11
Brandon Wyman23db01f2017-06-09 17:50:42 -050012TMPL_COOLING = "phosphor-cooling-type@.service"
13INSTFMT_COOLING = "phosphor-cooling-type@{0}.service"
Patrick Venture85cff8c2019-04-04 13:06:43 -070014COOLING_TGT = "multi-user.target"
Brandon Wyman23db01f2017-06-09 17:50:42 -050015FMT_COOLING = "../${TMPL_COOLING}:${COOLING_TGT}.requires/${INSTFMT_COOLING}"
Brandon Wyman37e55d82017-04-28 18:26:45 -050016
Patrick Venture8c065e22019-03-30 08:57:39 -070017FILES_phosphor-cooling-type = "${bindir}/phosphor-cooling-type"
Brandon Wyman23db01f2017-06-09 17:50:42 -050018SYSTEMD_SERVICE_phosphor-cooling-type += "${TMPL_COOLING}"
19SYSTEMD_LINK_phosphor-cooling-type += "${@compose_list(d, 'FMT_COOLING', 'OBMC_CHASSIS_INSTANCES')}"
Brandon Wyman37e55d82017-04-28 18:26:45 -050020
21COOLING_ENV_FMT = "obmc/phosphor-fan/phosphor-cooling-type-{0}.conf"
22
Brandon Wyman23db01f2017-06-09 17:50:42 -050023SYSTEMD_ENVIRONMENT_FILE_phosphor-cooling-type += "${@compose_list(d, 'COOLING_ENV_FMT', 'OBMC_CHASSIS_INSTANCES')}"
Brandon Wyman37e55d82017-04-28 18:26:45 -050024
Matthew Barthceacb772017-10-24 14:07:09 -050025#These services are protected by the watchdog
Matt Spinler736d3e02018-05-02 16:06:36 -050026SYSTEMD_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 -050027SYSTEMD_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 -050028SYSTEMD_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 -050029SYSTEMD_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 -050030
Matthew Barthceacb772017-10-24 14:07:09 -050031#These services need to be stopped when watchdog expires
32SYSTEMD_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 -050033SYSTEMD_OVERRIDE_phosphor-fan-monitor += "fan-watchdog-conflicts.conf:phosphor-fan-monitor@0.service.d/fan-watchdog-conflicts.conf"