blob: ba65d70487f4b9ef0294b648ea3aaa94a167b20c [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"
Zev Weiss5a929312022-05-06 16:15:52 -070017PACKAGECONFIG:append:p10bmc = " monitor-ng"
Matt Spinlercb3bd902021-04-30 10:54:48 -050018
Adriana Kobylakb96c7502021-08-06 16:25:30 +000019do_install:append(){
Lei YU87b364a2019-10-21 10:49:43 +080020 install -D ${WORKDIR}/psu.json ${D}${datadir}/phosphor-power/psu.json
21}
Adriana Kobylakb96c7502021-08-06 16:25:30 +000022FILES:${PN} += "${datadir}/phosphor-power/psu.json"
Lei YU87b364a2019-10-21 10:49:43 +080023
24PSU_MONITOR_ENV_FMT = "obmc/power-supply-monitor/power-supply-monitor-{0}.conf"
Patrick Williamsd5c716d2022-02-17 07:30:57 -060025SYSTEMD_ENVIRONMENT_FILE:${PN}-monitor:append:ibm-ac-server = " ${@compose_list(d, 'PSU_MONITOR_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}"