blob: c2f5b2cc57844bc6ed00848176d5dd46e52361dd [file] [log] [blame]
Lei YU87b364a2019-10-21 10:49:43 +08001FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
2
Lei YUe966fa32019-12-04 16:12:47 +08003inherit obmc-phosphor-systemd
4
Lei YU87b364a2019-10-21 10:49:43 +08005SRC_URI += "file://psu.json"
6
Brandon Wymanc978da32020-06-25 18:04:50 -05007EXTRA_OEMESON_append_ibm-ac-server = " -Ducd90160-yaml=${STAGING_DIR_HOST}${datadir}/power-sequencer/ucd90160.yaml"
Adriana Kobylakadba7352021-03-25 17:20:11 +00008EXTRA_OEMESON_append_p10bmc = " -Ducd90160-yaml=${STAGING_DIR_HOST}${datadir}/power-sequencer/ucd90160.yaml -Dibm-vpd=true"
AndyYFWangcc545cb2020-04-22 13:34:33 +08009EXTRA_OEMESON_append_mihawk = " -Dpower_sequencer=mihawk-cpld"
Lei YU87b364a2019-10-21 10:49:43 +080010
AndyYFWangcc545cb2020-04-22 13:34:33 +080011DEPENDS_append_ibm-ac-server = " power-sequencer"
Adriana Kobylakadba7352021-03-25 17:20:11 +000012DEPENDS_append_p10bmc = " power-sequencer"
Lei YU87b364a2019-10-21 10:49:43 +080013
Matt Spinlercb3bd902021-04-30 10:54:48 -050014PACKAGECONFIG_append_ibm-ac-server = " monitor"
15PACKAGECONFIG_append_swift = " monitor"
16PACKAGECONFIG_append_mihawk = " monitor"
17
Lei YU87b364a2019-10-21 10:49:43 +080018do_install_append(){
19 install -D ${WORKDIR}/psu.json ${D}${datadir}/phosphor-power/psu.json
20}
21FILES_${PN} += "${datadir}/phosphor-power/psu.json"
22
23PSU_MONITOR_ENV_FMT = "obmc/power-supply-monitor/power-supply-monitor-{0}.conf"
Lei YU856ad832020-02-06 15:49:07 +080024SYSTEMD_ENVIRONMENT_FILE_${PN}-monitor_append_ibm-ac-server += "${@compose_list(d, 'PSU_MONITOR_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"