blob: c5e2ba7bc64260248c014ee58f68d94ad252cbb5 [file] [log] [blame]
Kevin Tung994a77f2024-12-23 17:48:56 +08001eeprom_device_version_src = files(
2 'eeprom_device_version.cpp',
3 'pt5161l/pt5161l.cpp',
4)
5
6eeprom_device_include = include_directories('.')
7
Kevin Tung994a77f2024-12-23 17:48:56 +08008executable(
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],
Patrick Williamsab08d092025-07-08 10:30:16 -040014 dependencies: [
15 libgpiod_dep,
16 libpldm_dep,
17 phosphor_logging_dep,
18 sdbusplus_dep,
19 ],
Kevin Tung994a77f2024-12-23 17:48:56 +080020 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(
Patrick Williams9ce83de2025-07-09 11:26:40 -040026 'systemd_system_unit_dir',
Kevin Tung994a77f2024-12-23 17:48:56 +080027 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)