xref: /openbmc/openbmc/meta-ibm/recipes-phosphor/power/phosphor-power_%.bbappend (revision 91a1cec28e08f949b120fe8885e87ef256ca4d93)
1FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
2
3inherit obmc-phosphor-systemd
4
5SRC_URI:append:df-openpower = " file://psu.json"
6
7EXTRA_OEMESON:append:ibm-ac-server = " -Ducd90160-yaml=${STAGING_DIR_HOST}${datadir}/power-sequencer/ucd90160.yaml"
8EXTRA_OEMESON:append:p10bmc = " -Dibm-vpd=true"
9
10DEPENDS:append:ibm-ac-server = " power-sequencer"
11DEPENDS:append:p10bmc = " power-sequencer"
12
13PACKAGECONFIG:append:ibm-ac-server = " monitor"
14PACKAGECONFIG:append:p10bmc = " monitor-ng"
15
16do_install:append:df-openpower(){
17    install -D ${UNPACKDIR}/psu.json ${D}${datadir}/phosphor-power/psu.json
18}
19FILES:${PN}:append:df-openpower = " ${datadir}/phosphor-power/psu.json"
20
21PSU_MONITOR_ENV_FMT = "obmc/power-supply-monitor/power-supply-monitor-{0}.conf"
22SYSTEMD_ENVIRONMENT_FILE:${PN}-monitor:append:ibm-ac-server = " ${@compose_list(d, 'PSU_MONITOR_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"
23