blob: c2f5b2cc57844bc6ed00848176d5dd46e52361dd [file] [log] [blame]
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
inherit obmc-phosphor-systemd
SRC_URI += "file://psu.json"
EXTRA_OEMESON_append_ibm-ac-server = " -Ducd90160-yaml=${STAGING_DIR_HOST}${datadir}/power-sequencer/ucd90160.yaml"
EXTRA_OEMESON_append_p10bmc = " -Ducd90160-yaml=${STAGING_DIR_HOST}${datadir}/power-sequencer/ucd90160.yaml -Dibm-vpd=true"
EXTRA_OEMESON_append_mihawk = " -Dpower_sequencer=mihawk-cpld"
DEPENDS_append_ibm-ac-server = " power-sequencer"
DEPENDS_append_p10bmc = " power-sequencer"
PACKAGECONFIG_append_ibm-ac-server = " monitor"
PACKAGECONFIG_append_swift = " monitor"
PACKAGECONFIG_append_mihawk = " monitor"
do_install_append(){
install -D ${WORKDIR}/psu.json ${D}${datadir}/phosphor-power/psu.json
}
FILES_${PN} += "${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')}"