1eeprom_device_version_src = files( 2 'eeprom_device_version.cpp', 3 'pt5161l/pt5161l.cpp', 4) 5 6eeprom_device_include = include_directories('.') 7 8libgpiod = dependency( 9 'libgpiodcxx', 10 default_options: ['bindings=cxx'], 11 version: '>=1.1.2', 12) 13 14executable( 15 'phosphor-eepromdevice-software-update', 16 'eeprom_device_software_manager.cpp', 17 'eeprom_device.cpp', 18 eeprom_device_version_src, 19 include_directories: [common_include, eeprom_device_include], 20 dependencies: [sdbusplus_dep, phosphor_logging_dep, libgpiod], 21 link_with: [software_common_lib, libpldmutil], 22 install: true, 23 install_dir: get_option('libexecdir') / 'phosphor-code-mgmt', 24) 25 26systemd_system_unit_dir = dependency('systemd').get_variable( 27 'systemdsystemunitdir', 28 pkgconfig_define: ['prefix', get_option('prefix')], 29) 30 31install_data( 32 'xyz.openbmc_project.Software.EEPROMDevice.service', 33 install_dir: systemd_system_unit_dir, 34) 35