blob: 8cc310e7ce9f072f8083b84d84172c161a8c32c6 [file] [log] [blame]
Brandon Wyman5b42b742017-06-09 17:50:42 -05001FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"
Brandon Wymanc50a8c42017-04-28 18:26:45 -05002
3# Package configuration
4FAN_PACKAGES += " \
5 phosphor-cooling-type \
6"
Brandon Wyman5b42b742017-06-09 17:50:42 -05007
8PACKAGECONFIG += "cooling-type"
9
Brandon Wymanc50a8c42017-04-28 18:26:45 -050010RDEPENDS_phosphor-cooling-type += "libevdev"
11
Brandon Wyman5b42b742017-06-09 17:50:42 -050012TMPL_COOLING = "phosphor-cooling-type@.service"
13INSTFMT_COOLING = "phosphor-cooling-type@{0}.service"
Brandon Wymanc50a8c42017-04-28 18:26:45 -050014COOLING_TGT = "${SYSTEMD_DEFAULT_TARGET}"
Brandon Wyman5b42b742017-06-09 17:50:42 -050015FMT_COOLING = "../${TMPL_COOLING}:${COOLING_TGT}.requires/${INSTFMT_COOLING}"
Brandon Wymanc50a8c42017-04-28 18:26:45 -050016
17FILES_phosphor-cooling-type = "${sbindir}/phosphor-cooling-type"
Brandon Wyman5b42b742017-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 Wymanc50a8c42017-04-28 18:26:45 -050020
21COOLING_ENV_FMT = "obmc/phosphor-fan/phosphor-cooling-type-{0}.conf"
22
Brandon Wyman5b42b742017-06-09 17:50:42 -050023SYSTEMD_ENVIRONMENT_FILE_phosphor-cooling-type += "${@compose_list(d, 'COOLING_ENV_FMT', 'OBMC_CHASSIS_INSTANCES')}"
Brandon Wymanc50a8c42017-04-28 18:26:45 -050024
Matthew Barth770a1de2017-10-24 14:07:09 -050025#These services are protected by the watchdog
Matt Spinlerafd49412018-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 Spinlera49ed3d2017-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 Spinlerafd49412018-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 Spinlera49ed3d2017-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 Spinler99940142017-06-19 14:55:52 -050030
Matthew Barth770a1de2017-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 Spinler99940142017-06-19 14:55:52 -050033SYSTEMD_OVERRIDE_phosphor-fan-monitor += "fan-watchdog-conflicts.conf:phosphor-fan-monitor@0.service.d/fan-watchdog-conflicts.conf"