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