blob: 58ff477031c9cb886f0f6c3cfd59696236eced07 [file] [log] [blame]
Christopher Meis7e446a42024-10-22 09:36:41 +02001i2cvr_src = files('i2cvr_device.cpp', 'i2cvr_software_manager.cpp', 'vr.cpp')
2
3regulators_src = files('xdpe1x2xx/xdpe1x2xx.cpp')
4
5i2cvr_include = include_directories('.')
6
7executable(
8 'phosphor-i2cvr-software-update',
9 'i2cvr_software_manager.cpp',
10 i2cvr_src,
11 regulators_src,
Christopher Meis26d37482025-04-29 11:47:07 +020012 include_directories: [common_include, i2cvr_include, libi2c_inc],
Christopher Meis7e446a42024-10-22 09:36:41 +020013 dependencies: [
14 sdbusplus_dep,
15 phosphor_logging_dep,
16 pdi_dep,
17 boost_dep,
18 libpldm_dep,
Christopher Meis26d37482025-04-29 11:47:07 +020019 libi2c_dep,
Christopher Meis7e446a42024-10-22 09:36:41 +020020 ],
Christopher Meis26d37482025-04-29 11:47:07 +020021 link_with: [software_common_lib, libpldmutil, libi2c_dev],
Christopher Meis7e446a42024-10-22 09:36:41 +020022 install: true,
Patrick Williams781de312025-04-19 12:39:38 -040023 install_dir: get_option('libexecdir') / 'phosphor-code-mgmt',
Christopher Meis26d37482025-04-29 11:47:07 +020024 link_args: '-li2c',
Christopher Meis7e446a42024-10-22 09:36:41 +020025)
26
27systemd_system_unit_dir = dependency('systemd').get_variable(
28 'systemdsystemunitdir',
29 pkgconfig_define: ['prefix', get_option('prefix')],
30)
31
32install_data(
33 'xyz.openbmc_project.Software.I2CVR.service',
34 install_dir: systemd_system_unit_dir,
35)