blob: c6dfb54d084784351dca5136943c8ad4f837fc0e [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"),
Dávid Házi669c0102025-02-06 21:23:44 +0000396 # RSE_TC4_GCC_3_RegS_RegNS_Release_BL2
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000397 ("arm/rse/tc/tc4", "GCC_10_3", "3",
Dávid Házi669c0102025-02-06 21:23:44 +0000398 "RegS, RegNS", "OFF", "Release", True, "", ""),
Jackson Cooper-Driverc5541ca2025-02-13 13:42:35 +0000399 # RSE_TC4_GCC_3_RegS_RegNS_Release_BL2_RSE_PROVISIONING_ASYMMETRIC
400 ("arm/rse/tc/tc4", "GCC_10_3", "3",
401 "RegS, RegNS", "OFF", "Release", True, "", "RSE_PROVISIONING_ASYMMETRIC"),
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000402 # RSE_TC4_GCC_2_RegBL1_1_Debug_BL2
Dávid Házi669c0102025-02-06 21:23:44 +0000403 #("arm/rse/tc/tc4", "GCC_10_3", "2",
404 # "RegBL1_1", "OFF", "Debug", True, "", ""),
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000405 # RSE_TC4_GCC_2_Release_BL2_ATTESTATION_SCHEME_CCA
Dávid Házi669c0102025-02-06 21:23:44 +0000406 #("arm/rse/tc/tc4", "GCC_10_3", "2",
407 # "OFF", "OFF", "Release", True, "", "ATTESTATION_SCHEME_CCA"),
Ishan Deshpande80d840e2025-01-09 18:46:56 +0530408 # RSE_RDV3_GCC_2_Release_BL2_NSOFF_CFG0
Antonio de Angelis373187e2025-01-11 22:09:30 +0000409 ("arm/rse/neoverse_rd/rdv3", "GCC_10_3", "2",
Jamie Fox9283cbc2024-04-22 13:40:01 +0100410 "OFF", "OFF", "Release", True, "", "NSOFF, CFG0"),
Ziad Elhanafy937333f2024-05-22 14:17:40 +0100411 # RSE_RD1AE_GCC_2_Release_BL2_NSOFF
412 ("arm/rse/automotive_rd/rd1ae", "GCC_10_3", "2",
413 "OFF", "OFF", "Release", True, "", "NSOFF"),
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800414 # stm32l562e_dk_ARMCLANG_1_RegS_RegNS_Release_BL2_CRYPTO_OFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300415 ("stm/stm32l562e_dk", "ARMCLANG_6_21", "1",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800416 "RegS, RegNS", "OFF", "Release", True, "", "CRYPTO_OFF"),
417 # stm32l562e_dk_GCC_2_Release_BL2_CRYPTO_ON
Summer Qin379abb62022-10-08 16:41:54 +0800418 ("stm/stm32l562e_dk", "GCC_10_3", "2",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800419 "OFF", "OFF", "Release", True, "", "CRYPTO_ON"),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100420 # stm32l562e_dk_GCC_3_RegBL2_RegS_RegNS_Release_BL2_CRYPTO_OFF
Summer Qin379abb62022-10-08 16:41:54 +0800421 ("stm/stm32l562e_dk", "GCC_10_3", "3",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800422 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "CRYPTO_OFF"),
Arthur She4f08c152023-05-15 15:29:14 -0700423 # b_u585i_iot02a_GCC_1_RegS_RegNS_Release_BL2
424 ("stm/b_u585i_iot02a", "GCC_10_3", "1",
425 "RegS, RegNS", "OFF", "Release", True, "", ""),
426 # b_u585i_iot02a_ARMCLANG_2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300427 ("stm/b_u585i_iot02a", "ARMCLANG_6_21", "2",
Arthur She4f08c152023-05-15 15:29:14 -0700428 "RegS, RegNS", "OFF", "Release", True, "", ""),
Anton Komlev4164ab62024-02-23 10:59:56 +0100429 # stm32h573i_dk_GCC_1_RegS_RegNS_Release_BL2
430 ("stm/stm32h573i_dk", "GCC_10_3", "1",
431 "RegS, RegNS", "OFF", "Release", True, "", ""),
432 # stm32h573i_dk_ARMCLANG_2_RegS_RegNS_Release_BL2
433 ("stm/stm32h573i_dk", "ARMCLANG_6_21", "2",
434 "RegS, RegNS", "OFF", "Release", True, "", ""),
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800435 # psoc64_GCC_2_RegS_RegNS_Release
Summer Qin379abb62022-10-08 16:41:54 +0800436 ("cypress/psoc64", "GCC_10_3", "2",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800437 "RegS, RegNS", "OFF", "Release", False, "", ""),
Nicola Mazzucato4bad6c62024-10-28 14:42:17 +0000438 # rp2350_GCC_2_RegBL2_RegS_RegNS_Release_BL2_MEDIUM
Dávid Házi0bd447f2024-10-24 19:44:31 +0000439 ("rpi/rp2350", "GCC_10_3", "2",
Nicola Mazzucato4bad6c62024-10-28 14:42:17 +0000440 "RegBL2, RegS, RegNS", "OFF", "Release", True, "profile_medium", ""),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800441 ],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800442 "invalid": _common_tfm_invalid_configs + []
443 }
444
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800445# Config group for nightly job
446config_nightly_test = {"seed_params": {
447 "tfm_platform": ["arm/mps2/an519",
448 "arm/mps2/an521",
449 "arm/mps3/an524",
450 "arm/musca_s1",
Mark Horvathef57baa2022-09-12 13:36:36 +0200451 "arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300452 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800453 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800454 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800455 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800456 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800457 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800458 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800459 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100460 },
461 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800462 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100463 }
464
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800465# Config group for release job
466config_release_test = {"seed_params": {
467 "tfm_platform": ["arm/mps2/an519",
468 "arm/mps2/an521",
469 "arm/mps3/an524",
Mark Horvathef57baa2022-09-12 13:36:36 +0200470 "arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800471 "arm/musca_s1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300472 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800473 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800474 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800475 "test_psa_api": ["OFF"],
476 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800477 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800478 "profile": [""],
David Vinczed78e2622022-11-24 15:04:00 +0100479 "extra_params": ["TEST_CBOR"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800480 },
481 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800482 "valid": [
483 # sanity test for GCC v11.2
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800484 # AN521_GCC_3_RegBL2_RegS_RegNS_Relwithdebinfo_BL2
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800485 ("arm/mps2/an521", "GCC_11_2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800486 "3", "RegBL2, RegS, RegNS", "OFF", "Relwithdebinfo",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800487 True, "", ""),
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800488 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800489 "invalid": _common_tfm_invalid_configs + []
490 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800491
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800492# Config groups for TF-M features
493config_profile_s = {"seed_params": {
David Huda27ae72022-03-28 15:32:19 +0800494 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300495 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
David Huda27ae72022-03-28 15:32:19 +0800496 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800497 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
David Huda27ae72022-03-28 15:32:19 +0800498 "test_psa_api": ["OFF"],
499 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
David Huda27ae72022-03-28 15:32:19 +0800500 "with_bl2": [True],
David Huda27ae72022-03-28 15:32:19 +0800501 "profile": ["profile_small"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800502 "extra_params": ["PSOFF"]
David Huda27ae72022-03-28 15:32:19 +0800503 },
504 "common_params": _common_tfm_builder_cfg,
David Huda27ae72022-03-28 15:32:19 +0800505 "invalid": _common_tfm_invalid_configs + [
Summer Qin379abb62022-10-08 16:41:54 +0800506 ("arm/mps2/an519", "GCC_10_3", "*", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800507 "*", "Minsizerel", "*", "*", "*")
David Huda27ae72022-03-28 15:32:19 +0800508 ]
509 }
510
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800511config_profile_m = {"seed_params": {
512 "tfm_platform": ["arm/mps2/an519",
513 "arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200514 "arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300515 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800516 "isolation_level": ["2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800517 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800518 "test_psa_api": ["OFF"],
519 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800520 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800521 "profile": ["profile_medium"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800522 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800523 },
524 "common_params": _common_tfm_builder_cfg,
525 "invalid": _common_tfm_invalid_configs + []
526 }
527
David Hu3d333762022-10-27 18:12:33 +0800528config_profile_m_arotless = {"seed_params": {
529 "tfm_platform": ["arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300530 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
David Hu3d333762022-10-27 18:12:33 +0800531 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800532 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
David Hu3d333762022-10-27 18:12:33 +0800533 "test_psa_api": ["OFF"],
534 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
535 "with_bl2": [True],
536 "profile": ["profile_medium_arotless"],
537 "extra_params": ["", "PSOFF"]
538 },
539 "common_params": _common_tfm_builder_cfg,
540 "invalid": _common_tfm_invalid_configs + []
541 }
542
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800543config_profile_l = {"seed_params": {
544 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300545 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800546 "isolation_level": ["3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800547 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800548 "test_psa_api": ["OFF"],
549 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800550 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800551 "profile": ["profile_large"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800552 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800553 },
554 "common_params": _common_tfm_builder_cfg,
555 "invalid": _common_tfm_invalid_configs + []
556 }
557
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800558config_ipc_backend = {"seed_params": {
559 "tfm_platform": ["arm/mps2/an519",
560 "arm/mps2/an521",
561 "arm/musca_s1",
562 "arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300563 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800564 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800565 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800566 "test_psa_api": ["OFF"],
567 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
568 "with_bl2": [True],
569 "profile": [""],
570 "extra_params": ["IPC"]
571 },
572 "common_params": _common_tfm_builder_cfg,
573 "invalid": _common_tfm_invalid_configs + []
574 }
575
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800576config_cc_driver_psa = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200577 "tfm_platform": ["arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800578 "arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800579 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800580 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800581 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800582 "test_psa_api": ["OFF"],
583 "cmake_build_type": ["Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800584 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800585 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800586 "extra_params": ["CC_DRIVER_PSA"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800587 },
588 "common_params": _common_tfm_builder_cfg,
589 "invalid": _common_tfm_invalid_configs + []
590 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100591
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800592config_fp = {"seed_params": {
Xinyu Zhange91567c2023-09-13 14:10:11 +0800593 "tfm_platform": ["arm/mps2/an521",
594 "arm/mps3/corstone300/an552",
595 "arm/mps3/corstone300/fvp"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800596 "compiler": ["GCC_10_3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800597 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800598 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800599 "test_psa_api": ["OFF"],
600 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800601 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800602 "profile": [""],
Mark Horvath93cb5fb2022-09-06 17:51:24 +0200603 "extra_params": ["FPOFF", "FPON", "FPON, LZOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800604 },
605 "common_params": _common_tfm_builder_cfg,
606 "invalid": _common_tfm_invalid_configs + []
607 }
Karl Zhangeffed972020-06-30 15:48:01 +0800608
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800609config_psa_api = {"seed_params": {
610 "tfm_platform": ["arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200611 "arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800612 "arm/musca_s1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300613 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800614 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800615 "test_regression": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800616 "test_psa_api": ["IPC",
617 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800618 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800619 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800620 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800621 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800622 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800623 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800624 },
625 "common_params": _common_tfm_builder_cfg,
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300626 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800627 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800628
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800629config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800630 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300631 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800632 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800633 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800634 "test_psa_api": ["OFF"],
635 "cmake_build_type": ["Debug"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800636 "with_bl2": [True],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800637 "profile": [""],
Xinyu Zhang67612992021-12-20 14:11:27 +0800638 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800639 },
640 "common_params": _common_tfm_builder_cfg,
641 "invalid": _common_tfm_invalid_configs + []
642 }
643
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800644config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800645 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300646 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800647 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800648 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800649 "test_psa_api": ["OFF"],
650 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800651 "with_bl2": [True],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800652 "profile": [""],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800653 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800654 },
655 "common_params": _common_tfm_builder_cfg,
656 "invalid": _common_tfm_invalid_configs + []
657 }
658
Bence Balogh79fda442022-10-14 18:01:37 +0200659# Config groups for TF-M examples
660config_example_vad = {"seed_params": {
Bence Balogh1aa8d582023-08-29 13:10:02 +0200661 "tfm_platform": ["arm/mps3/corstone300/an552"],
Bence Balogh79fda442022-10-14 18:01:37 +0200662 "compiler": ["GCC_10_3"],
663 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800664 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200665 "test_psa_api": ["OFF"],
666 "cmake_build_type": ["Release"],
667 "with_bl2": [True],
668 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200669 "extra_params": ["EXTRAS_EXAMPLE_VAD"]
Bence Balogh79fda442022-10-14 18:01:37 +0200670 },
671 "common_params": _common_tfm_builder_cfg,
672 "invalid": _common_tfm_invalid_configs + []
673 }
674
Bence Balogh852f8bd2023-08-07 14:46:54 +0200675config_example_dma350_clcd = {"seed_params": {
Bence Balogh79fda442022-10-14 18:01:37 +0200676 "tfm_platform": ["arm/mps3/corstone310/fvp"],
677 "compiler": ["GCC_10_3"],
678 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800679 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200680 "test_psa_api": ["OFF"],
681 "cmake_build_type": ["Release"],
682 "with_bl2": [True],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200683 "profile": ["profile_medium"],
684 "extra_params": ["EXTRAS_EXAMPLE_DMA350_CLCD"]
Bence Balogh79fda442022-10-14 18:01:37 +0200685 },
686 "common_params": _common_tfm_builder_cfg,
687 "invalid": _common_tfm_invalid_configs + []
688 }
689
690config_example_dma350_s = {"seed_params": {
691 "tfm_platform": ["arm/mps3/corstone310/fvp"],
692 "compiler": ["GCC_10_3"],
693 "isolation_level": ["1"],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200694 "test_regression": ["RegS"],
Bence Balogh79fda442022-10-14 18:01:37 +0200695 "test_psa_api": ["OFF"],
696 "cmake_build_type": ["Release"],
697 "with_bl2": [True],
698 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200699 "extra_params": ["EXTRAS_EXAMPLE_DMA350_S"]
Bence Balogh79fda442022-10-14 18:01:37 +0200700 },
701 "common_params": _common_tfm_builder_cfg,
702 "invalid": _common_tfm_invalid_configs + []
703 }
704
Bence Baloghd23cbda2023-08-07 15:30:58 +0200705config_example_dma350_ns = {"seed_params": {
706 "tfm_platform": ["arm/mps3/corstone310/fvp"],
707 "compiler": ["GCC_10_3"],
708 "isolation_level": ["1"],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200709 "test_regression": ["RegS, RegNS"],
Bence Baloghd23cbda2023-08-07 15:30:58 +0200710 "test_psa_api": ["OFF"],
711 "cmake_build_type": ["Release"],
712 "with_bl2": [True],
713 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200714 "extra_params": ["EXTRAS_EXAMPLE_DMA350_NS"]
Bence Baloghd23cbda2023-08-07 15:30:58 +0200715 },
716 "common_params": _common_tfm_builder_cfg,
717 "invalid": _common_tfm_invalid_configs + []
718 }
719
Bence Balogh79fda442022-10-14 18:01:37 +0200720config_example_dma350_trigger = {"seed_params": {
721 "tfm_platform": ["arm/mps3/corstone310/fvp"],
722 "compiler": ["GCC_10_3"],
723 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800724 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200725 "test_psa_api": ["OFF"],
726 "cmake_build_type": ["Release"],
727 "with_bl2": [True],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200728 "profile": ["profile_medium"],
729 "extra_params": ["EXTRAS_EXAMPLE_DMA350_TRIGGER"]
Bence Balogh79fda442022-10-14 18:01:37 +0200730 },
731 "common_params": _common_tfm_builder_cfg,
732 "invalid": _common_tfm_invalid_configs + []
733 }
734
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300735config_misra = {"seed_params": {
736 "tfm_platform": ["arm/musca_b1"],
737 "compiler": ["GCC_10_3"],
738 "isolation_level": ["1"],
739 "test_regression": ["OFF"],
740 "test_psa_api": ["OFF"],
741 "cmake_build_type": ["Debug"],
742 "with_bl2": [True],
Matthew Dalzell0d108612024-06-21 21:12:06 +0100743 "profile": ["profile_medium_arotless"],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300744 "extra_params": ["PSOFF"]
745 },
746 "common_params": _common_tfm_builder_cfg,
Xinyu Zhange17926f2023-08-14 11:00:43 +0800747 "valid": [
748 # MUSCA_B1_GCC_2_Debug_BL2_MEDIUM_PSOFF
749 ("arm/musca_b1", "GCC_10_3", "2", "OFF",
750 "OFF", "Debug", True, "profile_medium", "PSOFF"),
751 # MUSCA_B1_GCC_3_Debug_BL2_LARGE_PSOFF
752 ("arm/musca_b1", "GCC_10_3", "3", "OFF",
753 "OFF", "Debug", True, "profile_large", "PSOFF"),
754 ],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300755 "invalid": _common_tfm_invalid_configs + []
756 }
757
Paul Sokolovskya526e5d2023-06-15 09:49:13 +0300758config_misra_debug = {"seed_params": {
759 "tfm_platform": ["arm/musca_b1"],
760 "compiler": ["GCC_10_3"],
761 "isolation_level": ["1"],
762 "test_regression": ["OFF"],
763 "test_psa_api": ["OFF"],
764 "cmake_build_type": ["Debug"],
765 "with_bl2": [True],
766 "profile": ["profile_small"],
767 "extra_params": ["PSOFF"]
768 },
769 "common_params": _common_tfm_builder_cfg,
770 "invalid": _common_tfm_invalid_configs + []
771 }
772
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800773# Config groups for code coverage
774config_cov_profile_s = deepcopy(config_profile_s)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800775config_cov_profile_s["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800776config_cov_profile_s["seed_params"]["compiler"] = ["GCC_10_3"]
Xinyu Zhangbdc37e32022-04-06 17:47:44 +0800777
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800778config_cov_profile_m = deepcopy(config_profile_m)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800779config_cov_profile_m["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800780config_cov_profile_m["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800781
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800782config_cov_profile_l = deepcopy(config_profile_l)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800783config_cov_profile_l["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800784config_cov_profile_l["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800785
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800786config_cov_ipc_backend = deepcopy(config_ipc_backend)
787config_cov_ipc_backend["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
788config_cov_ipc_backend["seed_params"]["compiler"] = ["GCC_10_3"]
789
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800790config_cov_nsce = deepcopy(config_nsce)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800791config_cov_nsce["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800792config_cov_nsce["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800793
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800794config_cov_mmio = deepcopy(config_mmio)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800795config_cov_mmio["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800796config_cov_mmio["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800797
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800798config_cov_fp = deepcopy(config_fp)
799config_cov_fp["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang778424e2023-02-27 11:39:57 +0800800config_cov_fp["seed_params"]["compiler"] = ["GCC_10_3"]
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800801
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800802# Config groups for platforms
803config_an519 = {"seed_params": {
Xinyu Zhangf25856a2021-06-17 14:06:46 +0800804 "tfm_platform": ["arm/mps2/an519"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300805 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800806 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800807 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800808 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800809 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800810 "with_bl2": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800811 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800812 "extra_params": ["", "NSOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800813 },
814 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800815 "invalid": _common_tfm_invalid_configs + []
816 }
817
818config_an521 = {"seed_params": {
819 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300820 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800821 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800822 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800823 "test_psa_api": ["OFF"],
824 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800825 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800826 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800827 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800828 },
829 "common_params": _common_tfm_builder_cfg,
830 "invalid": _common_tfm_invalid_configs + []
831 }
832
833config_an524 = {"seed_params": {
834 "tfm_platform": ["arm/mps3/an524"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300835 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800836 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800837 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800838 "test_psa_api": ["OFF"],
839 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800840 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800841 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800842 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800843 },
844 "common_params": _common_tfm_builder_cfg,
845 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800846 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000847
Bence Balogh1aa8d582023-08-29 13:10:02 +0200848config_cs300_an547 = {"seed_params": {
849 "tfm_platform": ["arm/mps3/corstone300/an547"],
850 "compiler": ["GCC_10_3"],
851 "isolation_level": ["1"],
852 "test_regression": ["OFF"],
853 "test_psa_api": ["OFF"],
854 "cmake_build_type": ["Debug"],
855 "with_bl2": [True],
856 "profile": [""],
857 "extra_params": [""]
858 },
859 "common_params": _common_tfm_builder_cfg,
860 "invalid": _common_tfm_invalid_configs + []
861 }
Xinyu Zhang38b76742021-11-11 13:57:56 +0800862
Bence Balogh1aa8d582023-08-29 13:10:02 +0200863config_cs300_an552 = {"seed_params": {
864 "tfm_platform": ["arm/mps3/corstone300/an552"],
865 "compiler": ["GCC_10_3"],
866 "isolation_level": ["1", "2"],
867 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
868 "test_psa_api": ["OFF"],
869 "cmake_build_type": ["Debug", "Release"],
870 "with_bl2": [True],
871 "profile": [""],
872 "extra_params": [""]
873 },
874 "common_params": _common_tfm_builder_cfg,
875 "invalid": _common_tfm_invalid_configs + []
876 }
877
878config_cs300_fvp = {"seed_params": {
879 "tfm_platform": ["arm/mps3/corstone300/fvp"],
880 "compiler": ["GCC_10_3"],
881 "isolation_level": ["1", "2"],
882 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
883 "test_psa_api": ["OFF"],
884 "cmake_build_type": ["Debug", "Release"],
885 "with_bl2": [True],
886 "profile": [""],
887 "extra_params": [""]
888 },
889 "common_params": _common_tfm_builder_cfg,
890 "invalid": _common_tfm_invalid_configs + []
891 }
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800892
893config_musca_b1 = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200894 "tfm_platform": ["arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300895 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800896 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800897 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800898 "test_psa_api": ["OFF"],
899 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800900 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800901 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800902 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800903 },
904 "common_params": _common_tfm_builder_cfg,
905 "invalid": _common_tfm_invalid_configs + []
906 }
907
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800908config_musca_s1 = {"seed_params": {
909 "tfm_platform": ["arm/musca_s1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300910 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800911 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800912 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800913 "test_psa_api": ["OFF"],
914 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800915 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800916 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800917 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800918 },
919 "common_params": _common_tfm_builder_cfg,
920 "invalid": _common_tfm_invalid_configs + []
921 }
922
Bence Balogh8731a092022-05-24 17:24:54 +0200923config_corstone310 = {"seed_params": {
Bence Balogh23d8fa72022-11-08 12:16:23 +0100924 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Bence Balogh176b78f2022-02-22 13:49:34 +0100925 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800926 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800927 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800928 "test_psa_api": ["OFF"],
929 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800930 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800931 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800932 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800933 },
934 "common_params": _common_tfm_builder_cfg,
935 "invalid": _common_tfm_invalid_configs + []
936 }
937
Nicola Mazzucatobde5d432024-05-20 11:43:18 +0100938config_corstone310_pacbti = {"seed_params": {
939 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Nicola Mazzucatob4e19572024-08-21 12:26:14 +0100940 "compiler": ["ARMCLANG_6_21"],
Nicola Mazzucatobde5d432024-05-20 11:43:18 +0100941 "isolation_level": ["1"],
942 "test_regression": ["OFF"],
943 "test_psa_api": ["OFF"],
944 "cmake_build_type": ["Debug"],
945 "with_bl2": [True],
946 "profile": [""],
947 "extra_params": ["PACBTI_STD"]
948 },
949 "common_params": _common_tfm_builder_cfg,
950 "invalid": _common_tfm_invalid_configs + []
951 }
952
Gergely Korcsákba0c5212024-04-03 18:21:49 +0200953config_corstone315 = {"seed_params": {
954 "tfm_platform": ["arm/mps4/corstone315"],
955 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
956 "isolation_level": ["1"],
Gergely Korcsáka403e222024-04-09 10:51:00 +0200957 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Gergely Korcsákba0c5212024-04-03 18:21:49 +0200958 "test_psa_api": ["OFF"],
959 "cmake_build_type": ["Debug", "Release"],
960 "with_bl2": [True],
961 "profile": [""],
962 "extra_params": [""]
963 },
964 "common_params": _common_tfm_builder_cfg,
965 "invalid": _common_tfm_invalid_configs + []
966 }
967
Gergely Korcsák78a4d142024-08-05 07:41:36 +0200968config_corstone320 = {"seed_params": {
969 "tfm_platform": ["arm/mps4/corstone320"],
970 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
971 "isolation_level": ["1"],
972 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
973 "test_psa_api": ["OFF"],
974 "cmake_build_type": ["Debug", "Release"],
975 "with_bl2": [True],
976 "profile": [""],
977 "extra_params": [""]
978 },
979 "common_params": _common_tfm_builder_cfg,
980 "invalid": _common_tfm_invalid_configs + []
981 }
982
Jamie Fox82a91d02024-09-27 14:54:14 +0100983config_rse_tc3 = {"seed_params": {
984 "tfm_platform": ["arm/rse/tc/tc3"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100985 "compiler": ["GCC_10_3"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +0100986 "isolation_level": ["1", "2", "3"],
Jamie Fox9283cbc2024-04-22 13:40:01 +0100987 "test_regression": ["OFF", "RegS, RegNS"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100988 "test_psa_api": ["OFF"],
989 "cmake_build_type": ["Debug", "Release"],
990 "with_bl2": [True],
991 "profile": [""],
Nicola Mazzucato551c5f32024-10-02 09:43:04 +0100992 "extra_params": ["ATTESTATION_SCHEME_DPE"]
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100993 },
994 "common_params": _common_tfm_builder_cfg,
Jamie Fox9e2c2352023-01-13 15:11:23 +0000995 "invalid": _common_tfm_invalid_configs + [
Jamie Fox5ae6fa42024-02-19 15:11:00 +0000996 # BL2 is too large for RSE in Debug builds with tests
Jamie Fox82a91d02024-09-27 14:54:14 +0100997 ("arm/rse/tc/tc3", "GCC_10_3", "*", "RegBL2, RegS, RegNS", "*",
Jamie Fox9e2c2352023-01-13 15:11:23 +0000998 "Debug", True, "*", "*"),
999 ]
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001000 }
1001
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001002config_rse_tc4 = {"seed_params": {
1003 "tfm_platform": ["arm/rse/tc/tc4"],
1004 "compiler": ["GCC_10_3"],
1005 "isolation_level": ["1", "2", "3"],
1006 "test_regression": ["OFF", "RegS, RegNS"],
1007 "test_psa_api": ["OFF"],
1008 "cmake_build_type": ["Debug", "Release"],
1009 "with_bl2": [True],
1010 "profile": [""],
Jackson Cooper-Driverc5541ca2025-02-13 13:42:35 +00001011 "extra_params": ["ATTESTATION_SCHEME_DPE", "RSE_PROVISIONING_ASYMMETRIC"]
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001012 },
1013 "common_params": _common_tfm_builder_cfg,
1014 "invalid": _common_tfm_invalid_configs + [
1015 # BL2 is too large for RSE in Debug builds with tests
1016 ("arm/rse/tc/tc4", "GCC_10_3", "*", "RegBL2, RegS, RegNS", "*",
1017 "Debug", True, "*", "*"),
1018 ]
1019 }
1020
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301021config_rse_rdv3 = {"seed_params": {
Antonio de Angelis373187e2025-01-11 22:09:30 +00001022 "tfm_platform": ["arm/rse/neoverse_rd/rdv3"],
Joel Goddard2dd81a12024-01-23 15:10:08 +00001023 "compiler": ["GCC_10_3"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +01001024 "isolation_level": ["1", "2", "3"],
Joel Goddard2dd81a12024-01-23 15:10:08 +00001025 "test_regression": ["OFF"],
1026 "test_psa_api": ["OFF"],
1027 "cmake_build_type": ["Debug", "Release"],
1028 "with_bl2": [True],
1029 "profile": [""],
Jamie Fox9283cbc2024-04-22 13:40:01 +01001030 "extra_params": ["NSOFF, CFG0"]
Joel Goddard2dd81a12024-01-23 15:10:08 +00001031 },
1032 "common_params": _common_tfm_builder_cfg,
1033 "invalid": _common_tfm_invalid_configs + []
1034 }
1035
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001036config_rse_rd1ae = {"seed_params": {
1037 "tfm_platform": ["arm/rse/automotive_rd/rd1ae"],
1038 "compiler": ["GCC_10_3"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +01001039 "isolation_level": ["1", "2", "3"],
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001040 "test_regression": ["OFF"],
1041 "test_psa_api": ["OFF"],
1042 "cmake_build_type": ["Debug", "Release"],
1043 "with_bl2": [True],
1044 "profile": [""],
1045 "extra_params": ["NSOFF"]
1046 },
1047 "common_params": _common_tfm_builder_cfg,
1048 "invalid": _common_tfm_invalid_configs + []
1049 }
1050
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001051config_psoc64 = {"seed_params": {
1052 "tfm_platform": ["cypress/psoc64"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001053 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001054 "isolation_level": ["1", "2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001055 "test_regression": ["RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001056 "test_psa_api": ["OFF"],
1057 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001058 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001059 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001060 "extra_params": [""]
1061 },
1062 "common_params": _common_tfm_builder_cfg,
1063 "invalid": _common_tfm_invalid_configs + []
1064 }
1065
1066config_corstone1000 = {"seed_params": {
1067 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001068 "compiler": ["GCC_10_3"],
Xinyu Zhang5c4f2182023-10-31 16:26:45 +08001069 "isolation_level": ["1", "2"],
Emekcan Arasf8b39802023-04-24 10:15:22 +01001070 "test_regression": ["RegS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001071 "test_psa_api": ["OFF"],
Matthew Dalzell5cf10c62024-09-19 11:22:48 +01001072 "cmake_build_type": ["Release"], # previously Debug
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001073 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001074 "profile": [""],
Xinyu Zhang09acfbf2023-10-30 18:30:48 +08001075 "extra_params": ["NSOFF, CS1K_TEST, FVP", "NSOFF, CS1K_TEST, FPGA"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001076 },
1077 "common_params": _common_tfm_builder_cfg,
1078 "invalid": _common_tfm_invalid_configs + []
1079 }
1080
1081config_stm32l562e_dk = {"seed_params": {
1082 "tfm_platform": ["stm/stm32l562e_dk"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001083 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001084 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001085 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001086 "test_psa_api": ["OFF"],
1087 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001088 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001089 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001090 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
1091 },
1092 "common_params": _common_tfm_builder_cfg,
1093 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001094 # Oversize issue on config stm32l562e_dk_ARMCLANG_1_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001095 ("stm/stm32l562e_dk", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001096 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "*"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001097 # all other tests are off when CRYPTO is ON
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001098 ("stm/stm32l562e_dk", "*", "*", "RegBL2, RegS, RegNS", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +08001099 "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001100 # all other tests are ON when CRYPTO is OFF
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001101 ("stm/stm32l562e_dk", "*", "*", "OFF", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +08001102 "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001103 ]
1104 }
1105
1106config_b_u585i_iot02a = {"seed_params": {
1107 "tfm_platform": ["stm/b_u585i_iot02a"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001108 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Arthur She026ebb62023-02-08 18:47:39 -08001109 "isolation_level": ["1", "2"],
Arthur She96c6f772023-05-09 21:32:50 -07001110 "test_regression": ["OFF", "RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001111 "test_psa_api": ["OFF"],
1112 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001113 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001114 "profile": [""],
Arthur She026ebb62023-02-08 18:47:39 -08001115 "extra_params": [""]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001116 },
1117 "common_params": _common_tfm_builder_cfg,
1118 "invalid": _common_tfm_invalid_configs + []
1119 }
1120
Anton Komlev4164ab62024-02-23 10:59:56 +01001121config_stm32h573i_dk = {"seed_params": {
1122 "tfm_platform": ["stm/stm32h573i_dk"],
1123 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
1124 "isolation_level": ["1", "2"],
1125 "test_regression": ["OFF", "RegS, RegNS"],
1126 "test_psa_api": ["OFF"],
1127 "cmake_build_type": ["Release"],
1128 "with_bl2": [True],
1129 "profile": [""],
1130 "extra_params": [""]
1131 },
1132 "common_params": _common_tfm_builder_cfg,
1133 "invalid": _common_tfm_invalid_configs + []
1134 }
1135
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001136config_nucleo_l552ze_q = {"seed_params": {
1137 "tfm_platform": ["stm/nucleo_l552ze_q"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001138 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001139 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001140 "test_regression": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001141 "test_psa_api": ["OFF"],
1142 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001143 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001144 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001145 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001146 },
1147 "common_params": _common_tfm_builder_cfg,
1148 "invalid": _common_tfm_invalid_configs + []
1149 }
1150
1151config_lpcxpresso55s69 = {"seed_params": {
1152 "tfm_platform": ["nxp/lpcxpresso55s69"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001153 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001154 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001155 "test_regression": ["OFF", "RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001156 "test_psa_api": ["OFF"],
1157 "cmake_build_type": ["Relwithdebinfo"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001158 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001159 "profile": ["profile_medium"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001160 "extra_params": [""]
1161 },
1162 "common_params": _common_tfm_builder_cfg,
1163 "invalid": _common_tfm_invalid_configs + []
1164 }
1165
Xinyu Zhang38b76742021-11-11 13:57:56 +08001166config_bl5340 = {"seed_params": {
1167 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001168 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001169 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001170 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001171 "test_psa_api": ["OFF"],
1172 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001173 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001174 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001175 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001176 },
1177 "common_params": _common_tfm_builder_cfg,
1178 "invalid": _common_tfm_invalid_configs + []
1179 }
1180
1181config_nrf5340dk = {"seed_params": {
1182 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001183 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001184 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001185 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001186 "test_psa_api": ["OFF"],
1187 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001188 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001189 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001190 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001191 },
1192 "common_params": _common_tfm_builder_cfg,
1193 "invalid": _common_tfm_invalid_configs + []
1194 }
1195
1196config_nrf9160dk = {"seed_params": {
1197 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001198 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001199 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001200 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001201 "test_psa_api": ["OFF"],
1202 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001203 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001204 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001205 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001206 },
1207 "common_params": _common_tfm_builder_cfg,
1208 "invalid": _common_tfm_invalid_configs + []
1209 }
1210
1211config_m2351 = {"seed_params": {
1212 "tfm_platform": ["nuvoton/m2351"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001213 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001214 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001215 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001216 "test_psa_api": ["OFF"],
1217 "cmake_build_type": ["Release"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001218 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001219 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001220 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001221 },
1222 "common_params": _common_tfm_builder_cfg,
1223 "invalid": _common_tfm_invalid_configs + []
1224 }
1225
1226config_m2354 = {"seed_params": {
1227 "tfm_platform": ["nuvoton/m2354"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001228 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001229 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001230 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001231 "test_psa_api": ["OFF"],
1232 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001233 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001234 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001235 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001236 },
1237 "common_params": _common_tfm_builder_cfg,
1238 "invalid": _common_tfm_invalid_configs + []
1239 }
1240
Dávid Házi0bd447f2024-10-24 19:44:31 +00001241config_rp2350 = {"seed_params": {
1242 "tfm_platform": ["rpi/rp2350"],
1243 "compiler": ["GCC_10_3"],
1244 "isolation_level": ["2"],
1245 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
1246 "test_psa_api": ["OFF"],
1247 "cmake_build_type": ["RelWithDebInfo", "Release"],
1248 "with_bl2": [True],
Nicola Mazzucato4bad6c62024-10-28 14:42:17 +00001249 "profile": ["profile_medium"],
Dávid Házi0bd447f2024-10-24 19:44:31 +00001250 "extra_params": [""]
1251 },
1252 "common_params": _common_tfm_builder_cfg,
1253 "invalid": _common_tfm_invalid_configs + []
1254 }
1255
Jianliang Shen48704152023-10-17 17:06:00 +08001256config_mem_footprint = {"seed_params": {
1257 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001258 "compiler": ["ARMCLANG_6_21"],
Jianliang Shen48704152023-10-17 17:06:00 +08001259 "isolation_level": ["1"],
1260 "test_regression": ["OFF"],
1261 "test_psa_api": ["OFF"],
1262 "cmake_build_type": ["Minsizerel"],
1263 "with_bl2": [True],
1264 "profile": [""],
1265 "extra_params": [""]
1266 },
1267 "common_params": _common_tfm_builder_cfg,
1268 "valid": [
1269 # AN521_ARMCLANG_1_Minsizerel_BL2_SMALL_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001270 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Jianliang Shen48704152023-10-17 17:06:00 +08001271 "OFF", "OFF", "Minsizerel", True, "profile_small", "PSOFF"),
1272 # AN521_ARMCLANG_2_Minsizerel_BL2_MEDIUM_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001273 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Jianliang Shen48704152023-10-17 17:06:00 +08001274 "OFF", "OFF", "Minsizerel", True, "profile_medium", "PSOFF"),
1275 # AN521_ARMCLANG_3_Minsizerel_BL2_LARGE_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001276 ("arm/mps2/an521", "ARMCLANG_6_21", "3",
Jianliang Shen48704152023-10-17 17:06:00 +08001277 "OFF", "OFF", "Minsizerel", True, "profile_large", "PSOFF"),
1278 ],
1279 "invalid": _common_tfm_invalid_configs + []
1280 }
1281
Jianliang Shen5492f752023-07-27 15:59:01 +08001282config_prof = {"seed_params": {
1283 "tfm_platform": ["arm/mps2/an521"],
1284 "compiler": ["GCC_10_3"],
1285 "isolation_level": ["1"],
1286 "test_regression": ["OFF"],
1287 "test_psa_api": ["OFF"],
1288 "cmake_build_type": ["Release"],
1289 "with_bl2": [True],
1290 "profile": [""],
1291 "extra_params": ["PROF"]
1292 },
1293 "common_params": _common_tfm_builder_cfg,
1294 "valid": [
1295 # AN521_GNUARM_1_Release_BL2_IPC_PROF
1296 ("arm/mps2/an521", "GCC_10_3", "1",
1297 "OFF", "OFF", "Release", True, "", "IPC, PROF"),
1298 # AN521_GNUARM_2_Release_BL2_PROF
1299 ("arm/mps2/an521", "GCC_10_3", "2",
1300 "OFF", "OFF", "Release", True, "", "PROF"),
1301 # AN521_GNUARM_3_Release_BL2_PROF
1302 ("arm/mps2/an521", "GCC_10_3", "3",
1303 "OFF", "OFF", "Release", True, "", "PROF"),
1304 ],
1305 "invalid": _common_tfm_invalid_configs + []
1306 }
1307
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001308# Config groups for debug
1309config_debug = {"seed_params": {
1310 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001311 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001312 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001313 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001314 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001315 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001316 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001317 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001318 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001319 },
1320 "common_params": _common_tfm_builder_cfg,
1321 "invalid": _common_tfm_invalid_configs + []
1322 }
1323
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001324config_debug_regr = deepcopy(config_debug)
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001325config_debug_regr["seed_params"]["test_regression"] = ["RegBL2, RegS, RegNS"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001326
1327config_debug_PSA_API = {"seed_params": {
1328 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001329 "compiler": ["ARMCLANG_6_21"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001330 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001331 "test_regression": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001332 "test_psa_api": ["CRYPTO",
1333 "INITIAL_ATTESTATION",
1334 "STORAGE",
1335 "IPC"],
1336 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001337 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001338 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001339 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001340 },
1341 "common_params": _common_tfm_builder_cfg,
1342 "invalid": _common_tfm_invalid_configs + []
1343 }
1344
Karl Zhangaff558a2020-05-15 14:28:23 +01001345_builtin_configs = {
Xinyu Zhang5c4f2182023-10-31 16:26:45 +08001346 # per-patch test group
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001347 "pp_test": config_pp_test,
Karl Zhang14573bc2020-06-08 09:23:21 +08001348
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001349 # nightly test groups
1350 "nightly_test": config_nightly_test,
1351 "nightly_profile_s": config_profile_s,
1352 "nightly_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +08001353 "nightly_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001354 "nightly_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001355 "nightly_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001356 "nightly_cc_driver_psa": config_cc_driver_psa,
1357 "nightly_fp":config_fp,
1358 "nightly_psa_api": config_psa_api,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001359 "nightly_nsce": config_nsce,
1360 "nightly_mmio": config_mmio,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001361 "nightly_cs300_an547": config_cs300_an547,
1362 "nightly_cs300_an552": config_cs300_an552,
1363 "nightly_cs300_fvp": config_cs300_fvp,
Bence Balogh8731a092022-05-24 17:24:54 +02001364 "nightly_corstone310": config_corstone310,
Nicola Mazzucatobde5d432024-05-20 11:43:18 +01001365 "nightly_corstone310_pacbti" : config_corstone310_pacbti,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001366 "nightly_corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001367 "nightly_corstone320": config_corstone320,
Antonio de Angelis92ad2442023-08-07 15:00:32 +02001368 "nightly_corstone1000": config_corstone1000,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001369 #"nightly_rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001370 "nightly_rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301371 "nightly_rse_rdv3": config_rse_rdv3,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001372 "nightly_rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001373 "nightly_psoc64": config_psoc64,
Anton Komlev55c3c022024-03-05 16:24:17 +01001374 "nightly_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -08001375 "nightly_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001376 "nightly_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001377 "nightly_lpcxpresso55s69": config_lpcxpresso55s69,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001378 "nightly_rp2350": config_rp2350,
Karl Zhang14573bc2020-06-08 09:23:21 +08001379
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001380 # release test groups
1381 "release_test": config_release_test,
1382 "release_profile_s": config_profile_s,
1383 "release_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +08001384 "release_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001385 "release_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001386 "release_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001387 "release_cc_driver_psa": config_cc_driver_psa,
1388 "release_fp": config_fp,
1389 "release_psa_api": config_psa_api,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001390 "release_nsce": config_nsce,
1391 "release_mmio": config_mmio,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001392 "release_cs300_an547": config_cs300_an547,
1393 "release_cs300_an552": config_cs300_an552,
1394 "release_cs300_fvp": config_cs300_fvp,
Bence Balogh8731a092022-05-24 17:24:54 +02001395 "release_corstone310": config_corstone310,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001396 "release_corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001397 "release_corstone320": config_corstone320,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001398 #"release_rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001399 "release_rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301400 "release_rse_rdv3": config_rse_rdv3,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001401 "release_rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001402 "release_psoc64": config_psoc64,
Anton Komlev55c3c022024-03-05 16:24:17 +01001403 "release_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -08001404 "release_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001405 "release_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001406 "release_lpcxpresso55s69": config_lpcxpresso55s69,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001407 "release_rp2350": config_rp2350,
Karl Zhang14573bc2020-06-08 09:23:21 +08001408
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001409 # code coverage test groups
1410 "coverage_profile_s": config_cov_profile_s,
1411 "coverage_profile_m": config_cov_profile_m,
1412 "coverage_profile_l": config_cov_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001413 "coverage_ipc_backend": config_cov_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001414 "coverage_nsce": config_cov_nsce,
1415 "coverage_mmio": config_cov_mmio,
Xinyu Zhang5f725ee2022-12-19 10:29:20 +08001416 "coverage_fp": config_cov_fp,
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001417
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +03001418 # MISRA analysis
1419 "misra": config_misra,
Paul Sokolovskya526e5d2023-06-15 09:49:13 +03001420 "misra_debug": config_misra_debug,
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +03001421
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001422 # platform groups
1423 "an521": config_an521,
1424 "an519": config_an519,
1425 "an524": config_an524,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001426 "cs300_an547": config_cs300_an547,
1427 "cs300_an552": config_cs300_an552,
1428 "cs300_fvp": config_cs300_fvp,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001429 "musca_b1": config_musca_b1,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001430 "musca_s1": config_musca_s1,
Bence Balogh8731a092022-05-24 17:24:54 +02001431 "corstone310": config_corstone310,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001432 "corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001433 "corstone320": config_corstone320,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001434 #"rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001435 "rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301436 "rse_rdv3": config_rse_rdv3,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001437 "rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001438 "cypress_psoc64": config_psoc64,
Antonio de Angelis92ad2442023-08-07 15:00:32 +02001439 "corstone1000": config_corstone1000,
Anton Komlev55c3c022024-03-05 16:24:17 +01001440 "stm_stm32l562e_dk": config_stm32l562e_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001441 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001442 "stm_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001443 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1444 "nxp_lpcxpresso55s69": config_lpcxpresso55s69,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001445 "laird_bl5340": config_bl5340,
1446 "nordic_nrf5340dk": config_nrf5340dk,
1447 "nordic_nrf9160dk": config_nrf9160dk,
1448 "nuvoton_m2351": config_m2351,
1449 "nuvoton_m2354": config_m2354,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001450 "rp2350": config_rp2350,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001451
Bence Balogh79fda442022-10-14 18:01:37 +02001452 # config groups for tf-m-extras examples
1453 "example_vad": config_example_vad,
1454 "example_dma350_trigger": config_example_dma350_trigger,
Bence Balogh852f8bd2023-08-07 14:46:54 +02001455 "example_dma350_clcd": config_example_dma350_clcd,
Bence Balogh79fda442022-10-14 18:01:37 +02001456 "example_dma350_s": config_example_dma350_s,
Bence Baloghd23cbda2023-08-07 15:30:58 +02001457 "example_dma350_ns": config_example_dma350_ns,
Bence Balogh79fda442022-10-14 18:01:37 +02001458
Jianliang Shen48704152023-10-17 17:06:00 +08001459 # config groups for tf-m performance monitor
1460 "mem_footprint": config_mem_footprint,
Jianliang Shen5492f752023-07-27 15:59:01 +08001461 "profiling": config_prof,
1462
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001463 # config groups for debug
Dean Birch4c6ad622020-03-13 11:28:03 +00001464 "debug": config_debug,
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001465 "debug_regr": config_debug_regr,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001466 "debug_PSA_API": config_debug_PSA_API,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001467 }
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001468
1469if __name__ == '__main__':
1470 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001471
Minos Galanakisea421232019-06-20 17:11:28 +01001472 # Default behavior is to export refference config when called
1473 _dir = os.getcwd()
1474 from utils import save_json
1475 for _cname, _cfg in _builtin_configs.items():
1476 _fname = os.path.join(_dir, _cname + ".json")
1477 print("Exporting config %s" % _fname)
1478 save_json(_fname, _cfg)