| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 1 | conf = configuration_data() | 
 | 2 |  | 
 | 3 | # DBus information | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 4 | conf.set_quoted( | 
 | 5 |     'BMC_INVENTORY_INTERFACE', | 
 | 6 |     'xyz.openbmc_project.Inventory.Item.Bmc', | 
 | 7 | ) | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 8 | conf.set_quoted('BUSNAME_UPDATER', 'xyz.openbmc_project.Software.BMC.Updater') | 
 | 9 | conf.set_quoted('DOWNLOAD_BUSNAME', 'xyz.openbmc_project.Software.Download') | 
 | 10 | conf.set_quoted('FILEPATH_IFACE', 'xyz.openbmc_project.Common.FilePath') | 
 | 11 | conf.set_quoted('INVENTORY_PATH', '/xyz/openbmc_project/inventory/') | 
 | 12 | conf.set_quoted('MAPPER_BUSNAME', 'xyz.openbmc_project.ObjectMapper') | 
 | 13 | conf.set_quoted('MAPPER_INTERFACE', 'xyz.openbmc_project.ObjectMapper') | 
 | 14 | conf.set_quoted('MAPPER_PATH', '/xyz/openbmc_project/object_mapper') | 
 | 15 | conf.set_quoted('SOFTWARE_OBJPATH', '/xyz/openbmc_project/software') | 
 | 16 | conf.set_quoted('SYSTEMD_BUSNAME', 'org.freedesktop.systemd1') | 
 | 17 | conf.set_quoted('SYSTEMD_PATH', '/org/freedesktop/systemd1') | 
 | 18 | conf.set_quoted('SYSTEMD_INTERFACE', 'org.freedesktop.systemd1.Manager') | 
 | 19 | conf.set_quoted('VERSION_BUSNAME', 'xyz.openbmc_project.Software.Version') | 
 | 20 | conf.set_quoted('VERSION_IFACE', 'xyz.openbmc_project.Software.Version') | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 21 | conf.set_quoted( | 
 | 22 |     'EXTENDED_VERSION_IFACE', | 
 | 23 |     'xyz.openbmc_project.Software.ExtendedVersion', | 
 | 24 | ) | 
 | 25 | conf.set_quoted( | 
 | 26 |     'COMPATIBLE_IFACE', | 
 | 27 |     'xyz.openbmc_project.Inventory.Decorator.Compatible', | 
 | 28 | ) | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 29 |  | 
 | 30 | # Names of the forward and reverse associations | 
 | 31 | conf.set_quoted('ACTIVATION_FWD_ASSOCIATION', 'inventory') | 
 | 32 | conf.set_quoted('ACTIVATION_REV_ASSOCIATION', 'activation') | 
 | 33 | conf.set_quoted('ACTIVE_FWD_ASSOCIATION', 'active') | 
 | 34 | conf.set_quoted('ACTIVE_REV_ASSOCIATION', 'software_version') | 
 | 35 | conf.set_quoted('FUNCTIONAL_FWD_ASSOCIATION', 'functional') | 
 | 36 | conf.set_quoted('FUNCTIONAL_REV_ASSOCIATION', 'software_version') | 
 | 37 | conf.set_quoted('UPDATEABLE_FWD_ASSOCIATION', 'updateable') | 
 | 38 | conf.set_quoted('UPDATEABLE_REV_ASSOCIATION', 'software_version') | 
 | 39 |  | 
 | 40 | # Filesystem files and directories | 
 | 41 | # The prefix path for the versioned read-only bmc partitions | 
 | 42 | conf.set_quoted('BMC_ROFS_PREFIX', get_option('media-dir') + '/rofs-') | 
 | 43 | # The name of the BMC table of contents file | 
 | 44 | conf.set_quoted('OS_RELEASE_FILE', '/etc/os-release') | 
 | 45 | # The dir where activation data is stored in files | 
 | 46 | conf.set_quoted('PERSIST_DIR', '/var/lib/phosphor-bmc-code-mgmt/') | 
 | 47 |  | 
 | 48 | # Supported BMC layout types | 
 | 49 | conf.set('STATIC_LAYOUT', get_option('bmc-layout').contains('static')) | 
 | 50 | conf.set('UBIFS_LAYOUT', get_option('bmc-layout').contains('ubi')) | 
 | 51 | conf.set('MMC_LAYOUT', get_option('bmc-layout').contains('mmc')) | 
 | 52 |  | 
 | 53 | # Configurable features | 
 | 54 | conf.set('HOST_BIOS_UPGRADE', get_option('host-bios-upgrade').allowed()) | 
 | 55 | conf.set('WANT_SIGNATURE_VERIFY', get_option('verify-signature').allowed()) | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 56 | conf.set( | 
 | 57 |     'START_UPDATE_DBUS_INTEFACE', | 
 | 58 |     get_option('software-update-dbus-interface').allowed(), | 
 | 59 | ) | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 60 |  | 
 | 61 | # Configurable variables | 
 | 62 | conf.set('ACTIVE_BMC_MAX_ALLOWED', get_option('active-bmc-max-allowed')) | 
 | 63 | conf.set_quoted('HASH_FILE_NAME', get_option('hash-file-name')) | 
 | 64 | conf.set_quoted('IMG_UPLOAD_DIR', get_option('img-upload-dir')) | 
 | 65 | conf.set_quoted('MANIFEST_FILE_NAME', get_option('manifest-file-name')) | 
 | 66 | conf.set_quoted('MEDIA_DIR', get_option('media-dir')) | 
 | 67 | optional_array = get_option('optional-images') | 
 | 68 | optional_images = '' | 
 | 69 | foreach optiona_image : optional_array | 
 | 70 |     optional_images = ' '.join([optional_images, optiona_image]) | 
 | 71 | endforeach | 
 | 72 | conf.set_quoted('OPTIONAL_IMAGES', optional_images) | 
 | 73 | conf.set_quoted('PUBLICKEY_FILE_NAME', get_option('publickey-file-name')) | 
 | 74 | conf.set_quoted('SIGNATURE_FILE_EXT', get_option('signature-file-ext')) | 
 | 75 | conf.set_quoted('SIGNED_IMAGE_CONF_PATH', get_option('signed-image-conf-path')) | 
 | 76 | conf.set_quoted('SYNC_LIST_DIR_PATH', get_option('sync-list-dir-path')) | 
 | 77 | conf.set_quoted('SYNC_LIST_FILE_NAME', get_option('sync-list-file-name')) | 
 | 78 | conf.set_quoted('BMC_MSL', get_option('bmc-msl')) | 
 | 79 | conf.set_quoted('REGEX_BMC_MSL', get_option('regex-bmc-msl')) | 
 | 80 |  | 
 | 81 | if get_option('host-bios-upgrade').allowed() | 
 | 82 |     conf.set_quoted('BIOS_OBJPATH', get_option('bios-object-path')) | 
 | 83 | endif | 
 | 84 |  | 
 | 85 | if get_option('bmc-static-dual-image').allowed() | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 86 |     conf.set( | 
 | 87 |         'BMC_STATIC_DUAL_IMAGE', | 
 | 88 |         get_option('bmc-static-dual-image').allowed(), | 
 | 89 |     ) | 
 | 90 |     conf.set_quoted('ALT_ROFS_DIR', get_option('alt-rofs-dir')) | 
 | 91 |     conf.set_quoted('ALT_RWFS', get_option('alt-rwfs-dir')) | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 92 | else | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 93 |     conf.set_quoted('ALT_RWFS', '/media/alt/var/persist') | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 94 | endif | 
 | 95 |  | 
 | 96 | configure_file(output: 'config.h', configuration: conf) | 
 | 97 |  | 
 | 98 | unit_files = [ | 
 | 99 |     'obmc-flash-bmc-setenv@.service.in', | 
 | 100 |     'reboot-guard-disable.service.in', | 
 | 101 |     'reboot-guard-enable.service.in', | 
 | 102 |     'force-reboot.service.in', | 
 | 103 |     'usr-local.mount.in', | 
 | 104 |     'xyz.openbmc_project.Software.Download.service.in', | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 105 |     'xyz.openbmc_project.Software.Sync.service.in', | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 106 | ] | 
 | 107 |  | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 108 | image_updater_sources = files('activation.cpp', 'images.cpp', 'item_updater.cpp', 'msl_verify.cpp', 'serialize.cpp', 'update_manager.cpp' | 
 | 109 | , 'utils.cpp', 'version.cpp') | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 110 |  | 
 | 111 | if get_option('bmc-layout').contains('static') | 
 | 112 |     image_updater_sources += files( | 
 | 113 |         'static/flash.cpp', | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 114 |         'static/item_updater_helper.cpp', | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 115 |     ) | 
 | 116 | elif get_option('bmc-layout').contains('ubi') | 
 | 117 |     image_updater_sources += files( | 
 | 118 |         'ubi/flash.cpp', | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 119 |         'ubi/item_updater_helper.cpp', | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 120 |     ) | 
 | 121 |  | 
 | 122 |     unit_files += [ | 
 | 123 |         'ubi/obmc-flash-bmc-cleanup.service.in', | 
 | 124 |         'ubi/obmc-flash-bmc-mirroruboot.service.in', | 
 | 125 |         'ubi/obmc-flash-bmc-ubiremount.service.in', | 
 | 126 |         'ubi/obmc-flash-bmc-ubiro@.service.in', | 
 | 127 |         'ubi/obmc-flash-bmc-ubiro-remove@.service.in', | 
 | 128 |         'ubi/obmc-flash-bmc-ubirw.service.in', | 
 | 129 |         'ubi/obmc-flash-bmc-ubirw-remove.service.in', | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 130 |         'ubi/obmc-flash-bmc-updateubootvars@.service.in', | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 131 |     ] | 
 | 132 | elif get_option('bmc-layout').contains('mmc') | 
 | 133 |     image_updater_sources += files( | 
 | 134 |         'mmc/flash.cpp', | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 135 |         'mmc/item_updater_helper.cpp', | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 136 |     ) | 
 | 137 |  | 
 | 138 |     unit_files += [ | 
 | 139 |         'mmc/obmc-flash-mmc@.service.in', | 
 | 140 |         'mmc/obmc-flash-mmc-mount.service.in', | 
 | 141 |         'mmc/obmc-flash-mmc-remove@.service.in', | 
 | 142 |         'mmc/obmc-flash-mmc-setprimary@.service.in', | 
 | 143 |         'mmc/obmc-flash-mmc-umount.service.in', | 
 | 144 |         'mmc/obmc-flash-mmc-mirroruboot.service.in', | 
 | 145 |     ] | 
 | 146 | endif | 
 | 147 |  | 
 | 148 | if get_option('host-bios-upgrade').allowed() | 
 | 149 |     unit_files += 'obmc-flash-host-bios@.service.in' | 
 | 150 | endif | 
 | 151 |  | 
 | 152 | if get_option('bmc-static-dual-image').allowed() | 
 | 153 |     unit_files += [ | 
 | 154 |         'static/obmc-flash-bmc-alt@.service.in', | 
 | 155 |         'static/obmc-flash-bmc-static-mount-alt.service.in', | 
 | 156 |         'static/obmc-flash-bmc-prepare-for-sync.service.in', | 
 | 157 |     ] | 
 | 158 | endif | 
 | 159 |  | 
 | 160 | if get_option('sync-bmc-files').allowed() | 
 | 161 |     executable( | 
 | 162 |         'phosphor-sync-software-manager', | 
 | 163 |         'sync_manager.cpp', | 
 | 164 |         'sync_manager_main.cpp', | 
 | 165 |         'sync_watch.cpp', | 
 | 166 |         dependencies: deps, | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 167 |         install: true, | 
| Patrick Williams | 089a4a3 | 2025-04-19 12:39:38 -0400 | [diff] [blame] | 168 |         install_dir: get_option('libexecdir') / 'phosphor-code-mgmt', | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 169 |     ) | 
 | 170 |  | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 171 |     install_data('synclist', install_dir: get_option('sysconfdir')) | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 172 |  | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 173 |     install_data( | 
 | 174 |         'sync-once.sh', | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 175 |         install_mode: 'rwxr-xr-x', | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 176 |         install_dir: get_option('bindir'), | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 177 |     ) | 
 | 178 | endif | 
 | 179 |  | 
 | 180 | if (get_option('verify-signature').allowed()) | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 181 |     image_updater_sources += files('image_verify.cpp', 'openssl_alloc.cpp' | 
 | 182 |     , 'utils.cpp') | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 183 | endif | 
 | 184 |  | 
 | 185 | executable( | 
 | 186 |     'phosphor-download-manager', | 
 | 187 |     'download_manager.cpp', | 
 | 188 |     'download_manager_main.cpp', | 
 | 189 |     dependencies: deps, | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 190 |     install: true, | 
| Patrick Williams | 7292aec | 2025-04-19 12:39:38 -0400 | [diff] [blame] | 191 |     install_dir: get_option('libexecdir') / 'phosphor-code-mgmt', | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 192 | ) | 
 | 193 |  | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 194 | software_common_sources = files('software_utils.cpp') | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 195 |  | 
 | 196 | if get_option('software-update-dbus-interface').allowed() | 
 | 197 |     executable( | 
 | 198 |         'phosphor-software-manager', | 
 | 199 |         'software_manager.cpp', | 
 | 200 |         image_updater_sources, | 
 | 201 |         software_common_sources, | 
| Patrick Williams | f899aed | 2025-07-08 10:13:34 -0400 | [diff] [blame] | 202 |         dependencies: [deps, ssl_dep], | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 203 |         install: true, | 
| Patrick Williams | 01cec99 | 2025-04-19 12:39:38 -0400 | [diff] [blame] | 204 |         install_dir: get_option('libexecdir') / 'phosphor-code-mgmt', | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 205 |     ) | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 206 |     unit_files += ['xyz.openbmc_project.Software.Manager.service.in'] | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 207 | else | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 208 |     unit_files += [ | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 209 |         'xyz.openbmc_project.Software.BMC.Updater.service.in', | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 210 |         'xyz.openbmc_project.Software.Version.service.in', | 
 | 211 |     ] | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 212 | endif | 
 | 213 |  | 
 | 214 | executable( | 
 | 215 |     'phosphor-image-updater', | 
 | 216 |     image_updater_sources, | 
 | 217 |     software_common_sources, | 
 | 218 |     'item_updater_main.cpp', | 
| Patrick Williams | f899aed | 2025-07-08 10:13:34 -0400 | [diff] [blame] | 219 |     dependencies: [deps, ssl_dep, boost_dep], | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 220 |     install: true, | 
| Patrick Williams | 4c5cb93 | 2025-04-19 12:39:38 -0400 | [diff] [blame] | 221 |     install_dir: get_option('libexecdir') / 'phosphor-code-mgmt', | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 222 | ) | 
 | 223 |  | 
 | 224 | executable( | 
 | 225 |     'phosphor-version-software-manager', | 
 | 226 |     'image_manager.cpp', | 
 | 227 |     'image_manager_main.cpp', | 
 | 228 |     'version.cpp', | 
 | 229 |     'watch.cpp', | 
 | 230 |     software_common_sources, | 
| Patrick Williams | f899aed | 2025-07-08 10:13:34 -0400 | [diff] [blame] | 231 |     dependencies: [deps, ssl_dep], | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 232 |     install: true, | 
| Patrick Williams | 4fef1c4 | 2025-04-19 12:39:38 -0400 | [diff] [blame] | 233 |     install_dir: get_option('libexecdir') / 'phosphor-code-mgmt', | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 234 | ) | 
 | 235 |  | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 236 | install_data( | 
 | 237 |     'obmc-flash-bmc', | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 238 |     install_mode: 'rwxr-xr-x', | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 239 |     install_dir: get_option('bindir'), | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 240 | ) | 
 | 241 |  | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 242 | install_data( | 
 | 243 |     'detect-slot-aspeed', | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 244 |     install_mode: 'rwxr-xr-x', | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 245 |     install_dir: get_option('bindir'), | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 246 | ) | 
 | 247 |  | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 248 | install_data( | 
 | 249 |     'reset-cs0-aspeed', | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 250 |     install_mode: 'rwxr-xr-x', | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 251 |     install_dir: get_option('bindir'), | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 252 | ) | 
 | 253 |  | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 254 | install_data('software.conf', install_dir: '/usr/lib/tmpfiles.d/') | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 255 |  | 
 | 256 | foreach u : unit_files | 
 | 257 |     configure_file( | 
 | 258 |         input: u, | 
 | 259 |         output: '@BASENAME@', | 
 | 260 |         configuration: conf, | 
 | 261 |         install: true, | 
 | 262 |         install_dir: systemd_system_unit_dir, | 
 | 263 |     ) | 
 | 264 | endforeach | 
 | 265 |  | 
 | 266 | # If test coverage of source files within the root directory are wanted, | 
 | 267 | # need to define and build the tests from here | 
