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" |
Lei YU | 87b364a | 2019-10-21 10:49:43 +0800 | [diff] [blame] | 9 | |
Adriana Kobylak | b96c750 | 2021-08-06 16:25:30 +0000 | [diff] [blame] | 10 | DEPENDS:append:ibm-ac-server = " power-sequencer" |
| 11 | DEPENDS:append:p10bmc = " power-sequencer" |
Lei YU | 87b364a | 2019-10-21 10:49:43 +0800 | [diff] [blame] | 12 | |
Adriana Kobylak | b96c750 | 2021-08-06 16:25:30 +0000 | [diff] [blame] | 13 | PACKAGECONFIG:append:ibm-ac-server = " monitor" |
| 14 | PACKAGECONFIG:append:swift = " monitor" |
Zev Weiss | 5a92931 | 2022-05-06 16:15:52 -0700 | [diff] [blame] | 15 | PACKAGECONFIG:append:p10bmc = " monitor-ng" |
Matt Spinler | cb3bd90 | 2021-04-30 10:54:48 -0500 | [diff] [blame] | 16 | |
Adriana Kobylak | b96c750 | 2021-08-06 16:25:30 +0000 | [diff] [blame] | 17 | do_install:append(){ |
Lei YU | 87b364a | 2019-10-21 10:49:43 +0800 | [diff] [blame] | 18 | install -D ${WORKDIR}/psu.json ${D}${datadir}/phosphor-power/psu.json |
| 19 | } |
Adriana Kobylak | b96c750 | 2021-08-06 16:25:30 +0000 | [diff] [blame] | 20 | FILES:${PN} += "${datadir}/phosphor-power/psu.json" |
Lei YU | 87b364a | 2019-10-21 10:49:43 +0800 | [diff] [blame] | 21 | |
| 22 | 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] | 23 | SYSTEMD_ENVIRONMENT_FILE:${PN}-monitor:append:ibm-ac-server = " ${@compose_list(d, 'PSU_MONITOR_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}" |