Daniel Hsu | f6470b5 | 2025-02-26 15:03:47 +0800 | [diff] [blame] | 1 | cpld_src = files('cpld.cpp', 'cpld_interface.cpp', 'cpld_software_manager.cpp') |
| 2 | |
| 3 | cpld_vendor_src = files('lattice/interface.cpp', 'lattice/lattice.cpp') |
| 4 | |
| 5 | executable( |
| 6 | 'phosphor-cpld-software-update', |
| 7 | cpld_src, |
| 8 | cpld_vendor_src, |
| 9 | include_directories: [include_directories('.'), common_include, libi2c_inc], |
| 10 | dependencies: [ |
| 11 | pdi_dep, |
| 12 | phosphor_logging_dep, |
| 13 | sdbusplus_dep, |
| 14 | libpldm_dep, |
| 15 | libi2c_dep, |
| 16 | ], |
| 17 | link_with: [libpldmutil, software_common_lib, libi2c_dev], |
| 18 | link_args: '-li2c', |
| 19 | install_dir: get_option('libexecdir') / 'phosphor-code-mgmt', |
| 20 | install: true, |
| 21 | ) |
| 22 | |
| 23 | systemd_system_unit_dir = dependency('systemd').get_variable( |
| 24 | 'systemdsystemunitdir', |
| 25 | pkgconfig_define: ['prefix', get_option('prefix')], |
| 26 | ) |
| 27 | |
| 28 | install_data( |
| 29 | 'xyz.openbmc_project.Software.CPLD.service', |
| 30 | install_dir: systemd_system_unit_dir, |
| 31 | ) |