blob: f427f93b6c9419ad686a364e87c1684807b12be6 [file] [log] [blame]
Christopher Meis3cbff972025-04-09 14:07:22 +02001cpp_args_fd = cpp_args
2if get_option('fru-device-resizefru')
3 cpp_args_fd = cpp_args_fd + ['-DENABLE_FRU_AREA_RESIZE']
4endif
5detect_mode = get_option('fru-device-16bitdetectmode')
6cpp_args_fd += ['-DFRU_DEVICE_16BITDETECTMODE="' + detect_mode + '"']
7executable(
8 'fru-device',
9 '../expression.cpp',
10 'fru_device.cpp',
11 '../utils.cpp',
12 'fru_utils.cpp',
13 'fru_reader.cpp',
14 cpp_args: cpp_args_fd,
15 dependencies: [
16 boost,
17 i2c,
18 nlohmann_json_dep,
19 phosphor_logging_dep,
20 sdbusplus,
21 threads,
22 valijson,
23 ],
24 install: true,
25 install_dir: installdir,
26)
27
28