blob: b60a64b103acda533eeab8a60466fd50e134c5ec [file] [log] [blame]
Gunnar Mills7460b222017-07-10 15:49:43 -05001FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"
2
Gunnar Mills7460b222017-07-10 15:49:43 -05003TMPL_POWERSUPPLY = "phosphor-gpio-presence@.service"
4INSTFMT_POWERSUPPLY = "phosphor-gpio-presence@{0}.service"
5POWERSUPPLY_TGT = "${SYSTEMD_DEFAULT_TARGET}"
6FMT_POWERSUPPLY = "../${TMPL_POWERSUPPLY}:${POWERSUPPLY_TGT}.requires/${INSTFMT_POWERSUPPLY}"
7
Brandon Wyman9f37d312017-08-15 16:41:08 -05008SYSTEMD_LINK_${PN}-presence += "${@compose_list(d, 'FMT_POWERSUPPLY', 'OBMC_POWER_SUPPLY_INSTANCES')}"
Gunnar Mills7460b222017-07-10 15:49:43 -05009
10POWERSUPPLY_ENV_FMT = "obmc/gpio/phosphor-power-supply-{0}.conf"
11
Brandon Wyman9f37d312017-08-15 16:41:08 -050012SYSTEMD_ENVIRONMENT_FILE_${PN}-presence += "${@compose_list(d, 'POWERSUPPLY_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"