blob: 06a4b74ecf79f83bd42115541e29ab76d33bc53f [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-Driver042d0fa2025-03-03 12:45:54 +0000146 "%(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin -Binary -offset 0x17000 "
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
Summer Qin379abb62022-10-08 16:41:54 +0800312 ("arm/mps2/an519", "GCC_10_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800313 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
314 # AN519_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800315 ("arm/mps2/an519", "GCC_10_3", "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
Summer Qin379abb62022-10-08 16:41:54 +0800339 ("arm/mps2/an521", "GCC_10_3", "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
Summer Qin379abb62022-10-08 16:41:54 +0800342 ("arm/mps2/an521", "GCC_10_3", "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
Summer Qin379abb62022-10-08 16:41:54 +0800345 ("arm/mps2/an521", "GCC_10_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800346 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
347 # AN521_GCC_3_RegBL2_RegS_RegNS_Minsizerel_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800348 ("arm/mps2/an521", "GCC_10_3", "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
351 ("arm/mps2/an521", "GCC_10_3", "1",
352 "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
Bence Balogh1aa8d582023-08-29 13:10:02 +0200357 ("arm/mps3/corstone300/fvp", "GCC_10_3", "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
Bence Balogh1aa8d582023-08-29 13:10:02 +0200360 ("arm/mps3/corstone300/fvp", "GCC_10_3", "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
366 ("arm/corstone1000", "GCC_10_3", "2",
367 "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
Summer Qin379abb62022-10-08 16:41:54 +0800375 ("arm/musca_b1", "GCC_10_3", "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
Summer Qin379abb62022-10-08 16:41:54 +0800381 ("arm/musca_s1", "GCC_10_3", "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
Summer Qin379abb62022-10-08 16:41:54 +0800384 ("arm/musca_s1", "GCC_10_3", "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
Summer Qin379abb62022-10-08 16:41:54 +0800387 ("arm/musca_s1", "GCC_10_3", "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
Antonio de Angelis78a01fc2025-02-06 11:11:25 +0000390 #("arm/rse/tc/tc3", "GCC_10_3", "3",
391 # "RegS, RegNS", "OFF", "Release", True, "", "ATTESTATION_SCHEME_DPE"),
Jamie Fox82a91d02024-09-27 14:54:14 +0100392 # RSE_TC3_GCC_2_RegBL1_1_Debug_BL2
Antonio de Angelis78a01fc2025-02-06 11:11:25 +0000393 #("arm/rse/tc/tc3", "GCC_10_3", "2",
394 # "RegBL1_1", "OFF", "Debug", True, "", ""),
Nicola Mazzucatob4763262024-09-26 12:39:06 +0100395 # RSE_TC3_GCC_2_Release_BL2_ATTESTATION_SCHEME_CCA
Antonio de Angelis78a01fc2025-02-06 11:11:25 +0000396 #("arm/rse/tc/tc3", "GCC_10_3", "2",
397 # "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-Driver164c54c2025-01-08 11:56:07 +0000399 ("arm/rse/tc/tc4", "GCC_10_3", "3",
Tamas Ban33b2e382025-03-17 12:23:08 +0100400 "RegS, RegNS", "OFF", "Release", True, "", "ATTESTATION_SCHEME_DPE"),
Jackson Cooper-Driverc5541ca2025-02-13 13:42:35 +0000401 # RSE_TC4_GCC_3_RegS_RegNS_Release_BL2_RSE_PROVISIONING_ASYMMETRIC
402 ("arm/rse/tc/tc4", "GCC_10_3", "3",
403 "RegS, RegNS", "OFF", "Release", True, "", "RSE_PROVISIONING_ASYMMETRIC"),
Jackson Cooper-Driver0ac3fe02025-02-20 09:23:03 +0000404 # RSE_TC4_GCC_2_Debug_BL2
405 ("arm/rse/tc/tc4", "GCC_10_3", "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
408 ("arm/rse/tc/tc4", "GCC_10_3", "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
Tamas Ban33b2e382025-03-17 12:23:08 +0100411 ("arm/rse/tc/tc4", "GCC_10_3", "2",
412 "OFF", "OFF", "Release", True, "", "ATTESTATION_SCHEME_CCA"),
Ishan Deshpande80d840e2025-01-09 18:46:56 +0530413 # RSE_RDV3_GCC_2_Release_BL2_NSOFF_CFG0
Antonio de Angelis373187e2025-01-11 22:09:30 +0000414 ("arm/rse/neoverse_rd/rdv3", "GCC_10_3", "2",
Jamie Fox9283cbc2024-04-22 13:40:01 +0100415 "OFF", "OFF", "Release", True, "", "NSOFF, CFG0"),
Nicola Mazzucato75b76af2025-02-07 15:20:59 +0000416 # RSE_RDV3R1_GCC_2_Release_BL2_NSOFF_CFG0
417 ("arm/rse/neoverse_rd/rdv3r1", "GCC_10_3", "2",
418 "OFF", "OFF", "Release", True, "", "NSOFF, CFG0"),
Ziad Elhanafy937333f2024-05-22 14:17:40 +0100419 # RSE_RD1AE_GCC_2_Release_BL2_NSOFF
420 ("arm/rse/automotive_rd/rd1ae", "GCC_10_3", "2",
421 "OFF", "OFF", "Release", True, "", "NSOFF"),
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800422 # stm32l562e_dk_ARMCLANG_1_RegS_RegNS_Release_BL2_CRYPTO_OFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300423 ("stm/stm32l562e_dk", "ARMCLANG_6_21", "1",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800424 "RegS, RegNS", "OFF", "Release", True, "", "CRYPTO_OFF"),
425 # stm32l562e_dk_GCC_2_Release_BL2_CRYPTO_ON
Summer Qin379abb62022-10-08 16:41:54 +0800426 ("stm/stm32l562e_dk", "GCC_10_3", "2",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800427 "OFF", "OFF", "Release", True, "", "CRYPTO_ON"),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100428 # stm32l562e_dk_GCC_3_RegBL2_RegS_RegNS_Release_BL2_CRYPTO_OFF
Summer Qin379abb62022-10-08 16:41:54 +0800429 ("stm/stm32l562e_dk", "GCC_10_3", "3",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800430 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "CRYPTO_OFF"),
Arthur She4f08c152023-05-15 15:29:14 -0700431 # b_u585i_iot02a_GCC_1_RegS_RegNS_Release_BL2
432 ("stm/b_u585i_iot02a", "GCC_10_3", "1",
433 "RegS, RegNS", "OFF", "Release", True, "", ""),
434 # b_u585i_iot02a_ARMCLANG_2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300435 ("stm/b_u585i_iot02a", "ARMCLANG_6_21", "2",
Arthur She4f08c152023-05-15 15:29:14 -0700436 "RegS, RegNS", "OFF", "Release", True, "", ""),
Anton Komlev4164ab62024-02-23 10:59:56 +0100437 # stm32h573i_dk_GCC_1_RegS_RegNS_Release_BL2
438 ("stm/stm32h573i_dk", "GCC_10_3", "1",
439 "RegS, RegNS", "OFF", "Release", True, "", ""),
440 # stm32h573i_dk_ARMCLANG_2_RegS_RegNS_Release_BL2
441 ("stm/stm32h573i_dk", "ARMCLANG_6_21", "2",
442 "RegS, RegNS", "OFF", "Release", True, "", ""),
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800443 # psoc64_GCC_2_RegS_RegNS_Release
Summer Qin379abb62022-10-08 16:41:54 +0800444 ("cypress/psoc64", "GCC_10_3", "2",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800445 "RegS, RegNS", "OFF", "Release", False, "", ""),
Nicola Mazzucato4bad6c62024-10-28 14:42:17 +0000446 # rp2350_GCC_2_RegBL2_RegS_RegNS_Release_BL2_MEDIUM
Dávid Házi0bd447f2024-10-24 19:44:31 +0000447 ("rpi/rp2350", "GCC_10_3", "2",
Nicola Mazzucato4bad6c62024-10-28 14:42:17 +0000448 "RegBL2, RegS, RegNS", "OFF", "Release", True, "profile_medium", ""),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800449 ],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800450 "invalid": _common_tfm_invalid_configs + []
451 }
452
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800453# Config group for nightly job
454config_nightly_test = {"seed_params": {
455 "tfm_platform": ["arm/mps2/an519",
456 "arm/mps2/an521",
457 "arm/mps3/an524",
458 "arm/musca_s1",
Mark Horvathef57baa2022-09-12 13:36:36 +0200459 "arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300460 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800461 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800462 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800463 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800464 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800465 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800466 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800467 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100468 },
469 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800470 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100471 }
472
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000473config_all_plat = {
474 # corstone1000_GCC_2_RegS_Release_BL2_NSOFF_CS1K_TEST_FVP
475 "seed_params": {
476 "tfm_platform": ["arm/corstone1000"],
477 "compiler": ["GCC_10_3"],
478 "isolation_level": ["2"],
479 "test_regression": ["RegS"],
480 "test_psa_api": ["OFF"],
481 "cmake_build_type": ["Release"],
482 "with_bl2": [True],
483 "profile": [""],
484 "extra_params": ["NSOFF, CS1K_TEST, FVP"]
485 },
486 "common_params": _common_tfm_builder_cfg,
487 "valid": [
488 # AN521_GCC_3_RegBL2_RegS_RegNS_Debug_BL2
489 ("arm/mps2/an521", "GCC_10_3", "3",
490 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
491 # AN519_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
492 ("arm/mps2/an519", "GCC_10_3", "2",
493 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
494 # AN524_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
495 ("arm/mps3/an524", "GCC_10_3", "2",
496 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
497 # CS300_AN547_GCC_1_Debug_BL2
498 ("arm/mps3/corstone300/an547", "GCC_10_3", "1",
499 "OFF", "OFF", "Debug", True, "", ""),
500 # CS300_AN552_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
501 ("arm/mps3/corstone300/an552", "GCC_10_3", "2",
502 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
503 # CS300_FVP_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
504 ("arm/mps3/corstone300/fvp", "GCC_10_3", "2",
505 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
506 # corstone310_GCC_1_Debug_BL2_NSOFF
507 ("arm/mps3/corstone310/fvp", "GCC_10_3", "1",
508 "OFF", "OFF", "Debug", True, "", "NSOFF"),
509 # corstone315_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
510 ("arm/mps4/corstone315", "GCC_10_3", "1",
511 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
512 # corstone320_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
513 ("arm/mps4/corstone320", "GCC_10_3", "1",
514 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
515 # MUSCA_B1_GCC_3_RegBL2_RegS_RegNS_Debug_BL2
516 ("arm/musca_b1", "GCC_10_3", "3",
517 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
518 # MUSCA_S1_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
519 ("arm/musca_s1", "GCC_10_3", "2",
520 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
521 # RSE_TC3_GCC_3_RegS_RegNS_Debug_BL2_ATTESTATION_SCHEME_DPE
522 ("arm/rse/tc/tc3", "GCC_10_3", "3",
523 "RegS, RegNS", "OFF", "Debug", True, "", "ATTESTATION_SCHEME_DPE"),
524 # psoc64_GCC_2_RegS_RegNS_Release
525 ("cypress/psoc64", "GCC_10_3", "2",
526 "RegS, RegNS", "OFF", "Release", False, "", ""),
527 ## BL5340_GCC_1_Debug_BL2_NSOFF
528 #("lairdconnectivity/bl5340_dvk_cpuapp", "GCC_10_3", "1",
529 # "OFF", "OFF", "Debug", True, "", "NSOFF"),
530 ## nrf5340dk_GCC_1_Debug_BL2_NSOFF
531 #("nordic_nrf/nrf5340dk_nrf5340_cpuapp", "GCC_10_3", "1",
532 # "OFF", "OFF", "Release", True, "", "NSOFF"),
533 ## nrf9160dk_GCC_1_Debug_BL2_NSOFF
534 #("nordic_nrf/nrf9160dk_nrf9160", "GCC_10_3", "1",
535 # "OFF", "OFF", "Release", True, "", "NSOFF"),
536 ## M2351_GCC_1_Release_BL2_NSOFF
537 #("nuvoton/m2351", "GCC_10_3", "1",
538 # "OFF", "OFF", "Release", True, "", "NSOFF"),
539 # M2354_GCC_1_Debug_BL2_NSOFF
540 ("nuvoton/m2354", "GCC_10_3", "1",
541 "OFF", "OFF", "Debug", True, "", "NSOFF"),
542 # lpcxpresso55s69_GCC_2_RegS_RegNS_Relwithdebinfo_MEDIUM
543 ("nxp/lpcxpresso55s69", "GCC_10_3", "2",
544 "RegS, RegNS", "OFF", "Relwithdebinfo", False, "profile_medium", ""),
545 # rp2350_GCC_2_RegBL2_RegS_RegNS_RelWithDebInfo_BL2_MEDIUM
546 ("rpi/rp2350", "GCC_10_3", "2",
547 "RegBL2, RegS, RegNS", "OFF", "Relwithdebinfo", True, "profile_medium", ""),
548 # b_u585i_iot02a_GCC_2_RegS_RegNS_Release_BL2
549 ("stm/b_u585i_iot02a", "GCC_10_3", "2",
550 "RegS, RegNS", "OFF", "Release", True, "", ""),
551 # nucleo_l552ze_q_GCC_1_Release_BL2_NSOFF
552 ("stm/nucleo_l552ze_q", "GCC_10_3", "1",
553 "OFF", "OFF", "Release", True, "", "NSOFF"),
554 # stm32h573i_dk_GCC_2_RegS_RegNS_Release_BL2
555 ("stm/stm32h573i_dk", "GCC_10_3", "2",
556 "RegS, RegNS", "OFF", "Release", True, "", ""),
557 # stm32l562e_dk_GCC_3_RegBL2_RegS_RegNS_Release_BL2_CRYPTO_OFF
558 ("stm/stm32l562e_dk", "GCC_10_3", "3",
559 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "CRYPTO_OFF"),
560 # stm32l562e_dk_GCC_3_Release_BL2_CRYPTO_ON
561 ("stm/stm32l562e_dk", "GCC_10_3", "3",
562 "OFF", "OFF", "Release", True, "", "CRYPTO_ON"),
563 ],
564 "invalid": _common_tfm_invalid_configs + []
565 }
566
567
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800568# Config group for release job
569config_release_test = {"seed_params": {
570 "tfm_platform": ["arm/mps2/an519",
571 "arm/mps2/an521",
572 "arm/mps3/an524",
Mark Horvathef57baa2022-09-12 13:36:36 +0200573 "arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800574 "arm/musca_s1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300575 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800576 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800577 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800578 "test_psa_api": ["OFF"],
579 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800580 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800581 "profile": [""],
David Vinczed78e2622022-11-24 15:04:00 +0100582 "extra_params": ["TEST_CBOR"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800583 },
584 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800585 "valid": [
586 # sanity test for GCC v11.2
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800587 # AN521_GCC_3_RegBL2_RegS_RegNS_Relwithdebinfo_BL2
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800588 ("arm/mps2/an521", "GCC_11_2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800589 "3", "RegBL2, RegS, RegNS", "OFF", "Relwithdebinfo",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800590 True, "", ""),
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800591 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800592 "invalid": _common_tfm_invalid_configs + []
593 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800594
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800595# Config groups for TF-M features
596config_profile_s = {"seed_params": {
David Huda27ae72022-03-28 15:32:19 +0800597 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300598 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
David Huda27ae72022-03-28 15:32:19 +0800599 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800600 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
David Huda27ae72022-03-28 15:32:19 +0800601 "test_psa_api": ["OFF"],
602 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
David Huda27ae72022-03-28 15:32:19 +0800603 "with_bl2": [True],
David Huda27ae72022-03-28 15:32:19 +0800604 "profile": ["profile_small"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800605 "extra_params": ["PSOFF"]
David Huda27ae72022-03-28 15:32:19 +0800606 },
607 "common_params": _common_tfm_builder_cfg,
David Huda27ae72022-03-28 15:32:19 +0800608 "invalid": _common_tfm_invalid_configs + [
Summer Qin379abb62022-10-08 16:41:54 +0800609 ("arm/mps2/an519", "GCC_10_3", "*", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800610 "*", "Minsizerel", "*", "*", "*")
David Huda27ae72022-03-28 15:32:19 +0800611 ]
612 }
613
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800614config_profile_m = {"seed_params": {
615 "tfm_platform": ["arm/mps2/an519",
616 "arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200617 "arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300618 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800619 "isolation_level": ["2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800620 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800621 "test_psa_api": ["OFF"],
622 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800623 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800624 "profile": ["profile_medium"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800625 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800626 },
627 "common_params": _common_tfm_builder_cfg,
628 "invalid": _common_tfm_invalid_configs + []
629 }
630
David Hu3d333762022-10-27 18:12:33 +0800631config_profile_m_arotless = {"seed_params": {
632 "tfm_platform": ["arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300633 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
David Hu3d333762022-10-27 18:12:33 +0800634 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800635 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
David Hu3d333762022-10-27 18:12:33 +0800636 "test_psa_api": ["OFF"],
637 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
638 "with_bl2": [True],
639 "profile": ["profile_medium_arotless"],
640 "extra_params": ["", "PSOFF"]
641 },
642 "common_params": _common_tfm_builder_cfg,
643 "invalid": _common_tfm_invalid_configs + []
644 }
645
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800646config_profile_l = {"seed_params": {
647 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300648 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800649 "isolation_level": ["3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800650 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800651 "test_psa_api": ["OFF"],
652 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800653 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800654 "profile": ["profile_large"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800655 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800656 },
657 "common_params": _common_tfm_builder_cfg,
658 "invalid": _common_tfm_invalid_configs + []
659 }
660
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800661config_ipc_backend = {"seed_params": {
662 "tfm_platform": ["arm/mps2/an519",
663 "arm/mps2/an521",
664 "arm/musca_s1",
665 "arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300666 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800667 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800668 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800669 "test_psa_api": ["OFF"],
670 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
671 "with_bl2": [True],
672 "profile": [""],
673 "extra_params": ["IPC"]
674 },
675 "common_params": _common_tfm_builder_cfg,
676 "invalid": _common_tfm_invalid_configs + []
677 }
678
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800679config_cc_driver_psa = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200680 "tfm_platform": ["arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800681 "arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800682 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800683 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800684 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800685 "test_psa_api": ["OFF"],
686 "cmake_build_type": ["Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800687 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800688 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800689 "extra_params": ["CC_DRIVER_PSA"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800690 },
691 "common_params": _common_tfm_builder_cfg,
692 "invalid": _common_tfm_invalid_configs + []
693 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100694
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800695config_fp = {"seed_params": {
Xinyu Zhange91567c2023-09-13 14:10:11 +0800696 "tfm_platform": ["arm/mps2/an521",
697 "arm/mps3/corstone300/an552",
698 "arm/mps3/corstone300/fvp"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800699 "compiler": ["GCC_10_3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800700 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800701 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800702 "test_psa_api": ["OFF"],
703 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800704 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800705 "profile": [""],
Mark Horvath93cb5fb2022-09-06 17:51:24 +0200706 "extra_params": ["FPOFF", "FPON", "FPON, LZOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800707 },
708 "common_params": _common_tfm_builder_cfg,
709 "invalid": _common_tfm_invalid_configs + []
710 }
Karl Zhangeffed972020-06-30 15:48:01 +0800711
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800712config_psa_api = {"seed_params": {
713 "tfm_platform": ["arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200714 "arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800715 "arm/musca_s1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300716 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800717 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800718 "test_regression": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800719 "test_psa_api": ["IPC",
720 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800721 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800722 "STORAGE"],
Antonio de Angelis240495b2025-03-30 22:46:54 +0100723 "cmake_build_type": ["Release", "Minsizerel"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800724 "with_bl2": [True],
Antonio de Angelis240495b2025-03-30 22:46:54 +0100725 "profile": ["profile_large"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800726 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800727 },
728 "common_params": _common_tfm_builder_cfg,
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300729 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800730 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800731
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800732config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800733 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300734 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800735 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800736 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800737 "test_psa_api": ["OFF"],
738 "cmake_build_type": ["Debug"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800739 "with_bl2": [True],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800740 "profile": [""],
Xinyu Zhang67612992021-12-20 14:11:27 +0800741 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800742 },
743 "common_params": _common_tfm_builder_cfg,
744 "invalid": _common_tfm_invalid_configs + []
745 }
746
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800747config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800748 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300749 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800750 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800751 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800752 "test_psa_api": ["OFF"],
753 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800754 "with_bl2": [True],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800755 "profile": [""],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800756 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800757 },
758 "common_params": _common_tfm_builder_cfg,
759 "invalid": _common_tfm_invalid_configs + []
760 }
761
Bence Balogh79fda442022-10-14 18:01:37 +0200762# Config groups for TF-M examples
763config_example_vad = {"seed_params": {
Bence Balogh1aa8d582023-08-29 13:10:02 +0200764 "tfm_platform": ["arm/mps3/corstone300/an552"],
Bence Balogh79fda442022-10-14 18:01:37 +0200765 "compiler": ["GCC_10_3"],
766 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800767 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200768 "test_psa_api": ["OFF"],
769 "cmake_build_type": ["Release"],
770 "with_bl2": [True],
771 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200772 "extra_params": ["EXTRAS_EXAMPLE_VAD"]
Bence Balogh79fda442022-10-14 18:01:37 +0200773 },
774 "common_params": _common_tfm_builder_cfg,
775 "invalid": _common_tfm_invalid_configs + []
776 }
777
Bence Balogh852f8bd2023-08-07 14:46:54 +0200778config_example_dma350_clcd = {"seed_params": {
Bence Balogh79fda442022-10-14 18:01:37 +0200779 "tfm_platform": ["arm/mps3/corstone310/fvp"],
780 "compiler": ["GCC_10_3"],
781 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800782 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200783 "test_psa_api": ["OFF"],
784 "cmake_build_type": ["Release"],
785 "with_bl2": [True],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200786 "profile": ["profile_medium"],
787 "extra_params": ["EXTRAS_EXAMPLE_DMA350_CLCD"]
Bence Balogh79fda442022-10-14 18:01:37 +0200788 },
789 "common_params": _common_tfm_builder_cfg,
790 "invalid": _common_tfm_invalid_configs + []
791 }
792
793config_example_dma350_s = {"seed_params": {
794 "tfm_platform": ["arm/mps3/corstone310/fvp"],
795 "compiler": ["GCC_10_3"],
796 "isolation_level": ["1"],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200797 "test_regression": ["RegS"],
Bence Balogh79fda442022-10-14 18:01:37 +0200798 "test_psa_api": ["OFF"],
799 "cmake_build_type": ["Release"],
800 "with_bl2": [True],
801 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200802 "extra_params": ["EXTRAS_EXAMPLE_DMA350_S"]
Bence Balogh79fda442022-10-14 18:01:37 +0200803 },
804 "common_params": _common_tfm_builder_cfg,
805 "invalid": _common_tfm_invalid_configs + []
806 }
807
Bence Baloghd23cbda2023-08-07 15:30:58 +0200808config_example_dma350_ns = {"seed_params": {
809 "tfm_platform": ["arm/mps3/corstone310/fvp"],
810 "compiler": ["GCC_10_3"],
811 "isolation_level": ["1"],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200812 "test_regression": ["RegS, RegNS"],
Bence Baloghd23cbda2023-08-07 15:30:58 +0200813 "test_psa_api": ["OFF"],
814 "cmake_build_type": ["Release"],
815 "with_bl2": [True],
816 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200817 "extra_params": ["EXTRAS_EXAMPLE_DMA350_NS"]
Bence Baloghd23cbda2023-08-07 15:30:58 +0200818 },
819 "common_params": _common_tfm_builder_cfg,
820 "invalid": _common_tfm_invalid_configs + []
821 }
822
Bence Balogh79fda442022-10-14 18:01:37 +0200823config_example_dma350_trigger = {"seed_params": {
824 "tfm_platform": ["arm/mps3/corstone310/fvp"],
825 "compiler": ["GCC_10_3"],
826 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800827 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200828 "test_psa_api": ["OFF"],
829 "cmake_build_type": ["Release"],
830 "with_bl2": [True],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200831 "profile": ["profile_medium"],
832 "extra_params": ["EXTRAS_EXAMPLE_DMA350_TRIGGER"]
Bence Balogh79fda442022-10-14 18:01:37 +0200833 },
834 "common_params": _common_tfm_builder_cfg,
835 "invalid": _common_tfm_invalid_configs + []
836 }
837
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300838config_misra = {"seed_params": {
839 "tfm_platform": ["arm/musca_b1"],
840 "compiler": ["GCC_10_3"],
841 "isolation_level": ["1"],
842 "test_regression": ["OFF"],
843 "test_psa_api": ["OFF"],
844 "cmake_build_type": ["Debug"],
845 "with_bl2": [True],
Matthew Dalzellb7895ae2025-04-10 12:30:01 +0100846 "profile": ["profile_small", "profile_medium_arotless"],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300847 "extra_params": ["PSOFF"]
848 },
849 "common_params": _common_tfm_builder_cfg,
Xinyu Zhange17926f2023-08-14 11:00:43 +0800850 "valid": [
851 # MUSCA_B1_GCC_2_Debug_BL2_MEDIUM_PSOFF
852 ("arm/musca_b1", "GCC_10_3", "2", "OFF",
853 "OFF", "Debug", True, "profile_medium", "PSOFF"),
854 # MUSCA_B1_GCC_3_Debug_BL2_LARGE_PSOFF
855 ("arm/musca_b1", "GCC_10_3", "3", "OFF",
856 "OFF", "Debug", True, "profile_large", "PSOFF"),
857 ],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300858 "invalid": _common_tfm_invalid_configs + []
859 }
860
Paul Sokolovskya526e5d2023-06-15 09:49:13 +0300861config_misra_debug = {"seed_params": {
862 "tfm_platform": ["arm/musca_b1"],
863 "compiler": ["GCC_10_3"],
864 "isolation_level": ["1"],
865 "test_regression": ["OFF"],
866 "test_psa_api": ["OFF"],
867 "cmake_build_type": ["Debug"],
868 "with_bl2": [True],
869 "profile": ["profile_small"],
870 "extra_params": ["PSOFF"]
871 },
872 "common_params": _common_tfm_builder_cfg,
873 "invalid": _common_tfm_invalid_configs + []
874 }
875
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800876# Config groups for code coverage
877config_cov_profile_s = deepcopy(config_profile_s)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800878config_cov_profile_s["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800879config_cov_profile_s["seed_params"]["compiler"] = ["GCC_10_3"]
Xinyu Zhangbdc37e32022-04-06 17:47:44 +0800880
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800881config_cov_profile_m = deepcopy(config_profile_m)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800882config_cov_profile_m["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800883config_cov_profile_m["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800884
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800885config_cov_profile_l = deepcopy(config_profile_l)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800886config_cov_profile_l["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800887config_cov_profile_l["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800888
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800889config_cov_ipc_backend = deepcopy(config_ipc_backend)
890config_cov_ipc_backend["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
891config_cov_ipc_backend["seed_params"]["compiler"] = ["GCC_10_3"]
892
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800893config_cov_nsce = deepcopy(config_nsce)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800894config_cov_nsce["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800895config_cov_nsce["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800896
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800897config_cov_mmio = deepcopy(config_mmio)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800898config_cov_mmio["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800899config_cov_mmio["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800900
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800901config_cov_fp = deepcopy(config_fp)
902config_cov_fp["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang778424e2023-02-27 11:39:57 +0800903config_cov_fp["seed_params"]["compiler"] = ["GCC_10_3"]
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800904
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800905# Config groups for platforms
906config_an519 = {"seed_params": {
Xinyu Zhangf25856a2021-06-17 14:06:46 +0800907 "tfm_platform": ["arm/mps2/an519"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300908 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800909 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800910 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800911 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800912 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800913 "with_bl2": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800914 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800915 "extra_params": ["", "NSOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800916 },
917 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800918 "invalid": _common_tfm_invalid_configs + []
919 }
920
921config_an521 = {"seed_params": {
922 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300923 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800924 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800925 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800926 "test_psa_api": ["OFF"],
927 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800928 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800929 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800930 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800931 },
932 "common_params": _common_tfm_builder_cfg,
933 "invalid": _common_tfm_invalid_configs + []
934 }
935
936config_an524 = {"seed_params": {
937 "tfm_platform": ["arm/mps3/an524"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300938 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800939 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800940 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800941 "test_psa_api": ["OFF"],
942 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800943 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800944 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800945 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800946 },
947 "common_params": _common_tfm_builder_cfg,
948 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800949 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000950
Bence Balogh1aa8d582023-08-29 13:10:02 +0200951config_cs300_an547 = {"seed_params": {
952 "tfm_platform": ["arm/mps3/corstone300/an547"],
953 "compiler": ["GCC_10_3"],
954 "isolation_level": ["1"],
955 "test_regression": ["OFF"],
956 "test_psa_api": ["OFF"],
957 "cmake_build_type": ["Debug"],
958 "with_bl2": [True],
959 "profile": [""],
960 "extra_params": [""]
961 },
962 "common_params": _common_tfm_builder_cfg,
963 "invalid": _common_tfm_invalid_configs + []
964 }
Xinyu Zhang38b76742021-11-11 13:57:56 +0800965
Bence Balogh1aa8d582023-08-29 13:10:02 +0200966config_cs300_an552 = {"seed_params": {
967 "tfm_platform": ["arm/mps3/corstone300/an552"],
968 "compiler": ["GCC_10_3"],
969 "isolation_level": ["1", "2"],
970 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
971 "test_psa_api": ["OFF"],
972 "cmake_build_type": ["Debug", "Release"],
973 "with_bl2": [True],
974 "profile": [""],
975 "extra_params": [""]
976 },
977 "common_params": _common_tfm_builder_cfg,
978 "invalid": _common_tfm_invalid_configs + []
979 }
980
981config_cs300_fvp = {"seed_params": {
982 "tfm_platform": ["arm/mps3/corstone300/fvp"],
983 "compiler": ["GCC_10_3"],
984 "isolation_level": ["1", "2"],
985 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
986 "test_psa_api": ["OFF"],
987 "cmake_build_type": ["Debug", "Release"],
988 "with_bl2": [True],
989 "profile": [""],
990 "extra_params": [""]
991 },
992 "common_params": _common_tfm_builder_cfg,
993 "invalid": _common_tfm_invalid_configs + []
994 }
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800995
996config_musca_b1 = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200997 "tfm_platform": ["arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300998 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800999 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001000 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001001 "test_psa_api": ["OFF"],
1002 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001003 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001004 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001005 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001006 },
1007 "common_params": _common_tfm_builder_cfg,
1008 "invalid": _common_tfm_invalid_configs + []
1009 }
1010
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001011config_musca_s1 = {"seed_params": {
1012 "tfm_platform": ["arm/musca_s1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001013 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001014 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001015 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001016 "test_psa_api": ["OFF"],
1017 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001018 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001019 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001020 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001021 },
1022 "common_params": _common_tfm_builder_cfg,
1023 "invalid": _common_tfm_invalid_configs + []
1024 }
1025
Bence Balogh8731a092022-05-24 17:24:54 +02001026config_corstone310 = {"seed_params": {
Bence Balogh23d8fa72022-11-08 12:16:23 +01001027 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Bence Balogh176b78f2022-02-22 13:49:34 +01001028 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001029 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001030 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001031 "test_psa_api": ["OFF"],
1032 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001033 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001034 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001035 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001036 },
1037 "common_params": _common_tfm_builder_cfg,
1038 "invalid": _common_tfm_invalid_configs + []
1039 }
1040
Nicola Mazzucatobde5d432024-05-20 11:43:18 +01001041config_corstone310_pacbti = {"seed_params": {
1042 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Nicola Mazzucatob4e19572024-08-21 12:26:14 +01001043 "compiler": ["ARMCLANG_6_21"],
Nicola Mazzucatobde5d432024-05-20 11:43:18 +01001044 "isolation_level": ["1"],
1045 "test_regression": ["OFF"],
1046 "test_psa_api": ["OFF"],
1047 "cmake_build_type": ["Debug"],
1048 "with_bl2": [True],
1049 "profile": [""],
1050 "extra_params": ["PACBTI_STD"]
1051 },
1052 "common_params": _common_tfm_builder_cfg,
1053 "invalid": _common_tfm_invalid_configs + []
1054 }
1055
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001056config_corstone315 = {"seed_params": {
1057 "tfm_platform": ["arm/mps4/corstone315"],
1058 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
1059 "isolation_level": ["1"],
Gergely Korcsáka403e222024-04-09 10:51:00 +02001060 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001061 "test_psa_api": ["OFF"],
1062 "cmake_build_type": ["Debug", "Release"],
1063 "with_bl2": [True],
1064 "profile": [""],
1065 "extra_params": [""]
1066 },
1067 "common_params": _common_tfm_builder_cfg,
1068 "invalid": _common_tfm_invalid_configs + []
1069 }
1070
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001071config_corstone320 = {"seed_params": {
1072 "tfm_platform": ["arm/mps4/corstone320"],
1073 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
1074 "isolation_level": ["1"],
1075 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
1076 "test_psa_api": ["OFF"],
1077 "cmake_build_type": ["Debug", "Release"],
1078 "with_bl2": [True],
1079 "profile": [""],
1080 "extra_params": [""]
1081 },
1082 "common_params": _common_tfm_builder_cfg,
1083 "invalid": _common_tfm_invalid_configs + []
1084 }
1085
Jamie Fox82a91d02024-09-27 14:54:14 +01001086config_rse_tc3 = {"seed_params": {
1087 "tfm_platform": ["arm/rse/tc/tc3"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001088 "compiler": ["GCC_10_3"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +01001089 "isolation_level": ["1", "2", "3"],
Jamie Fox9283cbc2024-04-22 13:40:01 +01001090 "test_regression": ["OFF", "RegS, RegNS"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001091 "test_psa_api": ["OFF"],
1092 "cmake_build_type": ["Debug", "Release"],
1093 "with_bl2": [True],
1094 "profile": [""],
Nicola Mazzucato551c5f32024-10-02 09:43:04 +01001095 "extra_params": ["ATTESTATION_SCHEME_DPE"]
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001096 },
1097 "common_params": _common_tfm_builder_cfg,
Jamie Fox9e2c2352023-01-13 15:11:23 +00001098 "invalid": _common_tfm_invalid_configs + [
Jamie Fox5ae6fa42024-02-19 15:11:00 +00001099 # BL2 is too large for RSE in Debug builds with tests
Jamie Fox82a91d02024-09-27 14:54:14 +01001100 ("arm/rse/tc/tc3", "GCC_10_3", "*", "RegBL2, RegS, RegNS", "*",
Jamie Fox9e2c2352023-01-13 15:11:23 +00001101 "Debug", True, "*", "*"),
1102 ]
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001103 }
1104
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001105config_rse_tc4 = {"seed_params": {
1106 "tfm_platform": ["arm/rse/tc/tc4"],
1107 "compiler": ["GCC_10_3"],
1108 "isolation_level": ["1", "2", "3"],
Jackson Cooper-Driver042d0fa2025-03-03 12:45:54 +00001109 "test_regression": ["OFF", "RegS, RegNS", "RegBL1_1"],
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001110 "test_psa_api": ["OFF"],
1111 "cmake_build_type": ["Debug", "Release"],
1112 "with_bl2": [True],
1113 "profile": [""],
Jackson Cooper-Driverc5541ca2025-02-13 13:42:35 +00001114 "extra_params": ["ATTESTATION_SCHEME_DPE", "RSE_PROVISIONING_ASYMMETRIC"]
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001115 },
1116 "common_params": _common_tfm_builder_cfg,
1117 "invalid": _common_tfm_invalid_configs + [
1118 # BL2 is too large for RSE in Debug builds with tests
1119 ("arm/rse/tc/tc4", "GCC_10_3", "*", "RegBL2, RegS, RegNS", "*",
1120 "Debug", True, "*", "*"),
Jackson Cooper-Driverb10a9d22025-03-06 13:50:22 +00001121 # BL1_1 tests only support symmetric provisioning config
1122 ("arm/rse/tc/tc4", "*", "*", "RegBL1_1", "*",
1123 "*", True, "*", "RSE_PROVISIONING_ASYMMETRIC"),
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001124 ]
1125 }
1126
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301127config_rse_rdv3 = {"seed_params": {
Antonio de Angelis373187e2025-01-11 22:09:30 +00001128 "tfm_platform": ["arm/rse/neoverse_rd/rdv3"],
Joel Goddard2dd81a12024-01-23 15:10:08 +00001129 "compiler": ["GCC_10_3"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +01001130 "isolation_level": ["1", "2", "3"],
Joel Goddard2dd81a12024-01-23 15:10:08 +00001131 "test_regression": ["OFF"],
1132 "test_psa_api": ["OFF"],
1133 "cmake_build_type": ["Debug", "Release"],
1134 "with_bl2": [True],
1135 "profile": [""],
Jamie Fox9283cbc2024-04-22 13:40:01 +01001136 "extra_params": ["NSOFF, CFG0"]
Joel Goddard2dd81a12024-01-23 15:10:08 +00001137 },
1138 "common_params": _common_tfm_builder_cfg,
1139 "invalid": _common_tfm_invalid_configs + []
1140 }
1141
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001142config_rse_rdv3r1 = {"seed_params": {
1143 "tfm_platform": ["arm/rse/neoverse_rd/rdv3r1"],
1144 "compiler": ["GCC_10_3"],
1145 "isolation_level": ["1", "2"],
1146 "test_regression": ["OFF"],
1147 "test_psa_api": ["OFF"],
1148 "cmake_build_type": ["Debug", "Release"],
1149 "with_bl2": [True],
1150 "profile": [""],
1151 "extra_params": ["NSOFF, CFG0"]
1152 },
1153 "common_params": _common_tfm_builder_cfg,
1154 "invalid": _common_tfm_invalid_configs + []
1155 }
1156
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001157config_rse_rd1ae = {"seed_params": {
1158 "tfm_platform": ["arm/rse/automotive_rd/rd1ae"],
1159 "compiler": ["GCC_10_3"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +01001160 "isolation_level": ["1", "2", "3"],
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001161 "test_regression": ["OFF"],
1162 "test_psa_api": ["OFF"],
1163 "cmake_build_type": ["Debug", "Release"],
1164 "with_bl2": [True],
1165 "profile": [""],
1166 "extra_params": ["NSOFF"]
1167 },
1168 "common_params": _common_tfm_builder_cfg,
1169 "invalid": _common_tfm_invalid_configs + []
1170 }
1171
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001172config_psoc64 = {"seed_params": {
1173 "tfm_platform": ["cypress/psoc64"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001174 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001175 "isolation_level": ["1", "2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001176 "test_regression": ["RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001177 "test_psa_api": ["OFF"],
1178 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001179 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001180 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001181 "extra_params": [""]
1182 },
1183 "common_params": _common_tfm_builder_cfg,
1184 "invalid": _common_tfm_invalid_configs + []
1185 }
1186
1187config_corstone1000 = {"seed_params": {
1188 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001189 "compiler": ["GCC_10_3"],
Xinyu Zhang5c4f2182023-10-31 16:26:45 +08001190 "isolation_level": ["1", "2"],
Emekcan Arasf8b39802023-04-24 10:15:22 +01001191 "test_regression": ["RegS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001192 "test_psa_api": ["OFF"],
Matthew Dalzellfc808ea2025-04-16 18:42:16 +01001193 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001194 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001195 "profile": [""],
Xinyu Zhang09acfbf2023-10-30 18:30:48 +08001196 "extra_params": ["NSOFF, CS1K_TEST, FVP", "NSOFF, CS1K_TEST, FPGA"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001197 },
1198 "common_params": _common_tfm_builder_cfg,
1199 "invalid": _common_tfm_invalid_configs + []
1200 }
1201
1202config_stm32l562e_dk = {"seed_params": {
1203 "tfm_platform": ["stm/stm32l562e_dk"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001204 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001205 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001206 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001207 "test_psa_api": ["OFF"],
1208 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001209 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001210 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001211 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
1212 },
1213 "common_params": _common_tfm_builder_cfg,
1214 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001215 # Oversize issue on config stm32l562e_dk_ARMCLANG_1_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001216 ("stm/stm32l562e_dk", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001217 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "*"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001218 # all other tests are off when CRYPTO is ON
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001219 ("stm/stm32l562e_dk", "*", "*", "RegBL2, RegS, RegNS", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +08001220 "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001221 # all other tests are ON when CRYPTO is OFF
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001222 ("stm/stm32l562e_dk", "*", "*", "OFF", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +08001223 "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001224 ]
1225 }
1226
1227config_b_u585i_iot02a = {"seed_params": {
1228 "tfm_platform": ["stm/b_u585i_iot02a"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001229 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Arthur She026ebb62023-02-08 18:47:39 -08001230 "isolation_level": ["1", "2"],
Arthur She96c6f772023-05-09 21:32:50 -07001231 "test_regression": ["OFF", "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": [""],
Arthur She026ebb62023-02-08 18:47:39 -08001236 "extra_params": [""]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001237 },
1238 "common_params": _common_tfm_builder_cfg,
1239 "invalid": _common_tfm_invalid_configs + []
1240 }
1241
Anton Komlev4164ab62024-02-23 10:59:56 +01001242config_stm32h573i_dk = {"seed_params": {
1243 "tfm_platform": ["stm/stm32h573i_dk"],
1244 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
1245 "isolation_level": ["1", "2"],
1246 "test_regression": ["OFF", "RegS, RegNS"],
1247 "test_psa_api": ["OFF"],
1248 "cmake_build_type": ["Release"],
1249 "with_bl2": [True],
1250 "profile": [""],
1251 "extra_params": [""]
1252 },
1253 "common_params": _common_tfm_builder_cfg,
1254 "invalid": _common_tfm_invalid_configs + []
1255 }
1256
Matthew Dalzelld5325dd2025-04-17 14:46:10 +01001257config_stm32wba65i_dk = {"seed_params": {
1258 "tfm_platform": ["stm/stm32wba65i_dk"],
1259 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
1260 "isolation_level": ["1", "2"],
1261 "test_regression": ["OFF", "RegS, RegNS"],
1262 "test_psa_api": ["OFF"],
1263 "cmake_build_type": ["Release"],
1264 "with_bl2": [False],
1265 "profile": ["profile_small","profile_medium"],
1266 "extra_params": [""]
1267 },
1268 "common_params": _common_tfm_builder_cfg,
1269 "invalid": _common_tfm_invalid_configs + [
1270 ("stm/stm32wba65i_dk", "*", "2", "*",
1271 "*", "*", "*", "profile_small", "*"),
1272 ]
1273 }
1274
1275
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001276config_nucleo_l552ze_q = {"seed_params": {
1277 "tfm_platform": ["stm/nucleo_l552ze_q"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001278 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001279 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001280 "test_regression": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001281 "test_psa_api": ["OFF"],
1282 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001283 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001284 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001285 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001286 },
1287 "common_params": _common_tfm_builder_cfg,
1288 "invalid": _common_tfm_invalid_configs + []
1289 }
1290
1291config_lpcxpresso55s69 = {"seed_params": {
1292 "tfm_platform": ["nxp/lpcxpresso55s69"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001293 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001294 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001295 "test_regression": ["OFF", "RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001296 "test_psa_api": ["OFF"],
1297 "cmake_build_type": ["Relwithdebinfo"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001298 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001299 "profile": ["profile_medium"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001300 "extra_params": [""]
1301 },
1302 "common_params": _common_tfm_builder_cfg,
1303 "invalid": _common_tfm_invalid_configs + []
1304 }
1305
Xinyu Zhang38b76742021-11-11 13:57:56 +08001306config_bl5340 = {"seed_params": {
1307 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001308 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001309 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001310 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001311 "test_psa_api": ["OFF"],
1312 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001313 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001314 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001315 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001316 },
1317 "common_params": _common_tfm_builder_cfg,
1318 "invalid": _common_tfm_invalid_configs + []
1319 }
1320
1321config_nrf5340dk = {"seed_params": {
1322 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001323 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001324 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001325 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001326 "test_psa_api": ["OFF"],
1327 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001328 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001329 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001330 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001331 },
1332 "common_params": _common_tfm_builder_cfg,
1333 "invalid": _common_tfm_invalid_configs + []
1334 }
1335
1336config_nrf9160dk = {"seed_params": {
1337 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001338 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001339 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001340 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001341 "test_psa_api": ["OFF"],
1342 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001343 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001344 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001345 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001346 },
1347 "common_params": _common_tfm_builder_cfg,
1348 "invalid": _common_tfm_invalid_configs + []
1349 }
1350
1351config_m2351 = {"seed_params": {
1352 "tfm_platform": ["nuvoton/m2351"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001353 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001354 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001355 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001356 "test_psa_api": ["OFF"],
1357 "cmake_build_type": ["Release"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001358 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001359 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001360 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001361 },
1362 "common_params": _common_tfm_builder_cfg,
1363 "invalid": _common_tfm_invalid_configs + []
1364 }
1365
1366config_m2354 = {"seed_params": {
1367 "tfm_platform": ["nuvoton/m2354"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001368 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001369 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001370 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001371 "test_psa_api": ["OFF"],
1372 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001373 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001374 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001375 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001376 },
1377 "common_params": _common_tfm_builder_cfg,
1378 "invalid": _common_tfm_invalid_configs + []
1379 }
1380
Dávid Házi0bd447f2024-10-24 19:44:31 +00001381config_rp2350 = {"seed_params": {
1382 "tfm_platform": ["rpi/rp2350"],
1383 "compiler": ["GCC_10_3"],
1384 "isolation_level": ["2"],
1385 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
1386 "test_psa_api": ["OFF"],
1387 "cmake_build_type": ["RelWithDebInfo", "Release"],
1388 "with_bl2": [True],
Nicola Mazzucato4bad6c62024-10-28 14:42:17 +00001389 "profile": ["profile_medium"],
Dávid Házi0bd447f2024-10-24 19:44:31 +00001390 "extra_params": [""]
1391 },
1392 "common_params": _common_tfm_builder_cfg,
1393 "invalid": _common_tfm_invalid_configs + []
1394 }
1395
Jianliang Shen48704152023-10-17 17:06:00 +08001396config_mem_footprint = {"seed_params": {
1397 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001398 "compiler": ["ARMCLANG_6_21"],
Jianliang Shen48704152023-10-17 17:06:00 +08001399 "isolation_level": ["1"],
1400 "test_regression": ["OFF"],
1401 "test_psa_api": ["OFF"],
1402 "cmake_build_type": ["Minsizerel"],
1403 "with_bl2": [True],
1404 "profile": [""],
1405 "extra_params": [""]
1406 },
1407 "common_params": _common_tfm_builder_cfg,
1408 "valid": [
1409 # AN521_ARMCLANG_1_Minsizerel_BL2_SMALL_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001410 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Jianliang Shen48704152023-10-17 17:06:00 +08001411 "OFF", "OFF", "Minsizerel", True, "profile_small", "PSOFF"),
1412 # AN521_ARMCLANG_2_Minsizerel_BL2_MEDIUM_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001413 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Jianliang Shen48704152023-10-17 17:06:00 +08001414 "OFF", "OFF", "Minsizerel", True, "profile_medium", "PSOFF"),
1415 # AN521_ARMCLANG_3_Minsizerel_BL2_LARGE_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001416 ("arm/mps2/an521", "ARMCLANG_6_21", "3",
Jianliang Shen48704152023-10-17 17:06:00 +08001417 "OFF", "OFF", "Minsizerel", True, "profile_large", "PSOFF"),
1418 ],
1419 "invalid": _common_tfm_invalid_configs + []
1420 }
1421
Jianliang Shen5492f752023-07-27 15:59:01 +08001422config_prof = {"seed_params": {
1423 "tfm_platform": ["arm/mps2/an521"],
1424 "compiler": ["GCC_10_3"],
1425 "isolation_level": ["1"],
1426 "test_regression": ["OFF"],
1427 "test_psa_api": ["OFF"],
1428 "cmake_build_type": ["Release"],
1429 "with_bl2": [True],
1430 "profile": [""],
1431 "extra_params": ["PROF"]
1432 },
1433 "common_params": _common_tfm_builder_cfg,
1434 "valid": [
1435 # AN521_GNUARM_1_Release_BL2_IPC_PROF
1436 ("arm/mps2/an521", "GCC_10_3", "1",
1437 "OFF", "OFF", "Release", True, "", "IPC, PROF"),
1438 # AN521_GNUARM_2_Release_BL2_PROF
1439 ("arm/mps2/an521", "GCC_10_3", "2",
1440 "OFF", "OFF", "Release", True, "", "PROF"),
1441 # AN521_GNUARM_3_Release_BL2_PROF
1442 ("arm/mps2/an521", "GCC_10_3", "3",
1443 "OFF", "OFF", "Release", True, "", "PROF"),
1444 ],
1445 "invalid": _common_tfm_invalid_configs + []
1446 }
1447
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001448# Config groups for debug
1449config_debug = {"seed_params": {
1450 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001451 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001452 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001453 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001454 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001455 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001456 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001457 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001458 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001459 },
1460 "common_params": _common_tfm_builder_cfg,
1461 "invalid": _common_tfm_invalid_configs + []
1462 }
1463
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001464config_debug_regr = deepcopy(config_debug)
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001465config_debug_regr["seed_params"]["test_regression"] = ["RegBL2, RegS, RegNS"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001466
1467config_debug_PSA_API = {"seed_params": {
1468 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001469 "compiler": ["ARMCLANG_6_21"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001470 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001471 "test_regression": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001472 "test_psa_api": ["CRYPTO",
1473 "INITIAL_ATTESTATION",
1474 "STORAGE",
1475 "IPC"],
1476 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001477 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001478 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001479 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001480 },
1481 "common_params": _common_tfm_builder_cfg,
1482 "invalid": _common_tfm_invalid_configs + []
1483 }
1484
Matthew Dalzell06e8f692024-11-09 00:55:06 +00001485
1486
Karl Zhangaff558a2020-05-15 14:28:23 +01001487_builtin_configs = {
Xinyu Zhang5c4f2182023-10-31 16:26:45 +08001488 # per-patch test group
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001489 "pp_test": config_pp_test,
Karl Zhang14573bc2020-06-08 09:23:21 +08001490
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001491 # nightly test groups
1492 "nightly_test": config_nightly_test,
1493 "nightly_profile_s": config_profile_s,
1494 "nightly_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +08001495 "nightly_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001496 "nightly_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001497 "nightly_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001498 "nightly_cc_driver_psa": config_cc_driver_psa,
1499 "nightly_fp":config_fp,
1500 "nightly_psa_api": config_psa_api,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001501 "nightly_nsce": config_nsce,
1502 "nightly_mmio": config_mmio,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001503 "nightly_cs300_an547": config_cs300_an547,
1504 "nightly_cs300_an552": config_cs300_an552,
1505 "nightly_cs300_fvp": config_cs300_fvp,
Bence Balogh8731a092022-05-24 17:24:54 +02001506 "nightly_corstone310": config_corstone310,
Nicola Mazzucatobde5d432024-05-20 11:43:18 +01001507 "nightly_corstone310_pacbti" : config_corstone310_pacbti,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001508 "nightly_corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001509 "nightly_corstone320": config_corstone320,
Antonio de Angelis92ad2442023-08-07 15:00:32 +02001510 "nightly_corstone1000": config_corstone1000,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001511 #"nightly_rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001512 "nightly_rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301513 "nightly_rse_rdv3": config_rse_rdv3,
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001514 "nightly_rse_rdv3r1": config_rse_rdv3r1,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001515 "nightly_rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001516 "nightly_psoc64": config_psoc64,
Anton Komlev55c3c022024-03-05 16:24:17 +01001517 "nightly_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -08001518 "nightly_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001519 "nightly_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001520 "nightly_lpcxpresso55s69": config_lpcxpresso55s69,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001521 "nightly_rp2350": config_rp2350,
Matthew Dalzell06e8f692024-11-09 00:55:06 +00001522 "nightly_all_plat": config_all_plat,
Karl Zhang14573bc2020-06-08 09:23:21 +08001523
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001524 # release test groups
1525 "release_test": config_release_test,
1526 "release_profile_s": config_profile_s,
1527 "release_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +08001528 "release_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001529 "release_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001530 "release_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001531 "release_cc_driver_psa": config_cc_driver_psa,
1532 "release_fp": config_fp,
1533 "release_psa_api": config_psa_api,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001534 "release_nsce": config_nsce,
1535 "release_mmio": config_mmio,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001536 "release_cs300_an547": config_cs300_an547,
1537 "release_cs300_an552": config_cs300_an552,
1538 "release_cs300_fvp": config_cs300_fvp,
Bence Balogh8731a092022-05-24 17:24:54 +02001539 "release_corstone310": config_corstone310,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001540 "release_corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001541 "release_corstone320": config_corstone320,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001542 #"release_rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001543 "release_rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301544 "release_rse_rdv3": config_rse_rdv3,
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001545 "release_rse_rdv3r1": config_rse_rdv3r1,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001546 "release_rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001547 "release_psoc64": config_psoc64,
Anton Komlev55c3c022024-03-05 16:24:17 +01001548 "release_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -08001549 "release_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001550 "release_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001551 "release_lpcxpresso55s69": config_lpcxpresso55s69,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001552 "release_rp2350": config_rp2350,
Karl Zhang14573bc2020-06-08 09:23:21 +08001553
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001554 # code coverage test groups
1555 "coverage_profile_s": config_cov_profile_s,
1556 "coverage_profile_m": config_cov_profile_m,
1557 "coverage_profile_l": config_cov_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001558 "coverage_ipc_backend": config_cov_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001559 "coverage_nsce": config_cov_nsce,
1560 "coverage_mmio": config_cov_mmio,
Xinyu Zhang5f725ee2022-12-19 10:29:20 +08001561 "coverage_fp": config_cov_fp,
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001562
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +03001563 # MISRA analysis
1564 "misra": config_misra,
Paul Sokolovskya526e5d2023-06-15 09:49:13 +03001565 "misra_debug": config_misra_debug,
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +03001566
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001567 # platform groups
1568 "an521": config_an521,
1569 "an519": config_an519,
1570 "an524": config_an524,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001571 "cs300_an547": config_cs300_an547,
1572 "cs300_an552": config_cs300_an552,
1573 "cs300_fvp": config_cs300_fvp,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001574 "musca_b1": config_musca_b1,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001575 "musca_s1": config_musca_s1,
Bence Balogh8731a092022-05-24 17:24:54 +02001576 "corstone310": config_corstone310,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001577 "corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001578 "corstone320": config_corstone320,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001579 #"rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001580 "rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301581 "rse_rdv3": config_rse_rdv3,
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001582 "rse_rdv3r1": config_rse_rdv3r1,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001583 "rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001584 "cypress_psoc64": config_psoc64,
Antonio de Angelis92ad2442023-08-07 15:00:32 +02001585 "corstone1000": config_corstone1000,
Anton Komlev55c3c022024-03-05 16:24:17 +01001586 "stm_stm32l562e_dk": config_stm32l562e_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001587 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001588 "stm_stm32h573i_dk": config_stm32h573i_dk,
Matthew Dalzelld5325dd2025-04-17 14:46:10 +01001589 "stm_stm32wba65i_dk" : config_stm32wba65i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001590 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1591 "nxp_lpcxpresso55s69": config_lpcxpresso55s69,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001592 "laird_bl5340": config_bl5340,
1593 "nordic_nrf5340dk": config_nrf5340dk,
1594 "nordic_nrf9160dk": config_nrf9160dk,
1595 "nuvoton_m2351": config_m2351,
1596 "nuvoton_m2354": config_m2354,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001597 "rp2350": config_rp2350,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001598
Bence Balogh79fda442022-10-14 18:01:37 +02001599 # config groups for tf-m-extras examples
1600 "example_vad": config_example_vad,
1601 "example_dma350_trigger": config_example_dma350_trigger,
Bence Balogh852f8bd2023-08-07 14:46:54 +02001602 "example_dma350_clcd": config_example_dma350_clcd,
Bence Balogh79fda442022-10-14 18:01:37 +02001603 "example_dma350_s": config_example_dma350_s,
Bence Baloghd23cbda2023-08-07 15:30:58 +02001604 "example_dma350_ns": config_example_dma350_ns,
Bence Balogh79fda442022-10-14 18:01:37 +02001605
Jianliang Shen48704152023-10-17 17:06:00 +08001606 # config groups for tf-m performance monitor
1607 "mem_footprint": config_mem_footprint,
Jianliang Shen5492f752023-07-27 15:59:01 +08001608 "profiling": config_prof,
1609
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001610 # config groups for debug
Dean Birch4c6ad622020-03-13 11:28:03 +00001611 "debug": config_debug,
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001612 "debug_regr": config_debug_regr,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001613 "debug_PSA_API": config_debug_PSA_API,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001614 }
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001615
1616if __name__ == '__main__':
1617 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001618
Minos Galanakisea421232019-06-20 17:11:28 +01001619 # Default behavior is to export refference config when called
1620 _dir = os.getcwd()
1621 from utils import save_json
1622 for _cname, _cfg in _builtin_configs.items():
1623 _fname = os.path.join(_dir, _cname + ".json")
1624 print("Exporting config %s" % _fname)
1625 save_json(_fname, _cfg)