Gunnar Mills | 7460b22 | 2017-07-10 15:49:43 -0500 | [diff] [blame] | 1 | FILESEXTRAPATHS_append := "${THISDIR}/${PN}:" |
| 2 | |
| 3 | OBMC_POWERSUPPLY_INSTANCES = "0 1" |
| 4 | |
| 5 | TMPL_POWERSUPPLY = "phosphor-gpio-presence@.service" |
| 6 | INSTFMT_POWERSUPPLY = "phosphor-gpio-presence@{0}.service" |
| 7 | POWERSUPPLY_TGT = "${SYSTEMD_DEFAULT_TARGET}" |
| 8 | FMT_POWERSUPPLY = "../${TMPL_POWERSUPPLY}:${POWERSUPPLY_TGT}.requires/${INSTFMT_POWERSUPPLY}" |
| 9 | |
| 10 | SYSTEMD_LINK_${PN}-presence += "${@compose_list(d, 'FMT_POWERSUPPLY', 'OBMC_POWERSUPPLY_INSTANCES')}" |
| 11 | |
| 12 | POWERSUPPLY_ENV_FMT = "obmc/gpio/phosphor-power-supply-{0}.conf" |
| 13 | |
| 14 | SYSTEMD_ENVIRONMENT_FILE_${PN}-presence += "${@compose_list(d, 'POWERSUPPLY_ENV_FMT', 'OBMC_POWERSUPPLY_INSTANCES')}" |