blob: 04399f83c281608ae63d0ca65955ac8a30135d51 [file] [log] [blame]
Brad Bishopa5880162019-05-09 17:09:20 -04001FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
Gunnar Mills7460b222017-07-10 15:49:43 -05002
Gunnar Mills7460b222017-07-10 15:49:43 -05003TMPL_POWERSUPPLY = "phosphor-gpio-presence@.service"
4INSTFMT_POWERSUPPLY = "phosphor-gpio-presence@{0}.service"
Patrick Venture85cff8c2019-04-04 13:06:43 -07005POWERSUPPLY_TGT = "multi-user.target"
Gunnar Mills7460b222017-07-10 15:49:43 -05006FMT_POWERSUPPLY = "../${TMPL_POWERSUPPLY}:${POWERSUPPLY_TGT}.requires/${INSTFMT_POWERSUPPLY}"
7
Brad Bishopbb0e1d02019-07-17 17:35:55 -04008SYSTEMD_LINK_${PN}-presence_append_ibm-ac-server = " ${@compose_list(d, 'FMT_POWERSUPPLY', 'OBMC_POWER_SUPPLY_INSTANCES')}"
Ben_Paic53430a2019-07-15 16:19:02 +08009SYSTEMD_LINK_${PN}-presence_append_mihawk = " ${@compose_list(d, 'FMT_POWERSUPPLY', 'OBMC_POWER_SUPPLY_INSTANCES')}"
Brandon Wyman3e8f1742019-10-24 18:08:13 -050010SYSTEMD_LINK_${PN}-presence_append_rainier = " ${@compose_list(d, 'FMT_POWERSUPPLY', 'OBMC_POWER_SUPPLY_INSTANCES')}"
Gunnar Mills7460b222017-07-10 15:49:43 -050011
12POWERSUPPLY_ENV_FMT = "obmc/gpio/phosphor-power-supply-{0}.conf"
13
Brad Bishopbb0e1d02019-07-17 17:35:55 -040014SYSTEMD_ENVIRONMENT_FILE_${PN}-presence_append_ibm-ac-server = " ${@compose_list(d, 'POWERSUPPLY_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"
Ben_Paic53430a2019-07-15 16:19:02 +080015SYSTEMD_ENVIRONMENT_FILE_${PN}-presence_append_mihawk = " ${@compose_list(d, 'POWERSUPPLY_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"
Brandon Wyman3e8f1742019-10-24 18:08:13 -050016SYSTEMD_ENVIRONMENT_FILE_${PN}-presence_append_rainier = " ${@compose_list(d, 'POWERSUPPLY_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"