blob: 272a8a1f58dcd7ae5436b82a07cd39ebcc4224f9 [file] [log] [blame]
Adriana Kobylakb96c7502021-08-06 16:25:30 +00001FILESEXTRAPATHS: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
Adriana Kobylakb96c7502021-08-06 16:25:30 +00008SYSTEMD_LINK_${PN}-presence:append:ibm-ac-server = " ${@compose_list(d, 'FMT_POWERSUPPLY', 'OBMC_POWER_SUPPLY_INSTANCES')}"
9SYSTEMD_LINK_${PN}-presence:append:mihawk = " ${@compose_list(d, 'FMT_POWERSUPPLY', 'OBMC_POWER_SUPPLY_INSTANCES')}"
Gunnar Millsb163e9b2017-07-10 15:49:43 -050010
11POWERSUPPLY_ENV_FMT = "obmc/gpio/phosphor-power-supply-{0}.conf"
12
Adriana Kobylakb96c7502021-08-06 16:25:30 +000013SYSTEMD_ENVIRONMENT_FILE_${PN}-presence:append:ibm-ac-server = " ${@compose_list(d, 'POWERSUPPLY_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"
14SYSTEMD_ENVIRONMENT_FILE_${PN}-presence:append:mihawk = " ${@compose_list(d, 'POWERSUPPLY_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"