blob: 0197f771d8defbce2aaeecbb8b82ed76e09558f3 [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')
Naresh Solanki89092a92025-06-02 15:48:04 +05306
7cpp_args_fd += [
8 '-DFRU_DEVICE_16BITDETECTMODE="' + detect_mode + '"',
9 '-DENABLE_FRU_UPDATE_PROPERTY=' + (get_option('fru-device-update-property') == 'all' ? '1' : '0'),
10]
11
Christopher Meis3cbff972025-04-09 14:07:22 +020012executable(
13 'fru-device',
Christopher Meis3cbff972025-04-09 14:07:22 +020014 'fru_device.cpp',
15 '../utils.cpp',
16 'fru_utils.cpp',
17 'fru_reader.cpp',
18 cpp_args: cpp_args_fd,
19 dependencies: [
20 boost,
21 i2c,
22 nlohmann_json_dep,
23 phosphor_logging_dep,
24 sdbusplus,
25 threads,
26 valijson,
27 ],
28 install: true,
29 install_dir: installdir,
30)
31
32