blob: e5af8850c0c3d6403891a6f062c0ac76ca2e0f0e [file] [log] [blame]
Brad Bishop30217a52019-05-09 17:09:20 -04001FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
Gunnar Millsb163e9b2017-07-10 15:49:43 -05002
Gunnar Millsb163e9b2017-07-10 15:49:43 -05003TMPL_POWERSUPPLY = "phosphor-gpio-presence@.service"
4INSTFMT_POWERSUPPLY = "phosphor-gpio-presence@{0}.service"
Patrick Venture44fd5e02019-04-04 13:06:43 -07005POWERSUPPLY_TGT = "multi-user.target"
Andrew Geissler0c784ce2021-01-08 09:43:11 -06006FMT_POWERSUPPLY = "../${TMPL_POWERSUPPLY}:${POWERSUPPLY_TGT}.wants/${INSTFMT_POWERSUPPLY}"
Gunnar Millsb163e9b2017-07-10 15:49:43 -05007
Brad Bishopa29c2d52019-07-17 17:35:55 -04008SYSTEMD_LINK_${PN}-presence_append_ibm-ac-server = " ${@compose_list(d, 'FMT_POWERSUPPLY', 'OBMC_POWER_SUPPLY_INSTANCES')}"
Ben_Paib24a3e52019-07-15 16:19:02 +08009SYSTEMD_LINK_${PN}-presence_append_mihawk = " ${@compose_list(d, 'FMT_POWERSUPPLY', 'OBMC_POWER_SUPPLY_INSTANCES')}"
Brandon Wyman1c672232019-10-24 18:08:13 -050010SYSTEMD_LINK_${PN}-presence_append_rainier = " ${@compose_list(d, 'FMT_POWERSUPPLY', 'OBMC_POWER_SUPPLY_INSTANCES')}"
Gunnar Millsb163e9b2017-07-10 15:49:43 -050011
12POWERSUPPLY_ENV_FMT = "obmc/gpio/phosphor-power-supply-{0}.conf"
13
Brad Bishopa29c2d52019-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_Paib24a3e52019-07-15 16:19:02 +080015SYSTEMD_ENVIRONMENT_FILE_${PN}-presence_append_mihawk = " ${@compose_list(d, 'POWERSUPPLY_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"
Brandon Wyman1c672232019-10-24 18:08:13 -050016SYSTEMD_ENVIRONMENT_FILE_${PN}-presence_append_rainier = " ${@compose_list(d, 'POWERSUPPLY_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"