blob: bd39db50b07ead4f633fb8d5b2df7f72270898f2 [file] [log] [blame]
Matt Spinlerc4daa642019-04-25 15:19:21 -05001FILESEXTRAPATHS_append := "${THISDIR}/${PN}:${THISDIR}/${PN}/${MACHINE}:"
Gunnar Mills7460b222017-07-10 15:49:43 -05002
Gunnar Mills7460b222017-07-10 15:49:43 -05003TMPL_POWERSUPPLY = "phosphor-gpio-presence@.service"
4INSTFMT_POWERSUPPLY = "phosphor-gpio-presence@{0}.service"
Patrick Venture85cff8c2019-04-04 13:06:43 -07005POWERSUPPLY_TGT = "multi-user.target"
Gunnar Mills7460b222017-07-10 15:49:43 -05006FMT_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')}"