blob: 81c35b5b5b3a831585fc92c4d891a7b553e46bac [file] [log] [blame]
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001#!/usr/bin/env python3
2
3""" builtin_configs.py:
4
5 Default configuration files used as reference """
6
7from __future__ import print_function
8
9__copyright__ = """
10/*
Raef Colesaac84bc2025-01-09 14:20:12 +000011 * SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010012 *
13 * SPDX-License-Identifier: BSD-3-Clause
14 *
15 */
16 """
Karl Zhang08681e62020-10-30 13:56:03 +080017
18__author__ = "tf-m@lists.trustedfirmware.org"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010019__project__ = "Trusted Firmware-M Open CI"
Xinyu Zhang06286a92021-07-22 14:00:51 +080020__version__ = "1.4.0"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010021
Paul Sokolovsky3e8fce02022-04-07 01:23:30 +030022from copy import deepcopy
23
24
Minos Galanakisea421232019-06-20 17:11:28 +010025# common parameters for tf-m build system
26# This configuration template will be passed into the tfm-builder module after
27# the template evaluation is converted to a command
28
29_common_tfm_builder_cfg = {
30 "config_type": "tf-m",
31 "codebase_root_dir": "tf-m",
32 # Order to which the variants are evaluated. This affects the name of
33 # variant configuration and the wildcard replacement logic in invalid
34 # configuration tuples
Xinyu Zhangb708f572020-09-15 11:43:46 +080035 "sort_order": ["tfm_platform",
Xinyu Zhang433771e2022-04-01 16:49:17 +080036 "compiler",
Xinyu Zhangb708f572020-09-15 11:43:46 +080037 "isolation_level",
38 "test_regression",
39 "test_psa_api",
Minos Galanakisea421232019-06-20 17:11:28 +010040 "cmake_build_type",
Xinyu Zhangb708f572020-09-15 11:43:46 +080041 "with_bl2",
Xinyu Zhang9fd74242020-10-22 11:30:50 +080042 "profile",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +080043 "extra_params"],
Minos Galanakisea421232019-06-20 17:11:28 +010044
45 # Keys for the templace will come from the combinations of parameters
46 # provided in the seed dictionary.
47
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080048 "spe_config_template": "cmake -G Ninja " + \
Jianliang Shen7905e5d2023-11-07 10:40:47 +080049 "-S %(spe_root_dir)s " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080050 "-B %(ci_build_root_dir)s/spe " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080051 "-DTFM_PLATFORM=%(tfm_platform)s " + \
Xinyu Zhang85588522023-10-31 13:58:04 +080052 "-DTFM_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(s_compiler)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080053 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
Xinyu Zhangb18ae742023-04-25 14:33:27 +080054 "%(test_regression)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080055 "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080056 "-DTEST_PSA_API=%(test_psa_api)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080057 "-DBL2=%(with_bl2)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080058 "-DTFM_PROFILE=%(profile)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080059 "%(extra_params)s " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080060 "-DCONFIG_TFM_SOURCE_PATH=%(codebase_root_dir)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080061 "-DMBEDCRYPTO_PATH=%(codebase_root_dir)s/../mbedtls " + \
62 "-DPSA_ARCH_TESTS_PATH=%(codebase_root_dir)s/../psa-arch-tests " + \
63 "-DMCUBOOT_PATH=%(codebase_root_dir)s/../mcuboot " + \
Xinyu Zhang1f21cb22023-06-26 17:56:49 +080064 "-DQCBOR_PATH=%(codebase_root_dir)s/../qcbor " + \
David Vinczefaa61ff2025-01-09 16:02:06 +000065 "-DT_COSE_PATH=%(codebase_root_dir)s/../t_cose " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080066 "-DTFM_EXTRAS_REPO_PATH=%(codebase_root_dir)s/../tf-m-extras ",
67
68 "nspe_config_template": "cmake -G Ninja " + \
Jianliang Shen7905e5d2023-11-07 10:40:47 +080069 "-S %(nspe_root_dir)s " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080070 "-B %(ci_build_root_dir)s/nspe " + \
71 "-DCONFIG_SPE_PATH=%(ci_build_root_dir)s/spe/api_ns " + \
Xinyu Zhang85588522023-10-31 13:58:04 +080072 "-DTFM_TOOLCHAIN_FILE=%(ci_build_root_dir)s/spe/api_ns/cmake/%(ns_compiler)s " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080073 "%(extra_params)s " + \
David Vinczefaa61ff2025-01-09 16:02:06 +000074 "-DQCBOR_PATH=%(codebase_root_dir)s/../qcbor " + \
75 "-DT_COSE_PATH=%(codebase_root_dir)s/../t_cose ",
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080076
77 # CMake build commands will be executed for every build.
78 "spe_cmake_build": "cmake --build %(ci_build_root_dir)s/spe -- install",
79 "nspe_cmake_build": "cmake --build %(ci_build_root_dir)s/nspe --",
Karl Zhangaff558a2020-05-15 14:28:23 +010080
Xinyu Zhang433771e2022-04-01 16:49:17 +080081 "set_compiler_path": "export PATH=$PATH:$%(compiler)s_PATH",
82
Minos Galanakisea421232019-06-20 17:11:28 +010083 # A small subset of string substitution params is allowed in commands.
84 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
85 # _tbm_target_platform_ with the paths set when building
86
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080087 "artifact_capture_rex": (r'%(ci_build_root_dir)s/nspe'
Minos Galanakisea421232019-06-20 17:11:28 +010088 r'/(\w+\.(?:axf|bin|hex))$'),
89
Xinyu Zhang46b37182023-06-30 15:36:44 +080090 # Keys will append extra commands when matching target_platform
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080091 "post_build": {"arm/corstone1000": ("dd conv=notrunc bs=1 if=%(ci_build_root_dir)s/spe/bin/bl1_1.bin of=%(ci_build_root_dir)s/spe/bin/bl1.bin seek=0;"
Bence Baloghb0580a62025-03-10 15:15:42 +010092 "dd conv=notrunc bs=1 if=%(ci_build_root_dir)s/spe/bin/bl1_provisioning_bundle.bin of=%(ci_build_root_dir)s/spe/bin/bl1.bin seek=51200;"
Xinyu Zhang09acfbf2023-10-30 18:30:48 +080093 "%(codebase_root_dir)s/platform/ext/target/arm/corstone1000/create-flash-image.sh %(ci_build_root_dir)s/spe/bin/ cs1000.bin;"),
Matthew Dalzell59ea18e2024-06-06 17:00:52 +010094 "arm/musca_b1": ("if [ -d \"%(ci_build_root_dir)s/nspe\" ]; then "
Matthew Dalzell4fd9e502024-04-19 11:04:26 +010095 "srec_cat "
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080096 "%(ci_build_root_dir)s/spe/bin/"
97 "bl2.bin "
98 "-Binary -offset 0xA000000 "
99 "-fill 0xFF 0xA000000 0xA020000 "
100 "%(ci_build_root_dir)s/nspe/"
101 "tfm_s_ns_signed.bin "
102 "-Binary -offset 0xA020000 "
103 "-fill 0xFF 0xA020000 0xA200000 "
104 "-o %(ci_build_root_dir)s/"
Matthew Dalzell4fd9e502024-04-19 11:04:26 +0100105 "spe/bin/tfm.hex -Intel;"
Matthew Dalzell4fd9e502024-04-19 11:04:26 +0100106 "fi;"),
Matthew Dalzell59ea18e2024-06-06 17:00:52 +0100107 "arm/musca_s1": ("if [ -d \"%(ci_build_root_dir)s/nspe\" ]; then "
Matthew Dalzell4fd9e502024-04-19 11:04:26 +0100108 "srec_cat "
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800109 "%(ci_build_root_dir)s/spe/bin/"
110 "bl2.bin "
111 "-Binary -offset 0xA000000 "
112 "-fill 0xFF 0xA000000 0xA020000 "
113 "%(ci_build_root_dir)s/nspe/"
114 "tfm_s_ns_signed.bin "
115 "-Binary -offset 0xA020000 "
116 "-fill 0xFF 0xA020000 0xA200000 "
117 "-o %(ci_build_root_dir)s/"
Matthew Dalzell4fd9e502024-04-19 11:04:26 +0100118 "spe/bin/tfm.hex -Intel; "
Matthew Dalzell4fd9e502024-04-19 11:04:26 +0100119 "fi;"),
Jamie Fox82a91d02024-09-27 14:54:14 +0100120 "arm/rse/tc/tc3": ("if [ -f \"%(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin\" ]; then "
Raef Colesf9a20742024-06-06 10:47:49 +0100121 "srec_cat "
122 "%(ci_build_root_dir)s/spe/bin/bl1_1.bin -Binary -offset 0x0 "
123 "%(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin -Binary -offset 0x10000 "
124 "%(ci_build_root_dir)s/spe/bin/rom_dma_ics.bin -Binary -offset 0x1F000 "
125 "-o %(ci_build_root_dir)s/spe/bin/rom.bin -Binary;"
126 "else "
127 "srec_cat "
Jamie Fox9283cbc2024-04-22 13:40:01 +0100128 "%(ci_build_root_dir)s/spe/bin/bl1_1.bin -Binary -offset 0x0 "
129 "%(ci_build_root_dir)s/spe/bin/rom_dma_ics.bin -Binary -offset 0x1F000 "
130 "-o %(ci_build_root_dir)s/spe/bin/rom.bin -Binary;"
Raef Colesf9a20742024-06-06 10:47:49 +0100131 "fi;"
Jamie Fox82a91d02024-09-27 14:54:14 +0100132 "curl --fail --no-progress-meter --connect-timeout 10 --retry 6 -LS -o fiptool https://downloads.trustedfirmware.org/tf-m/rse/tc/tc3/fiptool;"
Jamie Fox9283cbc2024-04-22 13:40:01 +0100133 "chmod 755 fiptool;"
Jamie Fox82a91d02024-09-27 14:54:14 +0100134 "curl --fail --no-progress-meter --connect-timeout 10 --retry 6 -LS -o fip.bin https://downloads.trustedfirmware.org/tf-m/rse/tc/tc3/fip.bin;"
Jamie Fox9283cbc2024-04-22 13:40:01 +0100135 "./fiptool update "
Jamie Fox82a91d02024-09-27 14:54:14 +0100136 "--align 8192 --rse-bl2 %(ci_build_root_dir)s/spe/bin/bl2_signed.bin "
137 "--align 8192 --rse-s %(ci_build_root_dir)s/spe/bin/tfm_s_encrypted.bin "
138 "--align 8192 --rse-ns %(ci_build_root_dir)s/nspe/bin/tfm_ns_encrypted.bin "
139 "--align 8192 --rse-sic-tables-s %(ci_build_root_dir)s/spe/bin/tfm_s_sic_tables_signed.bin "
140 "--align 8192 --rse-sic-tables-ns %(ci_build_root_dir)s/nspe/bin/tfm_ns_sic_tables_signed.bin "
Jamie Fox9283cbc2024-04-22 13:40:01 +0100141 "--out %(ci_build_root_dir)s/spe/bin/host_flash.bin "
142 "fip.bin"),
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000143 "arm/rse/tc/tc4": ("if [ -f \"%(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin\" ]; then "
144 "srec_cat "
145 "%(ci_build_root_dir)s/spe/bin/bl1_1.bin -Binary -offset 0x0 "
Jackson Cooper-Driverfdb1e5a2025-05-14 10:30:48 +0100146 "%(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin -Binary -offset 0x18000 "
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000147 "%(ci_build_root_dir)s/spe/bin/rom_dma_ics.bin -Binary -offset 0x1F000 "
148 "-o %(ci_build_root_dir)s/spe/bin/rom.bin -Binary;"
149 "else "
150 "srec_cat "
151 "%(ci_build_root_dir)s/spe/bin/bl1_1.bin -Binary -offset 0x0 "
152 "%(ci_build_root_dir)s/spe/bin/rom_dma_ics.bin -Binary -offset 0x1F000 "
153 "-o %(ci_build_root_dir)s/spe/bin/rom.bin -Binary;"
154 "fi;"
155 # fiptool in tc3 directory also compatible with tc4 fip.bin
156 "curl --fail --no-progress-meter --connect-timeout 10 --retry 6 -LS -o fiptool https://downloads.trustedfirmware.org/tf-m/rse/tc/tc3/fiptool;"
157 "chmod 755 fiptool;"
158 "curl --fail --no-progress-meter --connect-timeout 10 --retry 6 -LS -o fip.bin https://downloads.trustedfirmware.org/tf-m/rse/tc/tc4/4806a3a08/fip.bin;"
159 "./fiptool update "
160 "--align 8192 --rse-bl2 %(ci_build_root_dir)s/spe/bin/bl2_signed.bin "
161 "--align 8192 --rse-s %(ci_build_root_dir)s/spe/bin/tfm_s_encrypted.bin "
162 "--align 8192 --rse-ns %(ci_build_root_dir)s/nspe/bin/tfm_ns_encrypted.bin "
163 "--align 8192 --rse-sic-tables-s %(ci_build_root_dir)s/spe/bin/tfm_s_sic_tables_signed.bin "
164 "--align 8192 --rse-sic-tables-ns %(ci_build_root_dir)s/nspe/bin/tfm_ns_sic_tables_signed.bin "
165 "--out %(ci_build_root_dir)s/spe/bin/host_flash.bin "
166 "fip.bin"),
Xinyu Zhang46b37182023-06-30 15:36:44 +0800167 "stm/stm32l562e_dk": ("echo 'STM32L562E-DK board post process';"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800168 "%(ci_build_root_dir)s/spe/api_ns/postbuild.sh;"
169 "pushd %(ci_build_root_dir)s/spe/api_ns;"
170 "mkdir -p image_signing/scripts ;"
171 "cp %(ci_build_root_dir)s/nspe/bin/tfm_ns_signed.bin image_signing/scripts ;"
172 "tar jcf ./bin/stm32l562e-dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh "
173 "bin/bl2.bin "
174 "bin/tfm_s_signed.bin "
175 "image_signing/scripts/tfm_ns_signed.bin ;"
Xinyu Zhang46b37182023-06-30 15:36:44 +0800176 "popd"),
177 "stm/b_u585i_iot02a": ("echo 'STM32U5 board post process';"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800178 "%(ci_build_root_dir)s/spe/api_ns/postbuild.sh;"
179 "pushd %(ci_build_root_dir)s/spe/api_ns;"
180 "mkdir -p image_signing/scripts ;"
181 "cp %(ci_build_root_dir)s/nspe/bin/tfm_ns_signed.bin image_signing/scripts ;"
182 "tar jcf ./bin/b_u585i_iot02a-tfm.tar.bz2 regression.sh TFM_UPDATE.sh "
183 "bin/bl2.bin "
184 "bin/tfm_s_signed.bin "
185 "image_signing/scripts/tfm_ns_signed.bin ;"
Xinyu Zhang46b37182023-06-30 15:36:44 +0800186 "popd"),
Anton Komlev4164ab62024-02-23 10:59:56 +0100187 "stm/stm32h573i_dk": ("echo 'STM32H573I-DK board post process';"
188 "%(ci_build_root_dir)s/spe/api_ns/postbuild.sh;"
189 "pushd %(ci_build_root_dir)s/spe/api_ns;"
190 "mkdir -p image_signing/scripts ;"
191 "cp %(ci_build_root_dir)s/nspe/bin/tfm_ns_signed.bin image_signing/scripts ;"
192 "tar jcf ./bin/stm32h573i_dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh "
193 "bin/bl2.bin "
194 "bin/tfm_s_signed.bin "
195 "image_signing/scripts/tfm_ns_signed.bin ;"
196 "popd"),
Matthew Dalzell0bdc0b22024-04-17 18:13:31 +0100197 "nxp/lpcxpresso55s69": ("echo 'LPCXpresso55S69 bo.ard post process\n';"
198 "mkdir -p %(codebase_root_dir)s/build/bin ;"
199 # Workaround for flash_JLink.py
200 "cp %(ci_build_root_dir)s/spe/bin/tfm_s.hex %(codebase_root_dir)s/build/bin ;"
201 "cp %(ci_build_root_dir)s/nspe/bin/tfm_ns.hex %(codebase_root_dir)s/build/bin ;"
202 "cd %(codebase_root_dir)s/build/bin; "
203 "rm -f flash.jlink; "
204 "if [ -f \"%(ci_build_root_dir)s/spe/bin/bl2.hex\" ]; then "
205 "echo r >> flash.jlink; "
206 "echo erase >> flash.jlink; "
207 "echo loadfile bl2.hex >> flash.jlink; "
208 "echo loadfile tfm_s_ns_signed.bin -0x8000 >> flash.jlink; "
209 "echo r >> flash.jlink; "
210 "echo go >> flash.jlink; "
211 "echo exit >> flash.jlink; "
212 "else "
213 "echo r >> flash.jlink; "
214 "echo erase >> flash.jlink; "
215 "echo loadfile tfm_s.hex >> flash.jlink; "
216 "echo loadfile tfm_ns.hex >> flash.jlink; "
217 "echo r >> flash.jlink; "
218 "echo go >> flash.jlink; "
219 "echo exit >> flash.jlink; "
220 "fi;"
221 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"
222 "tar jcf lpcxpresso55s69-tfm.tar.bz2 flash.jlink ${BIN_FILES};"
223 "mv lpcxpresso55s69-tfm.tar.bz2 %(ci_build_root_dir)s/nspe/bin ;"
224 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"),
Xinyu Zhang46b37182023-06-30 15:36:44 +0800225 "cypress/psoc64": ("echo 'Sign binaries for Cypress PSoC64 platform';"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800226 "pushd %(codebase_root_dir)s/;"
Arthur She87602dc2022-02-06 14:42:18 -0800227 "sudo /usr/local/bin/cysecuretools "
228 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
229 "--target cy8ckit-064s0s2-4343w "
230 "sign-image "
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800231 "--hex %(ci_build_root_dir)s/spe/bin/tfm_s.hex "
Arthur She87602dc2022-02-06 14:42:18 -0800232 "--image-type BOOT --image-id 1;"
233 "sudo /usr/local/bin/cysecuretools "
234 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
235 "--target cy8ckit-064s0s2-4343w "
236 "sign-image "
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800237 "--hex %(ci_build_root_dir)s/nspe/bin/tfm_ns.hex "
Arthur She87602dc2022-02-06 14:42:18 -0800238 "--image-type BOOT --image-id 16;"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800239 "mv %(ci_build_root_dir)s/spe/bin/tfm_s.hex %(ci_build_root_dir)s/spe/bin/tfm_s_signed.hex;"
240 "mv %(ci_build_root_dir)s/nspe/bin/tfm_ns.hex %(ci_build_root_dir)s/nspe/bin/tfm_ns_signed.hex;"
Xinyu Zhang46b37182023-06-30 15:36:44 +0800241 "popd")
Minos Galanakisea421232019-06-20 17:11:28 +0100242 },
243
244 # (Optional) If set will fail if those artefacts are missing post build
245 "required_artefacts": {"all": [
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800246 "%(ci_build_root_dir)s/spe/bin/"
Xinyu Zhangb708f572020-09-15 11:43:46 +0800247 "tfm_s.bin",
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800248 "%(ci_build_root_dir)s/nspe/"
Xinyu Zhangb708f572020-09-15 11:43:46 +0800249 "tfm_ns.bin"],
Mark Horvathef57baa2022-09-12 13:36:36 +0200250 "arm/musca_b1": [
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800251 "%(ci_build_root_dir)s/tfm.hex",
252 "%(ci_build_root_dir)s/spe/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800253 "bl2.bin",
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800254 "%(ci_build_root_dir)s/spe/bin/"
Xinyu Zhangb708f572020-09-15 11:43:46 +0800255 "tfm_sign.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800256 "arm/musca_s1": [
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800257 "%(ci_build_root_dir)s/tfm.hex",
258 "%(ci_build_root_dir)s/spe/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800259 "bl2.bin",
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800260 "%(ci_build_root_dir)s/spe/bin/"
Jamie Fox9283cbc2024-04-22 13:40:01 +0100261 "tfm_sign.bin"],
Jamie Fox82a91d02024-09-27 14:54:14 +0100262 "arm/rse/tc/tc3": [
Jamie Fox9283cbc2024-04-22 13:40:01 +0100263 "%(ci_build_root_dir)s/spe/bin/rom.bin",
Raef Colesaac84bc2025-01-09 14:20:12 +0000264 "%(ci_build_root_dir)s/spe/bin/provisioning/combined_provisioning_message.bin",
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000265 "%(ci_build_root_dir)s/spe/bin/host_flash.bin"],
266 "arm/rse/tc/tc4": [
267 "%(ci_build_root_dir)s/spe/bin/rom.bin",
Raef Colesaac84bc2025-01-09 14:20:12 +0000268 "%(ci_build_root_dir)s/spe/bin/provisioning/combined_provisioning_message.bin",
Jamie Fox9283cbc2024-04-22 13:40:01 +0100269 "%(ci_build_root_dir)s/spe/bin/host_flash.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100270 }
271}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100272
Xinyu Zhangb708f572020-09-15 11:43:46 +0800273# List of all build configs that are impossible under all circumstances
274_common_tfm_invalid_configs = [
Xinyu Zhang459a1982021-07-21 22:34:49 +0800275 # LR_CODE size exceeds limit on MUSCA_B1 & MUSCA_S1 with regression tests in Debug mode built with ARMCLANG
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300276 ("arm/musca_b1", "ARMCLANG_6_21", "*", "RegBL2, RegS, RegNS", "OFF", "Debug", "*", "", "*"),
277 ("arm/musca_s1", "ARMCLANG_6_21", "*", "RegBL2, RegS, RegNS", "OFF", "Debug", "*", "", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800278 # Load range overlap on Musca for IPC Debug type: T895
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300279 ("arm/musca_b1", "ARMCLANG_6_21", "*", "*", "IPC", "Debug", "*", "*", "*"),
280 ("arm/musca_s1", "ARMCLANG_6_21", "*", "*", "IPC", "Debug", "*", "*", "*"),
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300281 # FF does not support L3
Summer Qin379abb62022-10-08 16:41:54 +0800282 ("*", "*", "3", "*", "IPC", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800283 # Musca requires BL2
Summer Qin379abb62022-10-08 16:41:54 +0800284 ("arm/musca_b1", "*", "*", "*", "*", "*", False, "*", "*"),
285 ("arm/musca_s1", "*", "*", "*", "*", "*", False, "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800286 # Only AN521 and MUSCA_B1 support Isolation Level 3
Summer Qin379abb62022-10-08 16:41:54 +0800287 ("arm/mps2/an519", "*", "3", "*", "*", "*", "*", "*", "*"),
288 ("arm/mps3/an524", "*", "3", "*", "*", "*", "*", "*", "*"),
289 ("arm/musca_s1", "*", "3", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800290 ]
291
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100292# Configure build manager to build several combinations
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800293# Config group for per-patch job
294config_pp_test = {"seed_params": {
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800295 # AN519_ARMCLANG_IPC_1_RegBL2_RegS_RegNS_Debug_BL2
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800296 "tfm_platform": ["arm/mps2/an519"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300297 "compiler": ["ARMCLANG_6_21"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800298 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800299 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800300 "test_psa_api": ["OFF"],
301 "cmake_build_type": ["Debug"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800302 "with_bl2": [True],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800303 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800304 "extra_params": [""]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800305 },
306 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800307 "valid": [
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800308 # AN519_ARMCLANG_2_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300309 ("arm/mps2/an519", "ARMCLANG_6_21", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800310 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800311 # AN519_GCC_2_RegBL2_RegS_RegNS_Release_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100312 ("arm/mps2/an519", "GCC_13_2", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800313 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
314 # AN519_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100315 ("arm/mps2/an519", "GCC_13_2", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800316 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
317 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_SMALL_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300318 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800319 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "profile_small", "PSOFF"),
320 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300321 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800322 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Chris Branddc827302024-10-11 15:20:17 -0700323 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_PSCLEAR
324 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
325 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", "PSCLEAR"),
326 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_PSLIMIT
327 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
328 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", "PSLIMIT"),
Jianliang Shen6984bef2023-07-25 10:36:56 +0800329 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_IPC
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300330 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Jianliang Shen6984bef2023-07-25 10:36:56 +0800331 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", "IPC"),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800332 # AN521_ARMCLANG_2_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300333 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800334 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
335 # AN521_ARMCLANG_3_RegBL2_RegS_RegNS_Minsizerel_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300336 ("arm/mps2/an521", "ARMCLANG_6_21", "3",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800337 "RegBL2, RegS, RegNS", "OFF", "Minsizerel", True, "", ""),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800338 # AN521_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100339 ("arm/mps2/an521", "GCC_13_2", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800340 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100341 # AN521_GCC_2_RegBL2_RegS_RegNS_Debug_BL2_MEDIUM
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100342 ("arm/mps2/an521", "GCC_13_2", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800343 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "profile_medium", ""),
344 # AN521_GCC_2_RegBL2_RegS_RegNS_Release_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100345 ("arm/mps2/an521", "GCC_13_2", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800346 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
347 # AN521_GCC_3_RegBL2_RegS_RegNS_Minsizerel_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100348 ("arm/mps2/an521", "GCC_13_2", "3",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800349 "RegBL2, RegS, RegNS", "OFF", "Minsizerel", True, "", ""),
Xinyu Zhang280f5ab2023-10-31 16:17:21 +0800350 # AN521_GCC_1_FF_Release_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100351 ("arm/mps2/an521", "GCC_13_2", "1",
Xinyu Zhang280f5ab2023-10-31 16:17:21 +0800352 "OFF", "IPC", "Release", True, "", ""),
353 # AN521_ARMCLANG_2_STORAGE_Debug_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300354 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Xinyu Zhang280f5ab2023-10-31 16:17:21 +0800355 "OFF", "STORAGE", "Debug", True, "", ""),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100356 # CS300_FVP_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100357 ("arm/mps3/corstone300/fvp", "GCC_13_2", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800358 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100359 # CS300_FVP_GCC_2_RegBL2_RegS_RegNS_Release_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100360 ("arm/mps3/corstone300/fvp", "GCC_13_2", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800361 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100362 # corstone310_ARMCLANG_1_Debug_BL2_PACBTI_STD
Nicola Mazzucatob4e19572024-08-21 12:26:14 +0100363 ("arm/mps3/corstone310/fvp", "ARMCLANG_6_21", "1",
Nicola Mazzucatob542f2b2024-05-23 10:13:43 +0100364 "OFF", "OFF", "Debug", True, "", "PACBTI_STD"),
Xinyu Zhang5c4f2182023-10-31 16:26:45 +0800365 # corstone1000_GCC_2_RegS_Debug_BL2_NSOFF_CS1K_TEST_FVP
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100366 ("arm/corstone1000", "GCC_13_2", "2",
Xinyu Zhang5c4f2182023-10-31 16:26:45 +0800367 "RegS", "OFF", "Debug", True, "", "NSOFF, CS1K_TEST, FVP"),
Matthew Dalzell397fb3c2024-06-21 11:03:38 +0100368 # corstone315_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2
369 ("arm/mps4/corstone315", "ARMCLANG_6_21", "1",
370 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Gergely Korcsák78a4d142024-08-05 07:41:36 +0200371 # corstone320_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2
372 ("arm/mps4/corstone320", "ARMCLANG_6_21", "1",
373 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800374 # MUSCA_B1_GCC_1_RegBL2_RegS_RegNS_Minsizerel_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100375 ("arm/musca_b1", "GCC_13_2", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800376 "RegBL2, RegS, RegNS", "OFF", "Minsizerel", True, "", ""),
377 # MUSCA_S1_ARMCLANG_2_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300378 ("arm/musca_s1", "ARMCLANG_6_21", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800379 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
380 # MUSCA_S1_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100381 ("arm/musca_s1", "GCC_13_2", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800382 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
383 # MUSCA_S1_GCC_2_RegBL2_RegS_RegNS_Release_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100384 ("arm/musca_s1", "GCC_13_2", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800385 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800386 # MUSCA_S1_GCC_1_RegBL2_RegS_RegNS_Release_BL2_CC_DRIVER_PSA
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100387 ("arm/musca_s1", "GCC_13_2", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800388 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "CC_DRIVER_PSA"),
Nicola Mazzucato8617ae92024-10-02 13:14:15 +0100389 # RSE_TC3_GCC_3_RegS_RegNS_Release_BL2_ATTESTATION_SCHEME_DPE
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100390 #("arm/rse/tc/tc3", "GCC_13_2", "3",
Antonio de Angelis78a01fc2025-02-06 11:11:25 +0000391 # "RegS, RegNS", "OFF", "Release", True, "", "ATTESTATION_SCHEME_DPE"),
Jamie Fox82a91d02024-09-27 14:54:14 +0100392 # RSE_TC3_GCC_2_RegBL1_1_Debug_BL2
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100393 #("arm/rse/tc/tc3", "GCC_13_2", "2",
Antonio de Angelis78a01fc2025-02-06 11:11:25 +0000394 # "RegBL1_1", "OFF", "Debug", True, "", ""),
Nicola Mazzucatob4763262024-09-26 12:39:06 +0100395 # RSE_TC3_GCC_2_Release_BL2_ATTESTATION_SCHEME_CCA
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100396 #("arm/rse/tc/tc3", "GCC_13_2", "2",
Antonio de Angelis78a01fc2025-02-06 11:11:25 +0000397 # "OFF", "OFF", "Release", True, "", "ATTESTATION_SCHEME_CCA"),
Tamas Ban33b2e382025-03-17 12:23:08 +0100398 # RSE_TC4_GCC_3_RegS_RegNS_Release_BL2_ATTESTATION_SCHEME_DPE
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100399 ("arm/rse/tc/tc4", "GCC_13_2", "3",
Tamas Ban33b2e382025-03-17 12:23:08 +0100400 "RegS, RegNS", "OFF", "Release", True, "", "ATTESTATION_SCHEME_DPE"),
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100401 # RSE_TC4_GCC_3_RegS_RegNS_Release_BL2_RSE_PROVISIONING_SYMMETRIC
402 ("arm/rse/tc/tc4", "GCC_13_2", "3",
403 "RegS, RegNS", "OFF", "Release", True, "", "RSE_PROVISIONING_SYMMETRIC"),
Jackson Cooper-Driver0ac3fe02025-02-20 09:23:03 +0000404 # RSE_TC4_GCC_2_Debug_BL2
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100405 ("arm/rse/tc/tc4", "GCC_13_2", "2",
Tamas Ban33b2e382025-03-17 12:23:08 +0100406 "OFF", "OFF", "Debug", True, "", ""),
Jackson Cooper-Driver042d0fa2025-03-03 12:45:54 +0000407 # RSE_TC4_GCC_2_RegBL1_1_Debug_BL2
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100408 ("arm/rse/tc/tc4", "GCC_13_2", "2",
Tamas Ban33b2e382025-03-17 12:23:08 +0100409 "RegBL1_1", "OFF", "Debug", True, "", ""),
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000410 # RSE_TC4_GCC_2_Release_BL2_ATTESTATION_SCHEME_CCA
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100411 ("arm/rse/tc/tc4", "GCC_13_2", "2",
Tamas Ban33b2e382025-03-17 12:23:08 +0100412 "OFF", "OFF", "Release", True, "", "ATTESTATION_SCHEME_CCA"),
Jackson Cooper-Drivere6e1db02025-05-16 10:45:20 +0100413 # RSE_TC4_GCC_2_RegS_RegNS_MinSizeRel_BL2_RSE_COPY_USE_ROM_LIB_IN_SRAM
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100414 ("arm/rse/tc/tc4", "GCC_13_2", "2",
Jackson Cooper-Drivere6e1db02025-05-16 10:45:20 +0100415 "RegS, RegNS", "OFF", "MinSizeRel", True, "", "RSE_COPY_USE_ROM_LIB_IN_SRAM"),
Ishan Deshpande80d840e2025-01-09 18:46:56 +0530416 # RSE_RDV3_GCC_2_Release_BL2_NSOFF_CFG0
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100417 ("arm/rse/neoverse_rd/rdv3", "GCC_13_2", "2",
Jamie Fox9283cbc2024-04-22 13:40:01 +0100418 "OFF", "OFF", "Release", True, "", "NSOFF, CFG0"),
Nicola Mazzucato75b76af2025-02-07 15:20:59 +0000419 # RSE_RDV3R1_GCC_2_Release_BL2_NSOFF_CFG0
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100420 ("arm/rse/neoverse_rd/rdv3r1", "GCC_13_2", "2",
Nicola Mazzucato75b76af2025-02-07 15:20:59 +0000421 "OFF", "OFF", "Release", True, "", "NSOFF, CFG0"),
Ziad Elhanafy937333f2024-05-22 14:17:40 +0100422 # RSE_RD1AE_GCC_2_Release_BL2_NSOFF
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100423 ("arm/rse/automotive_rd/rd1ae", "GCC_13_2", "2",
Ziad Elhanafy937333f2024-05-22 14:17:40 +0100424 "OFF", "OFF", "Release", True, "", "NSOFF"),
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800425 # stm32l562e_dk_ARMCLANG_1_RegS_RegNS_Release_BL2_CRYPTO_OFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300426 ("stm/stm32l562e_dk", "ARMCLANG_6_21", "1",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800427 "RegS, RegNS", "OFF", "Release", True, "", "CRYPTO_OFF"),
428 # stm32l562e_dk_GCC_2_Release_BL2_CRYPTO_ON
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100429 ("stm/stm32l562e_dk", "GCC_13_2", "2",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800430 "OFF", "OFF", "Release", True, "", "CRYPTO_ON"),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100431 # stm32l562e_dk_GCC_3_RegBL2_RegS_RegNS_Release_BL2_CRYPTO_OFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100432 ("stm/stm32l562e_dk", "GCC_13_2", "3",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800433 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "CRYPTO_OFF"),
Arthur She4f08c152023-05-15 15:29:14 -0700434 # b_u585i_iot02a_GCC_1_RegS_RegNS_Release_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100435 ("stm/b_u585i_iot02a", "GCC_13_2", "1",
Arthur She4f08c152023-05-15 15:29:14 -0700436 "RegS, RegNS", "OFF", "Release", True, "", ""),
437 # b_u585i_iot02a_ARMCLANG_2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300438 ("stm/b_u585i_iot02a", "ARMCLANG_6_21", "2",
Arthur She4f08c152023-05-15 15:29:14 -0700439 "RegS, RegNS", "OFF", "Release", True, "", ""),
Anton Komlev4164ab62024-02-23 10:59:56 +0100440 # stm32h573i_dk_GCC_1_RegS_RegNS_Release_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100441 ("stm/stm32h573i_dk", "GCC_13_2", "1",
Anton Komlev4164ab62024-02-23 10:59:56 +0100442 "RegS, RegNS", "OFF", "Release", True, "", ""),
443 # stm32h573i_dk_ARMCLANG_2_RegS_RegNS_Release_BL2
444 ("stm/stm32h573i_dk", "ARMCLANG_6_21", "2",
445 "RegS, RegNS", "OFF", "Release", True, "", ""),
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800446 # psoc64_GCC_2_RegS_RegNS_Release
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100447 ("cypress/psoc64", "GCC_13_2", "2",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800448 "RegS, RegNS", "OFF", "Release", False, "", ""),
Nicola Mazzucato4bad6c62024-10-28 14:42:17 +0000449 # rp2350_GCC_2_RegBL2_RegS_RegNS_Release_BL2_MEDIUM
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100450 ("rpi/rp2350", "GCC_13_2", "2",
Nicola Mazzucato4bad6c62024-10-28 14:42:17 +0000451 "RegBL2, RegS, RegNS", "OFF", "Release", True, "profile_medium", ""),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800452 ],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800453 "invalid": _common_tfm_invalid_configs + []
454 }
455
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800456# Config group for nightly job
457config_nightly_test = {"seed_params": {
458 "tfm_platform": ["arm/mps2/an519",
459 "arm/mps2/an521",
460 "arm/mps3/an524",
461 "arm/musca_s1",
Mark Horvathef57baa2022-09-12 13:36:36 +0200462 "arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100463 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800464 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800465 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800466 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800467 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800468 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800469 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800470 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100471 },
472 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800473 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100474 }
475
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000476config_all_plat = {
477 # corstone1000_GCC_2_RegS_Release_BL2_NSOFF_CS1K_TEST_FVP
478 "seed_params": {
479 "tfm_platform": ["arm/corstone1000"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100480 "compiler": ["GCC_13_2"],
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000481 "isolation_level": ["2"],
482 "test_regression": ["RegS"],
483 "test_psa_api": ["OFF"],
484 "cmake_build_type": ["Release"],
485 "with_bl2": [True],
486 "profile": [""],
487 "extra_params": ["NSOFF, CS1K_TEST, FVP"]
488 },
489 "common_params": _common_tfm_builder_cfg,
490 "valid": [
491 # AN521_GCC_3_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100492 ("arm/mps2/an521", "GCC_13_2", "3",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000493 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
494 # AN519_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100495 ("arm/mps2/an519", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000496 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
497 # AN524_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100498 ("arm/mps3/an524", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000499 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
500 # CS300_AN547_GCC_1_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100501 ("arm/mps3/corstone300/an547", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000502 "OFF", "OFF", "Debug", True, "", ""),
503 # CS300_AN552_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100504 ("arm/mps3/corstone300/an552", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000505 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
506 # CS300_FVP_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100507 ("arm/mps3/corstone300/fvp", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000508 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
509 # corstone310_GCC_1_Debug_BL2_NSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100510 ("arm/mps3/corstone310/fvp", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000511 "OFF", "OFF", "Debug", True, "", "NSOFF"),
512 # corstone315_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100513 ("arm/mps4/corstone315", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000514 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
515 # corstone320_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100516 ("arm/mps4/corstone320", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000517 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
518 # MUSCA_B1_GCC_3_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100519 ("arm/musca_b1", "GCC_13_2", "3",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000520 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
521 # MUSCA_S1_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100522 ("arm/musca_s1", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000523 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
524 # RSE_TC3_GCC_3_RegS_RegNS_Debug_BL2_ATTESTATION_SCHEME_DPE
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100525 ("arm/rse/tc/tc3", "GCC_13_2", "3",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000526 "RegS, RegNS", "OFF", "Debug", True, "", "ATTESTATION_SCHEME_DPE"),
527 # psoc64_GCC_2_RegS_RegNS_Release
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100528 ("cypress/psoc64", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000529 "RegS, RegNS", "OFF", "Release", False, "", ""),
530 ## BL5340_GCC_1_Debug_BL2_NSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100531 #("lairdconnectivity/bl5340_dvk_cpuapp", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000532 # "OFF", "OFF", "Debug", True, "", "NSOFF"),
533 ## nrf5340dk_GCC_1_Debug_BL2_NSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100534 #("nordic_nrf/nrf5340dk_nrf5340_cpuapp", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000535 # "OFF", "OFF", "Release", True, "", "NSOFF"),
536 ## nrf9160dk_GCC_1_Debug_BL2_NSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100537 #("nordic_nrf/nrf9160dk_nrf9160", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000538 # "OFF", "OFF", "Release", True, "", "NSOFF"),
539 ## M2351_GCC_1_Release_BL2_NSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100540 #("nuvoton/m2351", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000541 # "OFF", "OFF", "Release", True, "", "NSOFF"),
542 # M2354_GCC_1_Debug_BL2_NSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100543 ("nuvoton/m2354", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000544 "OFF", "OFF", "Debug", True, "", "NSOFF"),
545 # lpcxpresso55s69_GCC_2_RegS_RegNS_Relwithdebinfo_MEDIUM
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100546 ("nxp/lpcxpresso55s69", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000547 "RegS, RegNS", "OFF", "Relwithdebinfo", False, "profile_medium", ""),
548 # rp2350_GCC_2_RegBL2_RegS_RegNS_RelWithDebInfo_BL2_MEDIUM
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100549 ("rpi/rp2350", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000550 "RegBL2, RegS, RegNS", "OFF", "Relwithdebinfo", True, "profile_medium", ""),
551 # b_u585i_iot02a_GCC_2_RegS_RegNS_Release_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100552 ("stm/b_u585i_iot02a", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000553 "RegS, RegNS", "OFF", "Release", True, "", ""),
554 # nucleo_l552ze_q_GCC_1_Release_BL2_NSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100555 ("stm/nucleo_l552ze_q", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000556 "OFF", "OFF", "Release", True, "", "NSOFF"),
557 # stm32h573i_dk_GCC_2_RegS_RegNS_Release_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100558 ("stm/stm32h573i_dk", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000559 "RegS, RegNS", "OFF", "Release", True, "", ""),
560 # stm32l562e_dk_GCC_3_RegBL2_RegS_RegNS_Release_BL2_CRYPTO_OFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100561 ("stm/stm32l562e_dk", "GCC_13_2", "3",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000562 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "CRYPTO_OFF"),
563 # stm32l562e_dk_GCC_3_Release_BL2_CRYPTO_ON
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100564 ("stm/stm32l562e_dk", "GCC_13_2", "3",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000565 "OFF", "OFF", "Release", True, "", "CRYPTO_ON"),
Matthew Dalzell8fbf3562025-05-13 14:46:50 +0100566 # stm32wba65i_dk_GCC_2_RegS_RegNS_Release_MEDIUM
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100567 ("stm/stm32wba65i_dk", "GCC_13_2", "2",
Matthew Dalzell8fbf3562025-05-13 14:46:50 +0100568 "RegS, RegNS", "OFF", "Release", False, "profile_medium", ""),
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000569 ],
570 "invalid": _common_tfm_invalid_configs + []
571 }
572
573
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800574# Config group for release job
575config_release_test = {"seed_params": {
576 "tfm_platform": ["arm/mps2/an519",
577 "arm/mps2/an521",
578 "arm/mps3/an524",
Mark Horvathef57baa2022-09-12 13:36:36 +0200579 "arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800580 "arm/musca_s1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100581 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800582 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800583 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800584 "test_psa_api": ["OFF"],
585 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800586 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800587 "profile": [""],
David Vinczed78e2622022-11-24 15:04:00 +0100588 "extra_params": ["TEST_CBOR"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800589 },
590 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800591 "valid": [
592 # sanity test for GCC v11.2
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800593 # AN521_GCC_3_RegBL2_RegS_RegNS_Relwithdebinfo_BL2
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800594 ("arm/mps2/an521", "GCC_11_2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800595 "3", "RegBL2, RegS, RegNS", "OFF", "Relwithdebinfo",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800596 True, "", ""),
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800597 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800598 "invalid": _common_tfm_invalid_configs + []
599 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800600
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800601# Config groups for TF-M features
602config_profile_s = {"seed_params": {
David Huda27ae72022-03-28 15:32:19 +0800603 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100604 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
David Huda27ae72022-03-28 15:32:19 +0800605 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800606 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
David Huda27ae72022-03-28 15:32:19 +0800607 "test_psa_api": ["OFF"],
608 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
David Huda27ae72022-03-28 15:32:19 +0800609 "with_bl2": [True],
David Huda27ae72022-03-28 15:32:19 +0800610 "profile": ["profile_small"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800611 "extra_params": ["PSOFF"]
David Huda27ae72022-03-28 15:32:19 +0800612 },
613 "common_params": _common_tfm_builder_cfg,
David Huda27ae72022-03-28 15:32:19 +0800614 "invalid": _common_tfm_invalid_configs + [
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100615 ("arm/mps2/an519", "GCC_13_2", "*", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800616 "*", "Minsizerel", "*", "*", "*")
David Huda27ae72022-03-28 15:32:19 +0800617 ]
618 }
619
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800620config_profile_m = {"seed_params": {
621 "tfm_platform": ["arm/mps2/an519",
622 "arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200623 "arm/musca_b1"],
Nicola Mazzucato596fe7e2025-05-28 21:42:16 +0100624 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800625 "isolation_level": ["2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800626 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800627 "test_psa_api": ["OFF"],
628 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800629 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800630 "profile": ["profile_medium"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800631 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800632 },
633 "common_params": _common_tfm_builder_cfg,
634 "invalid": _common_tfm_invalid_configs + []
635 }
636
David Hu3d333762022-10-27 18:12:33 +0800637config_profile_m_arotless = {"seed_params": {
638 "tfm_platform": ["arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100639 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
David Hu3d333762022-10-27 18:12:33 +0800640 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800641 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
David Hu3d333762022-10-27 18:12:33 +0800642 "test_psa_api": ["OFF"],
643 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
644 "with_bl2": [True],
645 "profile": ["profile_medium_arotless"],
646 "extra_params": ["", "PSOFF"]
647 },
648 "common_params": _common_tfm_builder_cfg,
649 "invalid": _common_tfm_invalid_configs + []
650 }
651
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800652config_profile_l = {"seed_params": {
653 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100654 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800655 "isolation_level": ["3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800656 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800657 "test_psa_api": ["OFF"],
658 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800659 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800660 "profile": ["profile_large"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800661 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800662 },
663 "common_params": _common_tfm_builder_cfg,
664 "invalid": _common_tfm_invalid_configs + []
665 }
666
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800667config_ipc_backend = {"seed_params": {
668 "tfm_platform": ["arm/mps2/an519",
669 "arm/mps2/an521",
670 "arm/musca_s1",
671 "arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100672 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800673 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800674 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800675 "test_psa_api": ["OFF"],
676 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
677 "with_bl2": [True],
678 "profile": [""],
679 "extra_params": ["IPC"]
680 },
681 "common_params": _common_tfm_builder_cfg,
682 "invalid": _common_tfm_invalid_configs + []
683 }
684
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800685config_cc_driver_psa = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200686 "tfm_platform": ["arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800687 "arm/musca_s1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100688 "compiler": ["GCC_13_2"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800689 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800690 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800691 "test_psa_api": ["OFF"],
692 "cmake_build_type": ["Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800693 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800694 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800695 "extra_params": ["CC_DRIVER_PSA"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800696 },
697 "common_params": _common_tfm_builder_cfg,
698 "invalid": _common_tfm_invalid_configs + []
699 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100700
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800701config_fp = {"seed_params": {
Xinyu Zhange91567c2023-09-13 14:10:11 +0800702 "tfm_platform": ["arm/mps2/an521",
703 "arm/mps3/corstone300/an552",
704 "arm/mps3/corstone300/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100705 "compiler": ["GCC_13_2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800706 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800707 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800708 "test_psa_api": ["OFF"],
709 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800710 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800711 "profile": [""],
Mark Horvath93cb5fb2022-09-06 17:51:24 +0200712 "extra_params": ["FPOFF", "FPON", "FPON, LZOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800713 },
714 "common_params": _common_tfm_builder_cfg,
715 "invalid": _common_tfm_invalid_configs + []
716 }
Karl Zhangeffed972020-06-30 15:48:01 +0800717
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800718config_psa_api = {"seed_params": {
719 "tfm_platform": ["arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200720 "arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800721 "arm/musca_s1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100722 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800723 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800724 "test_regression": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800725 "test_psa_api": ["IPC",
726 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800727 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800728 "STORAGE"],
Antonio de Angelis240495b2025-03-30 22:46:54 +0100729 "cmake_build_type": ["Release", "Minsizerel"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800730 "with_bl2": [True],
Antonio de Angelis240495b2025-03-30 22:46:54 +0100731 "profile": ["profile_large"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800732 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800733 },
734 "common_params": _common_tfm_builder_cfg,
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300735 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800736 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800737
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800738config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800739 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100740 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800741 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800742 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800743 "test_psa_api": ["OFF"],
744 "cmake_build_type": ["Debug"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800745 "with_bl2": [True],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800746 "profile": [""],
Xinyu Zhang67612992021-12-20 14:11:27 +0800747 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800748 },
749 "common_params": _common_tfm_builder_cfg,
750 "invalid": _common_tfm_invalid_configs + []
751 }
752
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800753config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800754 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100755 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800756 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800757 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800758 "test_psa_api": ["OFF"],
759 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800760 "with_bl2": [True],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800761 "profile": [""],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800762 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800763 },
764 "common_params": _common_tfm_builder_cfg,
765 "invalid": _common_tfm_invalid_configs + []
766 }
767
Bence Balogh79fda442022-10-14 18:01:37 +0200768# Config groups for TF-M examples
769config_example_vad = {"seed_params": {
Bence Balogh1aa8d582023-08-29 13:10:02 +0200770 "tfm_platform": ["arm/mps3/corstone300/an552"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100771 "compiler": ["GCC_13_2"],
Bence Balogh79fda442022-10-14 18:01:37 +0200772 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800773 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200774 "test_psa_api": ["OFF"],
775 "cmake_build_type": ["Release"],
776 "with_bl2": [True],
777 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200778 "extra_params": ["EXTRAS_EXAMPLE_VAD"]
Bence Balogh79fda442022-10-14 18:01:37 +0200779 },
780 "common_params": _common_tfm_builder_cfg,
781 "invalid": _common_tfm_invalid_configs + []
782 }
783
Bence Balogh852f8bd2023-08-07 14:46:54 +0200784config_example_dma350_clcd = {"seed_params": {
Bence Balogh79fda442022-10-14 18:01:37 +0200785 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100786 "compiler": ["GCC_13_2"],
Bence Balogh79fda442022-10-14 18:01:37 +0200787 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800788 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200789 "test_psa_api": ["OFF"],
790 "cmake_build_type": ["Release"],
791 "with_bl2": [True],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200792 "profile": ["profile_medium"],
793 "extra_params": ["EXTRAS_EXAMPLE_DMA350_CLCD"]
Bence Balogh79fda442022-10-14 18:01:37 +0200794 },
795 "common_params": _common_tfm_builder_cfg,
796 "invalid": _common_tfm_invalid_configs + []
797 }
798
799config_example_dma350_s = {"seed_params": {
800 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100801 "compiler": ["GCC_13_2"],
Bence Balogh79fda442022-10-14 18:01:37 +0200802 "isolation_level": ["1"],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200803 "test_regression": ["RegS"],
Bence Balogh79fda442022-10-14 18:01:37 +0200804 "test_psa_api": ["OFF"],
805 "cmake_build_type": ["Release"],
806 "with_bl2": [True],
807 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200808 "extra_params": ["EXTRAS_EXAMPLE_DMA350_S"]
Bence Balogh79fda442022-10-14 18:01:37 +0200809 },
810 "common_params": _common_tfm_builder_cfg,
811 "invalid": _common_tfm_invalid_configs + []
812 }
813
Bence Baloghd23cbda2023-08-07 15:30:58 +0200814config_example_dma350_ns = {"seed_params": {
815 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100816 "compiler": ["GCC_13_2"],
Bence Baloghd23cbda2023-08-07 15:30:58 +0200817 "isolation_level": ["1"],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200818 "test_regression": ["RegS, RegNS"],
Bence Baloghd23cbda2023-08-07 15:30:58 +0200819 "test_psa_api": ["OFF"],
820 "cmake_build_type": ["Release"],
821 "with_bl2": [True],
822 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200823 "extra_params": ["EXTRAS_EXAMPLE_DMA350_NS"]
Bence Baloghd23cbda2023-08-07 15:30:58 +0200824 },
825 "common_params": _common_tfm_builder_cfg,
826 "invalid": _common_tfm_invalid_configs + []
827 }
828
Bence Balogh79fda442022-10-14 18:01:37 +0200829config_example_dma350_trigger = {"seed_params": {
830 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100831 "compiler": ["GCC_13_2"],
Bence Balogh79fda442022-10-14 18:01:37 +0200832 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800833 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200834 "test_psa_api": ["OFF"],
835 "cmake_build_type": ["Release"],
836 "with_bl2": [True],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200837 "profile": ["profile_medium"],
838 "extra_params": ["EXTRAS_EXAMPLE_DMA350_TRIGGER"]
Bence Balogh79fda442022-10-14 18:01:37 +0200839 },
840 "common_params": _common_tfm_builder_cfg,
841 "invalid": _common_tfm_invalid_configs + []
842 }
843
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300844config_misra = {"seed_params": {
845 "tfm_platform": ["arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100846 "compiler": ["GCC_13_2"],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300847 "isolation_level": ["1"],
848 "test_regression": ["OFF"],
849 "test_psa_api": ["OFF"],
850 "cmake_build_type": ["Debug"],
851 "with_bl2": [True],
Matthew Dalzellb7895ae2025-04-10 12:30:01 +0100852 "profile": ["profile_small", "profile_medium_arotless"],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300853 "extra_params": ["PSOFF"]
854 },
855 "common_params": _common_tfm_builder_cfg,
Xinyu Zhange17926f2023-08-14 11:00:43 +0800856 "valid": [
857 # MUSCA_B1_GCC_2_Debug_BL2_MEDIUM_PSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100858 ("arm/musca_b1", "GCC_13_2", "2", "OFF",
Xinyu Zhange17926f2023-08-14 11:00:43 +0800859 "OFF", "Debug", True, "profile_medium", "PSOFF"),
860 # MUSCA_B1_GCC_3_Debug_BL2_LARGE_PSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100861 ("arm/musca_b1", "GCC_13_2", "3", "OFF",
Xinyu Zhange17926f2023-08-14 11:00:43 +0800862 "OFF", "Debug", True, "profile_large", "PSOFF"),
863 ],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300864 "invalid": _common_tfm_invalid_configs + []
865 }
866
Paul Sokolovskya526e5d2023-06-15 09:49:13 +0300867config_misra_debug = {"seed_params": {
868 "tfm_platform": ["arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100869 "compiler": ["GCC_13_2"],
Paul Sokolovskya526e5d2023-06-15 09:49:13 +0300870 "isolation_level": ["1"],
871 "test_regression": ["OFF"],
872 "test_psa_api": ["OFF"],
873 "cmake_build_type": ["Debug"],
874 "with_bl2": [True],
875 "profile": ["profile_small"],
876 "extra_params": ["PSOFF"]
877 },
878 "common_params": _common_tfm_builder_cfg,
879 "invalid": _common_tfm_invalid_configs + []
880 }
881
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800882# Config groups for code coverage
883config_cov_profile_s = deepcopy(config_profile_s)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800884config_cov_profile_s["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100885config_cov_profile_s["seed_params"]["compiler"] = ["GCC_13_2"]
Xinyu Zhangbdc37e32022-04-06 17:47:44 +0800886
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800887config_cov_profile_m = deepcopy(config_profile_m)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800888config_cov_profile_m["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100889config_cov_profile_m["seed_params"]["compiler"] = ["GCC_13_2"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800890
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800891config_cov_profile_l = deepcopy(config_profile_l)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800892config_cov_profile_l["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100893config_cov_profile_l["seed_params"]["compiler"] = ["GCC_13_2"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800894
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800895config_cov_ipc_backend = deepcopy(config_ipc_backend)
896config_cov_ipc_backend["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100897config_cov_ipc_backend["seed_params"]["compiler"] = ["GCC_13_2"]
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800898
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800899config_cov_nsce = deepcopy(config_nsce)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800900config_cov_nsce["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100901config_cov_nsce["seed_params"]["compiler"] = ["GCC_13_2"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800902
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800903config_cov_mmio = deepcopy(config_mmio)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800904config_cov_mmio["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100905config_cov_mmio["seed_params"]["compiler"] = ["GCC_13_2"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800906
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800907config_cov_fp = deepcopy(config_fp)
908config_cov_fp["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100909config_cov_fp["seed_params"]["compiler"] = ["GCC_13_2"]
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800910
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800911# Config groups for platforms
912config_an519 = {"seed_params": {
Xinyu Zhangf25856a2021-06-17 14:06:46 +0800913 "tfm_platform": ["arm/mps2/an519"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100914 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800915 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800916 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800917 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800918 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800919 "with_bl2": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800920 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800921 "extra_params": ["", "NSOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800922 },
923 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800924 "invalid": _common_tfm_invalid_configs + []
925 }
926
927config_an521 = {"seed_params": {
928 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100929 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800930 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800931 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800932 "test_psa_api": ["OFF"],
933 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800934 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800935 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800936 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800937 },
938 "common_params": _common_tfm_builder_cfg,
939 "invalid": _common_tfm_invalid_configs + []
940 }
941
942config_an524 = {"seed_params": {
943 "tfm_platform": ["arm/mps3/an524"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100944 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800945 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800946 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800947 "test_psa_api": ["OFF"],
948 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800949 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800950 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800951 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800952 },
953 "common_params": _common_tfm_builder_cfg,
954 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800955 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000956
Bence Balogh1aa8d582023-08-29 13:10:02 +0200957config_cs300_an547 = {"seed_params": {
958 "tfm_platform": ["arm/mps3/corstone300/an547"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100959 "compiler": ["GCC_13_2"],
Bence Balogh1aa8d582023-08-29 13:10:02 +0200960 "isolation_level": ["1"],
961 "test_regression": ["OFF"],
962 "test_psa_api": ["OFF"],
963 "cmake_build_type": ["Debug"],
964 "with_bl2": [True],
965 "profile": [""],
966 "extra_params": [""]
967 },
968 "common_params": _common_tfm_builder_cfg,
969 "invalid": _common_tfm_invalid_configs + []
970 }
Xinyu Zhang38b76742021-11-11 13:57:56 +0800971
Bence Balogh1aa8d582023-08-29 13:10:02 +0200972config_cs300_an552 = {"seed_params": {
973 "tfm_platform": ["arm/mps3/corstone300/an552"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100974 "compiler": ["GCC_13_2"],
Bence Balogh1aa8d582023-08-29 13:10:02 +0200975 "isolation_level": ["1", "2"],
976 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
977 "test_psa_api": ["OFF"],
978 "cmake_build_type": ["Debug", "Release"],
979 "with_bl2": [True],
980 "profile": [""],
981 "extra_params": [""]
982 },
983 "common_params": _common_tfm_builder_cfg,
984 "invalid": _common_tfm_invalid_configs + []
985 }
986
987config_cs300_fvp = {"seed_params": {
988 "tfm_platform": ["arm/mps3/corstone300/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100989 "compiler": ["GCC_13_2"],
Bence Balogh1aa8d582023-08-29 13:10:02 +0200990 "isolation_level": ["1", "2"],
991 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
992 "test_psa_api": ["OFF"],
993 "cmake_build_type": ["Debug", "Release"],
994 "with_bl2": [True],
995 "profile": [""],
996 "extra_params": [""]
997 },
998 "common_params": _common_tfm_builder_cfg,
999 "invalid": _common_tfm_invalid_configs + []
1000 }
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001001
1002config_musca_b1 = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +02001003 "tfm_platform": ["arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001004 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001005 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001006 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001007 "test_psa_api": ["OFF"],
1008 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001009 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001010 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001011 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001012 },
1013 "common_params": _common_tfm_builder_cfg,
1014 "invalid": _common_tfm_invalid_configs + []
1015 }
1016
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001017config_musca_s1 = {"seed_params": {
1018 "tfm_platform": ["arm/musca_s1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001019 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001020 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001021 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001022 "test_psa_api": ["OFF"],
1023 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001024 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001025 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001026 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001027 },
1028 "common_params": _common_tfm_builder_cfg,
1029 "invalid": _common_tfm_invalid_configs + []
1030 }
1031
Bence Balogh8731a092022-05-24 17:24:54 +02001032config_corstone310 = {"seed_params": {
Bence Balogh23d8fa72022-11-08 12:16:23 +01001033 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001034 "compiler": ["GCC_13_2"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001035 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001036 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001037 "test_psa_api": ["OFF"],
1038 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001039 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001040 "profile": [""],
Gergely Korcsák6abc66c2025-04-29 14:55:33 +02001041 "extra_params": ["NSOFF", "PROV_TFM_DUMMY", "PROV_MCUBOOT_GEN_KEYS"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001042 },
1043 "common_params": _common_tfm_builder_cfg,
1044 "invalid": _common_tfm_invalid_configs + []
1045 }
1046
Nicola Mazzucatobde5d432024-05-20 11:43:18 +01001047config_corstone310_pacbti = {"seed_params": {
1048 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Nicola Mazzucatob4e19572024-08-21 12:26:14 +01001049 "compiler": ["ARMCLANG_6_21"],
Nicola Mazzucatobde5d432024-05-20 11:43:18 +01001050 "isolation_level": ["1"],
1051 "test_regression": ["OFF"],
1052 "test_psa_api": ["OFF"],
1053 "cmake_build_type": ["Debug"],
1054 "with_bl2": [True],
1055 "profile": [""],
1056 "extra_params": ["PACBTI_STD"]
1057 },
1058 "common_params": _common_tfm_builder_cfg,
1059 "invalid": _common_tfm_invalid_configs + []
1060 }
1061
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001062config_corstone315 = {"seed_params": {
1063 "tfm_platform": ["arm/mps4/corstone315"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001064 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001065 "isolation_level": ["1"],
Gergely Korcsáka403e222024-04-09 10:51:00 +02001066 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001067 "test_psa_api": ["OFF"],
1068 "cmake_build_type": ["Debug", "Release"],
1069 "with_bl2": [True],
1070 "profile": [""],
1071 "extra_params": [""]
1072 },
1073 "common_params": _common_tfm_builder_cfg,
1074 "invalid": _common_tfm_invalid_configs + []
1075 }
1076
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001077config_corstone320 = {"seed_params": {
1078 "tfm_platform": ["arm/mps4/corstone320"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001079 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001080 "isolation_level": ["1"],
1081 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
1082 "test_psa_api": ["OFF"],
1083 "cmake_build_type": ["Debug", "Release"],
1084 "with_bl2": [True],
1085 "profile": [""],
1086 "extra_params": [""]
1087 },
1088 "common_params": _common_tfm_builder_cfg,
1089 "invalid": _common_tfm_invalid_configs + []
1090 }
1091
Jamie Fox82a91d02024-09-27 14:54:14 +01001092config_rse_tc3 = {"seed_params": {
1093 "tfm_platform": ["arm/rse/tc/tc3"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001094 "compiler": ["GCC_13_2"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +01001095 "isolation_level": ["1", "2", "3"],
Jamie Fox9283cbc2024-04-22 13:40:01 +01001096 "test_regression": ["OFF", "RegS, RegNS"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001097 "test_psa_api": ["OFF"],
1098 "cmake_build_type": ["Debug", "Release"],
1099 "with_bl2": [True],
1100 "profile": [""],
Nicola Mazzucato551c5f32024-10-02 09:43:04 +01001101 "extra_params": ["ATTESTATION_SCHEME_DPE"]
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001102 },
1103 "common_params": _common_tfm_builder_cfg,
Jamie Fox9e2c2352023-01-13 15:11:23 +00001104 "invalid": _common_tfm_invalid_configs + [
Jamie Fox5ae6fa42024-02-19 15:11:00 +00001105 # BL2 is too large for RSE in Debug builds with tests
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001106 ("arm/rse/tc/tc3", "GCC_13_2", "*", "RegBL2, RegS, RegNS", "*",
Jamie Fox9e2c2352023-01-13 15:11:23 +00001107 "Debug", True, "*", "*"),
1108 ]
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001109 }
1110
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001111config_rse_tc4 = {"seed_params": {
1112 "tfm_platform": ["arm/rse/tc/tc4"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001113 "compiler": ["GCC_13_2"],
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001114 "isolation_level": ["1", "2", "3"],
Jackson Cooper-Driver042d0fa2025-03-03 12:45:54 +00001115 "test_regression": ["OFF", "RegS, RegNS", "RegBL1_1"],
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001116 "test_psa_api": ["OFF"],
1117 "cmake_build_type": ["Debug", "Release"],
1118 "with_bl2": [True],
1119 "profile": [""],
Jackson Cooper-Driver49350442025-05-29 14:13:45 +01001120 "extra_params": ["ATTESTATION_SCHEME_DPE", "RSE_PROVISIONING_SYMMETRIC"]
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001121 },
1122 "common_params": _common_tfm_builder_cfg,
1123 "invalid": _common_tfm_invalid_configs + [
1124 # BL2 is too large for RSE in Debug builds with tests
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001125 ("arm/rse/tc/tc4", "GCC_13_2", "*", "RegBL2, RegS, RegNS", "*",
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001126 "Debug", True, "*", "*"),
Jackson Cooper-Drivere6e1db02025-05-16 10:45:20 +01001127 ],
1128 "valid": [
1129 ("arm/rse/tc/tc4", "*", "*", "*", "*",
1130 "MinSizeRel", True, "*", "RSE_COPY_USE_ROM_LIB_IN_SRAM"),
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001131 ]
1132 }
1133
Nicola Mazzucatoe932bd72025-04-14 17:11:10 +01001134# RSE-specific build-only cases.
1135# New cases should be better added in the valid section
1136# This group is only consumed in "tf-m-extra-build" CI job
1137config_rse_build_only = {"seed_params": {
1138 "tfm_platform": ["arm/rse/tc/tc4"],
1139 "compiler": ["ARMCLANG_6_21"],
1140 "isolation_level": ["2"],
1141 "test_regression": ["OFF"],
1142 "test_psa_api": ["OFF"],
1143 "cmake_build_type": ["Release"],
1144 "with_bl2": [True],
1145 "profile": [""],
1146 "extra_params": ["ATTESTATION_SCHEME_CCA, RSE_SUPPORT_ROM_LIB_RELOCATION_OFF"]
1147 },
1148 "common_params": _common_tfm_builder_cfg,
1149 "invalid": _common_tfm_invalid_configs + []
1150 }
1151
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301152config_rse_rdv3 = {"seed_params": {
Antonio de Angelis373187e2025-01-11 22:09:30 +00001153 "tfm_platform": ["arm/rse/neoverse_rd/rdv3"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001154 "compiler": ["GCC_13_2"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +01001155 "isolation_level": ["1", "2", "3"],
Joel Goddard2dd81a12024-01-23 15:10:08 +00001156 "test_regression": ["OFF"],
1157 "test_psa_api": ["OFF"],
1158 "cmake_build_type": ["Debug", "Release"],
1159 "with_bl2": [True],
1160 "profile": [""],
Jamie Fox9283cbc2024-04-22 13:40:01 +01001161 "extra_params": ["NSOFF, CFG0"]
Joel Goddard2dd81a12024-01-23 15:10:08 +00001162 },
1163 "common_params": _common_tfm_builder_cfg,
1164 "invalid": _common_tfm_invalid_configs + []
1165 }
1166
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001167config_rse_rdv3r1 = {"seed_params": {
1168 "tfm_platform": ["arm/rse/neoverse_rd/rdv3r1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001169 "compiler": ["GCC_13_2"],
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001170 "isolation_level": ["1", "2"],
1171 "test_regression": ["OFF"],
1172 "test_psa_api": ["OFF"],
1173 "cmake_build_type": ["Debug", "Release"],
1174 "with_bl2": [True],
1175 "profile": [""],
1176 "extra_params": ["NSOFF, CFG0"]
1177 },
1178 "common_params": _common_tfm_builder_cfg,
1179 "invalid": _common_tfm_invalid_configs + []
1180 }
1181
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001182config_rse_rd1ae = {"seed_params": {
1183 "tfm_platform": ["arm/rse/automotive_rd/rd1ae"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001184 "compiler": ["GCC_13_2"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +01001185 "isolation_level": ["1", "2", "3"],
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001186 "test_regression": ["OFF"],
1187 "test_psa_api": ["OFF"],
1188 "cmake_build_type": ["Debug", "Release"],
1189 "with_bl2": [True],
1190 "profile": [""],
1191 "extra_params": ["NSOFF"]
1192 },
1193 "common_params": _common_tfm_builder_cfg,
1194 "invalid": _common_tfm_invalid_configs + []
1195 }
1196
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001197config_psoc64 = {"seed_params": {
1198 "tfm_platform": ["cypress/psoc64"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001199 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001200 "isolation_level": ["1", "2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001201 "test_regression": ["RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001202 "test_psa_api": ["OFF"],
1203 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001204 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001205 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001206 "extra_params": [""]
1207 },
1208 "common_params": _common_tfm_builder_cfg,
1209 "invalid": _common_tfm_invalid_configs + []
1210 }
1211
1212config_corstone1000 = {"seed_params": {
1213 "tfm_platform": ["arm/corstone1000"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001214 "compiler": ["GCC_13_2"],
Xinyu Zhang5c4f2182023-10-31 16:26:45 +08001215 "isolation_level": ["1", "2"],
Emekcan Arasf8b39802023-04-24 10:15:22 +01001216 "test_regression": ["RegS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001217 "test_psa_api": ["OFF"],
Matthew Dalzellfc808ea2025-04-16 18:42:16 +01001218 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001219 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001220 "profile": [""],
Xinyu Zhang09acfbf2023-10-30 18:30:48 +08001221 "extra_params": ["NSOFF, CS1K_TEST, FVP", "NSOFF, CS1K_TEST, FPGA"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001222 },
1223 "common_params": _common_tfm_builder_cfg,
1224 "invalid": _common_tfm_invalid_configs + []
1225 }
1226
1227config_stm32l562e_dk = {"seed_params": {
1228 "tfm_platform": ["stm/stm32l562e_dk"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001229 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001230 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001231 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001232 "test_psa_api": ["OFF"],
1233 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001234 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001235 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001236 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
1237 },
1238 "common_params": _common_tfm_builder_cfg,
1239 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001240 # Oversize issue on config stm32l562e_dk_ARMCLANG_1_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001241 ("stm/stm32l562e_dk", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001242 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "*"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001243 # all other tests are off when CRYPTO is ON
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001244 ("stm/stm32l562e_dk", "*", "*", "RegBL2, RegS, RegNS", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +08001245 "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001246 # all other tests are ON when CRYPTO is OFF
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001247 ("stm/stm32l562e_dk", "*", "*", "OFF", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +08001248 "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001249 ]
1250 }
1251
1252config_b_u585i_iot02a = {"seed_params": {
1253 "tfm_platform": ["stm/b_u585i_iot02a"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001254 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Arthur She026ebb62023-02-08 18:47:39 -08001255 "isolation_level": ["1", "2"],
Arthur She96c6f772023-05-09 21:32:50 -07001256 "test_regression": ["OFF", "RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001257 "test_psa_api": ["OFF"],
1258 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001259 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001260 "profile": [""],
Arthur She026ebb62023-02-08 18:47:39 -08001261 "extra_params": [""]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001262 },
1263 "common_params": _common_tfm_builder_cfg,
1264 "invalid": _common_tfm_invalid_configs + []
1265 }
1266
Anton Komlev4164ab62024-02-23 10:59:56 +01001267config_stm32h573i_dk = {"seed_params": {
1268 "tfm_platform": ["stm/stm32h573i_dk"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001269 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Anton Komlev4164ab62024-02-23 10:59:56 +01001270 "isolation_level": ["1", "2"],
1271 "test_regression": ["OFF", "RegS, RegNS"],
1272 "test_psa_api": ["OFF"],
1273 "cmake_build_type": ["Release"],
1274 "with_bl2": [True],
1275 "profile": [""],
1276 "extra_params": [""]
1277 },
1278 "common_params": _common_tfm_builder_cfg,
1279 "invalid": _common_tfm_invalid_configs + []
1280 }
1281
Matthew Dalzelld5325dd2025-04-17 14:46:10 +01001282config_stm32wba65i_dk = {"seed_params": {
1283 "tfm_platform": ["stm/stm32wba65i_dk"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001284 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Matthew Dalzelld5325dd2025-04-17 14:46:10 +01001285 "isolation_level": ["1", "2"],
1286 "test_regression": ["OFF", "RegS, RegNS"],
1287 "test_psa_api": ["OFF"],
1288 "cmake_build_type": ["Release"],
1289 "with_bl2": [False],
1290 "profile": ["profile_small","profile_medium"],
1291 "extra_params": [""]
1292 },
1293 "common_params": _common_tfm_builder_cfg,
1294 "invalid": _common_tfm_invalid_configs + [
1295 ("stm/stm32wba65i_dk", "*", "2", "*",
1296 "*", "*", "*", "profile_small", "*"),
1297 ]
1298 }
1299
1300
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001301config_nucleo_l552ze_q = {"seed_params": {
1302 "tfm_platform": ["stm/nucleo_l552ze_q"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001303 "compiler": ["GCC_13_2"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001304 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001305 "test_regression": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001306 "test_psa_api": ["OFF"],
1307 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001308 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001309 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001310 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001311 },
1312 "common_params": _common_tfm_builder_cfg,
1313 "invalid": _common_tfm_invalid_configs + []
1314 }
1315
1316config_lpcxpresso55s69 = {"seed_params": {
1317 "tfm_platform": ["nxp/lpcxpresso55s69"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001318 "compiler": ["GCC_13_2"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001319 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001320 "test_regression": ["OFF", "RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001321 "test_psa_api": ["OFF"],
1322 "cmake_build_type": ["Relwithdebinfo"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001323 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001324 "profile": ["profile_medium"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001325 "extra_params": [""]
1326 },
1327 "common_params": _common_tfm_builder_cfg,
1328 "invalid": _common_tfm_invalid_configs + []
1329 }
1330
Xinyu Zhang38b76742021-11-11 13:57:56 +08001331config_bl5340 = {"seed_params": {
1332 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001333 "compiler": ["GCC_13_2"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001334 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001335 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001336 "test_psa_api": ["OFF"],
1337 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001338 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001339 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001340 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001341 },
1342 "common_params": _common_tfm_builder_cfg,
1343 "invalid": _common_tfm_invalid_configs + []
1344 }
1345
1346config_nrf5340dk = {"seed_params": {
1347 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001348 "compiler": ["GCC_13_2"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001349 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001350 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001351 "test_psa_api": ["OFF"],
1352 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001353 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001354 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001355 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001356 },
1357 "common_params": _common_tfm_builder_cfg,
1358 "invalid": _common_tfm_invalid_configs + []
1359 }
1360
1361config_nrf9160dk = {"seed_params": {
1362 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001363 "compiler": ["GCC_13_2"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001364 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001365 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001366 "test_psa_api": ["OFF"],
1367 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001368 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001369 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001370 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001371 },
1372 "common_params": _common_tfm_builder_cfg,
1373 "invalid": _common_tfm_invalid_configs + []
1374 }
1375
1376config_m2351 = {"seed_params": {
1377 "tfm_platform": ["nuvoton/m2351"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001378 "compiler": ["GCC_13_2"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001379 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001380 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001381 "test_psa_api": ["OFF"],
1382 "cmake_build_type": ["Release"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001383 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001384 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001385 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001386 },
1387 "common_params": _common_tfm_builder_cfg,
1388 "invalid": _common_tfm_invalid_configs + []
1389 }
1390
1391config_m2354 = {"seed_params": {
1392 "tfm_platform": ["nuvoton/m2354"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001393 "compiler": ["GCC_13_2"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001394 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001395 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001396 "test_psa_api": ["OFF"],
1397 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001398 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001399 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001400 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001401 },
1402 "common_params": _common_tfm_builder_cfg,
1403 "invalid": _common_tfm_invalid_configs + []
1404 }
1405
Dávid Házi0bd447f2024-10-24 19:44:31 +00001406config_rp2350 = {"seed_params": {
1407 "tfm_platform": ["rpi/rp2350"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001408 "compiler": ["GCC_13_2"],
Dávid Házi0bd447f2024-10-24 19:44:31 +00001409 "isolation_level": ["2"],
1410 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
1411 "test_psa_api": ["OFF"],
1412 "cmake_build_type": ["RelWithDebInfo", "Release"],
1413 "with_bl2": [True],
Nicola Mazzucato4bad6c62024-10-28 14:42:17 +00001414 "profile": ["profile_medium"],
Dávid Házi0bd447f2024-10-24 19:44:31 +00001415 "extra_params": [""]
1416 },
1417 "common_params": _common_tfm_builder_cfg,
1418 "invalid": _common_tfm_invalid_configs + []
1419 }
1420
Jianliang Shen48704152023-10-17 17:06:00 +08001421config_mem_footprint = {"seed_params": {
1422 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001423 "compiler": ["ARMCLANG_6_21"],
Jianliang Shen48704152023-10-17 17:06:00 +08001424 "isolation_level": ["1"],
1425 "test_regression": ["OFF"],
1426 "test_psa_api": ["OFF"],
1427 "cmake_build_type": ["Minsizerel"],
1428 "with_bl2": [True],
1429 "profile": [""],
1430 "extra_params": [""]
1431 },
1432 "common_params": _common_tfm_builder_cfg,
1433 "valid": [
1434 # AN521_ARMCLANG_1_Minsizerel_BL2_SMALL_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001435 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Jianliang Shen48704152023-10-17 17:06:00 +08001436 "OFF", "OFF", "Minsizerel", True, "profile_small", "PSOFF"),
1437 # AN521_ARMCLANG_2_Minsizerel_BL2_MEDIUM_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001438 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Jianliang Shen48704152023-10-17 17:06:00 +08001439 "OFF", "OFF", "Minsizerel", True, "profile_medium", "PSOFF"),
1440 # AN521_ARMCLANG_3_Minsizerel_BL2_LARGE_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001441 ("arm/mps2/an521", "ARMCLANG_6_21", "3",
Jianliang Shen48704152023-10-17 17:06:00 +08001442 "OFF", "OFF", "Minsizerel", True, "profile_large", "PSOFF"),
1443 ],
1444 "invalid": _common_tfm_invalid_configs + []
1445 }
1446
Jianliang Shen5492f752023-07-27 15:59:01 +08001447config_prof = {"seed_params": {
1448 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001449 "compiler": ["GCC_13_2"],
Jianliang Shen5492f752023-07-27 15:59:01 +08001450 "isolation_level": ["1"],
1451 "test_regression": ["OFF"],
1452 "test_psa_api": ["OFF"],
1453 "cmake_build_type": ["Release"],
1454 "with_bl2": [True],
1455 "profile": [""],
1456 "extra_params": ["PROF"]
1457 },
1458 "common_params": _common_tfm_builder_cfg,
1459 "valid": [
1460 # AN521_GNUARM_1_Release_BL2_IPC_PROF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001461 ("arm/mps2/an521", "GCC_13_2", "1",
Jianliang Shen5492f752023-07-27 15:59:01 +08001462 "OFF", "OFF", "Release", True, "", "IPC, PROF"),
1463 # AN521_GNUARM_2_Release_BL2_PROF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001464 ("arm/mps2/an521", "GCC_13_2", "2",
Jianliang Shen5492f752023-07-27 15:59:01 +08001465 "OFF", "OFF", "Release", True, "", "PROF"),
1466 # AN521_GNUARM_3_Release_BL2_PROF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001467 ("arm/mps2/an521", "GCC_13_2", "3",
Jianliang Shen5492f752023-07-27 15:59:01 +08001468 "OFF", "OFF", "Release", True, "", "PROF"),
1469 ],
1470 "invalid": _common_tfm_invalid_configs + []
1471 }
1472
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001473# Config groups for debug
1474config_debug = {"seed_params": {
1475 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001476 "compiler": ["GCC_13_2"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001477 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001478 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001479 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001480 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001481 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001482 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001483 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001484 },
1485 "common_params": _common_tfm_builder_cfg,
1486 "invalid": _common_tfm_invalid_configs + []
1487 }
1488
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001489config_debug_regr = deepcopy(config_debug)
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001490config_debug_regr["seed_params"]["test_regression"] = ["RegBL2, RegS, RegNS"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001491
1492config_debug_PSA_API = {"seed_params": {
1493 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001494 "compiler": ["ARMCLANG_6_21"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001495 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001496 "test_regression": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001497 "test_psa_api": ["CRYPTO",
1498 "INITIAL_ATTESTATION",
1499 "STORAGE",
1500 "IPC"],
1501 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001502 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001503 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001504 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001505 },
1506 "common_params": _common_tfm_builder_cfg,
1507 "invalid": _common_tfm_invalid_configs + []
1508 }
1509
Matthew Dalzell06e8f692024-11-09 00:55:06 +00001510
1511
Karl Zhangaff558a2020-05-15 14:28:23 +01001512_builtin_configs = {
Xinyu Zhang5c4f2182023-10-31 16:26:45 +08001513 # per-patch test group
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001514 "pp_test": config_pp_test,
Karl Zhang14573bc2020-06-08 09:23:21 +08001515
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001516 # nightly test groups
1517 "nightly_test": config_nightly_test,
1518 "nightly_profile_s": config_profile_s,
1519 "nightly_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +08001520 "nightly_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001521 "nightly_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001522 "nightly_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001523 "nightly_cc_driver_psa": config_cc_driver_psa,
1524 "nightly_fp":config_fp,
1525 "nightly_psa_api": config_psa_api,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001526 "nightly_nsce": config_nsce,
1527 "nightly_mmio": config_mmio,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001528 "nightly_cs300_an547": config_cs300_an547,
1529 "nightly_cs300_an552": config_cs300_an552,
1530 "nightly_cs300_fvp": config_cs300_fvp,
Bence Balogh8731a092022-05-24 17:24:54 +02001531 "nightly_corstone310": config_corstone310,
Nicola Mazzucatobde5d432024-05-20 11:43:18 +01001532 "nightly_corstone310_pacbti" : config_corstone310_pacbti,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001533 "nightly_corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001534 "nightly_corstone320": config_corstone320,
Antonio de Angelis92ad2442023-08-07 15:00:32 +02001535 "nightly_corstone1000": config_corstone1000,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001536 #"nightly_rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001537 "nightly_rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301538 "nightly_rse_rdv3": config_rse_rdv3,
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001539 "nightly_rse_rdv3r1": config_rse_rdv3r1,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001540 "nightly_rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001541 "nightly_psoc64": config_psoc64,
Anton Komlev55c3c022024-03-05 16:24:17 +01001542 "nightly_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -08001543 "nightly_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001544 "nightly_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001545 "nightly_lpcxpresso55s69": config_lpcxpresso55s69,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001546 "nightly_rp2350": config_rp2350,
Matthew Dalzell06e8f692024-11-09 00:55:06 +00001547 "nightly_all_plat": config_all_plat,
Karl Zhang14573bc2020-06-08 09:23:21 +08001548
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001549 # release test groups
1550 "release_test": config_release_test,
1551 "release_profile_s": config_profile_s,
1552 "release_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +08001553 "release_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001554 "release_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001555 "release_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001556 "release_cc_driver_psa": config_cc_driver_psa,
1557 "release_fp": config_fp,
1558 "release_psa_api": config_psa_api,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001559 "release_nsce": config_nsce,
1560 "release_mmio": config_mmio,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001561 "release_cs300_an547": config_cs300_an547,
1562 "release_cs300_an552": config_cs300_an552,
1563 "release_cs300_fvp": config_cs300_fvp,
Bence Balogh8731a092022-05-24 17:24:54 +02001564 "release_corstone310": config_corstone310,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001565 "release_corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001566 "release_corstone320": config_corstone320,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001567 #"release_rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001568 "release_rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301569 "release_rse_rdv3": config_rse_rdv3,
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001570 "release_rse_rdv3r1": config_rse_rdv3r1,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001571 "release_rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001572 "release_psoc64": config_psoc64,
Anton Komlev55c3c022024-03-05 16:24:17 +01001573 "release_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -08001574 "release_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001575 "release_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001576 "release_lpcxpresso55s69": config_lpcxpresso55s69,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001577 "release_rp2350": config_rp2350,
Karl Zhang14573bc2020-06-08 09:23:21 +08001578
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001579 # code coverage test groups
1580 "coverage_profile_s": config_cov_profile_s,
1581 "coverage_profile_m": config_cov_profile_m,
1582 "coverage_profile_l": config_cov_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001583 "coverage_ipc_backend": config_cov_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001584 "coverage_nsce": config_cov_nsce,
1585 "coverage_mmio": config_cov_mmio,
Xinyu Zhang5f725ee2022-12-19 10:29:20 +08001586 "coverage_fp": config_cov_fp,
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001587
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +03001588 # MISRA analysis
1589 "misra": config_misra,
Paul Sokolovskya526e5d2023-06-15 09:49:13 +03001590 "misra_debug": config_misra_debug,
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +03001591
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001592 # platform groups
1593 "an521": config_an521,
1594 "an519": config_an519,
1595 "an524": config_an524,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001596 "cs300_an547": config_cs300_an547,
1597 "cs300_an552": config_cs300_an552,
1598 "cs300_fvp": config_cs300_fvp,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001599 "musca_b1": config_musca_b1,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001600 "musca_s1": config_musca_s1,
Bence Balogh8731a092022-05-24 17:24:54 +02001601 "corstone310": config_corstone310,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001602 "corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001603 "corstone320": config_corstone320,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001604 #"rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001605 "rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301606 "rse_rdv3": config_rse_rdv3,
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001607 "rse_rdv3r1": config_rse_rdv3r1,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001608 "rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001609 "cypress_psoc64": config_psoc64,
Antonio de Angelis92ad2442023-08-07 15:00:32 +02001610 "corstone1000": config_corstone1000,
Anton Komlev55c3c022024-03-05 16:24:17 +01001611 "stm_stm32l562e_dk": config_stm32l562e_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001612 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001613 "stm_stm32h573i_dk": config_stm32h573i_dk,
Matthew Dalzelld5325dd2025-04-17 14:46:10 +01001614 "stm_stm32wba65i_dk" : config_stm32wba65i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001615 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1616 "nxp_lpcxpresso55s69": config_lpcxpresso55s69,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001617 "laird_bl5340": config_bl5340,
1618 "nordic_nrf5340dk": config_nrf5340dk,
1619 "nordic_nrf9160dk": config_nrf9160dk,
1620 "nuvoton_m2351": config_m2351,
1621 "nuvoton_m2354": config_m2354,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001622 "rp2350": config_rp2350,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001623
Bence Balogh79fda442022-10-14 18:01:37 +02001624 # config groups for tf-m-extras examples
1625 "example_vad": config_example_vad,
1626 "example_dma350_trigger": config_example_dma350_trigger,
Bence Balogh852f8bd2023-08-07 14:46:54 +02001627 "example_dma350_clcd": config_example_dma350_clcd,
Bence Balogh79fda442022-10-14 18:01:37 +02001628 "example_dma350_s": config_example_dma350_s,
Bence Baloghd23cbda2023-08-07 15:30:58 +02001629 "example_dma350_ns": config_example_dma350_ns,
Bence Balogh79fda442022-10-14 18:01:37 +02001630
Jianliang Shen48704152023-10-17 17:06:00 +08001631 # config groups for tf-m performance monitor
1632 "mem_footprint": config_mem_footprint,
Jianliang Shen5492f752023-07-27 15:59:01 +08001633 "profiling": config_prof,
1634
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001635 # config groups for debug
Dean Birch4c6ad622020-03-13 11:28:03 +00001636 "debug": config_debug,
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001637 "debug_regr": config_debug_regr,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001638 "debug_PSA_API": config_debug_PSA_API,
Nicola Mazzucatoe932bd72025-04-14 17:11:10 +01001639
1640 # groups for build-only
1641 "rse_build_only": config_rse_build_only,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001642 }
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001643
1644if __name__ == '__main__':
1645 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001646
Minos Galanakisea421232019-06-20 17:11:28 +01001647 # Default behavior is to export refference config when called
1648 _dir = os.getcwd()
1649 from utils import save_json
1650 for _cname, _cfg in _builtin_configs.items():
1651 _fname = os.path.join(_dir, _cname + ".json")
1652 print("Exporting config %s" % _fname)
1653 save_json(_fname, _cfg)