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 | |
George Liu | 6896c6e | 2021-05-27 09:22:56 +0800 | [diff] [blame^] | 6 | PACKAGECONFIG_append = " monitor" |
| 7 | |
George Liu | f5979b9 | 2019-11-05 11:46:52 +0800 | [diff] [blame] | 8 | 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] | 9 | 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] | 10 | |
| 11 | do_install_append() { |
| 12 | install -D ${WORKDIR}/psu.json ${D}${datadir}/phosphor-power/psu.json |
| 13 | } |
| 14 | |
| 15 | FILES_${PN} += "${datadir}/phosphor-power/psu.json" |