Alexander Hansen | f2c95a0 | 2024-11-26 11:16:44 +0100 | [diff] [blame] | 1 | |
| 2 | bios_spi_src = files('bios_software_manager.cpp' |
| 3 | , 'spi_device.cpp') |
| 4 | |
| 5 | bios_spi_include = include_directories('.') |
| 6 | |
| 7 | executable( |
| 8 | 'phosphor-bios-software-update', |
| 9 | 'main.cpp', |
| 10 | bios_spi_src, |
| 11 | include_directories: [common_include, bios_spi_include], |
| 12 | dependencies: [ |
| 13 | sdbusplus_dep, |
| 14 | phosphor_logging_dep, |
| 15 | pdi_dep, |
| 16 | boost_dep, |
| 17 | libgpiod, |
| 18 | libpldm_dep, |
| 19 | ], |
| 20 | link_with: [libpldmutil, software_common_lib], |
| 21 | install: true, |
| 22 | ) |
| 23 | |
| 24 | systemd_system_unit_dir = dependency('systemd').get_variable( |
| 25 | 'systemdsystemunitdir', |
| 26 | pkgconfig_define: ['prefix', get_option('prefix')], |
| 27 | ) |
| 28 | |
| 29 | install_data( |
| 30 | 'xyz.openbmc_project.Software.BIOS.service', |
| 31 | install_dir: systemd_system_unit_dir, |
| 32 | ) |