Lei YU | be5a620 | 2018-01-17 15:09:09 +0800 | [diff] [blame] | 1 | FILESEXTRAPATHS_append := "${THISDIR}/${PN}:" |
| 2 | |
| 3 | # Package configuration |
| 4 | FAN_PACKAGES += " \ |
| 5 | phosphor-cooling-type \ |
| 6 | " |
| 7 | |
| 8 | PACKAGECONFIG += "cooling-type" |
| 9 | |
| 10 | TMPL_COOLING = "phosphor-cooling-type@.service" |
| 11 | INSTFMT_COOLING = "phosphor-cooling-type@{0}.service" |
| 12 | COOLING_TGT = "${SYSTEMD_DEFAULT_TARGET}" |
| 13 | FMT_COOLING = "../${TMPL_COOLING}:${COOLING_TGT}.requires/${INSTFMT_COOLING}" |
| 14 | |
| 15 | FILES_phosphor-cooling-type = "${sbindir}/phosphor-cooling-type" |
| 16 | SYSTEMD_SERVICE_phosphor-cooling-type += "${TMPL_COOLING}" |
| 17 | SYSTEMD_LINK_phosphor-cooling-type += "${@compose_list(d, 'FMT_COOLING', 'OBMC_CHASSIS_INSTANCES')}" |
| 18 | |
| 19 | COOLING_ENV_FMT = "obmc/phosphor-fan/phosphor-cooling-type-{0}.conf" |
| 20 | |
| 21 | SYSTEMD_ENVIRONMENT_FILE_phosphor-cooling-type += "${@compose_list(d, 'COOLING_ENV_FMT', 'OBMC_CHASSIS_INSTANCES')}" |
| 22 | |