Christopher Meis | 7e446a4 | 2024-10-22 09:36:41 +0200 | [diff] [blame] | 1 | i2cvr_src = files('i2cvr_device.cpp', 'i2cvr_software_manager.cpp', 'vr.cpp') |
| 2 | |
Kevin Tung | dcf4b60 | 2025-07-04 13:14:49 +0800 | [diff] [blame] | 3 | regulators_src = files( |
| 4 | 'isl69269/isl69269.cpp', |
Kevin Tung | 3f2f3e6 | 2025-08-15 15:41:07 +0800 | [diff] [blame] | 5 | 'mps/mp297x.cpp', |
Kevin Tung | dcf4b60 | 2025-07-04 13:14:49 +0800 | [diff] [blame] | 6 | 'mps/mp2x6xx.cpp', |
FreddieJheng | 782d6ee | 2025-08-19 18:53:15 +0800 | [diff] [blame] | 7 | 'mps/mp5998.cpp', |
Kevin Tung | dcf4b60 | 2025-07-04 13:14:49 +0800 | [diff] [blame] | 8 | 'mps/mps.cpp', |
| 9 | 'xdpe1x2xx/xdpe1x2xx.cpp', |
| 10 | ) |
Christopher Meis | 7e446a4 | 2024-10-22 09:36:41 +0200 | [diff] [blame] | 11 | |
| 12 | i2cvr_include = include_directories('.') |
| 13 | |
| 14 | executable( |
| 15 | 'phosphor-i2cvr-software-update', |
| 16 | 'i2cvr_software_manager.cpp', |
| 17 | i2cvr_src, |
| 18 | regulators_src, |
Christopher Meis | 26d3748 | 2025-04-29 11:47:07 +0200 | [diff] [blame] | 19 | include_directories: [common_include, i2cvr_include, libi2c_inc], |
Christopher Meis | 7e446a4 | 2024-10-22 09:36:41 +0200 | [diff] [blame] | 20 | dependencies: [ |
| 21 | sdbusplus_dep, |
| 22 | phosphor_logging_dep, |
| 23 | pdi_dep, |
| 24 | boost_dep, |
| 25 | libpldm_dep, |
Christopher Meis | 26d3748 | 2025-04-29 11:47:07 +0200 | [diff] [blame] | 26 | libi2c_dep, |
Christopher Meis | 7e446a4 | 2024-10-22 09:36:41 +0200 | [diff] [blame] | 27 | ], |
Christopher Meis | 26d3748 | 2025-04-29 11:47:07 +0200 | [diff] [blame] | 28 | link_with: [software_common_lib, libpldmutil, libi2c_dev], |
Christopher Meis | 7e446a4 | 2024-10-22 09:36:41 +0200 | [diff] [blame] | 29 | install: true, |
Patrick Williams | 781de31 | 2025-04-19 12:39:38 -0400 | [diff] [blame] | 30 | install_dir: get_option('libexecdir') / 'phosphor-code-mgmt', |
Christopher Meis | 26d3748 | 2025-04-29 11:47:07 +0200 | [diff] [blame] | 31 | link_args: '-li2c', |
Christopher Meis | 7e446a4 | 2024-10-22 09:36:41 +0200 | [diff] [blame] | 32 | ) |
| 33 | |
Christopher Meis | 7e446a4 | 2024-10-22 09:36:41 +0200 | [diff] [blame] | 34 | install_data( |
| 35 | 'xyz.openbmc_project.Software.I2CVR.service', |
| 36 | install_dir: systemd_system_unit_dir, |
| 37 | ) |