Adriana Kobylak | b96c750 | 2021-08-06 16:25:30 +0000 | [diff] [blame] | 1 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
Lei YU | 87b364a | 2019-10-21 10:49:43 +0800 | [diff] [blame] | 2 | |
Lei YU | e966fa3 | 2019-12-04 16:12:47 +0800 | [diff] [blame] | 3 | inherit obmc-phosphor-systemd |
| 4 | |
Lei YU | 87b364a | 2019-10-21 10:49:43 +0800 | [diff] [blame] | 5 | SRC_URI += "file://psu.json" |
| 6 | |
Adriana Kobylak | b96c750 | 2021-08-06 16:25:30 +0000 | [diff] [blame] | 7 | EXTRA_OEMESON:append:ibm-ac-server = " -Ducd90160-yaml=${STAGING_DIR_HOST}${datadir}/power-sequencer/ucd90160.yaml" |
Jim Wright | febc3dd | 2022-01-28 11:55:40 -0600 | [diff] [blame] | 8 | EXTRA_OEMESON:append:p10bmc = " -Dibm-vpd=true" |
Adriana Kobylak | b96c750 | 2021-08-06 16:25:30 +0000 | [diff] [blame] | 9 | EXTRA_OEMESON:append:mihawk = " -Dpower_sequencer=mihawk-cpld" |
Lei YU | 87b364a | 2019-10-21 10:49:43 +0800 | [diff] [blame] | 10 | |
Adriana Kobylak | b96c750 | 2021-08-06 16:25:30 +0000 | [diff] [blame] | 11 | DEPENDS:append:ibm-ac-server = " power-sequencer" |
| 12 | DEPENDS:append:p10bmc = " power-sequencer" |
Lei YU | 87b364a | 2019-10-21 10:49:43 +0800 | [diff] [blame] | 13 | |
Adriana Kobylak | b96c750 | 2021-08-06 16:25:30 +0000 | [diff] [blame] | 14 | PACKAGECONFIG:append:ibm-ac-server = " monitor" |
| 15 | PACKAGECONFIG:append:swift = " monitor" |
| 16 | PACKAGECONFIG:append:mihawk = " monitor" |
Zev Weiss | 5a92931 | 2022-05-06 16:15:52 -0700 | [diff] [blame^] | 17 | PACKAGECONFIG:append:p10bmc = " monitor-ng" |
Matt Spinler | cb3bd90 | 2021-04-30 10:54:48 -0500 | [diff] [blame] | 18 | |
Adriana Kobylak | b96c750 | 2021-08-06 16:25:30 +0000 | [diff] [blame] | 19 | do_install:append(){ |
Lei YU | 87b364a | 2019-10-21 10:49:43 +0800 | [diff] [blame] | 20 | install -D ${WORKDIR}/psu.json ${D}${datadir}/phosphor-power/psu.json |
| 21 | } |
Adriana Kobylak | b96c750 | 2021-08-06 16:25:30 +0000 | [diff] [blame] | 22 | FILES:${PN} += "${datadir}/phosphor-power/psu.json" |
Lei YU | 87b364a | 2019-10-21 10:49:43 +0800 | [diff] [blame] | 23 | |
| 24 | PSU_MONITOR_ENV_FMT = "obmc/power-supply-monitor/power-supply-monitor-{0}.conf" |
Patrick Williams | d5c716d | 2022-02-17 07:30:57 -0600 | [diff] [blame] | 25 | SYSTEMD_ENVIRONMENT_FILE:${PN}-monitor:append:ibm-ac-server = " ${@compose_list(d, 'PSU_MONITOR_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}" |