blob: 0ba7e97e2d165ff7886c818c7638eca71d3f4b74 [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
Patrick Rudolph2a952d42023-05-03 09:38:51 +02005SRC_URI:append:df-openpower = " file://psu.json"
Lei YU87b364a2019-10-21 10:49:43 +08006
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
Patrick Rudolph2a952d42023-05-03 09:38:51 +020017do_install:append:df-openpower(){
Lei YU87b364a2019-10-21 10:49:43 +080018 install -D ${WORKDIR}/psu.json ${D}${datadir}/phosphor-power/psu.json
19}
Patrick Rudolph2a952d42023-05-03 09:38:51 +020020FILES:${PN}:append:df-openpower = " ${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')}"