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