Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 1 | project( |
| 2 | 'pldm', |
Manojkiran Eda | 0ff3435 | 2024-08-22 19:39:32 +0530 | [diff] [blame] | 3 | 'cpp', |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 4 | version: '0.1', |
| 5 | meson_version: '>=1.1.1', |
| 6 | default_options: [ |
| 7 | 'warning_level=3', |
| 8 | 'default_library=shared', |
| 9 | 'werror=true', |
| 10 | 'cpp_std=c++23', |
| 11 | 'buildtype=debugoptimized', |
| 12 | ], |
| 13 | ) |
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 14 | |
| 15 | # Wno-psabi reduces the number of "Note:" messages when cross-compiling some STL |
| 16 | # stuff for ARM. See https://stackoverflow.com/questions/48149323/strange-gcc-warning-when-compiling-qt-project |
| 17 | # Basically, gcc 6 and gcc 7 are not ABI compatible, but since the whole OpenBMC |
| 18 | # project uses the same compiler, we can safely ignmore these info notes. |
| 19 | add_project_arguments('-Wno-psabi', language: 'cpp') |
| 20 | |
Manojkiran Eda | 38ce97c | 2021-02-14 12:15:17 +0530 | [diff] [blame] | 21 | |
| 22 | # Disable FORTIFY_SOURCE when compiling with no optimization |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 23 | if (get_option('optimization') == '0') |
Manojkiran Eda | 0ff3435 | 2024-08-22 19:39:32 +0530 | [diff] [blame] | 24 | add_project_arguments('-U_FORTIFY_SOURCE', language: 'cpp') |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 25 | message('Disabling FORTIFY_SOURCE as optimization is set to 0') |
Manojkiran Eda | 38ce97c | 2021-02-14 12:15:17 +0530 | [diff] [blame] | 26 | endif |
| 27 | |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 28 | package_datadir = join_paths( |
| 29 | get_option('prefix'), |
| 30 | get_option('datadir'), |
| 31 | meson.project_name(), |
| 32 | ) |
| 33 | package_localstatedir = join_paths( |
| 34 | get_option('prefix'), |
| 35 | get_option('localstatedir'), |
| 36 | meson.project_name(), |
| 37 | ) |
Brad Bishop | 06052cc | 2021-08-16 15:17:16 -0400 | [diff] [blame] | 38 | |
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 39 | conf_data = configuration_data() |
Rashmica Gupta | 1ed5f7a | 2023-05-22 13:56:42 +1000 | [diff] [blame] | 40 | cpp = meson.get_compiler('cpp') |
| 41 | |
| 42 | # Enable POSIX poll APIs in libpldm |
| 43 | if cpp.has_header('poll.h') |
| 44 | conf_data.set('PLDM_HAS_POLL', 1) |
| 45 | endif |
Thu Nguyen | 6d0d9c7 | 2025-08-26 10:18:04 +0000 | [diff] [blame] | 46 | |
| 47 | conf_data.set_quoted('HOST_JSONS_DIR', join_paths(package_datadir, 'host')) |
| 48 | |
Patrick Williams | 87bfacd | 2023-11-29 06:44:36 -0600 | [diff] [blame] | 49 | if get_option('libpldmresponder').allowed() |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 50 | conf_data.set_quoted('BIOS_JSONS_DIR', join_paths(package_datadir, 'bios')) |
| 51 | conf_data.set( |
| 52 | 'SYSTEM_SPECIFIC_BIOS_JSON', |
| 53 | get_option('system-specific-bios-json').allowed(), |
| 54 | ) |
| 55 | conf_data.set_quoted( |
| 56 | 'BIOS_TABLES_DIR', |
| 57 | join_paths(package_localstatedir, 'bios'), |
| 58 | ) |
| 59 | conf_data.set_quoted('PDR_JSONS_DIR', join_paths(package_datadir, 'pdr')) |
| 60 | conf_data.set_quoted('FRU_JSONS_DIR', join_paths(package_datadir, 'fru')) |
| 61 | conf_data.set_quoted( |
| 62 | 'FRU_MASTER_JSON', |
| 63 | join_paths(package_datadir, 'fru_master.json'), |
| 64 | ) |
| 65 | conf_data.set_quoted( |
| 66 | 'ENTITY_MAP_JSON', |
| 67 | join_paths(package_datadir, 'entityMap.json'), |
| 68 | ) |
Thu Nguyen | 6d0d9c7 | 2025-08-26 10:18:04 +0000 | [diff] [blame] | 69 | |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 70 | conf_data.set_quoted( |
| 71 | 'EVENTS_JSONS_DIR', |
| 72 | join_paths(package_datadir, 'events'), |
| 73 | ) |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 74 | conf_data.set('TERMINUS_ID', get_option('terminus-id')) |
| 75 | conf_data.set('TERMINUS_HANDLE', get_option('terminus-handle')) |
Manojkiran Eda | 0ff3435 | 2024-08-22 19:39:32 +0530 | [diff] [blame] | 76 | add_project_arguments('-DLIBPLDMRESPONDER', language: 'cpp') |
Tom Joseph | 02b4ee4 | 2021-05-02 22:44:36 -0700 | [diff] [blame] | 77 | endif |
P Arun Kumar Reddy | 3b90f7c | 2025-04-11 11:03:14 +0530 | [diff] [blame] | 78 | conf_data.set('HEARTBEAT_TIMEOUT', get_option('heartbeat-timeout-seconds')) |
| 79 | conf_data.set('DBUS_TIMEOUT', get_option('dbus-timeout-value')) |
Patrick Williams | 87bfacd | 2023-11-29 06:44:36 -0600 | [diff] [blame] | 80 | if get_option('softoff').allowed() |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 81 | conf_data.set( |
| 82 | 'SOFTOFF_TIMEOUT_SECONDS', |
| 83 | get_option('softoff-timeout-seconds'), |
| 84 | ) |
| 85 | conf_data.set_quoted( |
| 86 | 'SOFTOFF_CONFIG_JSON', |
| 87 | join_paths(package_datadir, 'softoff'), |
| 88 | ) |
George Liu | ab865f6 | 2020-03-10 09:12:52 +0800 | [diff] [blame] | 89 | endif |
Patrick Williams | 87bfacd | 2023-11-29 06:44:36 -0600 | [diff] [blame] | 90 | if get_option('oem-ibm').allowed() |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 91 | conf_data.set_quoted( |
| 92 | 'FILE_TABLE_JSON', |
| 93 | join_paths(package_datadir, 'fileTable.json'), |
| 94 | ) |
| 95 | conf_data.set_quoted( |
| 96 | 'LID_RUNNING_DIR', |
| 97 | '/var/lib/phosphor-software-manager/hostfw/running', |
| 98 | ) |
| 99 | conf_data.set_quoted( |
| 100 | 'LID_ALTERNATE_DIR', |
| 101 | '/var/lib/phosphor-software-manager/hostfw/alternate', |
| 102 | ) |
| 103 | conf_data.set_quoted( |
| 104 | 'LID_STAGING_DIR', |
| 105 | '/var/lib/phosphor-software-manager/hostfw/staging', |
| 106 | ) |
| 107 | conf_data.set_quoted( |
| 108 | 'LID_RUNNING_PATCH_DIR', |
| 109 | '/usr/local/share/hostfw/running', |
| 110 | ) |
| 111 | conf_data.set_quoted( |
| 112 | 'LID_ALTERNATE_PATCH_DIR', |
| 113 | '/usr/local/share/hostfw/alternate', |
| 114 | ) |
| 115 | conf_data.set('DMA_MAXSIZE', get_option('oem-ibm-dma-maxsize')) |
Manojkiran Eda | 0ff3435 | 2024-08-22 19:39:32 +0530 | [diff] [blame] | 116 | add_project_arguments('-DOEM_IBM', language: 'cpp') |
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 117 | endif |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 118 | conf_data.set( |
| 119 | 'NUMBER_OF_REQUEST_RETRIES', |
| 120 | get_option('number-of-request-retries'), |
| 121 | ) |
| 122 | conf_data.set( |
| 123 | 'INSTANCE_ID_EXPIRATION_INTERVAL', |
| 124 | get_option('instance-id-expiration-interval'), |
| 125 | ) |
| 126 | conf_data.set('RESPONSE_TIME_OUT', get_option('response-time-out')) |
| 127 | conf_data.set( |
| 128 | 'FLIGHT_RECORDER_MAX_ENTRIES', |
| 129 | get_option('flightrecorder-max-entries'), |
| 130 | ) |
Manojkiran Eda | b69d8bf | 2022-09-28 01:11:31 +0530 | [diff] [blame] | 131 | conf_data.set_quoted('HOST_EID_PATH', join_paths(package_datadir, 'host_eid')) |
Tom Joseph | ef90b0d | 2021-08-17 07:12:49 -0700 | [diff] [blame] | 132 | conf_data.set('MAXIMUM_TRANSFER_SIZE', get_option('maximum-transfer-size')) |
Rashmica Gupta | 1ed5f7a | 2023-05-22 13:56:42 +1000 | [diff] [blame] | 133 | if get_option('transport-implementation') == 'mctp-demux' |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 134 | conf_data.set('PLDM_TRANSPORT_WITH_MCTP_DEMUX', 1) |
Rashmica Gupta | 1ed5f7a | 2023-05-22 13:56:42 +1000 | [diff] [blame] | 135 | elif get_option('transport-implementation') == 'af-mctp' |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 136 | conf_data.set('PLDM_TRANSPORT_WITH_AF_MCTP', 1) |
Rashmica Gupta | 1ed5f7a | 2023-05-22 13:56:42 +1000 | [diff] [blame] | 137 | endif |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 138 | conf_data.set( |
| 139 | 'DEFAULT_SENSOR_UPDATER_INTERVAL', |
| 140 | get_option('default-sensor-update-interval'), |
| 141 | ) |
Gilbert Chen | eac61a4 | 2022-02-23 20:56:19 +0000 | [diff] [blame] | 142 | conf_data.set('SENSOR_POLLING_TIME', get_option('sensor-polling-time')) |
P Arun Kumar Reddy | 6fa09e9 | 2025-04-25 11:24:06 +0530 | [diff] [blame] | 143 | conf_data.set('UPDATE_TIMEOUT_SECONDS', get_option('update-timeout-seconds')) |
Manojkiran Eda | cfefc15 | 2024-02-08 05:35:51 +0530 | [diff] [blame] | 144 | |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 145 | configure_file(output: 'config.h', configuration: conf_data) |
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 146 | |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 147 | add_project_arguments( |
| 148 | '-include', |
| 149 | '@0@'.format(meson.current_build_dir() / 'config.h'), |
| 150 | language: 'cpp', |
| 151 | ) |
Andrew Jeffery | 4779227 | 2023-06-13 17:15:09 +0930 | [diff] [blame] | 152 | |
Manojkiran Eda | fc81a43 | 2023-07-27 05:51:12 +0530 | [diff] [blame] | 153 | filesystem = import('fs') |
Patrick Williams | 3b1dc01 | 2021-04-16 21:51:47 -0500 | [diff] [blame] | 154 | |
Manojkiran Eda | b69d8bf | 2022-09-28 01:11:31 +0530 | [diff] [blame] | 155 | phosphor_dbus_interfaces = dependency('phosphor-dbus-interfaces') |
| 156 | sdbusplus = dependency('sdbusplus') |
| 157 | sdeventplus = dependency('sdeventplus') |
| 158 | stdplus = dependency('stdplus') |
Riya Dixit | 49cfb13 | 2023-03-02 04:26:53 -0600 | [diff] [blame] | 159 | phosphor_logging_dep = dependency('phosphor-logging') |
Patrick Williams | 5c7253a | 2022-03-21 10:52:01 -0500 | [diff] [blame] | 160 | |
Patrick Williams | cf77284 | 2023-12-07 14:39:52 -0600 | [diff] [blame] | 161 | nlohmann_json_dep = dependency('nlohmann_json', include_type: 'system') |
Patrick Williams | 5c7253a | 2022-03-21 10:52:01 -0500 | [diff] [blame] | 162 | |
Manojkiran Eda | b69d8bf | 2022-09-28 01:11:31 +0530 | [diff] [blame] | 163 | if cpp.has_header('CLI/CLI.hpp') |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 164 | CLI11_dep = declare_dependency() |
Manojkiran Eda | b69d8bf | 2022-09-28 01:11:31 +0530 | [diff] [blame] | 165 | else |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 166 | CLI11_dep = dependency('CLI11') |
Manojkiran Eda | b69d8bf | 2022-09-28 01:11:31 +0530 | [diff] [blame] | 167 | endif |
Patrick Williams | 3b1dc01 | 2021-04-16 21:51:47 -0500 | [diff] [blame] | 168 | |
Patrick Williams | 87bfacd | 2023-11-29 06:44:36 -0600 | [diff] [blame] | 169 | if get_option('tests').allowed() |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 170 | gtest = dependency('gtest', main: true, disabler: true, required: false) |
| 171 | gmock = dependency('gmock', disabler: true, required: false) |
| 172 | if not gtest.found() or not gmock.found() |
| 173 | gtest_proj = import('cmake').subproject('googletest', required: false) |
| 174 | if gtest_proj.found() |
| 175 | gtest = declare_dependency( |
| 176 | dependencies: [ |
| 177 | dependency('threads'), |
| 178 | gtest_proj.dependency('gtest'), |
| 179 | gtest_proj.dependency('gtest_main'), |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 180 | ], |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 181 | ) |
| 182 | gmock = gtest_proj.dependency('gmock') |
| 183 | else |
| 184 | assert( |
Patrick Williams | 87bfacd | 2023-11-29 06:44:36 -0600 | [diff] [blame] | 185 | not get_option('tests').allowed(), |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 186 | 'Googletest is required if tests are enabled', |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 187 | ) |
| 188 | endif |
| 189 | endif |
| 190 | endif |
Patrick Williams | 3b1dc01 | 2021-04-16 21:51:47 -0500 | [diff] [blame] | 191 | |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 192 | libpldm_dep = dependency( |
| 193 | 'libpldm', |
| 194 | fallback: ['libpldm', 'libpldm_dep'], |
| 195 | include_type: 'system', |
| 196 | ) |
George Liu | ab437e5 | 2020-01-19 17:12:19 +0800 | [diff] [blame] | 197 | |
Patrick Williams | dc8b082 | 2025-01-30 17:47:44 -0500 | [diff] [blame] | 198 | if get_option('oem-ampere').allowed() |
Patrick Williams | 9b40260 | 2025-02-01 08:37:20 -0500 | [diff] [blame] | 199 | add_project_arguments('-DOEM_AMPERE', language: 'cpp') |
Dung Cao | 72c8aa0 | 2023-11-22 02:31:41 +0000 | [diff] [blame] | 200 | endif |
Lei YU | 31fc47e | 2020-02-27 11:41:45 +0800 | [diff] [blame] | 201 | |
George Liu | ab437e5 | 2020-01-19 17:12:19 +0800 | [diff] [blame] | 202 | libpldmutils_headers = ['.'] |
| 203 | libpldmutils = library( |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 204 | 'pldmutils', |
| 205 | 'common/transport.cpp', |
| 206 | 'common/utils.cpp', |
| 207 | version: meson.project_version(), |
| 208 | dependencies: [ |
| 209 | libpldm_dep, |
| 210 | phosphor_dbus_interfaces, |
| 211 | phosphor_logging_dep, |
| 212 | nlohmann_json_dep, |
| 213 | sdbusplus, |
| 214 | ], |
| 215 | install: true, |
| 216 | include_directories: include_directories(libpldmutils_headers), |
George Liu | ab437e5 | 2020-01-19 17:12:19 +0800 | [diff] [blame] | 217 | ) |
| 218 | |
| 219 | libpldmutils = declare_dependency( |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 220 | include_directories: include_directories(libpldmutils_headers), |
| 221 | link_with: libpldmutils, |
| 222 | ) |
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 223 | |
| 224 | deps = [ |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 225 | libpldm_dep, |
| 226 | libpldmutils, |
| 227 | nlohmann_json_dep, |
| 228 | phosphor_dbus_interfaces, |
| 229 | phosphor_logging_dep, |
| 230 | sdbusplus, |
| 231 | sdeventplus, |
| 232 | stdplus, |
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 233 | ] |
| 234 | |
Dung Cao | 72c8aa0 | 2023-11-22 02:31:41 +0000 | [diff] [blame] | 235 | oem_files = [] |
Patrick Williams | dc8b082 | 2025-01-30 17:47:44 -0500 | [diff] [blame] | 236 | if get_option('oem-ampere').allowed() |
Dung Cao | 72c8aa0 | 2023-11-22 02:31:41 +0000 | [diff] [blame] | 237 | subdir('oem/ampere') |
| 238 | endif |
| 239 | |
Patrick Williams | 87bfacd | 2023-11-29 06:44:36 -0600 | [diff] [blame] | 240 | if get_option('libpldmresponder').allowed() |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 241 | subdir('libpldmresponder') |
| 242 | deps += [libpldmresponder_dep] |
Tom Joseph | 02b4ee4 | 2021-05-02 22:44:36 -0700 | [diff] [blame] | 243 | endif |
| 244 | |
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 245 | executable( |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 246 | 'pldmd', |
| 247 | 'pldmd/pldmd.cpp', |
| 248 | 'pldmd/dbus_impl_pdr.cpp', |
| 249 | 'fw-update/activation.cpp', |
| 250 | 'fw-update/inventory_manager.cpp', |
| 251 | 'fw-update/package_parser.cpp', |
| 252 | 'fw-update/device_updater.cpp', |
| 253 | 'fw-update/watch.cpp', |
| 254 | 'fw-update/update_manager.cpp', |
Dung Cao | b6d3943 | 2024-06-05 03:46:47 +0000 | [diff] [blame] | 255 | 'platform-mc/dbus_impl_fru.cpp', |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 256 | 'platform-mc/terminus_manager.cpp', |
| 257 | 'platform-mc/terminus.cpp', |
| 258 | 'platform-mc/platform_manager.cpp', |
| 259 | 'platform-mc/manager.cpp', |
| 260 | 'platform-mc/sensor_manager.cpp', |
| 261 | 'platform-mc/numeric_sensor.cpp', |
Gilbert Chen | 77e6fe7 | 2024-08-06 09:23:30 +0000 | [diff] [blame] | 262 | 'platform-mc/event_manager.cpp', |
Manojkiran Eda | dd1f28b | 2025-03-12 09:55:11 +0530 | [diff] [blame] | 263 | 'platform-mc/dbus_to_terminus_effecters.cpp', |
Chau Ly | a743e38 | 2024-10-26 11:12:22 +0000 | [diff] [blame] | 264 | oem_files, |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 265 | 'requester/mctp_endpoint_discovery.cpp', |
| 266 | implicit_include_directories: false, |
| 267 | dependencies: deps, |
| 268 | install: true, |
| 269 | install_dir: get_option('bindir'), |
| 270 | ) |
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 271 | |
Patrick Williams | 87bfacd | 2023-11-29 06:44:36 -0600 | [diff] [blame] | 272 | if get_option('systemd').allowed() |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 273 | systemd_system_unit_dir = dependency('systemd').get_variable( |
Patrick Williams | 42053e6 | 2025-07-09 11:27:14 -0400 | [diff] [blame] | 274 | 'systemd_system_unit_dir', |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 275 | ) |
| 276 | filesystem.copyfile( |
| 277 | 'pldmd/service_files/pldmd.service', |
| 278 | 'pldmd.service', |
| 279 | install: true, |
| 280 | install_dir: systemd_system_unit_dir, |
| 281 | ) |
Deepak Kodihalli | 6935cf6 | 2020-06-15 23:38:27 -0500 | [diff] [blame] | 282 | |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 283 | if get_option('oem-ibm').allowed() |
| 284 | subdir('oem/ibm/service_files') |
| 285 | endif |
Manojkiran Eda | fec5d59 | 2021-01-21 12:27:34 +0530 | [diff] [blame] | 286 | endif |
| 287 | |
Deepak Kodihalli | f7f5da9 | 2020-06-17 05:56:10 -0500 | [diff] [blame] | 288 | subdir('pldmtool') |
George Liu | ab437e5 | 2020-01-19 17:12:19 +0800 | [diff] [blame] | 289 | |
Deepak Kodihalli | 6e51e37 | 2020-06-19 03:49:07 -0500 | [diff] [blame] | 290 | subdir('configurations') |
| 291 | |
Patrick Williams | 87bfacd | 2023-11-29 06:44:36 -0600 | [diff] [blame] | 292 | if get_option('utilities').allowed() |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 293 | subdir('utilities') |
Deepak Kodihalli | 9d494bb | 2019-11-05 01:28:43 -0600 | [diff] [blame] | 294 | endif |
Lei YU | 31fc47e | 2020-02-27 11:41:45 +0800 | [diff] [blame] | 295 | |
Patrick Williams | 87bfacd | 2023-11-29 06:44:36 -0600 | [diff] [blame] | 296 | if get_option('softoff').allowed() |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 297 | subdir('softoff') |
George Liu | 4c1a3fd | 2020-03-10 08:25:21 +0800 | [diff] [blame] | 298 | endif |
| 299 | |
Patrick Williams | 87bfacd | 2023-11-29 06:44:36 -0600 | [diff] [blame] | 300 | if get_option('tests').allowed() |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 301 | subdir('common/test') |
| 302 | subdir('fw-update/test') |
| 303 | subdir('host-bmc/test') |
| 304 | subdir('requester/test') |
| 305 | subdir('platform-mc/test') |
| 306 | subdir('test') |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 307 | endif |