blob: c91186135d5f3c3900dd4bfb765025aa70f04cdb [file] [log] [blame]
Brad Bishopb4459912019-11-05 19:39:11 -05001cpp_args = boost_args + ['-DPACKAGE_DIR="' + packagedir + '/"']
Andrew Jefferya9c58922021-06-01 09:28:59 +09302cpp_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',
8 'expression.cpp',
9 'perform_scan.cpp',
10 'perform_probe.cpp',
11 'overlay.cpp',
Benjamin Fairca2eb042022-09-13 06:40:42 +000012 'topology.cpp',
Brad Bishope45d8c72022-05-25 15:12:53 -040013 'utils.cpp',
Brad Bishopb4459912019-11-05 19:39:11 -050014 cpp_args: cpp_args + ['-DBOOST_ASIO_DISABLE_THREADS'],
15 dependencies: [
16 boost,
Andrew Jeffery14a7bc92021-08-02 10:01:22 +093017 nlohmann_json_dep,
Alexander Hansenc3db2c32024-08-20 15:01:38 +020018 phosphor_logging_dep,
Brad Bishopb4459912019-11-05 19:39:11 -050019 sdbusplus,
Brad Bishopff1ddb72020-01-15 12:24:56 -050020 valijson,
Brad Bishopb4459912019-11-05 19:39:11 -050021 ],
Brad Bishopb4459912019-11-05 19:39:11 -050022 install: true,
Potin Laif375fec2024-03-21 14:35:45 +080023 install_dir: installdir,
Brad Bishopb4459912019-11-05 19:39:11 -050024)
25
Brad Bishop92daaaa2020-01-20 15:45:01 -050026if get_option('fru-device')
Andrei Kartashev6b3d4c52020-08-10 19:24:17 +030027 cpp_args_fd = cpp_args
28 if get_option('fru-device-resizefru')
29 cpp_args_fd = cpp_args_fd + ['-DENABLE_FRU_AREA_RESIZE']
30 endif
Vu Phamdac2dfc2024-11-05 12:20:42 -060031 detect_mode = get_option('fru-device-16bitdetectmode')
32 cpp_args_fd += ['-DFRU_DEVICE_16BITDETECTMODE="' + detect_mode + '"']
Brad Bishop92daaaa2020-01-20 15:45:01 -050033 executable(
34 'fru-device',
Brad Bishope45d8c72022-05-25 15:12:53 -040035 'expression.cpp',
36 'fru_device.cpp',
37 'utils.cpp',
38 'fru_utils.cpp',
Zev Weiss309c0b12022-02-25 01:44:12 +000039 'fru_reader.cpp',
Andrei Kartashev6b3d4c52020-08-10 19:24:17 +030040 cpp_args: cpp_args_fd,
Brad Bishop92daaaa2020-01-20 15:45:01 -050041 dependencies: [
42 boost,
43 i2c,
Andrew Jeffery14a7bc92021-08-02 10:01:22 +093044 nlohmann_json_dep,
Alexander Hansenc3db2c32024-08-20 15:01:38 +020045 phosphor_logging_dep,
Brad Bishop92daaaa2020-01-20 15:45:01 -050046 sdbusplus,
47 threads,
48 valijson,
49 ],
Brad Bishop92daaaa2020-01-20 15:45:01 -050050 install: true,
Potin Laif375fec2024-03-21 14:35:45 +080051 install_dir: installdir,
Brad Bishop92daaaa2020-01-20 15:45:01 -050052 )
53endif
Chris Sides2ab73412024-10-15 16:04:11 -050054
55if get_option('devicetree-vpd')
56 cpp_args_fd = cpp_args
57 executable(
58 'devicetree-vpd-parser',
59 'machine_context.cpp',
60 'devicetree_vpd_parser.cpp',
61 cpp_args: cpp_args_fd,
62 dependencies: [
63 sdbusplus,
64 phosphor_dbus_interfaces_dep,
65 ],
66 install: true,
67 install_dir: installdir,
68 )
69endif