George Liu | f5979b9 | 2019-11-05 11:46:52 +0800 | [diff] [blame] | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
George Liu | bac7889 | 2019-12-10 11:43:11 +0800 | [diff] [blame] | 2 | inherit obmc-phosphor-systemd |
| 3 | |
George Liu | f5979b9 | 2019-11-05 11:46:52 +0800 | [diff] [blame] | 4 | SRC_URI += "file://psu.json" |
| 5 | |
| 6 | PSU_MONITOR_ENV_FMT = "obmc/power-supply-monitor/power-supply-monitor-{0}.conf" |
George Liu | 1549b3d | 2020-07-21 18:30:59 +0800 | [diff] [blame] | 7 | SYSTEMD_ENVIRONMENT_FILE_${PN}-monitor_append_fp5280g2 = " ${@compose_list(d, 'PSU_MONITOR_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}" |
George Liu | f5979b9 | 2019-11-05 11:46:52 +0800 | [diff] [blame] | 8 | |
| 9 | do_install_append() { |
| 10 | install -D ${WORKDIR}/psu.json ${D}${datadir}/phosphor-power/psu.json |
| 11 | } |
| 12 | |
| 13 | FILES_${PN} += "${datadir}/phosphor-power/psu.json" |