blob: 922ec4c254447be4fd10d30f50b2d879f99daa62 [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',
Christopher Meis3cbff972025-04-09 14:07:22 +02009 'fru_device.cpp',
10 '../utils.cpp',
11 'fru_utils.cpp',
12 'fru_reader.cpp',
13 cpp_args: cpp_args_fd,
14 dependencies: [
15 boost,
16 i2c,
17 nlohmann_json_dep,
18 phosphor_logging_dep,
19 sdbusplus,
20 threads,
21 valijson,
22 ],
23 install: true,
24 install_dir: installdir,
25)
26
27