blob: 1502840ec0135a30d3364e8b032e3bdf62b40163 [file] [log] [blame]
Adriana Kobylakb96c7502021-08-06 16:25:30 +00001FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
Lei YU87b364a2019-10-21 10:49:43 +08002
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
Adriana Kobylakb96c7502021-08-06 16:25:30 +00007EXTRA_OEMESON:append:ibm-ac-server = " -Ducd90160-yaml=${STAGING_DIR_HOST}${datadir}/power-sequencer/ucd90160.yaml"
Jim Wrightfebc3dd2022-01-28 11:55:40 -06008EXTRA_OEMESON:append:p10bmc = " -Dibm-vpd=true"
Lei YU87b364a2019-10-21 10:49:43 +08009
Adriana Kobylakb96c7502021-08-06 16:25:30 +000010DEPENDS:append:ibm-ac-server = " power-sequencer"
11DEPENDS:append:p10bmc = " power-sequencer"
Lei YU87b364a2019-10-21 10:49:43 +080012
Adriana Kobylakb96c7502021-08-06 16:25:30 +000013PACKAGECONFIG:append:ibm-ac-server = " monitor"
14PACKAGECONFIG:append:swift = " monitor"
Zev Weiss5a929312022-05-06 16:15:52 -070015PACKAGECONFIG:append:p10bmc = " monitor-ng"
Matt Spinlercb3bd902021-04-30 10:54:48 -050016
Adriana Kobylakb96c7502021-08-06 16:25:30 +000017do_install:append(){
Lei YU87b364a2019-10-21 10:49:43 +080018 install -D ${WORKDIR}/psu.json ${D}${datadir}/phosphor-power/psu.json
19}
Adriana Kobylakb96c7502021-08-06 16:25:30 +000020FILES:${PN} += "${datadir}/phosphor-power/psu.json"
Lei YU87b364a2019-10-21 10:49:43 +080021
22PSU_MONITOR_ENV_FMT = "obmc/power-supply-monitor/power-supply-monitor-{0}.conf"
Patrick Williamsd5c716d2022-02-17 07:30:57 -060023SYSTEMD_ENVIRONMENT_FILE:${PN}-monitor:append:ibm-ac-server = " ${@compose_list(d, 'PSU_MONITOR_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"