| FILESEXTRAPATHS_append := "${THISDIR}/${PN}:" |
| |
| OBMC_POWERSUPPLY_INSTANCES = "0 1" |
| |
| TMPL_POWERSUPPLY = "phosphor-gpio-presence@.service" |
| INSTFMT_POWERSUPPLY = "phosphor-gpio-presence@{0}.service" |
| POWERSUPPLY_TGT = "${SYSTEMD_DEFAULT_TARGET}" |
| FMT_POWERSUPPLY = "../${TMPL_POWERSUPPLY}:${POWERSUPPLY_TGT}.requires/${INSTFMT_POWERSUPPLY}" |
| |
| SYSTEMD_LINK_${PN}-presence += "${@compose_list(d, 'FMT_POWERSUPPLY', 'OBMC_POWERSUPPLY_INSTANCES')}" |
| |
| POWERSUPPLY_ENV_FMT = "obmc/gpio/phosphor-power-supply-{0}.conf" |
| |
| SYSTEMD_ENVIRONMENT_FILE_${PN}-presence += "${@compose_list(d, 'POWERSUPPLY_ENV_FMT', 'OBMC_POWERSUPPLY_INSTANCES')}" |