blob: 9942eca7f481209987d3cdfe5891ddc255ad4a28 [file] [log] [blame]
Adriana Kobylak2493fdb2019-05-02 09:54:20 -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
Matthew Barth2eb5a132019-04-12 13:43:18 -050026SYSTEMD_OVERRIDE_phosphor-fan-control_witherspoon += "fan-watchdog-monitor.conf:phosphor-fan-control-init@0.service.d/fan-watchdog-monitor.conf"
27SYSTEMD_OVERRIDE_phosphor-fan-control_witherspoon += "fan-watchdog-monitor.conf:phosphor-fan-control@0.service.d/fan-watchdog-monitor.conf"
28SYSTEMD_OVERRIDE_phosphor-fan-monitor_witherspoon += "fan-watchdog-monitor.conf:phosphor-fan-monitor-init@0.service.d/fan-watchdog-monitor.conf"
29SYSTEMD_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 -050030
Matthew Barthceacb772017-10-24 14:07:09 -050031#These services need to be stopped when watchdog expires
Matthew Barth2eb5a132019-04-12 13:43:18 -050032SYSTEMD_OVERRIDE_phosphor-fan-control_witherspoon += "fan-watchdog-conflicts.conf:phosphor-fan-control@0.service.d/fan-watchdog-conflicts.conf"
33SYSTEMD_OVERRIDE_phosphor-fan-monitor_witherspoon += "fan-watchdog-conflicts.conf:phosphor-fan-monitor@0.service.d/fan-watchdog-conflicts.conf"