blob: 483dfd7ad4e5c61478c7311a009951e4dbfafc19 [file] [log] [blame]
Christopher Meis7e446a42024-10-22 09:36:41 +02001i2cvr_src = files('i2cvr_device.cpp', 'i2cvr_software_manager.cpp', 'vr.cpp')
2
Kevin Tungdcf4b602025-07-04 13:14:49 +08003regulators_src = files(
4 'isl69269/isl69269.cpp',
5 'mps/mp2x6xx.cpp',
6 'mps/mps.cpp',
7 'xdpe1x2xx/xdpe1x2xx.cpp',
8)
Christopher Meis7e446a42024-10-22 09:36:41 +02009
10i2cvr_include = include_directories('.')
11
12executable(
13 'phosphor-i2cvr-software-update',
14 'i2cvr_software_manager.cpp',
15 i2cvr_src,
16 regulators_src,
Christopher Meis26d37482025-04-29 11:47:07 +020017 include_directories: [common_include, i2cvr_include, libi2c_inc],
Christopher Meis7e446a42024-10-22 09:36:41 +020018 dependencies: [
19 sdbusplus_dep,
20 phosphor_logging_dep,
21 pdi_dep,
22 boost_dep,
23 libpldm_dep,
Christopher Meis26d37482025-04-29 11:47:07 +020024 libi2c_dep,
Christopher Meis7e446a42024-10-22 09:36:41 +020025 ],
Christopher Meis26d37482025-04-29 11:47:07 +020026 link_with: [software_common_lib, libpldmutil, libi2c_dev],
Christopher Meis7e446a42024-10-22 09:36:41 +020027 install: true,
Patrick Williams781de312025-04-19 12:39:38 -040028 install_dir: get_option('libexecdir') / 'phosphor-code-mgmt',
Christopher Meis26d37482025-04-29 11:47:07 +020029 link_args: '-li2c',
Christopher Meis7e446a42024-10-22 09:36:41 +020030)
31
Christopher Meis7e446a42024-10-22 09:36:41 +020032install_data(
33 'xyz.openbmc_project.Software.I2CVR.service',
34 install_dir: systemd_system_unit_dir,
35)