blob: 9a6a812c6367b24bc5092df0005189cd08fc245a [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,
12 include_directories: [common_include, i2cvr_include],
13 dependencies: [
14 sdbusplus_dep,
15 phosphor_logging_dep,
16 pdi_dep,
17 boost_dep,
18 libpldm_dep,
19 ],
20 link_with: [software_common_lib, libpldmutil],
21 install: true,
Patrick Williams781de312025-04-19 12:39:38 -040022 install_dir: get_option('libexecdir') / 'phosphor-code-mgmt',
Christopher Meis7e446a42024-10-22 09:36:41 +020023)
24
25systemd_system_unit_dir = dependency('systemd').get_variable(
26 'systemdsystemunitdir',
27 pkgconfig_define: ['prefix', get_option('prefix')],
28)
29
30install_data(
31 'xyz.openbmc_project.Software.I2CVR.service',
32 install_dir: systemd_system_unit_dir,
33)