blob: af5e1e629647398bb44345cb33d9c9a4d7b1c6e5 [file] [log] [blame]
Brad Bishop589ee002019-05-14 10:34:18 -04001FILESEXTRAPATHS_prepend_romulus := "${THISDIR}/${BPN}:"
Lei YU897ecfe2018-01-17 15:09:09 +08002
3# Package configuration
4FAN_PACKAGES += " \
5 phosphor-cooling-type \
6"
7
Brad Bishop0ccb2282019-05-08 21:02:48 -04008PACKAGECONFIG_append_romulus = " cooling-type"
Lei YU897ecfe2018-01-17 15:09:09 +08009
10TMPL_COOLING = "phosphor-cooling-type@.service"
11INSTFMT_COOLING = "phosphor-cooling-type@{0}.service"
Patrick Venture85cff8c2019-04-04 13:06:43 -070012COOLING_TGT = "multi-user.target"
Lei YU897ecfe2018-01-17 15:09:09 +080013FMT_COOLING = "../${TMPL_COOLING}:${COOLING_TGT}.requires/${INSTFMT_COOLING}"
14
Patrick Venture8c065e22019-03-30 08:57:39 -070015FILES_phosphor-cooling-type = "${bindir}/phosphor-cooling-type"
Lei YU897ecfe2018-01-17 15:09:09 +080016SYSTEMD_SERVICE_phosphor-cooling-type += "${TMPL_COOLING}"
17SYSTEMD_LINK_phosphor-cooling-type += "${@compose_list(d, 'FMT_COOLING', 'OBMC_CHASSIS_INSTANCES')}"
18
19COOLING_ENV_FMT = "obmc/phosphor-fan/phosphor-cooling-type-{0}.conf"
20
Brad Bishop0ccb2282019-05-08 21:02:48 -040021SYSTEMD_ENVIRONMENT_FILE_phosphor-cooling-type_append_romulus = " ${@compose_list(d, 'COOLING_ENV_FMT', 'OBMC_CHASSIS_INSTANCES')}"
Lei YU897ecfe2018-01-17 15:09:09 +080022