blob: 0fa11050b3437e56c43c0ebe797f16d8b9b40d47 [file] [log] [blame]
Gunnar Millsb163e9b2017-07-10 15:49:43 -05001FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"
2
Gunnar Millsb163e9b2017-07-10 15:49:43 -05003TMPL_POWERSUPPLY = "phosphor-gpio-presence@.service"
4INSTFMT_POWERSUPPLY = "phosphor-gpio-presence@{0}.service"
Patrick Venture44fd5e02019-04-04 13:06:43 -07005POWERSUPPLY_TGT = "multi-user.target"
Gunnar Millsb163e9b2017-07-10 15:49:43 -05006FMT_POWERSUPPLY = "../${TMPL_POWERSUPPLY}:${POWERSUPPLY_TGT}.requires/${INSTFMT_POWERSUPPLY}"
7
Brandon Wyman360ebeb2017-08-15 16:41:08 -05008SYSTEMD_LINK_${PN}-presence += "${@compose_list(d, 'FMT_POWERSUPPLY', 'OBMC_POWER_SUPPLY_INSTANCES')}"
Gunnar Millsb163e9b2017-07-10 15:49:43 -05009
10POWERSUPPLY_ENV_FMT = "obmc/gpio/phosphor-power-supply-{0}.conf"
11
Brandon Wyman360ebeb2017-08-15 16:41:08 -050012SYSTEMD_ENVIRONMENT_FILE_${PN}-presence += "${@compose_list(d, 'POWERSUPPLY_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"