blob: 8de73d401077552083c31c38471b1f7f1667d44f [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 " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080065 "-DTFM_EXTRAS_REPO_PATH=%(codebase_root_dir)s/../tf-m-extras ",
66
67 "nspe_config_template": "cmake -G Ninja " + \
Jianliang Shen7905e5d2023-11-07 10:40:47 +080068 "-S %(nspe_root_dir)s " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080069 "-B %(ci_build_root_dir)s/nspe " + \
70 "-DCONFIG_SPE_PATH=%(ci_build_root_dir)s/spe/api_ns " + \
Xinyu Zhang85588522023-10-31 13:58:04 +080071 "-DTFM_TOOLCHAIN_FILE=%(ci_build_root_dir)s/spe/api_ns/cmake/%(ns_compiler)s " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080072 "%(extra_params)s " + \
73 "-DQCBOR_PATH=%(codebase_root_dir)s/../qcbor ",
74
75 # CMake build commands will be executed for every build.
76 "spe_cmake_build": "cmake --build %(ci_build_root_dir)s/spe -- install",
77 "nspe_cmake_build": "cmake --build %(ci_build_root_dir)s/nspe --",
Karl Zhangaff558a2020-05-15 14:28:23 +010078
Xinyu Zhang433771e2022-04-01 16:49:17 +080079 "set_compiler_path": "export PATH=$PATH:$%(compiler)s_PATH",
80
Minos Galanakisea421232019-06-20 17:11:28 +010081 # A small subset of string substitution params is allowed in commands.
82 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
83 # _tbm_target_platform_ with the paths set when building
84
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080085 "artifact_capture_rex": (r'%(ci_build_root_dir)s/nspe'
Minos Galanakisea421232019-06-20 17:11:28 +010086 r'/(\w+\.(?:axf|bin|hex))$'),
87
Xinyu Zhang46b37182023-06-30 15:36:44 +080088 # Keys will append extra commands when matching target_platform
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080089 "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;"
Antonio de Angelis3a68f5b2025-01-20 16:03:24 +000090 "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=49152;"
Xinyu Zhang09acfbf2023-10-30 18:30:48 +080091 "%(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 +010092 "arm/musca_b1": ("if [ -d \"%(ci_build_root_dir)s/nspe\" ]; then "
Matthew Dalzell4fd9e502024-04-19 11:04:26 +010093 "srec_cat "
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080094 "%(ci_build_root_dir)s/spe/bin/"
95 "bl2.bin "
96 "-Binary -offset 0xA000000 "
97 "-fill 0xFF 0xA000000 0xA020000 "
98 "%(ci_build_root_dir)s/nspe/"
99 "tfm_s_ns_signed.bin "
100 "-Binary -offset 0xA020000 "
101 "-fill 0xFF 0xA020000 0xA200000 "
102 "-o %(ci_build_root_dir)s/"
Matthew Dalzell4fd9e502024-04-19 11:04:26 +0100103 "spe/bin/tfm.hex -Intel;"
Matthew Dalzell4fd9e502024-04-19 11:04:26 +0100104 "fi;"),
Matthew Dalzell59ea18e2024-06-06 17:00:52 +0100105 "arm/musca_s1": ("if [ -d \"%(ci_build_root_dir)s/nspe\" ]; then "
Matthew Dalzell4fd9e502024-04-19 11:04:26 +0100106 "srec_cat "
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800107 "%(ci_build_root_dir)s/spe/bin/"
108 "bl2.bin "
109 "-Binary -offset 0xA000000 "
110 "-fill 0xFF 0xA000000 0xA020000 "
111 "%(ci_build_root_dir)s/nspe/"
112 "tfm_s_ns_signed.bin "
113 "-Binary -offset 0xA020000 "
114 "-fill 0xFF 0xA020000 0xA200000 "
115 "-o %(ci_build_root_dir)s/"
Matthew Dalzell4fd9e502024-04-19 11:04:26 +0100116 "spe/bin/tfm.hex -Intel; "
Matthew Dalzell4fd9e502024-04-19 11:04:26 +0100117 "fi;"),
Jamie Fox82a91d02024-09-27 14:54:14 +0100118 "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 +0100119 "srec_cat "
120 "%(ci_build_root_dir)s/spe/bin/bl1_1.bin -Binary -offset 0x0 "
121 "%(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin -Binary -offset 0x10000 "
122 "%(ci_build_root_dir)s/spe/bin/rom_dma_ics.bin -Binary -offset 0x1F000 "
123 "-o %(ci_build_root_dir)s/spe/bin/rom.bin -Binary;"
124 "else "
125 "srec_cat "
Jamie Fox9283cbc2024-04-22 13:40:01 +0100126 "%(ci_build_root_dir)s/spe/bin/bl1_1.bin -Binary -offset 0x0 "
127 "%(ci_build_root_dir)s/spe/bin/rom_dma_ics.bin -Binary -offset 0x1F000 "
128 "-o %(ci_build_root_dir)s/spe/bin/rom.bin -Binary;"
Raef Colesf9a20742024-06-06 10:47:49 +0100129 "fi;"
Jamie Fox82a91d02024-09-27 14:54:14 +0100130 "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 +0100131 "chmod 755 fiptool;"
Jamie Fox82a91d02024-09-27 14:54:14 +0100132 "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 +0100133 "./fiptool update "
Jamie Fox82a91d02024-09-27 14:54:14 +0100134 "--align 8192 --rse-bl2 %(ci_build_root_dir)s/spe/bin/bl2_signed.bin "
135 "--align 8192 --rse-s %(ci_build_root_dir)s/spe/bin/tfm_s_encrypted.bin "
136 "--align 8192 --rse-ns %(ci_build_root_dir)s/nspe/bin/tfm_ns_encrypted.bin "
137 "--align 8192 --rse-sic-tables-s %(ci_build_root_dir)s/spe/bin/tfm_s_sic_tables_signed.bin "
138 "--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 +0100139 "--out %(ci_build_root_dir)s/spe/bin/host_flash.bin "
140 "fip.bin"),
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000141 "arm/rse/tc/tc4": ("if [ -f \"%(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin\" ]; then "
142 "srec_cat "
143 "%(ci_build_root_dir)s/spe/bin/bl1_1.bin -Binary -offset 0x0 "
144 "%(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin -Binary -offset 0x10000 "
145 "%(ci_build_root_dir)s/spe/bin/rom_dma_ics.bin -Binary -offset 0x1F000 "
146 "-o %(ci_build_root_dir)s/spe/bin/rom.bin -Binary;"
147 "else "
148 "srec_cat "
149 "%(ci_build_root_dir)s/spe/bin/bl1_1.bin -Binary -offset 0x0 "
150 "%(ci_build_root_dir)s/spe/bin/rom_dma_ics.bin -Binary -offset 0x1F000 "
151 "-o %(ci_build_root_dir)s/spe/bin/rom.bin -Binary;"
152 "fi;"
153 # fiptool in tc3 directory also compatible with tc4 fip.bin
154 "curl --fail --no-progress-meter --connect-timeout 10 --retry 6 -LS -o fiptool https://downloads.trustedfirmware.org/tf-m/rse/tc/tc3/fiptool;"
155 "chmod 755 fiptool;"
156 "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;"
157 "./fiptool update "
158 "--align 8192 --rse-bl2 %(ci_build_root_dir)s/spe/bin/bl2_signed.bin "
159 "--align 8192 --rse-s %(ci_build_root_dir)s/spe/bin/tfm_s_encrypted.bin "
160 "--align 8192 --rse-ns %(ci_build_root_dir)s/nspe/bin/tfm_ns_encrypted.bin "
161 "--align 8192 --rse-sic-tables-s %(ci_build_root_dir)s/spe/bin/tfm_s_sic_tables_signed.bin "
162 "--align 8192 --rse-sic-tables-ns %(ci_build_root_dir)s/nspe/bin/tfm_ns_sic_tables_signed.bin "
163 "--out %(ci_build_root_dir)s/spe/bin/host_flash.bin "
164 "fip.bin"),
Xinyu Zhang46b37182023-06-30 15:36:44 +0800165 "stm/stm32l562e_dk": ("echo 'STM32L562E-DK board post process';"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800166 "%(ci_build_root_dir)s/spe/api_ns/postbuild.sh;"
167 "pushd %(ci_build_root_dir)s/spe/api_ns;"
168 "mkdir -p image_signing/scripts ;"
169 "cp %(ci_build_root_dir)s/nspe/bin/tfm_ns_signed.bin image_signing/scripts ;"
170 "tar jcf ./bin/stm32l562e-dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh "
171 "bin/bl2.bin "
172 "bin/tfm_s_signed.bin "
173 "image_signing/scripts/tfm_ns_signed.bin ;"
Xinyu Zhang46b37182023-06-30 15:36:44 +0800174 "popd"),
175 "stm/b_u585i_iot02a": ("echo 'STM32U5 board post process';"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800176 "%(ci_build_root_dir)s/spe/api_ns/postbuild.sh;"
177 "pushd %(ci_build_root_dir)s/spe/api_ns;"
178 "mkdir -p image_signing/scripts ;"
179 "cp %(ci_build_root_dir)s/nspe/bin/tfm_ns_signed.bin image_signing/scripts ;"
180 "tar jcf ./bin/b_u585i_iot02a-tfm.tar.bz2 regression.sh TFM_UPDATE.sh "
181 "bin/bl2.bin "
182 "bin/tfm_s_signed.bin "
183 "image_signing/scripts/tfm_ns_signed.bin ;"
Xinyu Zhang46b37182023-06-30 15:36:44 +0800184 "popd"),
Anton Komlev4164ab62024-02-23 10:59:56 +0100185 "stm/stm32h573i_dk": ("echo 'STM32H573I-DK board post process';"
186 "%(ci_build_root_dir)s/spe/api_ns/postbuild.sh;"
187 "pushd %(ci_build_root_dir)s/spe/api_ns;"
188 "mkdir -p image_signing/scripts ;"
189 "cp %(ci_build_root_dir)s/nspe/bin/tfm_ns_signed.bin image_signing/scripts ;"
190 "tar jcf ./bin/stm32h573i_dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh "
191 "bin/bl2.bin "
192 "bin/tfm_s_signed.bin "
193 "image_signing/scripts/tfm_ns_signed.bin ;"
194 "popd"),
Matthew Dalzell0bdc0b22024-04-17 18:13:31 +0100195 "nxp/lpcxpresso55s69": ("echo 'LPCXpresso55S69 bo.ard post process\n';"
196 "mkdir -p %(codebase_root_dir)s/build/bin ;"
197 # Workaround for flash_JLink.py
198 "cp %(ci_build_root_dir)s/spe/bin/tfm_s.hex %(codebase_root_dir)s/build/bin ;"
199 "cp %(ci_build_root_dir)s/nspe/bin/tfm_ns.hex %(codebase_root_dir)s/build/bin ;"
200 "cd %(codebase_root_dir)s/build/bin; "
201 "rm -f flash.jlink; "
202 "if [ -f \"%(ci_build_root_dir)s/spe/bin/bl2.hex\" ]; then "
203 "echo r >> flash.jlink; "
204 "echo erase >> flash.jlink; "
205 "echo loadfile bl2.hex >> flash.jlink; "
206 "echo loadfile tfm_s_ns_signed.bin -0x8000 >> flash.jlink; "
207 "echo r >> flash.jlink; "
208 "echo go >> flash.jlink; "
209 "echo exit >> flash.jlink; "
210 "else "
211 "echo r >> flash.jlink; "
212 "echo erase >> flash.jlink; "
213 "echo loadfile tfm_s.hex >> flash.jlink; "
214 "echo loadfile tfm_ns.hex >> flash.jlink; "
215 "echo r >> flash.jlink; "
216 "echo go >> flash.jlink; "
217 "echo exit >> flash.jlink; "
218 "fi;"
219 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"
220 "tar jcf lpcxpresso55s69-tfm.tar.bz2 flash.jlink ${BIN_FILES};"
221 "mv lpcxpresso55s69-tfm.tar.bz2 %(ci_build_root_dir)s/nspe/bin ;"
222 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"),
Xinyu Zhang46b37182023-06-30 15:36:44 +0800223 "cypress/psoc64": ("echo 'Sign binaries for Cypress PSoC64 platform';"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800224 "pushd %(codebase_root_dir)s/;"
Arthur She87602dc2022-02-06 14:42:18 -0800225 "sudo /usr/local/bin/cysecuretools "
226 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
227 "--target cy8ckit-064s0s2-4343w "
228 "sign-image "
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800229 "--hex %(ci_build_root_dir)s/spe/bin/tfm_s.hex "
Arthur She87602dc2022-02-06 14:42:18 -0800230 "--image-type BOOT --image-id 1;"
231 "sudo /usr/local/bin/cysecuretools "
232 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
233 "--target cy8ckit-064s0s2-4343w "
234 "sign-image "
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800235 "--hex %(ci_build_root_dir)s/nspe/bin/tfm_ns.hex "
Arthur She87602dc2022-02-06 14:42:18 -0800236 "--image-type BOOT --image-id 16;"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800237 "mv %(ci_build_root_dir)s/spe/bin/tfm_s.hex %(ci_build_root_dir)s/spe/bin/tfm_s_signed.hex;"
238 "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 +0800239 "popd")
Minos Galanakisea421232019-06-20 17:11:28 +0100240 },
241
242 # (Optional) If set will fail if those artefacts are missing post build
243 "required_artefacts": {"all": [
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800244 "%(ci_build_root_dir)s/spe/bin/"
Xinyu Zhangb708f572020-09-15 11:43:46 +0800245 "tfm_s.bin",
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800246 "%(ci_build_root_dir)s/nspe/"
Xinyu Zhangb708f572020-09-15 11:43:46 +0800247 "tfm_ns.bin"],
Mark Horvathef57baa2022-09-12 13:36:36 +0200248 "arm/musca_b1": [
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800249 "%(ci_build_root_dir)s/tfm.hex",
250 "%(ci_build_root_dir)s/spe/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800251 "bl2.bin",
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800252 "%(ci_build_root_dir)s/spe/bin/"
Xinyu Zhangb708f572020-09-15 11:43:46 +0800253 "tfm_sign.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800254 "arm/musca_s1": [
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800255 "%(ci_build_root_dir)s/tfm.hex",
256 "%(ci_build_root_dir)s/spe/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800257 "bl2.bin",
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800258 "%(ci_build_root_dir)s/spe/bin/"
Jamie Fox9283cbc2024-04-22 13:40:01 +0100259 "tfm_sign.bin"],
Jamie Fox82a91d02024-09-27 14:54:14 +0100260 "arm/rse/tc/tc3": [
Jamie Fox9283cbc2024-04-22 13:40:01 +0100261 "%(ci_build_root_dir)s/spe/bin/rom.bin",
Raef Colesaac84bc2025-01-09 14:20:12 +0000262 "%(ci_build_root_dir)s/spe/bin/provisioning/combined_provisioning_message.bin",
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000263 "%(ci_build_root_dir)s/spe/bin/host_flash.bin"],
264 "arm/rse/tc/tc4": [
265 "%(ci_build_root_dir)s/spe/bin/rom.bin",
Raef Colesaac84bc2025-01-09 14:20:12 +0000266 "%(ci_build_root_dir)s/spe/bin/provisioning/combined_provisioning_message.bin",
Jamie Fox9283cbc2024-04-22 13:40:01 +0100267 "%(ci_build_root_dir)s/spe/bin/host_flash.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100268 }
269}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100270
Xinyu Zhangb708f572020-09-15 11:43:46 +0800271# List of all build configs that are impossible under all circumstances
272_common_tfm_invalid_configs = [
Xinyu Zhang459a1982021-07-21 22:34:49 +0800273 # 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 +0300274 ("arm/musca_b1", "ARMCLANG_6_21", "*", "RegBL2, RegS, RegNS", "OFF", "Debug", "*", "", "*"),
275 ("arm/musca_s1", "ARMCLANG_6_21", "*", "RegBL2, RegS, RegNS", "OFF", "Debug", "*", "", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800276 # Load range overlap on Musca for IPC Debug type: T895
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300277 ("arm/musca_b1", "ARMCLANG_6_21", "*", "*", "IPC", "Debug", "*", "*", "*"),
278 ("arm/musca_s1", "ARMCLANG_6_21", "*", "*", "IPC", "Debug", "*", "*", "*"),
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300279 # FF does not support L3
Summer Qin379abb62022-10-08 16:41:54 +0800280 ("*", "*", "3", "*", "IPC", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800281 # Musca requires BL2
Summer Qin379abb62022-10-08 16:41:54 +0800282 ("arm/musca_b1", "*", "*", "*", "*", "*", False, "*", "*"),
283 ("arm/musca_s1", "*", "*", "*", "*", "*", False, "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800284 # Only AN521 and MUSCA_B1 support Isolation Level 3
Summer Qin379abb62022-10-08 16:41:54 +0800285 ("arm/mps2/an519", "*", "3", "*", "*", "*", "*", "*", "*"),
286 ("arm/mps3/an524", "*", "3", "*", "*", "*", "*", "*", "*"),
287 ("arm/musca_s1", "*", "3", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800288 ]
289
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100290# Configure build manager to build several combinations
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800291# Config group for per-patch job
292config_pp_test = {"seed_params": {
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800293 # AN519_ARMCLANG_IPC_1_RegBL2_RegS_RegNS_Debug_BL2
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800294 "tfm_platform": ["arm/mps2/an519"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300295 "compiler": ["ARMCLANG_6_21"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800296 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800297 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800298 "test_psa_api": ["OFF"],
299 "cmake_build_type": ["Debug"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800300 "with_bl2": [True],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800301 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800302 "extra_params": [""]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800303 },
304 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800305 "valid": [
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800306 # AN519_ARMCLANG_2_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300307 ("arm/mps2/an519", "ARMCLANG_6_21", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800308 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800309 # AN519_GCC_2_RegBL2_RegS_RegNS_Release_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800310 ("arm/mps2/an519", "GCC_10_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800311 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
312 # AN519_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800313 ("arm/mps2/an519", "GCC_10_3", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800314 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
315 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_SMALL_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300316 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800317 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "profile_small", "PSOFF"),
318 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300319 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800320 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Chris Branddc827302024-10-11 15:20:17 -0700321 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_PSCLEAR
322 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
323 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", "PSCLEAR"),
324 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_PSLIMIT
325 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
326 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", "PSLIMIT"),
Jianliang Shen6984bef2023-07-25 10:36:56 +0800327 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_IPC
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300328 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Jianliang Shen6984bef2023-07-25 10:36:56 +0800329 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", "IPC"),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800330 # AN521_ARMCLANG_2_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300331 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800332 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
333 # AN521_ARMCLANG_3_RegBL2_RegS_RegNS_Minsizerel_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300334 ("arm/mps2/an521", "ARMCLANG_6_21", "3",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800335 "RegBL2, RegS, RegNS", "OFF", "Minsizerel", True, "", ""),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800336 # AN521_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800337 ("arm/mps2/an521", "GCC_10_3", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800338 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100339 # AN521_GCC_2_RegBL2_RegS_RegNS_Debug_BL2_MEDIUM
Summer Qin379abb62022-10-08 16:41:54 +0800340 ("arm/mps2/an521", "GCC_10_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800341 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "profile_medium", ""),
342 # AN521_GCC_2_RegBL2_RegS_RegNS_Release_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800343 ("arm/mps2/an521", "GCC_10_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800344 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
345 # AN521_GCC_3_RegBL2_RegS_RegNS_Minsizerel_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800346 ("arm/mps2/an521", "GCC_10_3", "3",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800347 "RegBL2, RegS, RegNS", "OFF", "Minsizerel", True, "", ""),
Xinyu Zhang280f5ab2023-10-31 16:17:21 +0800348 # AN521_GCC_1_FF_Release_BL2
349 ("arm/mps2/an521", "GCC_10_3", "1",
350 "OFF", "IPC", "Release", True, "", ""),
351 # AN521_ARMCLANG_2_STORAGE_Debug_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300352 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Xinyu Zhang280f5ab2023-10-31 16:17:21 +0800353 "OFF", "STORAGE", "Debug", True, "", ""),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100354 # CS300_FVP_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
Bence Balogh1aa8d582023-08-29 13:10:02 +0200355 ("arm/mps3/corstone300/fvp", "GCC_10_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800356 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100357 # CS300_FVP_GCC_2_RegBL2_RegS_RegNS_Release_BL2
Bence Balogh1aa8d582023-08-29 13:10:02 +0200358 ("arm/mps3/corstone300/fvp", "GCC_10_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800359 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100360 # corstone310_ARMCLANG_1_Debug_BL2_PACBTI_STD
Nicola Mazzucatob4e19572024-08-21 12:26:14 +0100361 ("arm/mps3/corstone310/fvp", "ARMCLANG_6_21", "1",
Nicola Mazzucatob542f2b2024-05-23 10:13:43 +0100362 "OFF", "OFF", "Debug", True, "", "PACBTI_STD"),
Xinyu Zhang5c4f2182023-10-31 16:26:45 +0800363 # corstone1000_GCC_2_RegS_Debug_BL2_NSOFF_CS1K_TEST_FVP
364 ("arm/corstone1000", "GCC_10_3", "2",
365 "RegS", "OFF", "Debug", True, "", "NSOFF, CS1K_TEST, FVP"),
Matthew Dalzell397fb3c2024-06-21 11:03:38 +0100366 # corstone315_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2
367 ("arm/mps4/corstone315", "ARMCLANG_6_21", "1",
368 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Gergely Korcsák78a4d142024-08-05 07:41:36 +0200369 # corstone320_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2
370 ("arm/mps4/corstone320", "ARMCLANG_6_21", "1",
371 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800372 # MUSCA_B1_GCC_1_RegBL2_RegS_RegNS_Minsizerel_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800373 ("arm/musca_b1", "GCC_10_3", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800374 "RegBL2, RegS, RegNS", "OFF", "Minsizerel", True, "", ""),
375 # MUSCA_S1_ARMCLANG_2_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300376 ("arm/musca_s1", "ARMCLANG_6_21", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800377 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
378 # MUSCA_S1_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800379 ("arm/musca_s1", "GCC_10_3", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800380 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
381 # MUSCA_S1_GCC_2_RegBL2_RegS_RegNS_Release_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800382 ("arm/musca_s1", "GCC_10_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800383 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800384 # MUSCA_S1_GCC_1_RegBL2_RegS_RegNS_Release_BL2_CC_DRIVER_PSA
Summer Qin379abb62022-10-08 16:41:54 +0800385 ("arm/musca_s1", "GCC_10_3", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800386 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "CC_DRIVER_PSA"),
Nicola Mazzucato8617ae92024-10-02 13:14:15 +0100387 # RSE_TC3_GCC_3_RegS_RegNS_Release_BL2_ATTESTATION_SCHEME_DPE
Antonio de Angelis78a01fc2025-02-06 11:11:25 +0000388 #("arm/rse/tc/tc3", "GCC_10_3", "3",
389 # "RegS, RegNS", "OFF", "Release", True, "", "ATTESTATION_SCHEME_DPE"),
Jamie Fox82a91d02024-09-27 14:54:14 +0100390 # RSE_TC3_GCC_2_RegBL1_1_Debug_BL2
Antonio de Angelis78a01fc2025-02-06 11:11:25 +0000391 #("arm/rse/tc/tc3", "GCC_10_3", "2",
392 # "RegBL1_1", "OFF", "Debug", True, "", ""),
Nicola Mazzucatob4763262024-09-26 12:39:06 +0100393 # RSE_TC3_GCC_2_Release_BL2_ATTESTATION_SCHEME_CCA
Antonio de Angelis78a01fc2025-02-06 11:11:25 +0000394 #("arm/rse/tc/tc3", "GCC_10_3", "2",
395 # "OFF", "OFF", "Release", True, "", "ATTESTATION_SCHEME_CCA"),
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000396 # RSE_TC4_GCC_3_RegS_RegNS_Release_BL2_ATTESTATION_SCHEME_DPE
397 ("arm/rse/tc/tc4", "GCC_10_3", "3",
398 "RegS, RegNS", "OFF", "Release", True, "", "ATTESTATION_SCHEME_DPE"),
399 # RSE_TC4_GCC_2_RegBL1_1_Debug_BL2
400 ("arm/rse/tc/tc4", "GCC_10_3", "2",
401 "RegBL1_1", "OFF", "Debug", True, "", ""),
402 # RSE_TC4_GCC_2_Release_BL2_ATTESTATION_SCHEME_CCA
403 ("arm/rse/tc/tc4", "GCC_10_3", "2",
404 "OFF", "OFF", "Release", True, "", "ATTESTATION_SCHEME_CCA"),
Ishan Deshpande80d840e2025-01-09 18:46:56 +0530405 # RSE_RDV3_GCC_2_Release_BL2_NSOFF_CFG0
Antonio de Angelis373187e2025-01-11 22:09:30 +0000406 ("arm/rse/neoverse_rd/rdv3", "GCC_10_3", "2",
Jamie Fox9283cbc2024-04-22 13:40:01 +0100407 "OFF", "OFF", "Release", True, "", "NSOFF, CFG0"),
Ziad Elhanafy937333f2024-05-22 14:17:40 +0100408 # RSE_RD1AE_GCC_2_Release_BL2_NSOFF
409 ("arm/rse/automotive_rd/rd1ae", "GCC_10_3", "2",
410 "OFF", "OFF", "Release", True, "", "NSOFF"),
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800411 # stm32l562e_dk_ARMCLANG_1_RegS_RegNS_Release_BL2_CRYPTO_OFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300412 ("stm/stm32l562e_dk", "ARMCLANG_6_21", "1",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800413 "RegS, RegNS", "OFF", "Release", True, "", "CRYPTO_OFF"),
414 # stm32l562e_dk_GCC_2_Release_BL2_CRYPTO_ON
Summer Qin379abb62022-10-08 16:41:54 +0800415 ("stm/stm32l562e_dk", "GCC_10_3", "2",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800416 "OFF", "OFF", "Release", True, "", "CRYPTO_ON"),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100417 # stm32l562e_dk_GCC_3_RegBL2_RegS_RegNS_Release_BL2_CRYPTO_OFF
Summer Qin379abb62022-10-08 16:41:54 +0800418 ("stm/stm32l562e_dk", "GCC_10_3", "3",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800419 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "CRYPTO_OFF"),
Arthur She4f08c152023-05-15 15:29:14 -0700420 # b_u585i_iot02a_GCC_1_RegS_RegNS_Release_BL2
421 ("stm/b_u585i_iot02a", "GCC_10_3", "1",
422 "RegS, RegNS", "OFF", "Release", True, "", ""),
423 # b_u585i_iot02a_ARMCLANG_2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300424 ("stm/b_u585i_iot02a", "ARMCLANG_6_21", "2",
Arthur She4f08c152023-05-15 15:29:14 -0700425 "RegS, RegNS", "OFF", "Release", True, "", ""),
Anton Komlev4164ab62024-02-23 10:59:56 +0100426 # stm32h573i_dk_GCC_1_RegS_RegNS_Release_BL2
427 ("stm/stm32h573i_dk", "GCC_10_3", "1",
428 "RegS, RegNS", "OFF", "Release", True, "", ""),
429 # stm32h573i_dk_ARMCLANG_2_RegS_RegNS_Release_BL2
430 ("stm/stm32h573i_dk", "ARMCLANG_6_21", "2",
431 "RegS, RegNS", "OFF", "Release", True, "", ""),
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800432 # psoc64_GCC_2_RegS_RegNS_Release
Summer Qin379abb62022-10-08 16:41:54 +0800433 ("cypress/psoc64", "GCC_10_3", "2",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800434 "RegS, RegNS", "OFF", "Release", False, "", ""),
Nicola Mazzucato4bad6c62024-10-28 14:42:17 +0000435 # rp2350_GCC_2_RegBL2_RegS_RegNS_Release_BL2_MEDIUM
Dávid Házi0bd447f2024-10-24 19:44:31 +0000436 ("rpi/rp2350", "GCC_10_3", "2",
Nicola Mazzucato4bad6c62024-10-28 14:42:17 +0000437 "RegBL2, RegS, RegNS", "OFF", "Release", True, "profile_medium", ""),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800438 ],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800439 "invalid": _common_tfm_invalid_configs + []
440 }
441
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800442# Config group for nightly job
443config_nightly_test = {"seed_params": {
444 "tfm_platform": ["arm/mps2/an519",
445 "arm/mps2/an521",
446 "arm/mps3/an524",
447 "arm/musca_s1",
Mark Horvathef57baa2022-09-12 13:36:36 +0200448 "arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300449 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800450 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800451 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800452 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800453 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800454 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800455 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800456 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100457 },
458 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800459 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100460 }
461
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800462# Config group for release job
463config_release_test = {"seed_params": {
464 "tfm_platform": ["arm/mps2/an519",
465 "arm/mps2/an521",
466 "arm/mps3/an524",
Mark Horvathef57baa2022-09-12 13:36:36 +0200467 "arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800468 "arm/musca_s1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300469 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800470 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800471 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800472 "test_psa_api": ["OFF"],
473 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800474 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800475 "profile": [""],
David Vinczed78e2622022-11-24 15:04:00 +0100476 "extra_params": ["TEST_CBOR"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800477 },
478 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800479 "valid": [
480 # sanity test for GCC v11.2
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800481 # AN521_GCC_3_RegBL2_RegS_RegNS_Relwithdebinfo_BL2
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800482 ("arm/mps2/an521", "GCC_11_2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800483 "3", "RegBL2, RegS, RegNS", "OFF", "Relwithdebinfo",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800484 True, "", ""),
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800485 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800486 "invalid": _common_tfm_invalid_configs + []
487 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800488
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800489# Config groups for TF-M features
490config_profile_s = {"seed_params": {
David Huda27ae72022-03-28 15:32:19 +0800491 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300492 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
David Huda27ae72022-03-28 15:32:19 +0800493 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800494 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
David Huda27ae72022-03-28 15:32:19 +0800495 "test_psa_api": ["OFF"],
496 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
David Huda27ae72022-03-28 15:32:19 +0800497 "with_bl2": [True],
David Huda27ae72022-03-28 15:32:19 +0800498 "profile": ["profile_small"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800499 "extra_params": ["PSOFF"]
David Huda27ae72022-03-28 15:32:19 +0800500 },
501 "common_params": _common_tfm_builder_cfg,
David Huda27ae72022-03-28 15:32:19 +0800502 "invalid": _common_tfm_invalid_configs + [
Summer Qin379abb62022-10-08 16:41:54 +0800503 ("arm/mps2/an519", "GCC_10_3", "*", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800504 "*", "Minsizerel", "*", "*", "*")
David Huda27ae72022-03-28 15:32:19 +0800505 ]
506 }
507
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800508config_profile_m = {"seed_params": {
509 "tfm_platform": ["arm/mps2/an519",
510 "arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200511 "arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300512 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800513 "isolation_level": ["2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800514 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800515 "test_psa_api": ["OFF"],
516 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800517 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800518 "profile": ["profile_medium"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800519 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800520 },
521 "common_params": _common_tfm_builder_cfg,
522 "invalid": _common_tfm_invalid_configs + []
523 }
524
David Hu3d333762022-10-27 18:12:33 +0800525config_profile_m_arotless = {"seed_params": {
526 "tfm_platform": ["arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300527 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
David Hu3d333762022-10-27 18:12:33 +0800528 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800529 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
David Hu3d333762022-10-27 18:12:33 +0800530 "test_psa_api": ["OFF"],
531 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
532 "with_bl2": [True],
533 "profile": ["profile_medium_arotless"],
534 "extra_params": ["", "PSOFF"]
535 },
536 "common_params": _common_tfm_builder_cfg,
537 "invalid": _common_tfm_invalid_configs + []
538 }
539
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800540config_profile_l = {"seed_params": {
541 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300542 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800543 "isolation_level": ["3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800544 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800545 "test_psa_api": ["OFF"],
546 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800547 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800548 "profile": ["profile_large"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800549 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800550 },
551 "common_params": _common_tfm_builder_cfg,
552 "invalid": _common_tfm_invalid_configs + []
553 }
554
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800555config_ipc_backend = {"seed_params": {
556 "tfm_platform": ["arm/mps2/an519",
557 "arm/mps2/an521",
558 "arm/musca_s1",
559 "arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300560 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800561 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800562 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800563 "test_psa_api": ["OFF"],
564 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
565 "with_bl2": [True],
566 "profile": [""],
567 "extra_params": ["IPC"]
568 },
569 "common_params": _common_tfm_builder_cfg,
570 "invalid": _common_tfm_invalid_configs + []
571 }
572
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800573config_cc_driver_psa = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200574 "tfm_platform": ["arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800575 "arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800576 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800577 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800578 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800579 "test_psa_api": ["OFF"],
580 "cmake_build_type": ["Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800581 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800582 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800583 "extra_params": ["CC_DRIVER_PSA"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800584 },
585 "common_params": _common_tfm_builder_cfg,
586 "invalid": _common_tfm_invalid_configs + []
587 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100588
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800589config_fp = {"seed_params": {
Xinyu Zhange91567c2023-09-13 14:10:11 +0800590 "tfm_platform": ["arm/mps2/an521",
591 "arm/mps3/corstone300/an552",
592 "arm/mps3/corstone300/fvp"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800593 "compiler": ["GCC_10_3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800594 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800595 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800596 "test_psa_api": ["OFF"],
597 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800598 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800599 "profile": [""],
Mark Horvath93cb5fb2022-09-06 17:51:24 +0200600 "extra_params": ["FPOFF", "FPON", "FPON, LZOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800601 },
602 "common_params": _common_tfm_builder_cfg,
603 "invalid": _common_tfm_invalid_configs + []
604 }
Karl Zhangeffed972020-06-30 15:48:01 +0800605
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800606config_psa_api = {"seed_params": {
607 "tfm_platform": ["arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200608 "arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800609 "arm/musca_s1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300610 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800611 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800612 "test_regression": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800613 "test_psa_api": ["IPC",
614 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800615 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800616 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800617 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800618 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800619 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800620 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800621 },
622 "common_params": _common_tfm_builder_cfg,
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300623 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800624 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800625
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800626config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800627 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300628 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800629 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800630 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800631 "test_psa_api": ["OFF"],
632 "cmake_build_type": ["Debug"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800633 "with_bl2": [True],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800634 "profile": [""],
Xinyu Zhang67612992021-12-20 14:11:27 +0800635 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800636 },
637 "common_params": _common_tfm_builder_cfg,
638 "invalid": _common_tfm_invalid_configs + []
639 }
640
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800641config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800642 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300643 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800644 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800645 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800646 "test_psa_api": ["OFF"],
647 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800648 "with_bl2": [True],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800649 "profile": [""],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800650 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800651 },
652 "common_params": _common_tfm_builder_cfg,
653 "invalid": _common_tfm_invalid_configs + []
654 }
655
Bence Balogh79fda442022-10-14 18:01:37 +0200656# Config groups for TF-M examples
657config_example_vad = {"seed_params": {
Bence Balogh1aa8d582023-08-29 13:10:02 +0200658 "tfm_platform": ["arm/mps3/corstone300/an552"],
Bence Balogh79fda442022-10-14 18:01:37 +0200659 "compiler": ["GCC_10_3"],
660 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800661 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200662 "test_psa_api": ["OFF"],
663 "cmake_build_type": ["Release"],
664 "with_bl2": [True],
665 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200666 "extra_params": ["EXTRAS_EXAMPLE_VAD"]
Bence Balogh79fda442022-10-14 18:01:37 +0200667 },
668 "common_params": _common_tfm_builder_cfg,
669 "invalid": _common_tfm_invalid_configs + []
670 }
671
Bence Balogh852f8bd2023-08-07 14:46:54 +0200672config_example_dma350_clcd = {"seed_params": {
Bence Balogh79fda442022-10-14 18:01:37 +0200673 "tfm_platform": ["arm/mps3/corstone310/fvp"],
674 "compiler": ["GCC_10_3"],
675 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800676 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200677 "test_psa_api": ["OFF"],
678 "cmake_build_type": ["Release"],
679 "with_bl2": [True],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200680 "profile": ["profile_medium"],
681 "extra_params": ["EXTRAS_EXAMPLE_DMA350_CLCD"]
Bence Balogh79fda442022-10-14 18:01:37 +0200682 },
683 "common_params": _common_tfm_builder_cfg,
684 "invalid": _common_tfm_invalid_configs + []
685 }
686
687config_example_dma350_s = {"seed_params": {
688 "tfm_platform": ["arm/mps3/corstone310/fvp"],
689 "compiler": ["GCC_10_3"],
690 "isolation_level": ["1"],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200691 "test_regression": ["RegS"],
Bence Balogh79fda442022-10-14 18:01:37 +0200692 "test_psa_api": ["OFF"],
693 "cmake_build_type": ["Release"],
694 "with_bl2": [True],
695 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200696 "extra_params": ["EXTRAS_EXAMPLE_DMA350_S"]
Bence Balogh79fda442022-10-14 18:01:37 +0200697 },
698 "common_params": _common_tfm_builder_cfg,
699 "invalid": _common_tfm_invalid_configs + []
700 }
701
Bence Baloghd23cbda2023-08-07 15:30:58 +0200702config_example_dma350_ns = {"seed_params": {
703 "tfm_platform": ["arm/mps3/corstone310/fvp"],
704 "compiler": ["GCC_10_3"],
705 "isolation_level": ["1"],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200706 "test_regression": ["RegS, RegNS"],
Bence Baloghd23cbda2023-08-07 15:30:58 +0200707 "test_psa_api": ["OFF"],
708 "cmake_build_type": ["Release"],
709 "with_bl2": [True],
710 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200711 "extra_params": ["EXTRAS_EXAMPLE_DMA350_NS"]
Bence Baloghd23cbda2023-08-07 15:30:58 +0200712 },
713 "common_params": _common_tfm_builder_cfg,
714 "invalid": _common_tfm_invalid_configs + []
715 }
716
Bence Balogh79fda442022-10-14 18:01:37 +0200717config_example_dma350_trigger = {"seed_params": {
718 "tfm_platform": ["arm/mps3/corstone310/fvp"],
719 "compiler": ["GCC_10_3"],
720 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800721 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200722 "test_psa_api": ["OFF"],
723 "cmake_build_type": ["Release"],
724 "with_bl2": [True],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200725 "profile": ["profile_medium"],
726 "extra_params": ["EXTRAS_EXAMPLE_DMA350_TRIGGER"]
Bence Balogh79fda442022-10-14 18:01:37 +0200727 },
728 "common_params": _common_tfm_builder_cfg,
729 "invalid": _common_tfm_invalid_configs + []
730 }
731
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300732config_misra = {"seed_params": {
733 "tfm_platform": ["arm/musca_b1"],
734 "compiler": ["GCC_10_3"],
735 "isolation_level": ["1"],
736 "test_regression": ["OFF"],
737 "test_psa_api": ["OFF"],
738 "cmake_build_type": ["Debug"],
739 "with_bl2": [True],
Matthew Dalzell0d108612024-06-21 21:12:06 +0100740 "profile": ["profile_medium_arotless"],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300741 "extra_params": ["PSOFF"]
742 },
743 "common_params": _common_tfm_builder_cfg,
Xinyu Zhange17926f2023-08-14 11:00:43 +0800744 "valid": [
745 # MUSCA_B1_GCC_2_Debug_BL2_MEDIUM_PSOFF
746 ("arm/musca_b1", "GCC_10_3", "2", "OFF",
747 "OFF", "Debug", True, "profile_medium", "PSOFF"),
748 # MUSCA_B1_GCC_3_Debug_BL2_LARGE_PSOFF
749 ("arm/musca_b1", "GCC_10_3", "3", "OFF",
750 "OFF", "Debug", True, "profile_large", "PSOFF"),
751 ],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300752 "invalid": _common_tfm_invalid_configs + []
753 }
754
Paul Sokolovskya526e5d2023-06-15 09:49:13 +0300755config_misra_debug = {"seed_params": {
756 "tfm_platform": ["arm/musca_b1"],
757 "compiler": ["GCC_10_3"],
758 "isolation_level": ["1"],
759 "test_regression": ["OFF"],
760 "test_psa_api": ["OFF"],
761 "cmake_build_type": ["Debug"],
762 "with_bl2": [True],
763 "profile": ["profile_small"],
764 "extra_params": ["PSOFF"]
765 },
766 "common_params": _common_tfm_builder_cfg,
767 "invalid": _common_tfm_invalid_configs + []
768 }
769
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800770# Config groups for code coverage
771config_cov_profile_s = deepcopy(config_profile_s)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800772config_cov_profile_s["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800773config_cov_profile_s["seed_params"]["compiler"] = ["GCC_10_3"]
Xinyu Zhangbdc37e32022-04-06 17:47:44 +0800774
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800775config_cov_profile_m = deepcopy(config_profile_m)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800776config_cov_profile_m["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800777config_cov_profile_m["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800778
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800779config_cov_profile_l = deepcopy(config_profile_l)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800780config_cov_profile_l["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800781config_cov_profile_l["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800782
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800783config_cov_ipc_backend = deepcopy(config_ipc_backend)
784config_cov_ipc_backend["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
785config_cov_ipc_backend["seed_params"]["compiler"] = ["GCC_10_3"]
786
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800787config_cov_nsce = deepcopy(config_nsce)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800788config_cov_nsce["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800789config_cov_nsce["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800790
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800791config_cov_mmio = deepcopy(config_mmio)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800792config_cov_mmio["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800793config_cov_mmio["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800794
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800795config_cov_fp = deepcopy(config_fp)
796config_cov_fp["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang778424e2023-02-27 11:39:57 +0800797config_cov_fp["seed_params"]["compiler"] = ["GCC_10_3"]
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800798
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800799# Config groups for platforms
800config_an519 = {"seed_params": {
Xinyu Zhangf25856a2021-06-17 14:06:46 +0800801 "tfm_platform": ["arm/mps2/an519"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300802 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800803 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800804 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800805 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800806 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800807 "with_bl2": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800808 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800809 "extra_params": ["", "NSOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800810 },
811 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800812 "invalid": _common_tfm_invalid_configs + []
813 }
814
815config_an521 = {"seed_params": {
816 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300817 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800818 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800819 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800820 "test_psa_api": ["OFF"],
821 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800822 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800823 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800824 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800825 },
826 "common_params": _common_tfm_builder_cfg,
827 "invalid": _common_tfm_invalid_configs + []
828 }
829
830config_an524 = {"seed_params": {
831 "tfm_platform": ["arm/mps3/an524"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300832 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800833 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800834 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800835 "test_psa_api": ["OFF"],
836 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800837 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800838 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800839 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800840 },
841 "common_params": _common_tfm_builder_cfg,
842 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800843 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000844
Bence Balogh1aa8d582023-08-29 13:10:02 +0200845config_cs300_an547 = {"seed_params": {
846 "tfm_platform": ["arm/mps3/corstone300/an547"],
847 "compiler": ["GCC_10_3"],
848 "isolation_level": ["1"],
849 "test_regression": ["OFF"],
850 "test_psa_api": ["OFF"],
851 "cmake_build_type": ["Debug"],
852 "with_bl2": [True],
853 "profile": [""],
854 "extra_params": [""]
855 },
856 "common_params": _common_tfm_builder_cfg,
857 "invalid": _common_tfm_invalid_configs + []
858 }
Xinyu Zhang38b76742021-11-11 13:57:56 +0800859
Bence Balogh1aa8d582023-08-29 13:10:02 +0200860config_cs300_an552 = {"seed_params": {
861 "tfm_platform": ["arm/mps3/corstone300/an552"],
862 "compiler": ["GCC_10_3"],
863 "isolation_level": ["1", "2"],
864 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
865 "test_psa_api": ["OFF"],
866 "cmake_build_type": ["Debug", "Release"],
867 "with_bl2": [True],
868 "profile": [""],
869 "extra_params": [""]
870 },
871 "common_params": _common_tfm_builder_cfg,
872 "invalid": _common_tfm_invalid_configs + []
873 }
874
875config_cs300_fvp = {"seed_params": {
876 "tfm_platform": ["arm/mps3/corstone300/fvp"],
877 "compiler": ["GCC_10_3"],
878 "isolation_level": ["1", "2"],
879 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
880 "test_psa_api": ["OFF"],
881 "cmake_build_type": ["Debug", "Release"],
882 "with_bl2": [True],
883 "profile": [""],
884 "extra_params": [""]
885 },
886 "common_params": _common_tfm_builder_cfg,
887 "invalid": _common_tfm_invalid_configs + []
888 }
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800889
890config_musca_b1 = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200891 "tfm_platform": ["arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300892 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800893 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800894 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800895 "test_psa_api": ["OFF"],
896 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800897 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800898 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800899 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800900 },
901 "common_params": _common_tfm_builder_cfg,
902 "invalid": _common_tfm_invalid_configs + []
903 }
904
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800905config_musca_s1 = {"seed_params": {
906 "tfm_platform": ["arm/musca_s1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300907 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800908 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800909 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800910 "test_psa_api": ["OFF"],
911 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800912 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800913 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800914 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800915 },
916 "common_params": _common_tfm_builder_cfg,
917 "invalid": _common_tfm_invalid_configs + []
918 }
919
Bence Balogh8731a092022-05-24 17:24:54 +0200920config_corstone310 = {"seed_params": {
Bence Balogh23d8fa72022-11-08 12:16:23 +0100921 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Bence Balogh176b78f2022-02-22 13:49:34 +0100922 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800923 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800924 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800925 "test_psa_api": ["OFF"],
926 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800927 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800928 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800929 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800930 },
931 "common_params": _common_tfm_builder_cfg,
932 "invalid": _common_tfm_invalid_configs + []
933 }
934
Nicola Mazzucatobde5d432024-05-20 11:43:18 +0100935config_corstone310_pacbti = {"seed_params": {
936 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Nicola Mazzucatob4e19572024-08-21 12:26:14 +0100937 "compiler": ["ARMCLANG_6_21"],
Nicola Mazzucatobde5d432024-05-20 11:43:18 +0100938 "isolation_level": ["1"],
939 "test_regression": ["OFF"],
940 "test_psa_api": ["OFF"],
941 "cmake_build_type": ["Debug"],
942 "with_bl2": [True],
943 "profile": [""],
944 "extra_params": ["PACBTI_STD"]
945 },
946 "common_params": _common_tfm_builder_cfg,
947 "invalid": _common_tfm_invalid_configs + []
948 }
949
Gergely Korcsákba0c5212024-04-03 18:21:49 +0200950config_corstone315 = {"seed_params": {
951 "tfm_platform": ["arm/mps4/corstone315"],
952 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
953 "isolation_level": ["1"],
Gergely Korcsáka403e222024-04-09 10:51:00 +0200954 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Gergely Korcsákba0c5212024-04-03 18:21:49 +0200955 "test_psa_api": ["OFF"],
956 "cmake_build_type": ["Debug", "Release"],
957 "with_bl2": [True],
958 "profile": [""],
959 "extra_params": [""]
960 },
961 "common_params": _common_tfm_builder_cfg,
962 "invalid": _common_tfm_invalid_configs + []
963 }
964
Gergely Korcsák78a4d142024-08-05 07:41:36 +0200965config_corstone320 = {"seed_params": {
966 "tfm_platform": ["arm/mps4/corstone320"],
967 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
968 "isolation_level": ["1"],
969 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
970 "test_psa_api": ["OFF"],
971 "cmake_build_type": ["Debug", "Release"],
972 "with_bl2": [True],
973 "profile": [""],
974 "extra_params": [""]
975 },
976 "common_params": _common_tfm_builder_cfg,
977 "invalid": _common_tfm_invalid_configs + []
978 }
979
Jamie Fox82a91d02024-09-27 14:54:14 +0100980config_rse_tc3 = {"seed_params": {
981 "tfm_platform": ["arm/rse/tc/tc3"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100982 "compiler": ["GCC_10_3"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +0100983 "isolation_level": ["1", "2", "3"],
Jamie Fox9283cbc2024-04-22 13:40:01 +0100984 "test_regression": ["OFF", "RegS, RegNS"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100985 "test_psa_api": ["OFF"],
986 "cmake_build_type": ["Debug", "Release"],
987 "with_bl2": [True],
988 "profile": [""],
Nicola Mazzucato551c5f32024-10-02 09:43:04 +0100989 "extra_params": ["ATTESTATION_SCHEME_DPE"]
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100990 },
991 "common_params": _common_tfm_builder_cfg,
Jamie Fox9e2c2352023-01-13 15:11:23 +0000992 "invalid": _common_tfm_invalid_configs + [
Jamie Fox5ae6fa42024-02-19 15:11:00 +0000993 # BL2 is too large for RSE in Debug builds with tests
Jamie Fox82a91d02024-09-27 14:54:14 +0100994 ("arm/rse/tc/tc3", "GCC_10_3", "*", "RegBL2, RegS, RegNS", "*",
Jamie Fox9e2c2352023-01-13 15:11:23 +0000995 "Debug", True, "*", "*"),
996 ]
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100997 }
998
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000999config_rse_tc4 = {"seed_params": {
1000 "tfm_platform": ["arm/rse/tc/tc4"],
1001 "compiler": ["GCC_10_3"],
1002 "isolation_level": ["1", "2", "3"],
1003 "test_regression": ["OFF", "RegS, RegNS"],
1004 "test_psa_api": ["OFF"],
1005 "cmake_build_type": ["Debug", "Release"],
1006 "with_bl2": [True],
1007 "profile": [""],
1008 "extra_params": ["ATTESTATION_SCHEME_DPE"]
1009 },
1010 "common_params": _common_tfm_builder_cfg,
1011 "invalid": _common_tfm_invalid_configs + [
1012 # BL2 is too large for RSE in Debug builds with tests
1013 ("arm/rse/tc/tc4", "GCC_10_3", "*", "RegBL2, RegS, RegNS", "*",
1014 "Debug", True, "*", "*"),
1015 ]
1016 }
1017
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301018config_rse_rdv3 = {"seed_params": {
Antonio de Angelis373187e2025-01-11 22:09:30 +00001019 "tfm_platform": ["arm/rse/neoverse_rd/rdv3"],
Joel Goddard2dd81a12024-01-23 15:10:08 +00001020 "compiler": ["GCC_10_3"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +01001021 "isolation_level": ["1", "2", "3"],
Joel Goddard2dd81a12024-01-23 15:10:08 +00001022 "test_regression": ["OFF"],
1023 "test_psa_api": ["OFF"],
1024 "cmake_build_type": ["Debug", "Release"],
1025 "with_bl2": [True],
1026 "profile": [""],
Jamie Fox9283cbc2024-04-22 13:40:01 +01001027 "extra_params": ["NSOFF, CFG0"]
Joel Goddard2dd81a12024-01-23 15:10:08 +00001028 },
1029 "common_params": _common_tfm_builder_cfg,
1030 "invalid": _common_tfm_invalid_configs + []
1031 }
1032
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001033config_rse_rd1ae = {"seed_params": {
1034 "tfm_platform": ["arm/rse/automotive_rd/rd1ae"],
1035 "compiler": ["GCC_10_3"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +01001036 "isolation_level": ["1", "2", "3"],
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001037 "test_regression": ["OFF"],
1038 "test_psa_api": ["OFF"],
1039 "cmake_build_type": ["Debug", "Release"],
1040 "with_bl2": [True],
1041 "profile": [""],
1042 "extra_params": ["NSOFF"]
1043 },
1044 "common_params": _common_tfm_builder_cfg,
1045 "invalid": _common_tfm_invalid_configs + []
1046 }
1047
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001048config_psoc64 = {"seed_params": {
1049 "tfm_platform": ["cypress/psoc64"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001050 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001051 "isolation_level": ["1", "2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001052 "test_regression": ["RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001053 "test_psa_api": ["OFF"],
1054 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001055 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001056 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001057 "extra_params": [""]
1058 },
1059 "common_params": _common_tfm_builder_cfg,
1060 "invalid": _common_tfm_invalid_configs + []
1061 }
1062
1063config_corstone1000 = {"seed_params": {
1064 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001065 "compiler": ["GCC_10_3"],
Xinyu Zhang5c4f2182023-10-31 16:26:45 +08001066 "isolation_level": ["1", "2"],
Emekcan Arasf8b39802023-04-24 10:15:22 +01001067 "test_regression": ["RegS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001068 "test_psa_api": ["OFF"],
Matthew Dalzell5cf10c62024-09-19 11:22:48 +01001069 "cmake_build_type": ["Release"], # previously Debug
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001070 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001071 "profile": [""],
Xinyu Zhang09acfbf2023-10-30 18:30:48 +08001072 "extra_params": ["NSOFF, CS1K_TEST, FVP", "NSOFF, CS1K_TEST, FPGA"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001073 },
1074 "common_params": _common_tfm_builder_cfg,
1075 "invalid": _common_tfm_invalid_configs + []
1076 }
1077
1078config_stm32l562e_dk = {"seed_params": {
1079 "tfm_platform": ["stm/stm32l562e_dk"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001080 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001081 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001082 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001083 "test_psa_api": ["OFF"],
1084 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001085 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001086 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001087 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
1088 },
1089 "common_params": _common_tfm_builder_cfg,
1090 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001091 # Oversize issue on config stm32l562e_dk_ARMCLANG_1_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001092 ("stm/stm32l562e_dk", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001093 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "*"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001094 # all other tests are off when CRYPTO is ON
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001095 ("stm/stm32l562e_dk", "*", "*", "RegBL2, RegS, RegNS", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +08001096 "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001097 # all other tests are ON when CRYPTO is OFF
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001098 ("stm/stm32l562e_dk", "*", "*", "OFF", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +08001099 "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001100 ]
1101 }
1102
1103config_b_u585i_iot02a = {"seed_params": {
1104 "tfm_platform": ["stm/b_u585i_iot02a"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001105 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Arthur She026ebb62023-02-08 18:47:39 -08001106 "isolation_level": ["1", "2"],
Arthur She96c6f772023-05-09 21:32:50 -07001107 "test_regression": ["OFF", "RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001108 "test_psa_api": ["OFF"],
1109 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001110 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001111 "profile": [""],
Arthur She026ebb62023-02-08 18:47:39 -08001112 "extra_params": [""]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001113 },
1114 "common_params": _common_tfm_builder_cfg,
1115 "invalid": _common_tfm_invalid_configs + []
1116 }
1117
Anton Komlev4164ab62024-02-23 10:59:56 +01001118config_stm32h573i_dk = {"seed_params": {
1119 "tfm_platform": ["stm/stm32h573i_dk"],
1120 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
1121 "isolation_level": ["1", "2"],
1122 "test_regression": ["OFF", "RegS, RegNS"],
1123 "test_psa_api": ["OFF"],
1124 "cmake_build_type": ["Release"],
1125 "with_bl2": [True],
1126 "profile": [""],
1127 "extra_params": [""]
1128 },
1129 "common_params": _common_tfm_builder_cfg,
1130 "invalid": _common_tfm_invalid_configs + []
1131 }
1132
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001133config_nucleo_l552ze_q = {"seed_params": {
1134 "tfm_platform": ["stm/nucleo_l552ze_q"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001135 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001136 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001137 "test_regression": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001138 "test_psa_api": ["OFF"],
1139 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001140 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001141 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001142 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001143 },
1144 "common_params": _common_tfm_builder_cfg,
1145 "invalid": _common_tfm_invalid_configs + []
1146 }
1147
1148config_lpcxpresso55s69 = {"seed_params": {
1149 "tfm_platform": ["nxp/lpcxpresso55s69"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001150 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001151 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001152 "test_regression": ["OFF", "RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001153 "test_psa_api": ["OFF"],
1154 "cmake_build_type": ["Relwithdebinfo"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001155 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001156 "profile": ["profile_medium"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001157 "extra_params": [""]
1158 },
1159 "common_params": _common_tfm_builder_cfg,
1160 "invalid": _common_tfm_invalid_configs + []
1161 }
1162
Xinyu Zhang38b76742021-11-11 13:57:56 +08001163config_bl5340 = {"seed_params": {
1164 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001165 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001166 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001167 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001168 "test_psa_api": ["OFF"],
1169 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001170 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001171 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001172 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001173 },
1174 "common_params": _common_tfm_builder_cfg,
1175 "invalid": _common_tfm_invalid_configs + []
1176 }
1177
1178config_nrf5340dk = {"seed_params": {
1179 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001180 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001181 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001182 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001183 "test_psa_api": ["OFF"],
1184 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001185 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001186 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001187 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001188 },
1189 "common_params": _common_tfm_builder_cfg,
1190 "invalid": _common_tfm_invalid_configs + []
1191 }
1192
1193config_nrf9160dk = {"seed_params": {
1194 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001195 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001196 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001197 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001198 "test_psa_api": ["OFF"],
1199 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001200 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001201 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001202 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001203 },
1204 "common_params": _common_tfm_builder_cfg,
1205 "invalid": _common_tfm_invalid_configs + []
1206 }
1207
1208config_m2351 = {"seed_params": {
1209 "tfm_platform": ["nuvoton/m2351"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001210 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001211 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001212 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001213 "test_psa_api": ["OFF"],
1214 "cmake_build_type": ["Release"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001215 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001216 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001217 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001218 },
1219 "common_params": _common_tfm_builder_cfg,
1220 "invalid": _common_tfm_invalid_configs + []
1221 }
1222
1223config_m2354 = {"seed_params": {
1224 "tfm_platform": ["nuvoton/m2354"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001225 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001226 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001227 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001228 "test_psa_api": ["OFF"],
1229 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001230 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001231 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001232 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001233 },
1234 "common_params": _common_tfm_builder_cfg,
1235 "invalid": _common_tfm_invalid_configs + []
1236 }
1237
Dávid Házi0bd447f2024-10-24 19:44:31 +00001238config_rp2350 = {"seed_params": {
1239 "tfm_platform": ["rpi/rp2350"],
1240 "compiler": ["GCC_10_3"],
1241 "isolation_level": ["2"],
1242 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
1243 "test_psa_api": ["OFF"],
1244 "cmake_build_type": ["RelWithDebInfo", "Release"],
1245 "with_bl2": [True],
Nicola Mazzucato4bad6c62024-10-28 14:42:17 +00001246 "profile": ["profile_medium"],
Dávid Házi0bd447f2024-10-24 19:44:31 +00001247 "extra_params": [""]
1248 },
1249 "common_params": _common_tfm_builder_cfg,
1250 "invalid": _common_tfm_invalid_configs + []
1251 }
1252
Jianliang Shen48704152023-10-17 17:06:00 +08001253config_mem_footprint = {"seed_params": {
1254 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001255 "compiler": ["ARMCLANG_6_21"],
Jianliang Shen48704152023-10-17 17:06:00 +08001256 "isolation_level": ["1"],
1257 "test_regression": ["OFF"],
1258 "test_psa_api": ["OFF"],
1259 "cmake_build_type": ["Minsizerel"],
1260 "with_bl2": [True],
1261 "profile": [""],
1262 "extra_params": [""]
1263 },
1264 "common_params": _common_tfm_builder_cfg,
1265 "valid": [
1266 # AN521_ARMCLANG_1_Minsizerel_BL2_SMALL_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001267 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Jianliang Shen48704152023-10-17 17:06:00 +08001268 "OFF", "OFF", "Minsizerel", True, "profile_small", "PSOFF"),
1269 # AN521_ARMCLANG_2_Minsizerel_BL2_MEDIUM_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001270 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Jianliang Shen48704152023-10-17 17:06:00 +08001271 "OFF", "OFF", "Minsizerel", True, "profile_medium", "PSOFF"),
1272 # AN521_ARMCLANG_3_Minsizerel_BL2_LARGE_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001273 ("arm/mps2/an521", "ARMCLANG_6_21", "3",
Jianliang Shen48704152023-10-17 17:06:00 +08001274 "OFF", "OFF", "Minsizerel", True, "profile_large", "PSOFF"),
1275 ],
1276 "invalid": _common_tfm_invalid_configs + []
1277 }
1278
Jianliang Shen5492f752023-07-27 15:59:01 +08001279config_prof = {"seed_params": {
1280 "tfm_platform": ["arm/mps2/an521"],
1281 "compiler": ["GCC_10_3"],
1282 "isolation_level": ["1"],
1283 "test_regression": ["OFF"],
1284 "test_psa_api": ["OFF"],
1285 "cmake_build_type": ["Release"],
1286 "with_bl2": [True],
1287 "profile": [""],
1288 "extra_params": ["PROF"]
1289 },
1290 "common_params": _common_tfm_builder_cfg,
1291 "valid": [
1292 # AN521_GNUARM_1_Release_BL2_IPC_PROF
1293 ("arm/mps2/an521", "GCC_10_3", "1",
1294 "OFF", "OFF", "Release", True, "", "IPC, PROF"),
1295 # AN521_GNUARM_2_Release_BL2_PROF
1296 ("arm/mps2/an521", "GCC_10_3", "2",
1297 "OFF", "OFF", "Release", True, "", "PROF"),
1298 # AN521_GNUARM_3_Release_BL2_PROF
1299 ("arm/mps2/an521", "GCC_10_3", "3",
1300 "OFF", "OFF", "Release", True, "", "PROF"),
1301 ],
1302 "invalid": _common_tfm_invalid_configs + []
1303 }
1304
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001305# Config groups for debug
1306config_debug = {"seed_params": {
1307 "tfm_platform": ["arm/mps2/an521"],
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"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001312 "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 Zhangfd2e1152021-12-17 18:09:01 +08001315 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001316 },
1317 "common_params": _common_tfm_builder_cfg,
1318 "invalid": _common_tfm_invalid_configs + []
1319 }
1320
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001321config_debug_regr = deepcopy(config_debug)
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001322config_debug_regr["seed_params"]["test_regression"] = ["RegBL2, RegS, RegNS"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001323
1324config_debug_PSA_API = {"seed_params": {
1325 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001326 "compiler": ["ARMCLANG_6_21"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001327 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001328 "test_regression": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001329 "test_psa_api": ["CRYPTO",
1330 "INITIAL_ATTESTATION",
1331 "STORAGE",
1332 "IPC"],
1333 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001334 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001335 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001336 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001337 },
1338 "common_params": _common_tfm_builder_cfg,
1339 "invalid": _common_tfm_invalid_configs + []
1340 }
1341
Karl Zhangaff558a2020-05-15 14:28:23 +01001342_builtin_configs = {
Xinyu Zhang5c4f2182023-10-31 16:26:45 +08001343 # per-patch test group
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001344 "pp_test": config_pp_test,
Karl Zhang14573bc2020-06-08 09:23:21 +08001345
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001346 # nightly test groups
1347 "nightly_test": config_nightly_test,
1348 "nightly_profile_s": config_profile_s,
1349 "nightly_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +08001350 "nightly_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001351 "nightly_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001352 "nightly_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001353 "nightly_cc_driver_psa": config_cc_driver_psa,
1354 "nightly_fp":config_fp,
1355 "nightly_psa_api": config_psa_api,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001356 "nightly_nsce": config_nsce,
1357 "nightly_mmio": config_mmio,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001358 "nightly_cs300_an547": config_cs300_an547,
1359 "nightly_cs300_an552": config_cs300_an552,
1360 "nightly_cs300_fvp": config_cs300_fvp,
Bence Balogh8731a092022-05-24 17:24:54 +02001361 "nightly_corstone310": config_corstone310,
Nicola Mazzucatobde5d432024-05-20 11:43:18 +01001362 "nightly_corstone310_pacbti" : config_corstone310_pacbti,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001363 "nightly_corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001364 "nightly_corstone320": config_corstone320,
Antonio de Angelis92ad2442023-08-07 15:00:32 +02001365 "nightly_corstone1000": config_corstone1000,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001366 #"nightly_rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001367 "nightly_rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301368 "nightly_rse_rdv3": config_rse_rdv3,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001369 "nightly_rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001370 "nightly_psoc64": config_psoc64,
Anton Komlev55c3c022024-03-05 16:24:17 +01001371 "nightly_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -08001372 "nightly_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001373 "nightly_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001374 "nightly_lpcxpresso55s69": config_lpcxpresso55s69,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001375 "nightly_rp2350": config_rp2350,
Karl Zhang14573bc2020-06-08 09:23:21 +08001376
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001377 # release test groups
1378 "release_test": config_release_test,
1379 "release_profile_s": config_profile_s,
1380 "release_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +08001381 "release_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001382 "release_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001383 "release_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001384 "release_cc_driver_psa": config_cc_driver_psa,
1385 "release_fp": config_fp,
1386 "release_psa_api": config_psa_api,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001387 "release_nsce": config_nsce,
1388 "release_mmio": config_mmio,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001389 "release_cs300_an547": config_cs300_an547,
1390 "release_cs300_an552": config_cs300_an552,
1391 "release_cs300_fvp": config_cs300_fvp,
Bence Balogh8731a092022-05-24 17:24:54 +02001392 "release_corstone310": config_corstone310,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001393 "release_corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001394 "release_corstone320": config_corstone320,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001395 #"release_rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001396 "release_rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301397 "release_rse_rdv3": config_rse_rdv3,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001398 "release_rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001399 "release_psoc64": config_psoc64,
Anton Komlev55c3c022024-03-05 16:24:17 +01001400 "release_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -08001401 "release_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001402 "release_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001403 "release_lpcxpresso55s69": config_lpcxpresso55s69,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001404 "release_rp2350": config_rp2350,
Karl Zhang14573bc2020-06-08 09:23:21 +08001405
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001406 # code coverage test groups
1407 "coverage_profile_s": config_cov_profile_s,
1408 "coverage_profile_m": config_cov_profile_m,
1409 "coverage_profile_l": config_cov_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001410 "coverage_ipc_backend": config_cov_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001411 "coverage_nsce": config_cov_nsce,
1412 "coverage_mmio": config_cov_mmio,
Xinyu Zhang5f725ee2022-12-19 10:29:20 +08001413 "coverage_fp": config_cov_fp,
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001414
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +03001415 # MISRA analysis
1416 "misra": config_misra,
Paul Sokolovskya526e5d2023-06-15 09:49:13 +03001417 "misra_debug": config_misra_debug,
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +03001418
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001419 # platform groups
1420 "an521": config_an521,
1421 "an519": config_an519,
1422 "an524": config_an524,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001423 "cs300_an547": config_cs300_an547,
1424 "cs300_an552": config_cs300_an552,
1425 "cs300_fvp": config_cs300_fvp,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001426 "musca_b1": config_musca_b1,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001427 "musca_s1": config_musca_s1,
Bence Balogh8731a092022-05-24 17:24:54 +02001428 "corstone310": config_corstone310,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001429 "corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001430 "corstone320": config_corstone320,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001431 #"rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001432 "rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301433 "rse_rdv3": config_rse_rdv3,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001434 "rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001435 "cypress_psoc64": config_psoc64,
Antonio de Angelis92ad2442023-08-07 15:00:32 +02001436 "corstone1000": config_corstone1000,
Anton Komlev55c3c022024-03-05 16:24:17 +01001437 "stm_stm32l562e_dk": config_stm32l562e_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001438 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001439 "stm_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001440 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1441 "nxp_lpcxpresso55s69": config_lpcxpresso55s69,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001442 "laird_bl5340": config_bl5340,
1443 "nordic_nrf5340dk": config_nrf5340dk,
1444 "nordic_nrf9160dk": config_nrf9160dk,
1445 "nuvoton_m2351": config_m2351,
1446 "nuvoton_m2354": config_m2354,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001447 "rp2350": config_rp2350,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001448
Bence Balogh79fda442022-10-14 18:01:37 +02001449 # config groups for tf-m-extras examples
1450 "example_vad": config_example_vad,
1451 "example_dma350_trigger": config_example_dma350_trigger,
Bence Balogh852f8bd2023-08-07 14:46:54 +02001452 "example_dma350_clcd": config_example_dma350_clcd,
Bence Balogh79fda442022-10-14 18:01:37 +02001453 "example_dma350_s": config_example_dma350_s,
Bence Baloghd23cbda2023-08-07 15:30:58 +02001454 "example_dma350_ns": config_example_dma350_ns,
Bence Balogh79fda442022-10-14 18:01:37 +02001455
Jianliang Shen48704152023-10-17 17:06:00 +08001456 # config groups for tf-m performance monitor
1457 "mem_footprint": config_mem_footprint,
Jianliang Shen5492f752023-07-27 15:59:01 +08001458 "profiling": config_prof,
1459
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001460 # config groups for debug
Dean Birch4c6ad622020-03-13 11:28:03 +00001461 "debug": config_debug,
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001462 "debug_regr": config_debug_regr,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001463 "debug_PSA_API": config_debug_PSA_API,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001464 }
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001465
1466if __name__ == '__main__':
1467 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001468
Minos Galanakisea421232019-06-20 17:11:28 +01001469 # Default behavior is to export refference config when called
1470 _dir = os.getcwd()
1471 from utils import save_json
1472 for _cname, _cfg in _builtin_configs.items():
1473 _fname = os.path.join(_dir, _cname + ".json")
1474 print("Exporting config %s" % _fname)
1475 save_json(_fname, _cfg)