blob: 0e87f7156389fd3f26cfbb5c0a16da05195d6b3b [file] [log] [blame]
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
inherit obmc-phosphor-systemd
SRC_URI:append:df-openpower = " file://psu.json"
EXTRA_OEMESON:append:ibm-ac-server = " -Ducd90160-yaml=${STAGING_DIR_HOST}${datadir}/power-sequencer/ucd90160.yaml"
EXTRA_OEMESON:append:p10bmc = " -Dibm-vpd=true"
EXTRA_OEMESON:append:system1 = " -Dibm-vpd=true"
DEPENDS:append:ibm-ac-server = " power-sequencer"
DEPENDS:append:p10bmc = " power-sequencer"
PACKAGECONFIG:append:ibm-ac-server = " monitor"
PACKAGECONFIG:append:swift = " monitor"
PACKAGECONFIG:append:p10bmc = " monitor-ng"
PACKAGECONFIG:append:system1 = " monitor-ng"
do_install:append:df-openpower(){
install -D ${WORKDIR}/psu.json ${D}${datadir}/phosphor-power/psu.json
}
FILES:${PN}:append:df-openpower = " ${datadir}/phosphor-power/psu.json"
PSU_MONITOR_ENV_FMT = "obmc/power-supply-monitor/power-supply-monitor-{0}.conf"
SYSTEMD_ENVIRONMENT_FILE:${PN}-monitor:append:ibm-ac-server = " ${@compose_list(d, 'PSU_MONITOR_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"