blob: b9fc6631b6ab4b15280f226f6857a336e8a33176 [file] [log] [blame]
Brandon Wyman23db01f2017-06-09 17:50:42 -05001FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"
Brandon Wyman37e55d82017-04-28 18:26:45 -05002
3# Package configuration
4FAN_PACKAGES += " \
5 phosphor-cooling-type \
6"
Brandon Wyman23db01f2017-06-09 17:50:42 -05007
8PACKAGECONFIG += "cooling-type"
9
Brandon Wyman37e55d82017-04-28 18:26:45 -050010RDEPENDS_phosphor-cooling-type += "libevdev"
11
Brandon Wyman23db01f2017-06-09 17:50:42 -050012TMPL_COOLING = "phosphor-cooling-type@.service"
13INSTFMT_COOLING = "phosphor-cooling-type@{0}.service"
Brandon Wyman37e55d82017-04-28 18:26:45 -050014COOLING_TGT = "${SYSTEMD_DEFAULT_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
17FILES_phosphor-cooling-type = "${sbindir}/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