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