blob: 5a24fa79e6886394b894df9148c39a1815a9df02 [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 Barth2eb5a132019-04-12 13:43:18 -050025# Do not install presence and monitor applications for Swift bring-up
26FAN_PACKAGES_remove_swift = "${PN}-presence-tach ${PN}-monitor"
27PACKAGECONFIG_remove_swift = "presence monitor"
28
Matthew Barthceacb772017-10-24 14:07:09 -050029#These services are protected by the watchdog
Matthew Barth2eb5a132019-04-12 13:43:18 -050030SYSTEMD_OVERRIDE_phosphor-fan-control_witherspoon += "fan-watchdog-monitor.conf:phosphor-fan-control-init@0.service.d/fan-watchdog-monitor.conf"
31SYSTEMD_OVERRIDE_phosphor-fan-control_witherspoon += "fan-watchdog-monitor.conf:phosphor-fan-control@0.service.d/fan-watchdog-monitor.conf"
32SYSTEMD_OVERRIDE_phosphor-fan-monitor_witherspoon += "fan-watchdog-monitor.conf:phosphor-fan-monitor-init@0.service.d/fan-watchdog-monitor.conf"
33SYSTEMD_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 -050034
Matthew Barthceacb772017-10-24 14:07:09 -050035#These services need to be stopped when watchdog expires
Matthew Barth2eb5a132019-04-12 13:43:18 -050036SYSTEMD_OVERRIDE_phosphor-fan-control_witherspoon += "fan-watchdog-conflicts.conf:phosphor-fan-control@0.service.d/fan-watchdog-conflicts.conf"
37SYSTEMD_OVERRIDE_phosphor-fan-monitor_witherspoon += "fan-watchdog-conflicts.conf:phosphor-fan-monitor@0.service.d/fan-watchdog-conflicts.conf"