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" |
| 8 | EXTRA_OEMESON_append_rainier = " -Ducd90160-yaml=${STAGING_DIR_HOST}${datadir}/power-sequencer/ucd90160.yaml -Dibm-vpd=true" |
Lei YU | 87b364a | 2019-10-21 10:49:43 +0800 | [diff] [blame] | 9 | |
Brad Bishop | 073614c | 2020-04-09 07:55:42 -0400 | [diff] [blame] | 10 | DEPENDS += " power-sequencer" |
Lei YU | 87b364a | 2019-10-21 10:49:43 +0800 | [diff] [blame] | 11 | |
| 12 | do_install_append(){ |
| 13 | install -D ${WORKDIR}/psu.json ${D}${datadir}/phosphor-power/psu.json |
| 14 | } |
| 15 | FILES_${PN} += "${datadir}/phosphor-power/psu.json" |
| 16 | |
| 17 | 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] | 18 | SYSTEMD_ENVIRONMENT_FILE_${PN}-monitor_append_ibm-ac-server += "${@compose_list(d, 'PSU_MONITOR_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}" |