blob: 06295b93d0b3a4848c9a34ecde0b2e1842d06b9c [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/*
Antonio de Angelis373187e2025-01-11 22:09:30 +000011 * Copyright (c) 2018-2025, Arm Limited. All rights reserved.
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",
262 "%(ci_build_root_dir)s/spe/bin/encrypted_cm_provisioning_bundle_0.bin",
263 "%(ci_build_root_dir)s/spe/bin/encrypted_dm_provisioning_bundle_0.bin",
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000264 "%(ci_build_root_dir)s/spe/bin/host_flash.bin"],
265 "arm/rse/tc/tc4": [
266 "%(ci_build_root_dir)s/spe/bin/rom.bin",
267 "%(ci_build_root_dir)s/spe/bin/encrypted_cm_provisioning_bundle_0.bin",
268 "%(ci_build_root_dir)s/spe/bin/encrypted_dm_provisioning_bundle_0.bin",
Jamie Fox9283cbc2024-04-22 13:40:01 +0100269 "%(ci_build_root_dir)s/spe/bin/host_flash.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100270 }
271}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100272
Xinyu Zhangb708f572020-09-15 11:43:46 +0800273# List of all build configs that are impossible under all circumstances
274_common_tfm_invalid_configs = [
Xinyu Zhang459a1982021-07-21 22:34:49 +0800275 # LR_CODE size exceeds limit on MUSCA_B1 & MUSCA_S1 with regression tests in Debug mode built with ARMCLANG
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300276 ("arm/musca_b1", "ARMCLANG_6_21", "*", "RegBL2, RegS, RegNS", "OFF", "Debug", "*", "", "*"),
277 ("arm/musca_s1", "ARMCLANG_6_21", "*", "RegBL2, RegS, RegNS", "OFF", "Debug", "*", "", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800278 # Load range overlap on Musca for IPC Debug type: T895
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300279 ("arm/musca_b1", "ARMCLANG_6_21", "*", "*", "IPC", "Debug", "*", "*", "*"),
280 ("arm/musca_s1", "ARMCLANG_6_21", "*", "*", "IPC", "Debug", "*", "*", "*"),
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300281 # FF does not support L3
Summer Qin379abb62022-10-08 16:41:54 +0800282 ("*", "*", "3", "*", "IPC", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800283 # Musca requires BL2
Summer Qin379abb62022-10-08 16:41:54 +0800284 ("arm/musca_b1", "*", "*", "*", "*", "*", False, "*", "*"),
285 ("arm/musca_s1", "*", "*", "*", "*", "*", False, "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800286 # Only AN521 and MUSCA_B1 support Isolation Level 3
Summer Qin379abb62022-10-08 16:41:54 +0800287 ("arm/mps2/an519", "*", "3", "*", "*", "*", "*", "*", "*"),
288 ("arm/mps3/an524", "*", "3", "*", "*", "*", "*", "*", "*"),
289 ("arm/musca_s1", "*", "3", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800290 ]
291
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100292# Configure build manager to build several combinations
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800293# Config group for per-patch job
294config_pp_test = {"seed_params": {
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800295 # AN519_ARMCLANG_IPC_1_RegBL2_RegS_RegNS_Debug_BL2
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800296 "tfm_platform": ["arm/mps2/an519"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300297 "compiler": ["ARMCLANG_6_21"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800298 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800299 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800300 "test_psa_api": ["OFF"],
301 "cmake_build_type": ["Debug"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800302 "with_bl2": [True],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800303 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800304 "extra_params": [""]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800305 },
306 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800307 "valid": [
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800308 # AN519_ARMCLANG_2_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300309 ("arm/mps2/an519", "ARMCLANG_6_21", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800310 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800311 # AN519_GCC_2_RegBL2_RegS_RegNS_Release_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800312 ("arm/mps2/an519", "GCC_10_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800313 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
314 # AN519_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800315 ("arm/mps2/an519", "GCC_10_3", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800316 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
317 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_SMALL_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300318 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800319 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "profile_small", "PSOFF"),
320 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300321 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800322 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Chris Branddc827302024-10-11 15:20:17 -0700323 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_PSCLEAR
324 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
325 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", "PSCLEAR"),
326 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_PSLIMIT
327 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
328 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", "PSLIMIT"),
Jianliang Shen6984bef2023-07-25 10:36:56 +0800329 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_IPC
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300330 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Jianliang Shen6984bef2023-07-25 10:36:56 +0800331 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", "IPC"),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800332 # AN521_ARMCLANG_2_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300333 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800334 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
335 # AN521_ARMCLANG_3_RegBL2_RegS_RegNS_Minsizerel_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300336 ("arm/mps2/an521", "ARMCLANG_6_21", "3",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800337 "RegBL2, RegS, RegNS", "OFF", "Minsizerel", True, "", ""),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800338 # AN521_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800339 ("arm/mps2/an521", "GCC_10_3", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800340 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100341 # AN521_GCC_2_RegBL2_RegS_RegNS_Debug_BL2_MEDIUM
Summer Qin379abb62022-10-08 16:41:54 +0800342 ("arm/mps2/an521", "GCC_10_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800343 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "profile_medium", ""),
344 # AN521_GCC_2_RegBL2_RegS_RegNS_Release_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800345 ("arm/mps2/an521", "GCC_10_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800346 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
347 # AN521_GCC_3_RegBL2_RegS_RegNS_Minsizerel_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800348 ("arm/mps2/an521", "GCC_10_3", "3",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800349 "RegBL2, RegS, RegNS", "OFF", "Minsizerel", True, "", ""),
Xinyu Zhang280f5ab2023-10-31 16:17:21 +0800350 # AN521_GCC_1_FF_Release_BL2
351 ("arm/mps2/an521", "GCC_10_3", "1",
352 "OFF", "IPC", "Release", True, "", ""),
353 # AN521_ARMCLANG_2_STORAGE_Debug_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300354 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Xinyu Zhang280f5ab2023-10-31 16:17:21 +0800355 "OFF", "STORAGE", "Debug", True, "", ""),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100356 # CS300_FVP_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
Bence Balogh1aa8d582023-08-29 13:10:02 +0200357 ("arm/mps3/corstone300/fvp", "GCC_10_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800358 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100359 # CS300_FVP_GCC_2_RegBL2_RegS_RegNS_Release_BL2
Bence Balogh1aa8d582023-08-29 13:10:02 +0200360 ("arm/mps3/corstone300/fvp", "GCC_10_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800361 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100362 # corstone310_ARMCLANG_1_Debug_BL2_PACBTI_STD
Nicola Mazzucatob4e19572024-08-21 12:26:14 +0100363 ("arm/mps3/corstone310/fvp", "ARMCLANG_6_21", "1",
Nicola Mazzucatob542f2b2024-05-23 10:13:43 +0100364 "OFF", "OFF", "Debug", True, "", "PACBTI_STD"),
Xinyu Zhang5c4f2182023-10-31 16:26:45 +0800365 # corstone1000_GCC_2_RegS_Debug_BL2_NSOFF_CS1K_TEST_FVP
366 ("arm/corstone1000", "GCC_10_3", "2",
367 "RegS", "OFF", "Debug", True, "", "NSOFF, CS1K_TEST, FVP"),
Matthew Dalzell397fb3c2024-06-21 11:03:38 +0100368 # corstone315_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2
369 ("arm/mps4/corstone315", "ARMCLANG_6_21", "1",
370 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Gergely Korcsák78a4d142024-08-05 07:41:36 +0200371 # corstone320_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2
372 ("arm/mps4/corstone320", "ARMCLANG_6_21", "1",
373 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800374 # MUSCA_B1_GCC_1_RegBL2_RegS_RegNS_Minsizerel_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800375 ("arm/musca_b1", "GCC_10_3", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800376 "RegBL2, RegS, RegNS", "OFF", "Minsizerel", True, "", ""),
377 # MUSCA_S1_ARMCLANG_2_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300378 ("arm/musca_s1", "ARMCLANG_6_21", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800379 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
380 # MUSCA_S1_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800381 ("arm/musca_s1", "GCC_10_3", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800382 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
383 # MUSCA_S1_GCC_2_RegBL2_RegS_RegNS_Release_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800384 ("arm/musca_s1", "GCC_10_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800385 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800386 # MUSCA_S1_GCC_1_RegBL2_RegS_RegNS_Release_BL2_CC_DRIVER_PSA
Summer Qin379abb62022-10-08 16:41:54 +0800387 ("arm/musca_s1", "GCC_10_3", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800388 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "CC_DRIVER_PSA"),
Nicola Mazzucato8617ae92024-10-02 13:14:15 +0100389 # RSE_TC3_GCC_3_RegS_RegNS_Release_BL2_ATTESTATION_SCHEME_DPE
Antonio de Angelis78a01fc2025-02-06 11:11:25 +0000390 #("arm/rse/tc/tc3", "GCC_10_3", "3",
391 # "RegS, RegNS", "OFF", "Release", True, "", "ATTESTATION_SCHEME_DPE"),
Jamie Fox82a91d02024-09-27 14:54:14 +0100392 # RSE_TC3_GCC_2_RegBL1_1_Debug_BL2
Antonio de Angelis78a01fc2025-02-06 11:11:25 +0000393 #("arm/rse/tc/tc3", "GCC_10_3", "2",
394 # "RegBL1_1", "OFF", "Debug", True, "", ""),
Nicola Mazzucatob4763262024-09-26 12:39:06 +0100395 # RSE_TC3_GCC_2_Release_BL2_ATTESTATION_SCHEME_CCA
Antonio de Angelis78a01fc2025-02-06 11:11:25 +0000396 #("arm/rse/tc/tc3", "GCC_10_3", "2",
397 # "OFF", "OFF", "Release", True, "", "ATTESTATION_SCHEME_CCA"),
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000398 # RSE_TC4_GCC_3_RegS_RegNS_Release_BL2_ATTESTATION_SCHEME_DPE
399 ("arm/rse/tc/tc4", "GCC_10_3", "3",
400 "RegS, RegNS", "OFF", "Release", True, "", "ATTESTATION_SCHEME_DPE"),
401 # RSE_TC4_GCC_2_RegBL1_1_Debug_BL2
402 ("arm/rse/tc/tc4", "GCC_10_3", "2",
403 "RegBL1_1", "OFF", "Debug", True, "", ""),
404 # RSE_TC4_GCC_2_Release_BL2_ATTESTATION_SCHEME_CCA
405 ("arm/rse/tc/tc4", "GCC_10_3", "2",
406 "OFF", "OFF", "Release", True, "", "ATTESTATION_SCHEME_CCA"),
Ishan Deshpande80d840e2025-01-09 18:46:56 +0530407 # RSE_RDV3_GCC_2_Release_BL2_NSOFF_CFG0
Antonio de Angelis373187e2025-01-11 22:09:30 +0000408 ("arm/rse/neoverse_rd/rdv3", "GCC_10_3", "2",
Jamie Fox9283cbc2024-04-22 13:40:01 +0100409 "OFF", "OFF", "Release", True, "", "NSOFF, CFG0"),
Ziad Elhanafy937333f2024-05-22 14:17:40 +0100410 # RSE_RD1AE_GCC_2_Release_BL2_NSOFF
411 ("arm/rse/automotive_rd/rd1ae", "GCC_10_3", "2",
412 "OFF", "OFF", "Release", True, "", "NSOFF"),
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800413 # stm32l562e_dk_ARMCLANG_1_RegS_RegNS_Release_BL2_CRYPTO_OFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300414 ("stm/stm32l562e_dk", "ARMCLANG_6_21", "1",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800415 "RegS, RegNS", "OFF", "Release", True, "", "CRYPTO_OFF"),
416 # stm32l562e_dk_GCC_2_Release_BL2_CRYPTO_ON
Summer Qin379abb62022-10-08 16:41:54 +0800417 ("stm/stm32l562e_dk", "GCC_10_3", "2",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800418 "OFF", "OFF", "Release", True, "", "CRYPTO_ON"),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100419 # stm32l562e_dk_GCC_3_RegBL2_RegS_RegNS_Release_BL2_CRYPTO_OFF
Summer Qin379abb62022-10-08 16:41:54 +0800420 ("stm/stm32l562e_dk", "GCC_10_3", "3",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800421 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "CRYPTO_OFF"),
Arthur She4f08c152023-05-15 15:29:14 -0700422 # b_u585i_iot02a_GCC_1_RegS_RegNS_Release_BL2
423 ("stm/b_u585i_iot02a", "GCC_10_3", "1",
424 "RegS, RegNS", "OFF", "Release", True, "", ""),
425 # b_u585i_iot02a_ARMCLANG_2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300426 ("stm/b_u585i_iot02a", "ARMCLANG_6_21", "2",
Arthur She4f08c152023-05-15 15:29:14 -0700427 "RegS, RegNS", "OFF", "Release", True, "", ""),
Anton Komlev4164ab62024-02-23 10:59:56 +0100428 # stm32h573i_dk_GCC_1_RegS_RegNS_Release_BL2
429 ("stm/stm32h573i_dk", "GCC_10_3", "1",
430 "RegS, RegNS", "OFF", "Release", True, "", ""),
431 # stm32h573i_dk_ARMCLANG_2_RegS_RegNS_Release_BL2
432 ("stm/stm32h573i_dk", "ARMCLANG_6_21", "2",
433 "RegS, RegNS", "OFF", "Release", True, "", ""),
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800434 # psoc64_GCC_2_RegS_RegNS_Release
Summer Qin379abb62022-10-08 16:41:54 +0800435 ("cypress/psoc64", "GCC_10_3", "2",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800436 "RegS, RegNS", "OFF", "Release", False, "", ""),
Nicola Mazzucato4bad6c62024-10-28 14:42:17 +0000437 # rp2350_GCC_2_RegBL2_RegS_RegNS_Release_BL2_MEDIUM
Dávid Házi0bd447f2024-10-24 19:44:31 +0000438 ("rpi/rp2350", "GCC_10_3", "2",
Nicola Mazzucato4bad6c62024-10-28 14:42:17 +0000439 "RegBL2, RegS, RegNS", "OFF", "Release", True, "profile_medium", ""),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800440 ],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800441 "invalid": _common_tfm_invalid_configs + []
442 }
443
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800444# Config group for nightly job
445config_nightly_test = {"seed_params": {
446 "tfm_platform": ["arm/mps2/an519",
447 "arm/mps2/an521",
448 "arm/mps3/an524",
449 "arm/musca_s1",
Mark Horvathef57baa2022-09-12 13:36:36 +0200450 "arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300451 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800452 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800453 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800454 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800455 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800456 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800457 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800458 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100459 },
460 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800461 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100462 }
463
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800464# Config group for release job
465config_release_test = {"seed_params": {
466 "tfm_platform": ["arm/mps2/an519",
467 "arm/mps2/an521",
468 "arm/mps3/an524",
Mark Horvathef57baa2022-09-12 13:36:36 +0200469 "arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800470 "arm/musca_s1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300471 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800472 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800473 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800474 "test_psa_api": ["OFF"],
475 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800476 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800477 "profile": [""],
David Vinczed78e2622022-11-24 15:04:00 +0100478 "extra_params": ["TEST_CBOR"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800479 },
480 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800481 "valid": [
482 # sanity test for GCC v11.2
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800483 # AN521_GCC_3_RegBL2_RegS_RegNS_Relwithdebinfo_BL2
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800484 ("arm/mps2/an521", "GCC_11_2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800485 "3", "RegBL2, RegS, RegNS", "OFF", "Relwithdebinfo",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800486 True, "", ""),
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800487 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800488 "invalid": _common_tfm_invalid_configs + []
489 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800490
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800491# Config groups for TF-M features
492config_profile_s = {"seed_params": {
David Huda27ae72022-03-28 15:32:19 +0800493 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300494 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
David Huda27ae72022-03-28 15:32:19 +0800495 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800496 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
David Huda27ae72022-03-28 15:32:19 +0800497 "test_psa_api": ["OFF"],
498 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
David Huda27ae72022-03-28 15:32:19 +0800499 "with_bl2": [True],
David Huda27ae72022-03-28 15:32:19 +0800500 "profile": ["profile_small"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800501 "extra_params": ["PSOFF"]
David Huda27ae72022-03-28 15:32:19 +0800502 },
503 "common_params": _common_tfm_builder_cfg,
David Huda27ae72022-03-28 15:32:19 +0800504 "invalid": _common_tfm_invalid_configs + [
Summer Qin379abb62022-10-08 16:41:54 +0800505 ("arm/mps2/an519", "GCC_10_3", "*", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800506 "*", "Minsizerel", "*", "*", "*")
David Huda27ae72022-03-28 15:32:19 +0800507 ]
508 }
509
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800510config_profile_m = {"seed_params": {
511 "tfm_platform": ["arm/mps2/an519",
512 "arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200513 "arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300514 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800515 "isolation_level": ["2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800516 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800517 "test_psa_api": ["OFF"],
518 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800519 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800520 "profile": ["profile_medium"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800521 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800522 },
523 "common_params": _common_tfm_builder_cfg,
524 "invalid": _common_tfm_invalid_configs + []
525 }
526
David Hu3d333762022-10-27 18:12:33 +0800527config_profile_m_arotless = {"seed_params": {
528 "tfm_platform": ["arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300529 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
David Hu3d333762022-10-27 18:12:33 +0800530 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800531 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
David Hu3d333762022-10-27 18:12:33 +0800532 "test_psa_api": ["OFF"],
533 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
534 "with_bl2": [True],
535 "profile": ["profile_medium_arotless"],
536 "extra_params": ["", "PSOFF"]
537 },
538 "common_params": _common_tfm_builder_cfg,
539 "invalid": _common_tfm_invalid_configs + []
540 }
541
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800542config_profile_l = {"seed_params": {
543 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300544 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800545 "isolation_level": ["3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800546 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800547 "test_psa_api": ["OFF"],
548 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800549 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800550 "profile": ["profile_large"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800551 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800552 },
553 "common_params": _common_tfm_builder_cfg,
554 "invalid": _common_tfm_invalid_configs + []
555 }
556
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800557config_ipc_backend = {"seed_params": {
558 "tfm_platform": ["arm/mps2/an519",
559 "arm/mps2/an521",
560 "arm/musca_s1",
561 "arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300562 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800563 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800564 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800565 "test_psa_api": ["OFF"],
566 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
567 "with_bl2": [True],
568 "profile": [""],
569 "extra_params": ["IPC"]
570 },
571 "common_params": _common_tfm_builder_cfg,
572 "invalid": _common_tfm_invalid_configs + []
573 }
574
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800575config_cc_driver_psa = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200576 "tfm_platform": ["arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800577 "arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800578 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800579 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800580 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800581 "test_psa_api": ["OFF"],
582 "cmake_build_type": ["Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800583 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800584 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800585 "extra_params": ["CC_DRIVER_PSA"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800586 },
587 "common_params": _common_tfm_builder_cfg,
588 "invalid": _common_tfm_invalid_configs + []
589 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100590
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800591config_fp = {"seed_params": {
Xinyu Zhange91567c2023-09-13 14:10:11 +0800592 "tfm_platform": ["arm/mps2/an521",
593 "arm/mps3/corstone300/an552",
594 "arm/mps3/corstone300/fvp"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800595 "compiler": ["GCC_10_3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800596 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800597 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800598 "test_psa_api": ["OFF"],
599 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800600 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800601 "profile": [""],
Mark Horvath93cb5fb2022-09-06 17:51:24 +0200602 "extra_params": ["FPOFF", "FPON", "FPON, LZOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800603 },
604 "common_params": _common_tfm_builder_cfg,
605 "invalid": _common_tfm_invalid_configs + []
606 }
Karl Zhangeffed972020-06-30 15:48:01 +0800607
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800608config_psa_api = {"seed_params": {
609 "tfm_platform": ["arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200610 "arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800611 "arm/musca_s1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300612 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800613 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800614 "test_regression": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800615 "test_psa_api": ["IPC",
616 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800617 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800618 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800619 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800620 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800621 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800622 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800623 },
624 "common_params": _common_tfm_builder_cfg,
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300625 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800626 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800627
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800628config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800629 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300630 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800631 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800632 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800633 "test_psa_api": ["OFF"],
634 "cmake_build_type": ["Debug"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800635 "with_bl2": [True],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800636 "profile": [""],
Xinyu Zhang67612992021-12-20 14:11:27 +0800637 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800638 },
639 "common_params": _common_tfm_builder_cfg,
640 "invalid": _common_tfm_invalid_configs + []
641 }
642
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800643config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800644 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300645 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800646 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800647 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800648 "test_psa_api": ["OFF"],
649 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800650 "with_bl2": [True],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800651 "profile": [""],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800652 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800653 },
654 "common_params": _common_tfm_builder_cfg,
655 "invalid": _common_tfm_invalid_configs + []
656 }
657
Bence Balogh79fda442022-10-14 18:01:37 +0200658# Config groups for TF-M examples
659config_example_vad = {"seed_params": {
Bence Balogh1aa8d582023-08-29 13:10:02 +0200660 "tfm_platform": ["arm/mps3/corstone300/an552"],
Bence Balogh79fda442022-10-14 18:01:37 +0200661 "compiler": ["GCC_10_3"],
662 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800663 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200664 "test_psa_api": ["OFF"],
665 "cmake_build_type": ["Release"],
666 "with_bl2": [True],
667 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200668 "extra_params": ["EXTRAS_EXAMPLE_VAD"]
Bence Balogh79fda442022-10-14 18:01:37 +0200669 },
670 "common_params": _common_tfm_builder_cfg,
671 "invalid": _common_tfm_invalid_configs + []
672 }
673
Bence Balogh852f8bd2023-08-07 14:46:54 +0200674config_example_dma350_clcd = {"seed_params": {
Bence Balogh79fda442022-10-14 18:01:37 +0200675 "tfm_platform": ["arm/mps3/corstone310/fvp"],
676 "compiler": ["GCC_10_3"],
677 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800678 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200679 "test_psa_api": ["OFF"],
680 "cmake_build_type": ["Release"],
681 "with_bl2": [True],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200682 "profile": ["profile_medium"],
683 "extra_params": ["EXTRAS_EXAMPLE_DMA350_CLCD"]
Bence Balogh79fda442022-10-14 18:01:37 +0200684 },
685 "common_params": _common_tfm_builder_cfg,
686 "invalid": _common_tfm_invalid_configs + []
687 }
688
689config_example_dma350_s = {"seed_params": {
690 "tfm_platform": ["arm/mps3/corstone310/fvp"],
691 "compiler": ["GCC_10_3"],
692 "isolation_level": ["1"],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200693 "test_regression": ["RegS"],
Bence Balogh79fda442022-10-14 18:01:37 +0200694 "test_psa_api": ["OFF"],
695 "cmake_build_type": ["Release"],
696 "with_bl2": [True],
697 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200698 "extra_params": ["EXTRAS_EXAMPLE_DMA350_S"]
Bence Balogh79fda442022-10-14 18:01:37 +0200699 },
700 "common_params": _common_tfm_builder_cfg,
701 "invalid": _common_tfm_invalid_configs + []
702 }
703
Bence Baloghd23cbda2023-08-07 15:30:58 +0200704config_example_dma350_ns = {"seed_params": {
705 "tfm_platform": ["arm/mps3/corstone310/fvp"],
706 "compiler": ["GCC_10_3"],
707 "isolation_level": ["1"],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200708 "test_regression": ["RegS, RegNS"],
Bence Baloghd23cbda2023-08-07 15:30:58 +0200709 "test_psa_api": ["OFF"],
710 "cmake_build_type": ["Release"],
711 "with_bl2": [True],
712 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200713 "extra_params": ["EXTRAS_EXAMPLE_DMA350_NS"]
Bence Baloghd23cbda2023-08-07 15:30:58 +0200714 },
715 "common_params": _common_tfm_builder_cfg,
716 "invalid": _common_tfm_invalid_configs + []
717 }
718
Bence Balogh79fda442022-10-14 18:01:37 +0200719config_example_dma350_trigger = {"seed_params": {
720 "tfm_platform": ["arm/mps3/corstone310/fvp"],
721 "compiler": ["GCC_10_3"],
722 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800723 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200724 "test_psa_api": ["OFF"],
725 "cmake_build_type": ["Release"],
726 "with_bl2": [True],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200727 "profile": ["profile_medium"],
728 "extra_params": ["EXTRAS_EXAMPLE_DMA350_TRIGGER"]
Bence Balogh79fda442022-10-14 18:01:37 +0200729 },
730 "common_params": _common_tfm_builder_cfg,
731 "invalid": _common_tfm_invalid_configs + []
732 }
733
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300734config_misra = {"seed_params": {
735 "tfm_platform": ["arm/musca_b1"],
736 "compiler": ["GCC_10_3"],
737 "isolation_level": ["1"],
738 "test_regression": ["OFF"],
739 "test_psa_api": ["OFF"],
740 "cmake_build_type": ["Debug"],
741 "with_bl2": [True],
Matthew Dalzell0d108612024-06-21 21:12:06 +0100742 "profile": ["profile_medium_arotless"],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300743 "extra_params": ["PSOFF"]
744 },
745 "common_params": _common_tfm_builder_cfg,
Xinyu Zhange17926f2023-08-14 11:00:43 +0800746 "valid": [
747 # MUSCA_B1_GCC_2_Debug_BL2_MEDIUM_PSOFF
748 ("arm/musca_b1", "GCC_10_3", "2", "OFF",
749 "OFF", "Debug", True, "profile_medium", "PSOFF"),
750 # MUSCA_B1_GCC_3_Debug_BL2_LARGE_PSOFF
751 ("arm/musca_b1", "GCC_10_3", "3", "OFF",
752 "OFF", "Debug", True, "profile_large", "PSOFF"),
753 ],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300754 "invalid": _common_tfm_invalid_configs + []
755 }
756
Paul Sokolovskya526e5d2023-06-15 09:49:13 +0300757config_misra_debug = {"seed_params": {
758 "tfm_platform": ["arm/musca_b1"],
759 "compiler": ["GCC_10_3"],
760 "isolation_level": ["1"],
761 "test_regression": ["OFF"],
762 "test_psa_api": ["OFF"],
763 "cmake_build_type": ["Debug"],
764 "with_bl2": [True],
765 "profile": ["profile_small"],
766 "extra_params": ["PSOFF"]
767 },
768 "common_params": _common_tfm_builder_cfg,
769 "invalid": _common_tfm_invalid_configs + []
770 }
771
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800772# Config groups for code coverage
773config_cov_profile_s = deepcopy(config_profile_s)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800774config_cov_profile_s["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800775config_cov_profile_s["seed_params"]["compiler"] = ["GCC_10_3"]
Xinyu Zhangbdc37e32022-04-06 17:47:44 +0800776
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800777config_cov_profile_m = deepcopy(config_profile_m)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800778config_cov_profile_m["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800779config_cov_profile_m["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800780
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800781config_cov_profile_l = deepcopy(config_profile_l)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800782config_cov_profile_l["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800783config_cov_profile_l["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800784
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800785config_cov_ipc_backend = deepcopy(config_ipc_backend)
786config_cov_ipc_backend["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
787config_cov_ipc_backend["seed_params"]["compiler"] = ["GCC_10_3"]
788
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800789config_cov_nsce = deepcopy(config_nsce)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800790config_cov_nsce["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800791config_cov_nsce["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800792
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800793config_cov_mmio = deepcopy(config_mmio)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800794config_cov_mmio["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800795config_cov_mmio["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800796
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800797config_cov_fp = deepcopy(config_fp)
798config_cov_fp["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang778424e2023-02-27 11:39:57 +0800799config_cov_fp["seed_params"]["compiler"] = ["GCC_10_3"]
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800800
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800801# Config groups for platforms
802config_an519 = {"seed_params": {
Xinyu Zhangf25856a2021-06-17 14:06:46 +0800803 "tfm_platform": ["arm/mps2/an519"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300804 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800805 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800806 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800807 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800808 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800809 "with_bl2": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800810 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800811 "extra_params": ["", "NSOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800812 },
813 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800814 "invalid": _common_tfm_invalid_configs + []
815 }
816
817config_an521 = {"seed_params": {
818 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300819 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800820 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800821 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800822 "test_psa_api": ["OFF"],
823 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800824 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800825 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800826 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800827 },
828 "common_params": _common_tfm_builder_cfg,
829 "invalid": _common_tfm_invalid_configs + []
830 }
831
832config_an524 = {"seed_params": {
833 "tfm_platform": ["arm/mps3/an524"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300834 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800835 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800836 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800837 "test_psa_api": ["OFF"],
838 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800839 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800840 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800841 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800842 },
843 "common_params": _common_tfm_builder_cfg,
844 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800845 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000846
Bence Balogh1aa8d582023-08-29 13:10:02 +0200847config_cs300_an547 = {"seed_params": {
848 "tfm_platform": ["arm/mps3/corstone300/an547"],
849 "compiler": ["GCC_10_3"],
850 "isolation_level": ["1"],
851 "test_regression": ["OFF"],
852 "test_psa_api": ["OFF"],
853 "cmake_build_type": ["Debug"],
854 "with_bl2": [True],
855 "profile": [""],
856 "extra_params": [""]
857 },
858 "common_params": _common_tfm_builder_cfg,
859 "invalid": _common_tfm_invalid_configs + []
860 }
Xinyu Zhang38b76742021-11-11 13:57:56 +0800861
Bence Balogh1aa8d582023-08-29 13:10:02 +0200862config_cs300_an552 = {"seed_params": {
863 "tfm_platform": ["arm/mps3/corstone300/an552"],
864 "compiler": ["GCC_10_3"],
865 "isolation_level": ["1", "2"],
866 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
867 "test_psa_api": ["OFF"],
868 "cmake_build_type": ["Debug", "Release"],
869 "with_bl2": [True],
870 "profile": [""],
871 "extra_params": [""]
872 },
873 "common_params": _common_tfm_builder_cfg,
874 "invalid": _common_tfm_invalid_configs + []
875 }
876
877config_cs300_fvp = {"seed_params": {
878 "tfm_platform": ["arm/mps3/corstone300/fvp"],
879 "compiler": ["GCC_10_3"],
880 "isolation_level": ["1", "2"],
881 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
882 "test_psa_api": ["OFF"],
883 "cmake_build_type": ["Debug", "Release"],
884 "with_bl2": [True],
885 "profile": [""],
886 "extra_params": [""]
887 },
888 "common_params": _common_tfm_builder_cfg,
889 "invalid": _common_tfm_invalid_configs + []
890 }
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800891
892config_musca_b1 = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200893 "tfm_platform": ["arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300894 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800895 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800896 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800897 "test_psa_api": ["OFF"],
898 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800899 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800900 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800901 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800902 },
903 "common_params": _common_tfm_builder_cfg,
904 "invalid": _common_tfm_invalid_configs + []
905 }
906
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800907config_musca_s1 = {"seed_params": {
908 "tfm_platform": ["arm/musca_s1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300909 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800910 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800911 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800912 "test_psa_api": ["OFF"],
913 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800914 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800915 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800916 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800917 },
918 "common_params": _common_tfm_builder_cfg,
919 "invalid": _common_tfm_invalid_configs + []
920 }
921
Bence Balogh8731a092022-05-24 17:24:54 +0200922config_corstone310 = {"seed_params": {
Bence Balogh23d8fa72022-11-08 12:16:23 +0100923 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Bence Balogh176b78f2022-02-22 13:49:34 +0100924 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800925 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800926 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800927 "test_psa_api": ["OFF"],
928 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800929 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800930 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800931 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800932 },
933 "common_params": _common_tfm_builder_cfg,
934 "invalid": _common_tfm_invalid_configs + []
935 }
936
Nicola Mazzucatobde5d432024-05-20 11:43:18 +0100937config_corstone310_pacbti = {"seed_params": {
938 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Nicola Mazzucatob4e19572024-08-21 12:26:14 +0100939 "compiler": ["ARMCLANG_6_21"],
Nicola Mazzucatobde5d432024-05-20 11:43:18 +0100940 "isolation_level": ["1"],
941 "test_regression": ["OFF"],
942 "test_psa_api": ["OFF"],
943 "cmake_build_type": ["Debug"],
944 "with_bl2": [True],
945 "profile": [""],
946 "extra_params": ["PACBTI_STD"]
947 },
948 "common_params": _common_tfm_builder_cfg,
949 "invalid": _common_tfm_invalid_configs + []
950 }
951
Gergely Korcsákba0c5212024-04-03 18:21:49 +0200952config_corstone315 = {"seed_params": {
953 "tfm_platform": ["arm/mps4/corstone315"],
954 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
955 "isolation_level": ["1"],
Gergely Korcsáka403e222024-04-09 10:51:00 +0200956 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Gergely Korcsákba0c5212024-04-03 18:21:49 +0200957 "test_psa_api": ["OFF"],
958 "cmake_build_type": ["Debug", "Release"],
959 "with_bl2": [True],
960 "profile": [""],
961 "extra_params": [""]
962 },
963 "common_params": _common_tfm_builder_cfg,
964 "invalid": _common_tfm_invalid_configs + []
965 }
966
Gergely Korcsák78a4d142024-08-05 07:41:36 +0200967config_corstone320 = {"seed_params": {
968 "tfm_platform": ["arm/mps4/corstone320"],
969 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
970 "isolation_level": ["1"],
971 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
972 "test_psa_api": ["OFF"],
973 "cmake_build_type": ["Debug", "Release"],
974 "with_bl2": [True],
975 "profile": [""],
976 "extra_params": [""]
977 },
978 "common_params": _common_tfm_builder_cfg,
979 "invalid": _common_tfm_invalid_configs + []
980 }
981
Jamie Fox82a91d02024-09-27 14:54:14 +0100982config_rse_tc3 = {"seed_params": {
983 "tfm_platform": ["arm/rse/tc/tc3"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100984 "compiler": ["GCC_10_3"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +0100985 "isolation_level": ["1", "2", "3"],
Jamie Fox9283cbc2024-04-22 13:40:01 +0100986 "test_regression": ["OFF", "RegS, RegNS"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100987 "test_psa_api": ["OFF"],
988 "cmake_build_type": ["Debug", "Release"],
989 "with_bl2": [True],
990 "profile": [""],
Nicola Mazzucato551c5f32024-10-02 09:43:04 +0100991 "extra_params": ["ATTESTATION_SCHEME_DPE"]
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100992 },
993 "common_params": _common_tfm_builder_cfg,
Jamie Fox9e2c2352023-01-13 15:11:23 +0000994 "invalid": _common_tfm_invalid_configs + [
Jamie Fox5ae6fa42024-02-19 15:11:00 +0000995 # BL2 is too large for RSE in Debug builds with tests
Jamie Fox82a91d02024-09-27 14:54:14 +0100996 ("arm/rse/tc/tc3", "GCC_10_3", "*", "RegBL2, RegS, RegNS", "*",
Jamie Fox9e2c2352023-01-13 15:11:23 +0000997 "Debug", True, "*", "*"),
998 ]
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100999 }
1000
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001001config_rse_tc4 = {"seed_params": {
1002 "tfm_platform": ["arm/rse/tc/tc4"],
1003 "compiler": ["GCC_10_3"],
1004 "isolation_level": ["1", "2", "3"],
1005 "test_regression": ["OFF", "RegS, RegNS"],
1006 "test_psa_api": ["OFF"],
1007 "cmake_build_type": ["Debug", "Release"],
1008 "with_bl2": [True],
1009 "profile": [""],
1010 "extra_params": ["ATTESTATION_SCHEME_DPE"]
1011 },
1012 "common_params": _common_tfm_builder_cfg,
1013 "invalid": _common_tfm_invalid_configs + [
1014 # BL2 is too large for RSE in Debug builds with tests
1015 ("arm/rse/tc/tc4", "GCC_10_3", "*", "RegBL2, RegS, RegNS", "*",
1016 "Debug", True, "*", "*"),
1017 ]
1018 }
1019
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301020config_rse_rdv3 = {"seed_params": {
Antonio de Angelis373187e2025-01-11 22:09:30 +00001021 "tfm_platform": ["arm/rse/neoverse_rd/rdv3"],
Joel Goddard2dd81a12024-01-23 15:10:08 +00001022 "compiler": ["GCC_10_3"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +01001023 "isolation_level": ["1", "2", "3"],
Joel Goddard2dd81a12024-01-23 15:10:08 +00001024 "test_regression": ["OFF"],
1025 "test_psa_api": ["OFF"],
1026 "cmake_build_type": ["Debug", "Release"],
1027 "with_bl2": [True],
1028 "profile": [""],
Jamie Fox9283cbc2024-04-22 13:40:01 +01001029 "extra_params": ["NSOFF, CFG0"]
Joel Goddard2dd81a12024-01-23 15:10:08 +00001030 },
1031 "common_params": _common_tfm_builder_cfg,
1032 "invalid": _common_tfm_invalid_configs + []
1033 }
1034
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001035config_rse_rd1ae = {"seed_params": {
1036 "tfm_platform": ["arm/rse/automotive_rd/rd1ae"],
1037 "compiler": ["GCC_10_3"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +01001038 "isolation_level": ["1", "2", "3"],
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001039 "test_regression": ["OFF"],
1040 "test_psa_api": ["OFF"],
1041 "cmake_build_type": ["Debug", "Release"],
1042 "with_bl2": [True],
1043 "profile": [""],
1044 "extra_params": ["NSOFF"]
1045 },
1046 "common_params": _common_tfm_builder_cfg,
1047 "invalid": _common_tfm_invalid_configs + []
1048 }
1049
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001050config_psoc64 = {"seed_params": {
1051 "tfm_platform": ["cypress/psoc64"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001052 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001053 "isolation_level": ["1", "2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001054 "test_regression": ["RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001055 "test_psa_api": ["OFF"],
1056 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001057 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001058 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001059 "extra_params": [""]
1060 },
1061 "common_params": _common_tfm_builder_cfg,
1062 "invalid": _common_tfm_invalid_configs + []
1063 }
1064
1065config_corstone1000 = {"seed_params": {
1066 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001067 "compiler": ["GCC_10_3"],
Xinyu Zhang5c4f2182023-10-31 16:26:45 +08001068 "isolation_level": ["1", "2"],
Emekcan Arasf8b39802023-04-24 10:15:22 +01001069 "test_regression": ["RegS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001070 "test_psa_api": ["OFF"],
Matthew Dalzell5cf10c62024-09-19 11:22:48 +01001071 "cmake_build_type": ["Release"], # previously Debug
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001072 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001073 "profile": [""],
Xinyu Zhang09acfbf2023-10-30 18:30:48 +08001074 "extra_params": ["NSOFF, CS1K_TEST, FVP", "NSOFF, CS1K_TEST, FPGA"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001075 },
1076 "common_params": _common_tfm_builder_cfg,
1077 "invalid": _common_tfm_invalid_configs + []
1078 }
1079
1080config_stm32l562e_dk = {"seed_params": {
1081 "tfm_platform": ["stm/stm32l562e_dk"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001082 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001083 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001084 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001085 "test_psa_api": ["OFF"],
1086 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001087 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001088 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001089 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
1090 },
1091 "common_params": _common_tfm_builder_cfg,
1092 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001093 # Oversize issue on config stm32l562e_dk_ARMCLANG_1_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001094 ("stm/stm32l562e_dk", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001095 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "*"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001096 # all other tests are off when CRYPTO is ON
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001097 ("stm/stm32l562e_dk", "*", "*", "RegBL2, RegS, RegNS", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +08001098 "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001099 # all other tests are ON when CRYPTO is OFF
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001100 ("stm/stm32l562e_dk", "*", "*", "OFF", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +08001101 "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001102 ]
1103 }
1104
1105config_b_u585i_iot02a = {"seed_params": {
1106 "tfm_platform": ["stm/b_u585i_iot02a"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001107 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Arthur She026ebb62023-02-08 18:47:39 -08001108 "isolation_level": ["1", "2"],
Arthur She96c6f772023-05-09 21:32:50 -07001109 "test_regression": ["OFF", "RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001110 "test_psa_api": ["OFF"],
1111 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001112 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001113 "profile": [""],
Arthur She026ebb62023-02-08 18:47:39 -08001114 "extra_params": [""]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001115 },
1116 "common_params": _common_tfm_builder_cfg,
1117 "invalid": _common_tfm_invalid_configs + []
1118 }
1119
Anton Komlev4164ab62024-02-23 10:59:56 +01001120config_stm32h573i_dk = {"seed_params": {
1121 "tfm_platform": ["stm/stm32h573i_dk"],
1122 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
1123 "isolation_level": ["1", "2"],
1124 "test_regression": ["OFF", "RegS, RegNS"],
1125 "test_psa_api": ["OFF"],
1126 "cmake_build_type": ["Release"],
1127 "with_bl2": [True],
1128 "profile": [""],
1129 "extra_params": [""]
1130 },
1131 "common_params": _common_tfm_builder_cfg,
1132 "invalid": _common_tfm_invalid_configs + []
1133 }
1134
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001135config_nucleo_l552ze_q = {"seed_params": {
1136 "tfm_platform": ["stm/nucleo_l552ze_q"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001137 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001138 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001139 "test_regression": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001140 "test_psa_api": ["OFF"],
1141 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001142 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001143 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001144 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001145 },
1146 "common_params": _common_tfm_builder_cfg,
1147 "invalid": _common_tfm_invalid_configs + []
1148 }
1149
1150config_lpcxpresso55s69 = {"seed_params": {
1151 "tfm_platform": ["nxp/lpcxpresso55s69"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001152 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001153 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001154 "test_regression": ["OFF", "RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001155 "test_psa_api": ["OFF"],
1156 "cmake_build_type": ["Relwithdebinfo"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001157 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001158 "profile": ["profile_medium"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001159 "extra_params": [""]
1160 },
1161 "common_params": _common_tfm_builder_cfg,
1162 "invalid": _common_tfm_invalid_configs + []
1163 }
1164
Xinyu Zhang38b76742021-11-11 13:57:56 +08001165config_bl5340 = {"seed_params": {
1166 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001167 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001168 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001169 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001170 "test_psa_api": ["OFF"],
1171 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001172 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001173 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001174 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001175 },
1176 "common_params": _common_tfm_builder_cfg,
1177 "invalid": _common_tfm_invalid_configs + []
1178 }
1179
1180config_nrf5340dk = {"seed_params": {
1181 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001182 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001183 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001184 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001185 "test_psa_api": ["OFF"],
1186 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001187 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001188 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001189 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001190 },
1191 "common_params": _common_tfm_builder_cfg,
1192 "invalid": _common_tfm_invalid_configs + []
1193 }
1194
1195config_nrf9160dk = {"seed_params": {
1196 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001197 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001198 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001199 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001200 "test_psa_api": ["OFF"],
1201 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001202 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001203 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001204 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001205 },
1206 "common_params": _common_tfm_builder_cfg,
1207 "invalid": _common_tfm_invalid_configs + []
1208 }
1209
1210config_m2351 = {"seed_params": {
1211 "tfm_platform": ["nuvoton/m2351"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001212 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001213 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001214 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001215 "test_psa_api": ["OFF"],
1216 "cmake_build_type": ["Release"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001217 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001218 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001219 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001220 },
1221 "common_params": _common_tfm_builder_cfg,
1222 "invalid": _common_tfm_invalid_configs + []
1223 }
1224
1225config_m2354 = {"seed_params": {
1226 "tfm_platform": ["nuvoton/m2354"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001227 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001228 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001229 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001230 "test_psa_api": ["OFF"],
1231 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001232 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001233 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001234 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001235 },
1236 "common_params": _common_tfm_builder_cfg,
1237 "invalid": _common_tfm_invalid_configs + []
1238 }
1239
Dávid Házi0bd447f2024-10-24 19:44:31 +00001240config_rp2350 = {"seed_params": {
1241 "tfm_platform": ["rpi/rp2350"],
1242 "compiler": ["GCC_10_3"],
1243 "isolation_level": ["2"],
1244 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
1245 "test_psa_api": ["OFF"],
1246 "cmake_build_type": ["RelWithDebInfo", "Release"],
1247 "with_bl2": [True],
Nicola Mazzucato4bad6c62024-10-28 14:42:17 +00001248 "profile": ["profile_medium"],
Dávid Házi0bd447f2024-10-24 19:44:31 +00001249 "extra_params": [""]
1250 },
1251 "common_params": _common_tfm_builder_cfg,
1252 "invalid": _common_tfm_invalid_configs + []
1253 }
1254
Jianliang Shen48704152023-10-17 17:06:00 +08001255config_mem_footprint = {"seed_params": {
1256 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001257 "compiler": ["ARMCLANG_6_21"],
Jianliang Shen48704152023-10-17 17:06:00 +08001258 "isolation_level": ["1"],
1259 "test_regression": ["OFF"],
1260 "test_psa_api": ["OFF"],
1261 "cmake_build_type": ["Minsizerel"],
1262 "with_bl2": [True],
1263 "profile": [""],
1264 "extra_params": [""]
1265 },
1266 "common_params": _common_tfm_builder_cfg,
1267 "valid": [
1268 # AN521_ARMCLANG_1_Minsizerel_BL2_SMALL_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001269 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Jianliang Shen48704152023-10-17 17:06:00 +08001270 "OFF", "OFF", "Minsizerel", True, "profile_small", "PSOFF"),
1271 # AN521_ARMCLANG_2_Minsizerel_BL2_MEDIUM_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001272 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Jianliang Shen48704152023-10-17 17:06:00 +08001273 "OFF", "OFF", "Minsizerel", True, "profile_medium", "PSOFF"),
1274 # AN521_ARMCLANG_3_Minsizerel_BL2_LARGE_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001275 ("arm/mps2/an521", "ARMCLANG_6_21", "3",
Jianliang Shen48704152023-10-17 17:06:00 +08001276 "OFF", "OFF", "Minsizerel", True, "profile_large", "PSOFF"),
1277 ],
1278 "invalid": _common_tfm_invalid_configs + []
1279 }
1280
Jianliang Shen5492f752023-07-27 15:59:01 +08001281config_prof = {"seed_params": {
1282 "tfm_platform": ["arm/mps2/an521"],
1283 "compiler": ["GCC_10_3"],
1284 "isolation_level": ["1"],
1285 "test_regression": ["OFF"],
1286 "test_psa_api": ["OFF"],
1287 "cmake_build_type": ["Release"],
1288 "with_bl2": [True],
1289 "profile": [""],
1290 "extra_params": ["PROF"]
1291 },
1292 "common_params": _common_tfm_builder_cfg,
1293 "valid": [
1294 # AN521_GNUARM_1_Release_BL2_IPC_PROF
1295 ("arm/mps2/an521", "GCC_10_3", "1",
1296 "OFF", "OFF", "Release", True, "", "IPC, PROF"),
1297 # AN521_GNUARM_2_Release_BL2_PROF
1298 ("arm/mps2/an521", "GCC_10_3", "2",
1299 "OFF", "OFF", "Release", True, "", "PROF"),
1300 # AN521_GNUARM_3_Release_BL2_PROF
1301 ("arm/mps2/an521", "GCC_10_3", "3",
1302 "OFF", "OFF", "Release", True, "", "PROF"),
1303 ],
1304 "invalid": _common_tfm_invalid_configs + []
1305 }
1306
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001307# Config groups for debug
1308config_debug = {"seed_params": {
1309 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001310 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001311 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001312 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001313 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001314 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001315 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001316 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001317 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001318 },
1319 "common_params": _common_tfm_builder_cfg,
1320 "invalid": _common_tfm_invalid_configs + []
1321 }
1322
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001323config_debug_regr = deepcopy(config_debug)
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001324config_debug_regr["seed_params"]["test_regression"] = ["RegBL2, RegS, RegNS"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001325
1326config_debug_PSA_API = {"seed_params": {
1327 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001328 "compiler": ["ARMCLANG_6_21"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001329 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001330 "test_regression": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001331 "test_psa_api": ["CRYPTO",
1332 "INITIAL_ATTESTATION",
1333 "STORAGE",
1334 "IPC"],
1335 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001336 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001337 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001338 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001339 },
1340 "common_params": _common_tfm_builder_cfg,
1341 "invalid": _common_tfm_invalid_configs + []
1342 }
1343
Karl Zhangaff558a2020-05-15 14:28:23 +01001344_builtin_configs = {
Xinyu Zhang5c4f2182023-10-31 16:26:45 +08001345 # per-patch test group
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001346 "pp_test": config_pp_test,
Karl Zhang14573bc2020-06-08 09:23:21 +08001347
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001348 # nightly test groups
1349 "nightly_test": config_nightly_test,
1350 "nightly_profile_s": config_profile_s,
1351 "nightly_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +08001352 "nightly_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001353 "nightly_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001354 "nightly_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001355 "nightly_cc_driver_psa": config_cc_driver_psa,
1356 "nightly_fp":config_fp,
1357 "nightly_psa_api": config_psa_api,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001358 "nightly_nsce": config_nsce,
1359 "nightly_mmio": config_mmio,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001360 "nightly_cs300_an547": config_cs300_an547,
1361 "nightly_cs300_an552": config_cs300_an552,
1362 "nightly_cs300_fvp": config_cs300_fvp,
Bence Balogh8731a092022-05-24 17:24:54 +02001363 "nightly_corstone310": config_corstone310,
Nicola Mazzucatobde5d432024-05-20 11:43:18 +01001364 "nightly_corstone310_pacbti" : config_corstone310_pacbti,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001365 "nightly_corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001366 "nightly_corstone320": config_corstone320,
Antonio de Angelis92ad2442023-08-07 15:00:32 +02001367 "nightly_corstone1000": config_corstone1000,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001368 #"nightly_rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001369 "nightly_rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301370 "nightly_rse_rdv3": config_rse_rdv3,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001371 "nightly_rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001372 "nightly_psoc64": config_psoc64,
Anton Komlev55c3c022024-03-05 16:24:17 +01001373 "nightly_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -08001374 "nightly_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001375 "nightly_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001376 "nightly_lpcxpresso55s69": config_lpcxpresso55s69,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001377 "nightly_rp2350": config_rp2350,
Karl Zhang14573bc2020-06-08 09:23:21 +08001378
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001379 # release test groups
1380 "release_test": config_release_test,
1381 "release_profile_s": config_profile_s,
1382 "release_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +08001383 "release_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001384 "release_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001385 "release_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001386 "release_cc_driver_psa": config_cc_driver_psa,
1387 "release_fp": config_fp,
1388 "release_psa_api": config_psa_api,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001389 "release_nsce": config_nsce,
1390 "release_mmio": config_mmio,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001391 "release_cs300_an547": config_cs300_an547,
1392 "release_cs300_an552": config_cs300_an552,
1393 "release_cs300_fvp": config_cs300_fvp,
Bence Balogh8731a092022-05-24 17:24:54 +02001394 "release_corstone310": config_corstone310,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001395 "release_corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001396 "release_corstone320": config_corstone320,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001397 #"release_rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001398 "release_rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301399 "release_rse_rdv3": config_rse_rdv3,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001400 "release_rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001401 "release_psoc64": config_psoc64,
Anton Komlev55c3c022024-03-05 16:24:17 +01001402 "release_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -08001403 "release_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001404 "release_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001405 "release_lpcxpresso55s69": config_lpcxpresso55s69,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001406 "release_rp2350": config_rp2350,
Karl Zhang14573bc2020-06-08 09:23:21 +08001407
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001408 # code coverage test groups
1409 "coverage_profile_s": config_cov_profile_s,
1410 "coverage_profile_m": config_cov_profile_m,
1411 "coverage_profile_l": config_cov_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001412 "coverage_ipc_backend": config_cov_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001413 "coverage_nsce": config_cov_nsce,
1414 "coverage_mmio": config_cov_mmio,
Xinyu Zhang5f725ee2022-12-19 10:29:20 +08001415 "coverage_fp": config_cov_fp,
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001416
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +03001417 # MISRA analysis
1418 "misra": config_misra,
Paul Sokolovskya526e5d2023-06-15 09:49:13 +03001419 "misra_debug": config_misra_debug,
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +03001420
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001421 # platform groups
1422 "an521": config_an521,
1423 "an519": config_an519,
1424 "an524": config_an524,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001425 "cs300_an547": config_cs300_an547,
1426 "cs300_an552": config_cs300_an552,
1427 "cs300_fvp": config_cs300_fvp,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001428 "musca_b1": config_musca_b1,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001429 "musca_s1": config_musca_s1,
Bence Balogh8731a092022-05-24 17:24:54 +02001430 "corstone310": config_corstone310,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001431 "corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001432 "corstone320": config_corstone320,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001433 #"rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001434 "rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301435 "rse_rdv3": config_rse_rdv3,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001436 "rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001437 "cypress_psoc64": config_psoc64,
Antonio de Angelis92ad2442023-08-07 15:00:32 +02001438 "corstone1000": config_corstone1000,
Anton Komlev55c3c022024-03-05 16:24:17 +01001439 "stm_stm32l562e_dk": config_stm32l562e_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001440 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001441 "stm_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001442 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1443 "nxp_lpcxpresso55s69": config_lpcxpresso55s69,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001444 "laird_bl5340": config_bl5340,
1445 "nordic_nrf5340dk": config_nrf5340dk,
1446 "nordic_nrf9160dk": config_nrf9160dk,
1447 "nuvoton_m2351": config_m2351,
1448 "nuvoton_m2354": config_m2354,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001449 "rp2350": config_rp2350,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001450
Bence Balogh79fda442022-10-14 18:01:37 +02001451 # config groups for tf-m-extras examples
1452 "example_vad": config_example_vad,
1453 "example_dma350_trigger": config_example_dma350_trigger,
Bence Balogh852f8bd2023-08-07 14:46:54 +02001454 "example_dma350_clcd": config_example_dma350_clcd,
Bence Balogh79fda442022-10-14 18:01:37 +02001455 "example_dma350_s": config_example_dma350_s,
Bence Baloghd23cbda2023-08-07 15:30:58 +02001456 "example_dma350_ns": config_example_dma350_ns,
Bence Balogh79fda442022-10-14 18:01:37 +02001457
Jianliang Shen48704152023-10-17 17:06:00 +08001458 # config groups for tf-m performance monitor
1459 "mem_footprint": config_mem_footprint,
Jianliang Shen5492f752023-07-27 15:59:01 +08001460 "profiling": config_prof,
1461
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001462 # config groups for debug
Dean Birch4c6ad622020-03-13 11:28:03 +00001463 "debug": config_debug,
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001464 "debug_regr": config_debug_regr,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001465 "debug_PSA_API": config_debug_PSA_API,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001466 }
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001467
1468if __name__ == '__main__':
1469 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001470
Minos Galanakisea421232019-06-20 17:11:28 +01001471 # Default behavior is to export refference config when called
1472 _dir = os.getcwd()
1473 from utils import save_json
1474 for _cname, _cfg in _builtin_configs.items():
1475 _fname = os.path.join(_dir, _cname + ".json")
1476 print("Exporting config %s" % _fname)
1477 save_json(_fname, _cfg)