blob: b21eff33b6fee0c8b52c7ccf1f9ef3b2d71e4c10 [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',
Kevin Tung3f2f3e62025-08-15 15:41:07 +08005 'mps/mp297x.cpp',
Kevin Tungdcf4b602025-07-04 13:14:49 +08006 'mps/mp2x6xx.cpp',
FreddieJheng782d6ee2025-08-19 18:53:15 +08007 'mps/mp5998.cpp',
Kevin Tung3638c242025-10-07 13:48:13 +08008 'mps/mp994x.cpp',
Kevin Tungdcf4b602025-07-04 13:14:49 +08009 'mps/mps.cpp',
Leo Yangc1b36622025-10-28 10:39:55 +080010 'tda38640a/tda38640a.cpp',
Kevin Tungdcf4b602025-07-04 13:14:49 +080011 'xdpe1x2xx/xdpe1x2xx.cpp',
12)
Christopher Meis7e446a42024-10-22 09:36:41 +020013
14i2cvr_include = include_directories('.')
15
16executable(
17 'phosphor-i2cvr-software-update',
18 'i2cvr_software_manager.cpp',
19 i2cvr_src,
20 regulators_src,
Christopher Meis26d37482025-04-29 11:47:07 +020021 include_directories: [common_include, i2cvr_include, libi2c_inc],
Christopher Meis7e446a42024-10-22 09:36:41 +020022 dependencies: [
23 sdbusplus_dep,
24 phosphor_logging_dep,
25 pdi_dep,
26 boost_dep,
27 libpldm_dep,
Christopher Meis26d37482025-04-29 11:47:07 +020028 libi2c_dep,
Christopher Meis7e446a42024-10-22 09:36:41 +020029 ],
Christopher Meis26d37482025-04-29 11:47:07 +020030 link_with: [software_common_lib, libpldmutil, libi2c_dev],
Christopher Meis7e446a42024-10-22 09:36:41 +020031 install: true,
Patrick Williams781de312025-04-19 12:39:38 -040032 install_dir: get_option('libexecdir') / 'phosphor-code-mgmt',
Christopher Meis26d37482025-04-29 11:47:07 +020033 link_args: '-li2c',
Christopher Meis7e446a42024-10-22 09:36:41 +020034)
35
Christopher Meis7e446a42024-10-22 09:36:41 +020036install_data(
37 'xyz.openbmc_project.Software.I2CVR.service',
38 install_dir: systemd_system_unit_dir,
39)