Lei YU | 87b364a | 2019-10-21 10:49:43 +0800 | [diff] [blame] | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
| 2 | |
Lei YU | e966fa3 | 2019-12-04 16:12:47 +0800 | [diff] [blame] | 3 | inherit obmc-phosphor-systemd |
| 4 | |
Lei YU | 87b364a | 2019-10-21 10:49:43 +0800 | [diff] [blame] | 5 | SRC_URI += "file://psu.json" |
| 6 | |
Brandon Wyman | c978da3 | 2020-06-25 18:04:50 -0500 | [diff] [blame] | 7 | EXTRA_OEMESON_append_ibm-ac-server = " -Ducd90160-yaml=${STAGING_DIR_HOST}${datadir}/power-sequencer/ucd90160.yaml" |
Adriana Kobylak | adba735 | 2021-03-25 17:20:11 +0000 | [diff] [blame^] | 8 | EXTRA_OEMESON_append_p10bmc = " -Ducd90160-yaml=${STAGING_DIR_HOST}${datadir}/power-sequencer/ucd90160.yaml -Dibm-vpd=true" |
AndyYFWang | cc545cb | 2020-04-22 13:34:33 +0800 | [diff] [blame] | 9 | EXTRA_OEMESON_append_mihawk = " -Dpower_sequencer=mihawk-cpld" |
Lei YU | 87b364a | 2019-10-21 10:49:43 +0800 | [diff] [blame] | 10 | |
AndyYFWang | cc545cb | 2020-04-22 13:34:33 +0800 | [diff] [blame] | 11 | DEPENDS_append_ibm-ac-server = " power-sequencer" |
Adriana Kobylak | adba735 | 2021-03-25 17:20:11 +0000 | [diff] [blame^] | 12 | DEPENDS_append_p10bmc = " power-sequencer" |
Lei YU | 87b364a | 2019-10-21 10:49:43 +0800 | [diff] [blame] | 13 | |
| 14 | do_install_append(){ |
| 15 | install -D ${WORKDIR}/psu.json ${D}${datadir}/phosphor-power/psu.json |
| 16 | } |
| 17 | FILES_${PN} += "${datadir}/phosphor-power/psu.json" |
| 18 | |
| 19 | PSU_MONITOR_ENV_FMT = "obmc/power-supply-monitor/power-supply-monitor-{0}.conf" |
Lei YU | 856ad83 | 2020-02-06 15:49:07 +0800 | [diff] [blame] | 20 | SYSTEMD_ENVIRONMENT_FILE_${PN}-monitor_append_ibm-ac-server += "${@compose_list(d, 'PSU_MONITOR_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}" |