blob: 1105e0cf6d585603372cc02480c78e7c23ba8cac [file] [log] [blame]
Lei YU87b364a2019-10-21 10:49:43 +08001FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
2
Lei YUe966fa32019-12-04 16:12:47 +08003inherit obmc-phosphor-systemd
4
Lei YU87b364a2019-10-21 10:49:43 +08005SRC_URI += "file://psu.json"
6
Brad Bishop073614c2020-04-09 07:55:42 -04007EXTRA_OEMESON += "-Ducd90160-yaml=${STAGING_DIR_HOST}${datadir}/power-sequencer/ucd90160.yaml"
Lei YU87b364a2019-10-21 10:49:43 +08008
Brad Bishop073614c2020-04-09 07:55:42 -04009DEPENDS += " power-sequencer"
Lei YU87b364a2019-10-21 10:49:43 +080010
11do_install_append(){
12 install -D ${WORKDIR}/psu.json ${D}${datadir}/phosphor-power/psu.json
13}
14FILES_${PN} += "${datadir}/phosphor-power/psu.json"
15
16PSU_MONITOR_ENV_FMT = "obmc/power-supply-monitor/power-supply-monitor-{0}.conf"
Lei YU856ad832020-02-06 15:49:07 +080017SYSTEMD_ENVIRONMENT_FILE_${PN}-monitor_append_ibm-ac-server += "${@compose_list(d, 'PSU_MONITOR_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"