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