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