| Patrick Williams | 726e100 | 2025-01-30 17:47:20 -0500 | [diff] [blame] | 268 | if build_tests.allowed() | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 269 |     gtest = dependency( | 
 | 270 |         'gtest', | 
 | 271 |         main: true, | 
 | 272 |         disabler: true, | 
 | 273 |         required: build_tests, | 
 | 274 |     ) | 
 | 275 |     include_srcs = declare_dependency( | 
 | 276 |         sources: ['utils.cpp', 'image_verify.cpp', 'images.cpp', 'version.cpp'], | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 277 |     ) | 
 | 278 |  | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 279 |     test( | 
 | 280 |         'utest', | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 281 |         executable( | 
 | 282 |             'utest', | 
 | 283 |             './test/utest.cpp', | 
| Patrick Williams | f899aed | 2025-07-08 10:13:34 -0400 | [diff] [blame] | 284 |             dependencies: [deps, gtest, include_srcs, ssl_dep], | 
| Patrick Williams | ec807fc | 2025-02-03 14:13:00 -0500 | [diff] [blame] | 285 |         ), | 
 | 286 |     ) | 
| Jagpal Singh Gill | cab87e9 | 2025-01-02 16:33:46 -0800 | [diff] [blame] | 287 | endif | 
 | 288 |  | 
 | 289 | if get_option('usb-code-update').allowed() | 
 | 290 |     subdir('usb') | 
 | 291 | endif | 
 | 292 |  | 
 | 293 | if get_option('side-switch-on-boot').allowed() | 
 | 294 |     subdir('side-switch') | 
 | 295 | endif |