blob: 3c652cee91eacc6a059975e91a9da5ddb58486b3 [file] [log] [blame]
Lei YU94221712019-10-21 10:49:43 +08001FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
2
Lei YUd4374bf2019-12-04 16:12:47 +08003inherit obmc-phosphor-systemd
4
Lei YU94221712019-10-21 10:49:43 +08005SRC_URI += "file://psu.json"
6
Brandon Wyman2f9e6a32020-06-25 18:04:50 -05007EXTRA_OEMESON_append_ibm-ac-server = " -Ducd90160-yaml=${STAGING_DIR_HOST}${datadir}/power-sequencer/ucd90160.yaml"
8EXTRA_OEMESON_append_rainier = " -Ducd90160-yaml=${STAGING_DIR_HOST}${datadir}/power-sequencer/ucd90160.yaml -Dibm-vpd=true"
AndyYFWang65dbe8b2020-04-22 13:34:33 +08009EXTRA_OEMESON_append_mihawk = " -Dpower_sequencer=mihawk-cpld"
Lei YU94221712019-10-21 10:49:43 +080010
AndyYFWang65dbe8b2020-04-22 13:34:33 +080011DEPENDS_append_ibm-ac-server = " power-sequencer"
12DEPENDS_append_rainier = " power-sequencer"
Lei YU94221712019-10-21 10:49:43 +080013
14do_install_append(){
15 install -D ${WORKDIR}/psu.json ${D}${datadir}/phosphor-power/psu.json
16}
17FILES_${PN} += "${datadir}/phosphor-power/psu.json"
18
19PSU_MONITOR_ENV_FMT = "obmc/power-supply-monitor/power-supply-monitor-{0}.conf"
Lei YU438174d2020-02-06 15:49:07 +080020SYSTEMD_ENVIRONMENT_FILE_${PN}-monitor_append_ibm-ac-server += "${@compose_list(d, 'PSU_MONITOR_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"