blob: e4c2759a0e232b0c80f0cce0aba86d541bbdec67 [file] [log] [blame]
Brad Bishopb4459912019-11-05 19:39:11 -05001cpp_args = boost_args + ['-DPACKAGE_DIR="' + packagedir + '/"']
Patrick Williams37304f02025-02-01 08:38:32 -05002cpp_args += ['-DSYSCONF_DIR="' + sysconfdir + '/"']
Potin Laif375fec2024-03-21 14:35:45 +08003installdir = join_paths(get_option('libexecdir'), 'entity-manager')
Brad Bishopb4459912019-11-05 19:39:11 -05004
5executable(
6 'entity-manager',
Brad Bishope45d8c72022-05-25 15:12:53 -04007 'entity_manager.cpp',
Christopher Meisbdaa6b22025-04-02 10:49:02 +02008 'configuration.cpp',
Brad Bishope45d8c72022-05-25 15:12:53 -04009 'expression.cpp',
10 'perform_scan.cpp',
11 'perform_probe.cpp',
12 'overlay.cpp',
Benjamin Fairca2eb042022-09-13 06:40:42 +000013 'topology.cpp',
Brad Bishope45d8c72022-05-25 15:12:53 -040014 'utils.cpp',
Brad Bishopb4459912019-11-05 19:39:11 -050015 cpp_args: cpp_args + ['-DBOOST_ASIO_DISABLE_THREADS'],
16 dependencies: [
17 boost,
Andrew Jeffery14a7bc92021-08-02 10:01:22 +093018 nlohmann_json_dep,
Alexander Hansenc3db2c32024-08-20 15:01:38 +020019 phosphor_logging_dep,
Brad Bishopb4459912019-11-05 19:39:11 -050020 sdbusplus,
Brad Bishopff1ddb72020-01-15 12:24:56 -050021 valijson,
Brad Bishopb4459912019-11-05 19:39:11 -050022 ],
Brad Bishopb4459912019-11-05 19:39:11 -050023 install: true,
Potin Laif375fec2024-03-21 14:35:45 +080024 install_dir: installdir,
Brad Bishopb4459912019-11-05 19:39:11 -050025)
26
Brad Bishop92daaaa2020-01-20 15:45:01 -050027if get_option('fru-device')
Andrei Kartashev6b3d4c52020-08-10 19:24:17 +030028 cpp_args_fd = cpp_args
29 if get_option('fru-device-resizefru')
30 cpp_args_fd = cpp_args_fd + ['-DENABLE_FRU_AREA_RESIZE']
31 endif
Vu Phamdac2dfc2024-11-05 12:20:42 -060032 detect_mode = get_option('fru-device-16bitdetectmode')
33 cpp_args_fd += ['-DFRU_DEVICE_16BITDETECTMODE="' + detect_mode + '"']
Brad Bishop92daaaa2020-01-20 15:45:01 -050034 executable(
35 'fru-device',
Brad Bishope45d8c72022-05-25 15:12:53 -040036 'expression.cpp',
37 'fru_device.cpp',
38 'utils.cpp',
39 'fru_utils.cpp',
Zev Weiss309c0b12022-02-25 01:44:12 +000040 'fru_reader.cpp',
Andrei Kartashev6b3d4c52020-08-10 19:24:17 +030041 cpp_args: cpp_args_fd,
Brad Bishop92daaaa2020-01-20 15:45:01 -050042 dependencies: [
43 boost,
44 i2c,
Andrew Jeffery14a7bc92021-08-02 10:01:22 +093045 nlohmann_json_dep,
Alexander Hansenc3db2c32024-08-20 15:01:38 +020046 phosphor_logging_dep,
Brad Bishop92daaaa2020-01-20 15:45:01 -050047 sdbusplus,
48 threads,
49 valijson,
50 ],
Brad Bishop92daaaa2020-01-20 15:45:01 -050051 install: true,
Potin Laif375fec2024-03-21 14:35:45 +080052 install_dir: installdir,
Brad Bishop92daaaa2020-01-20 15:45:01 -050053 )
54endif
Chris Sides2ab73412024-10-15 16:04:11 -050055
56if get_option('devicetree-vpd')
57 cpp_args_fd = cpp_args
58 executable(
59 'devicetree-vpd-parser',
60 'machine_context.cpp',
61 'devicetree_vpd_parser.cpp',
62 cpp_args: cpp_args_fd,
Patrick Williams37304f02025-02-01 08:38:32 -050063 dependencies: [sdbusplus, phosphor_dbus_interfaces_dep],
Chris Sides2ab73412024-10-15 16:04:11 -050064 install: true,
65 install_dir: installdir,
66 )
67endif