Brandon Wyman | 23db01f | 2017-06-09 17:50:42 -0500 | [diff] [blame] | 1 | FILESEXTRAPATHS_append := "${THISDIR}/${PN}:" |
Brandon Wyman | 37e55d8 | 2017-04-28 18:26:45 -0500 | [diff] [blame] | 2 | |
| 3 | # Package configuration |
| 4 | FAN_PACKAGES += " \ |
| 5 | phosphor-cooling-type \ |
| 6 | " |
Brandon Wyman | 23db01f | 2017-06-09 17:50:42 -0500 | [diff] [blame] | 7 | |
| 8 | PACKAGECONFIG += "cooling-type" |
| 9 | |
Brandon Wyman | 37e55d8 | 2017-04-28 18:26:45 -0500 | [diff] [blame] | 10 | RDEPENDS_phosphor-cooling-type += "libevdev" |
| 11 | |
Brandon Wyman | 23db01f | 2017-06-09 17:50:42 -0500 | [diff] [blame] | 12 | TMPL_COOLING = "phosphor-cooling-type@.service" |
| 13 | INSTFMT_COOLING = "phosphor-cooling-type@{0}.service" |
Brandon Wyman | 37e55d8 | 2017-04-28 18:26:45 -0500 | [diff] [blame] | 14 | COOLING_TGT = "${SYSTEMD_DEFAULT_TARGET}" |
Brandon Wyman | 23db01f | 2017-06-09 17:50:42 -0500 | [diff] [blame] | 15 | FMT_COOLING = "../${TMPL_COOLING}:${COOLING_TGT}.requires/${INSTFMT_COOLING}" |
Brandon Wyman | 37e55d8 | 2017-04-28 18:26:45 -0500 | [diff] [blame] | 16 | |
| 17 | FILES_phosphor-cooling-type = "${sbindir}/phosphor-cooling-type" |
Brandon Wyman | 23db01f | 2017-06-09 17:50:42 -0500 | [diff] [blame] | 18 | SYSTEMD_SERVICE_phosphor-cooling-type += "${TMPL_COOLING}" |
| 19 | SYSTEMD_LINK_phosphor-cooling-type += "${@compose_list(d, 'FMT_COOLING', 'OBMC_CHASSIS_INSTANCES')}" |
Brandon Wyman | 37e55d8 | 2017-04-28 18:26:45 -0500 | [diff] [blame] | 20 | |
| 21 | COOLING_ENV_FMT = "obmc/phosphor-fan/phosphor-cooling-type-{0}.conf" |
| 22 | |
Brandon Wyman | 23db01f | 2017-06-09 17:50:42 -0500 | [diff] [blame] | 23 | SYSTEMD_ENVIRONMENT_FILE_phosphor-cooling-type += "${@compose_list(d, 'COOLING_ENV_FMT', 'OBMC_CHASSIS_INSTANCES')}" |
Brandon Wyman | 37e55d8 | 2017-04-28 18:26:45 -0500 | [diff] [blame] | 24 | |