blob: 245ab999e4088493b75140abb54d048376a29613 [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"
Adriana Kobylakb96c7502021-08-06 16:25:30 +00009EXTRA_OEMESON:append:mihawk = " -Dpower_sequencer=mihawk-cpld"
Lei YU87b364a2019-10-21 10:49:43 +080010
Adriana Kobylakb96c7502021-08-06 16:25:30 +000011DEPENDS:append:ibm-ac-server = " power-sequencer"
12DEPENDS:append:p10bmc = " power-sequencer"
Lei YU87b364a2019-10-21 10:49:43 +080013
Adriana Kobylakb96c7502021-08-06 16:25:30 +000014PACKAGECONFIG:append:ibm-ac-server = " monitor"
15PACKAGECONFIG:append:swift = " monitor"
16PACKAGECONFIG:append:mihawk = " monitor"
Matt Spinlercb3bd902021-04-30 10:54:48 -050017
Adriana Kobylakb96c7502021-08-06 16:25:30 +000018do_install:append(){
Lei YU87b364a2019-10-21 10:49:43 +080019 install -D ${WORKDIR}/psu.json ${D}${datadir}/phosphor-power/psu.json
20}
Adriana Kobylakb96c7502021-08-06 16:25:30 +000021FILES:${PN} += "${datadir}/phosphor-power/psu.json"
Lei YU87b364a2019-10-21 10:49:43 +080022
23PSU_MONITOR_ENV_FMT = "obmc/power-supply-monitor/power-supply-monitor-{0}.conf"
Patrick Williamsd5c716d2022-02-17 07:30:57 -060024SYSTEMD_ENVIRONMENT_FILE:${PN}-monitor:append:ibm-ac-server = " ${@compose_list(d, 'PSU_MONITOR_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"