Lei YU | 9422171 | 2019-10-21 10:49:43 +0800 | [diff] [blame] | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
| 2 | |
Lei YU | d4374bf | 2019-12-04 16:12:47 +0800 | [diff] [blame] | 3 | inherit obmc-phosphor-systemd |
| 4 | |
Lei YU | 9422171 | 2019-10-21 10:49:43 +0800 | [diff] [blame] | 5 | SRC_URI += "file://psu.json" |
| 6 | |
Lei YU | 438174d | 2020-02-06 15:49:07 +0800 | [diff] [blame] | 7 | EXTRA_OEMESON_${PN}-sequencer += "-Ducd90160-yaml=${STAGING_DIR_HOST}${datadir}/power-sequencer/ucd90160.yaml" |
Lei YU | 9422171 | 2019-10-21 10:49:43 +0800 | [diff] [blame] | 8 | |
Lei YU | 438174d | 2020-02-06 15:49:07 +0800 | [diff] [blame] | 9 | DEPENDS_${PN}-sequencer += " power-sequencer" |
Lei YU | 9422171 | 2019-10-21 10:49:43 +0800 | [diff] [blame] | 10 | |
| 11 | do_install_append(){ |
| 12 | install -D ${WORKDIR}/psu.json ${D}${datadir}/phosphor-power/psu.json |
| 13 | } |
| 14 | FILES_${PN} += "${datadir}/phosphor-power/psu.json" |
| 15 | |
| 16 | PSU_MONITOR_ENV_FMT = "obmc/power-supply-monitor/power-supply-monitor-{0}.conf" |
Lei YU | 438174d | 2020-02-06 15:49:07 +0800 | [diff] [blame] | 17 | SYSTEMD_ENVIRONMENT_FILE_${PN}-monitor_append_ibm-ac-server += "${@compose_list(d, 'PSU_MONITOR_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}" |