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