blob: 519efc7e2ab406e406e434bc311b4b9900a6d7fe [file] [log] [blame]
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001#!/usr/bin/env python3
2
3""" builtin_configs.py:
4
5 Default configuration files used as reference """
6
7from __future__ import print_function
8
9__copyright__ = """
10/*
Raef Colesaac84bc2025-01-09 14:20:12 +000011 * SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010012 *
13 * SPDX-License-Identifier: BSD-3-Clause
14 *
15 */
16 """
Karl Zhang08681e62020-10-30 13:56:03 +080017
18__author__ = "tf-m@lists.trustedfirmware.org"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010019__project__ = "Trusted Firmware-M Open CI"
Xinyu Zhang06286a92021-07-22 14:00:51 +080020__version__ = "1.4.0"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010021
Paul Sokolovsky3e8fce02022-04-07 01:23:30 +030022from copy import deepcopy
23
24
Minos Galanakisea421232019-06-20 17:11:28 +010025# common parameters for tf-m build system
26# This configuration template will be passed into the tfm-builder module after
27# the template evaluation is converted to a command
28
29_common_tfm_builder_cfg = {
30 "config_type": "tf-m",
31 "codebase_root_dir": "tf-m",
32 # Order to which the variants are evaluated. This affects the name of
33 # variant configuration and the wildcard replacement logic in invalid
34 # configuration tuples
Xinyu Zhangb708f572020-09-15 11:43:46 +080035 "sort_order": ["tfm_platform",
Xinyu Zhang433771e2022-04-01 16:49:17 +080036 "compiler",
Xinyu Zhangb708f572020-09-15 11:43:46 +080037 "isolation_level",
38 "test_regression",
39 "test_psa_api",
Minos Galanakisea421232019-06-20 17:11:28 +010040 "cmake_build_type",
Xinyu Zhangb708f572020-09-15 11:43:46 +080041 "with_bl2",
Xinyu Zhang9fd74242020-10-22 11:30:50 +080042 "profile",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +080043 "extra_params"],
Minos Galanakisea421232019-06-20 17:11:28 +010044
45 # Keys for the templace will come from the combinations of parameters
46 # provided in the seed dictionary.
47
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080048 "spe_config_template": "cmake -G Ninja " + \
Jianliang Shen7905e5d2023-11-07 10:40:47 +080049 "-S %(spe_root_dir)s " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080050 "-B %(ci_build_root_dir)s/spe " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080051 "-DTFM_PLATFORM=%(tfm_platform)s " + \
Xinyu Zhang85588522023-10-31 13:58:04 +080052 "-DTFM_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(s_compiler)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080053 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
Xinyu Zhangb18ae742023-04-25 14:33:27 +080054 "%(test_regression)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080055 "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080056 "-DTEST_PSA_API=%(test_psa_api)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080057 "-DBL2=%(with_bl2)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080058 "-DTFM_PROFILE=%(profile)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080059 "%(extra_params)s " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080060 "-DCONFIG_TFM_SOURCE_PATH=%(codebase_root_dir)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080061 "-DMBEDCRYPTO_PATH=%(codebase_root_dir)s/../mbedtls " + \
62 "-DPSA_ARCH_TESTS_PATH=%(codebase_root_dir)s/../psa-arch-tests " + \
63 "-DMCUBOOT_PATH=%(codebase_root_dir)s/../mcuboot " + \
Xinyu Zhang1f21cb22023-06-26 17:56:49 +080064 "-DQCBOR_PATH=%(codebase_root_dir)s/../qcbor " + \
David Vinczefaa61ff2025-01-09 16:02:06 +000065 "-DT_COSE_PATH=%(codebase_root_dir)s/../t_cose " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080066 "-DTFM_EXTRAS_REPO_PATH=%(codebase_root_dir)s/../tf-m-extras ",
67
68 "nspe_config_template": "cmake -G Ninja " + \
Jianliang Shen7905e5d2023-11-07 10:40:47 +080069 "-S %(nspe_root_dir)s " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080070 "-B %(ci_build_root_dir)s/nspe " + \
71 "-DCONFIG_SPE_PATH=%(ci_build_root_dir)s/spe/api_ns " + \
Xinyu Zhang85588522023-10-31 13:58:04 +080072 "-DTFM_TOOLCHAIN_FILE=%(ci_build_root_dir)s/spe/api_ns/cmake/%(ns_compiler)s " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080073 "%(extra_params)s " + \
David Vinczefaa61ff2025-01-09 16:02:06 +000074 "-DQCBOR_PATH=%(codebase_root_dir)s/../qcbor " + \
75 "-DT_COSE_PATH=%(codebase_root_dir)s/../t_cose ",
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080076
77 # CMake build commands will be executed for every build.
78 "spe_cmake_build": "cmake --build %(ci_build_root_dir)s/spe -- install",
79 "nspe_cmake_build": "cmake --build %(ci_build_root_dir)s/nspe --",
Karl Zhangaff558a2020-05-15 14:28:23 +010080
Xinyu Zhang433771e2022-04-01 16:49:17 +080081 "set_compiler_path": "export PATH=$PATH:$%(compiler)s_PATH",
82
Minos Galanakisea421232019-06-20 17:11:28 +010083 # A small subset of string substitution params is allowed in commands.
84 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
85 # _tbm_target_platform_ with the paths set when building
86
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080087 "artifact_capture_rex": (r'%(ci_build_root_dir)s/nspe'
Minos Galanakisea421232019-06-20 17:11:28 +010088 r'/(\w+\.(?:axf|bin|hex))$'),
89
Xinyu Zhang46b37182023-06-30 15:36:44 +080090 # Keys will append extra commands when matching target_platform
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080091 "post_build": {"arm/corstone1000": ("dd conv=notrunc bs=1 if=%(ci_build_root_dir)s/spe/bin/bl1_1.bin of=%(ci_build_root_dir)s/spe/bin/bl1.bin seek=0;"
Bence Baloghb0580a62025-03-10 15:15:42 +010092 "dd conv=notrunc bs=1 if=%(ci_build_root_dir)s/spe/bin/bl1_provisioning_bundle.bin of=%(ci_build_root_dir)s/spe/bin/bl1.bin seek=51200;"
Xinyu Zhang09acfbf2023-10-30 18:30:48 +080093 "%(codebase_root_dir)s/platform/ext/target/arm/corstone1000/create-flash-image.sh %(ci_build_root_dir)s/spe/bin/ cs1000.bin;"),
Matthew Dalzell59ea18e2024-06-06 17:00:52 +010094 "arm/musca_b1": ("if [ -d \"%(ci_build_root_dir)s/nspe\" ]; then "
Matthew Dalzell4fd9e502024-04-19 11:04:26 +010095 "srec_cat "
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080096 "%(ci_build_root_dir)s/spe/bin/"
97 "bl2.bin "
98 "-Binary -offset 0xA000000 "
99 "-fill 0xFF 0xA000000 0xA020000 "
100 "%(ci_build_root_dir)s/nspe/"
101 "tfm_s_ns_signed.bin "
102 "-Binary -offset 0xA020000 "
103 "-fill 0xFF 0xA020000 0xA200000 "
104 "-o %(ci_build_root_dir)s/"
Matthew Dalzell4fd9e502024-04-19 11:04:26 +0100105 "spe/bin/tfm.hex -Intel;"
Matthew Dalzell4fd9e502024-04-19 11:04:26 +0100106 "fi;"),
Jamie Fox82a91d02024-09-27 14:54:14 +0100107 "arm/rse/tc/tc3": ("if [ -f \"%(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin\" ]; then "
Jackson Cooper-Driverc034b912025-08-06 15:06:36 +0100108 "cp %(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin %(ci_build_root_dir)s/spe/bin/sram.bin;"
Raef Colesf9a20742024-06-06 10:47:49 +0100109 "else "
Jackson Cooper-Driverc034b912025-08-06 15:06:36 +0100110 "cp %(ci_build_root_dir)s/spe/bin/provisioning/combined_provisioning_message.bin %(ci_build_root_dir)s/spe/bin/sram.bin;"
111 "fi;"
Raef Colesf9a20742024-06-06 10:47:49 +0100112 "srec_cat "
Jamie Fox9283cbc2024-04-22 13:40:01 +0100113 "%(ci_build_root_dir)s/spe/bin/bl1_1.bin -Binary -offset 0x0 "
114 "%(ci_build_root_dir)s/spe/bin/rom_dma_ics.bin -Binary -offset 0x1F000 "
115 "-o %(ci_build_root_dir)s/spe/bin/rom.bin -Binary;"
Jamie Fox82a91d02024-09-27 14:54:14 +0100116 "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 +0100117 "chmod 755 fiptool;"
Jamie Fox82a91d02024-09-27 14:54:14 +0100118 "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 +0100119 "./fiptool update "
Jamie Fox82a91d02024-09-27 14:54:14 +0100120 "--align 8192 --rse-bl2 %(ci_build_root_dir)s/spe/bin/bl2_signed.bin "
121 "--align 8192 --rse-s %(ci_build_root_dir)s/spe/bin/tfm_s_encrypted.bin "
122 "--align 8192 --rse-ns %(ci_build_root_dir)s/nspe/bin/tfm_ns_encrypted.bin "
123 "--align 8192 --rse-sic-tables-s %(ci_build_root_dir)s/spe/bin/tfm_s_sic_tables_signed.bin "
124 "--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 +0100125 "--out %(ci_build_root_dir)s/spe/bin/host_flash.bin "
126 "fip.bin"),
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000127 "arm/rse/tc/tc4": ("if [ -f \"%(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin\" ]; then "
Jackson Cooper-Driverc034b912025-08-06 15:06:36 +0100128 "cp %(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin %(ci_build_root_dir)s/spe/bin/sram.bin;"
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000129 "else "
Jackson Cooper-Driverc034b912025-08-06 15:06:36 +0100130 "cp %(ci_build_root_dir)s/spe/bin/provisioning/combined_provisioning_message.bin %(ci_build_root_dir)s/spe/bin/sram.bin;"
131 "fi;"
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000132 "srec_cat "
133 "%(ci_build_root_dir)s/spe/bin/bl1_1.bin -Binary -offset 0x0 "
134 "%(ci_build_root_dir)s/spe/bin/rom_dma_ics.bin -Binary -offset 0x1F000 "
135 "-o %(ci_build_root_dir)s/spe/bin/rom.bin -Binary;"
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000136 # fiptool in tc3 directory also compatible with tc4 fip.bin
137 "curl --fail --no-progress-meter --connect-timeout 10 --retry 6 -LS -o fiptool https://downloads.trustedfirmware.org/tf-m/rse/tc/tc3/fiptool;"
138 "chmod 755 fiptool;"
139 "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;"
140 "./fiptool update "
141 "--align 8192 --rse-bl2 %(ci_build_root_dir)s/spe/bin/bl2_signed.bin "
142 "--align 8192 --rse-s %(ci_build_root_dir)s/spe/bin/tfm_s_encrypted.bin "
143 "--align 8192 --rse-ns %(ci_build_root_dir)s/nspe/bin/tfm_ns_encrypted.bin "
144 "--align 8192 --rse-sic-tables-s %(ci_build_root_dir)s/spe/bin/tfm_s_sic_tables_signed.bin "
145 "--align 8192 --rse-sic-tables-ns %(ci_build_root_dir)s/nspe/bin/tfm_ns_sic_tables_signed.bin "
146 "--out %(ci_build_root_dir)s/spe/bin/host_flash.bin "
147 "fip.bin"),
Xinyu Zhang46b37182023-06-30 15:36:44 +0800148 "stm/stm32l562e_dk": ("echo 'STM32L562E-DK board post process';"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800149 "%(ci_build_root_dir)s/spe/api_ns/postbuild.sh;"
150 "pushd %(ci_build_root_dir)s/spe/api_ns;"
151 "mkdir -p image_signing/scripts ;"
152 "cp %(ci_build_root_dir)s/nspe/bin/tfm_ns_signed.bin image_signing/scripts ;"
153 "tar jcf ./bin/stm32l562e-dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh "
154 "bin/bl2.bin "
155 "bin/tfm_s_signed.bin "
156 "image_signing/scripts/tfm_ns_signed.bin ;"
Xinyu Zhang46b37182023-06-30 15:36:44 +0800157 "popd"),
158 "stm/b_u585i_iot02a": ("echo 'STM32U5 board post process';"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800159 "%(ci_build_root_dir)s/spe/api_ns/postbuild.sh;"
160 "pushd %(ci_build_root_dir)s/spe/api_ns;"
161 "mkdir -p image_signing/scripts ;"
162 "cp %(ci_build_root_dir)s/nspe/bin/tfm_ns_signed.bin image_signing/scripts ;"
163 "tar jcf ./bin/b_u585i_iot02a-tfm.tar.bz2 regression.sh TFM_UPDATE.sh "
164 "bin/bl2.bin "
165 "bin/tfm_s_signed.bin "
166 "image_signing/scripts/tfm_ns_signed.bin ;"
Xinyu Zhang46b37182023-06-30 15:36:44 +0800167 "popd"),
Anton Komlev4164ab62024-02-23 10:59:56 +0100168 "stm/stm32h573i_dk": ("echo 'STM32H573I-DK board post process';"
169 "%(ci_build_root_dir)s/spe/api_ns/postbuild.sh;"
170 "pushd %(ci_build_root_dir)s/spe/api_ns;"
171 "mkdir -p image_signing/scripts ;"
172 "cp %(ci_build_root_dir)s/nspe/bin/tfm_ns_signed.bin image_signing/scripts ;"
173 "tar jcf ./bin/stm32h573i_dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh "
174 "bin/bl2.bin "
175 "bin/tfm_s_signed.bin "
176 "image_signing/scripts/tfm_ns_signed.bin ;"
177 "popd"),
Matthew Dalzell0bdc0b22024-04-17 18:13:31 +0100178 "nxp/lpcxpresso55s69": ("echo 'LPCXpresso55S69 bo.ard post process\n';"
179 "mkdir -p %(codebase_root_dir)s/build/bin ;"
180 # Workaround for flash_JLink.py
181 "cp %(ci_build_root_dir)s/spe/bin/tfm_s.hex %(codebase_root_dir)s/build/bin ;"
182 "cp %(ci_build_root_dir)s/nspe/bin/tfm_ns.hex %(codebase_root_dir)s/build/bin ;"
183 "cd %(codebase_root_dir)s/build/bin; "
184 "rm -f flash.jlink; "
185 "if [ -f \"%(ci_build_root_dir)s/spe/bin/bl2.hex\" ]; then "
186 "echo r >> flash.jlink; "
187 "echo erase >> flash.jlink; "
188 "echo loadfile bl2.hex >> flash.jlink; "
189 "echo loadfile tfm_s_ns_signed.bin -0x8000 >> flash.jlink; "
190 "echo r >> flash.jlink; "
191 "echo go >> flash.jlink; "
192 "echo exit >> flash.jlink; "
193 "else "
194 "echo r >> flash.jlink; "
195 "echo erase >> flash.jlink; "
196 "echo loadfile tfm_s.hex >> flash.jlink; "
197 "echo loadfile tfm_ns.hex >> flash.jlink; "
198 "echo r >> flash.jlink; "
199 "echo go >> flash.jlink; "
200 "echo exit >> flash.jlink; "
201 "fi;"
202 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"
203 "tar jcf lpcxpresso55s69-tfm.tar.bz2 flash.jlink ${BIN_FILES};"
204 "mv lpcxpresso55s69-tfm.tar.bz2 %(ci_build_root_dir)s/nspe/bin ;"
205 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"),
Xinyu Zhang46b37182023-06-30 15:36:44 +0800206 "cypress/psoc64": ("echo 'Sign binaries for Cypress PSoC64 platform';"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800207 "pushd %(codebase_root_dir)s/;"
Arthur She87602dc2022-02-06 14:42:18 -0800208 "sudo /usr/local/bin/cysecuretools "
209 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
210 "--target cy8ckit-064s0s2-4343w "
211 "sign-image "
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800212 "--hex %(ci_build_root_dir)s/spe/bin/tfm_s.hex "
Arthur She87602dc2022-02-06 14:42:18 -0800213 "--image-type BOOT --image-id 1;"
214 "sudo /usr/local/bin/cysecuretools "
215 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
216 "--target cy8ckit-064s0s2-4343w "
217 "sign-image "
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800218 "--hex %(ci_build_root_dir)s/nspe/bin/tfm_ns.hex "
Arthur She87602dc2022-02-06 14:42:18 -0800219 "--image-type BOOT --image-id 16;"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800220 "mv %(ci_build_root_dir)s/spe/bin/tfm_s.hex %(ci_build_root_dir)s/spe/bin/tfm_s_signed.hex;"
221 "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 +0800222 "popd")
Minos Galanakisea421232019-06-20 17:11:28 +0100223 },
224
225 # (Optional) If set will fail if those artefacts are missing post build
226 "required_artefacts": {"all": [
Antonio de Angelis9a3bd142025-06-27 21:37:31 +0100227 "%(ci_build_root_dir)s/spe/bin/"
228 "tfm_s.bin",
229 "%(ci_build_root_dir)s/nspe/"
230 "tfm_ns.bin"],
Mark Horvathef57baa2022-09-12 13:36:36 +0200231 "arm/musca_b1": [
Antonio de Angelis9a3bd142025-06-27 21:37:31 +0100232 "%(ci_build_root_dir)s/tfm.hex",
233 "%(ci_build_root_dir)s/spe/bin/"
234 "bl2.bin",
235 "%(ci_build_root_dir)s/spe/bin/"
236 "tfm_sign.bin"],
Jamie Fox82a91d02024-09-27 14:54:14 +0100237 "arm/rse/tc/tc3": [
Antonio de Angelis9a3bd142025-06-27 21:37:31 +0100238 "%(ci_build_root_dir)s/spe/bin/rom.bin",
Jackson Cooper-Driverc034b912025-08-06 15:06:36 +0100239 "%(ci_build_root_dir)s/spe/bin/sram.bin",
Antonio de Angelis9a3bd142025-06-27 21:37:31 +0100240 "%(ci_build_root_dir)s/spe/bin/host_flash.bin"],
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000241 "arm/rse/tc/tc4": [
Antonio de Angelis9a3bd142025-06-27 21:37:31 +0100242 "%(ci_build_root_dir)s/spe/bin/rom.bin",
Jackson Cooper-Driverc034b912025-08-06 15:06:36 +0100243 "%(ci_build_root_dir)s/spe/bin/sram.bin",
Antonio de Angelis9a3bd142025-06-27 21:37:31 +0100244 "%(ci_build_root_dir)s/spe/bin/host_flash.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100245 }
246}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100247
Xinyu Zhangb708f572020-09-15 11:43:46 +0800248# List of all build configs that are impossible under all circumstances
249_common_tfm_invalid_configs = [
Antonio de Angelis6ce8d722025-07-06 21:38:15 +0100250 # LR_CODE size exceeds limit on MUSCA_B1 with regression tests in Debug mode built with ARMCLANG
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300251 ("arm/musca_b1", "ARMCLANG_6_21", "*", "RegBL2, RegS, RegNS", "OFF", "Debug", "*", "", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800252 # Load range overlap on Musca for IPC Debug type: T895
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300253 ("arm/musca_b1", "ARMCLANG_6_21", "*", "*", "IPC", "Debug", "*", "*", "*"),
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300254 # FF does not support L3
Summer Qin379abb62022-10-08 16:41:54 +0800255 ("*", "*", "3", "*", "IPC", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800256 # Musca requires BL2
Summer Qin379abb62022-10-08 16:41:54 +0800257 ("arm/musca_b1", "*", "*", "*", "*", "*", False, "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800258 # Only AN521 and MUSCA_B1 support Isolation Level 3
Summer Qin379abb62022-10-08 16:41:54 +0800259 ("arm/mps2/an519", "*", "3", "*", "*", "*", "*", "*", "*"),
260 ("arm/mps3/an524", "*", "3", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800261 ]
262
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100263# Configure build manager to build several combinations
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800264# Config group for per-patch job
265config_pp_test = {"seed_params": {
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800266 # AN519_ARMCLANG_IPC_1_RegBL2_RegS_RegNS_Debug_BL2
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800267 "tfm_platform": ["arm/mps2/an519"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300268 "compiler": ["ARMCLANG_6_21"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800269 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800270 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800271 "test_psa_api": ["OFF"],
272 "cmake_build_type": ["Debug"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800273 "with_bl2": [True],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800274 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800275 "extra_params": [""]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800276 },
277 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800278 "valid": [
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800279 # AN519_ARMCLANG_2_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300280 ("arm/mps2/an519", "ARMCLANG_6_21", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800281 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800282 # AN519_GCC_2_RegBL2_RegS_RegNS_Release_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100283 ("arm/mps2/an519", "GCC_13_2", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800284 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
285 # AN519_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100286 ("arm/mps2/an519", "GCC_13_2", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800287 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
288 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_SMALL_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300289 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800290 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "profile_small", "PSOFF"),
291 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300292 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800293 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Chris Branddc827302024-10-11 15:20:17 -0700294 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_PSCLEAR
295 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
296 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", "PSCLEAR"),
297 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_PSLIMIT
298 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
299 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", "PSLIMIT"),
Jianliang Shen6984bef2023-07-25 10:36:56 +0800300 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_IPC
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300301 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Jianliang Shen6984bef2023-07-25 10:36:56 +0800302 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", "IPC"),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800303 # AN521_ARMCLANG_2_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300304 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800305 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
306 # AN521_ARMCLANG_3_RegBL2_RegS_RegNS_Minsizerel_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300307 ("arm/mps2/an521", "ARMCLANG_6_21", "3",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800308 "RegBL2, RegS, RegNS", "OFF", "Minsizerel", True, "", ""),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800309 # AN521_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100310 ("arm/mps2/an521", "GCC_13_2", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800311 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100312 # AN521_GCC_2_RegBL2_RegS_RegNS_Debug_BL2_MEDIUM
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100313 ("arm/mps2/an521", "GCC_13_2", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800314 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "profile_medium", ""),
315 # AN521_GCC_2_RegBL2_RegS_RegNS_Release_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100316 ("arm/mps2/an521", "GCC_13_2", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800317 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
318 # AN521_GCC_3_RegBL2_RegS_RegNS_Minsizerel_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100319 ("arm/mps2/an521", "GCC_13_2", "3",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800320 "RegBL2, RegS, RegNS", "OFF", "Minsizerel", True, "", ""),
Xinyu Zhang280f5ab2023-10-31 16:17:21 +0800321 # AN521_GCC_1_FF_Release_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100322 ("arm/mps2/an521", "GCC_13_2", "1",
Xinyu Zhang280f5ab2023-10-31 16:17:21 +0800323 "OFF", "IPC", "Release", True, "", ""),
324 # AN521_ARMCLANG_2_STORAGE_Debug_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300325 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Xinyu Zhang280f5ab2023-10-31 16:17:21 +0800326 "OFF", "STORAGE", "Debug", True, "", ""),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100327 # CS300_FVP_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100328 ("arm/mps3/corstone300/fvp", "GCC_13_2", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800329 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100330 # CS300_FVP_GCC_2_RegBL2_RegS_RegNS_Release_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100331 ("arm/mps3/corstone300/fvp", "GCC_13_2", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800332 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100333 # corstone310_ARMCLANG_1_Debug_BL2_PACBTI_STD
Nicola Mazzucatob4e19572024-08-21 12:26:14 +0100334 ("arm/mps3/corstone310/fvp", "ARMCLANG_6_21", "1",
Nicola Mazzucatob542f2b2024-05-23 10:13:43 +0100335 "OFF", "OFF", "Debug", True, "", "PACBTI_STD"),
Xinyu Zhang5c4f2182023-10-31 16:26:45 +0800336 # corstone1000_GCC_2_RegS_Debug_BL2_NSOFF_CS1K_TEST_FVP
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100337 ("arm/corstone1000", "GCC_13_2", "2",
Xinyu Zhang5c4f2182023-10-31 16:26:45 +0800338 "RegS", "OFF", "Debug", True, "", "NSOFF, CS1K_TEST, FVP"),
Matthew Dalzell397fb3c2024-06-21 11:03:38 +0100339 # corstone315_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2
340 ("arm/mps4/corstone315", "ARMCLANG_6_21", "1",
341 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Gergely Korcsák78a4d142024-08-05 07:41:36 +0200342 # corstone320_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2
343 ("arm/mps4/corstone320", "ARMCLANG_6_21", "1",
344 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800345 # MUSCA_B1_GCC_1_RegBL2_RegS_RegNS_Minsizerel_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100346 ("arm/musca_b1", "GCC_13_2", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800347 "RegBL2, RegS, RegNS", "OFF", "Minsizerel", True, "", ""),
Antonio de Angelis6ce8d722025-07-06 21:38:15 +0100348 # MUSCA_B1_GCC_1_RegBL2_RegS_RegNS_Release_BL2_CC_DRIVER_PSA
349 ("arm/musca_b1", "GCC_13_2", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800350 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "CC_DRIVER_PSA"),
Nicola Mazzucato8617ae92024-10-02 13:14:15 +0100351 # RSE_TC3_GCC_3_RegS_RegNS_Release_BL2_ATTESTATION_SCHEME_DPE
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100352 #("arm/rse/tc/tc3", "GCC_13_2", "3",
Antonio de Angelis78a01fc2025-02-06 11:11:25 +0000353 # "RegS, RegNS", "OFF", "Release", True, "", "ATTESTATION_SCHEME_DPE"),
Jamie Fox82a91d02024-09-27 14:54:14 +0100354 # RSE_TC3_GCC_2_RegBL1_1_Debug_BL2
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100355 #("arm/rse/tc/tc3", "GCC_13_2", "2",
Antonio de Angelis78a01fc2025-02-06 11:11:25 +0000356 # "RegBL1_1", "OFF", "Debug", True, "", ""),
Nicola Mazzucatob4763262024-09-26 12:39:06 +0100357 # RSE_TC3_GCC_2_Release_BL2_ATTESTATION_SCHEME_CCA
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100358 #("arm/rse/tc/tc3", "GCC_13_2", "2",
Antonio de Angelis78a01fc2025-02-06 11:11:25 +0000359 # "OFF", "OFF", "Release", True, "", "ATTESTATION_SCHEME_CCA"),
Tamas Ban33b2e382025-03-17 12:23:08 +0100360 # RSE_TC4_GCC_3_RegS_RegNS_Release_BL2_ATTESTATION_SCHEME_DPE
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100361 ("arm/rse/tc/tc4", "GCC_13_2", "3",
Tamas Ban33b2e382025-03-17 12:23:08 +0100362 "RegS, RegNS", "OFF", "Release", True, "", "ATTESTATION_SCHEME_DPE"),
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100363 # RSE_TC4_GCC_3_RegS_RegNS_Release_BL2_RSE_PROVISIONING_SYMMETRIC
364 ("arm/rse/tc/tc4", "GCC_13_2", "3",
365 "RegS, RegNS", "OFF", "Release", True, "", "RSE_PROVISIONING_SYMMETRIC"),
Jackson Cooper-Driver0ac3fe02025-02-20 09:23:03 +0000366 # RSE_TC4_GCC_2_Debug_BL2
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100367 ("arm/rse/tc/tc4", "GCC_13_2", "2",
Tamas Ban33b2e382025-03-17 12:23:08 +0100368 "OFF", "OFF", "Debug", True, "", ""),
Jackson Cooper-Driver042d0fa2025-03-03 12:45:54 +0000369 # RSE_TC4_GCC_2_RegBL1_1_Debug_BL2
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100370 ("arm/rse/tc/tc4", "GCC_13_2", "2",
Tamas Ban33b2e382025-03-17 12:23:08 +0100371 "RegBL1_1", "OFF", "Debug", True, "", ""),
Jackson Cooper-Driver2fb4d5a2025-07-16 15:55:10 +0100372 # RSE_TC4_GCC_2_RegBL1_1_Debug_BL2
373 ("arm/rse/tc/tc4", "GCC_13_2", "2",
374 "RegBL1_1", "OFF", "Debug", True, "", "RSE_RUN_BL1_1_TESTS_IN_PCI"),
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000375 # RSE_TC4_GCC_2_Release_BL2_ATTESTATION_SCHEME_CCA
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100376 ("arm/rse/tc/tc4", "GCC_13_2", "2",
Tamas Ban33b2e382025-03-17 12:23:08 +0100377 "OFF", "OFF", "Release", True, "", "ATTESTATION_SCHEME_CCA"),
Jackson Cooper-Drivere6e1db02025-05-16 10:45:20 +0100378 # RSE_TC4_GCC_2_RegS_RegNS_MinSizeRel_BL2_RSE_COPY_USE_ROM_LIB_IN_SRAM
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100379 ("arm/rse/tc/tc4", "GCC_13_2", "2",
Jackson Cooper-Drivere6e1db02025-05-16 10:45:20 +0100380 "RegS, RegNS", "OFF", "MinSizeRel", True, "", "RSE_COPY_USE_ROM_LIB_IN_SRAM"),
Ishan Deshpande80d840e2025-01-09 18:46:56 +0530381 # RSE_RDV3_GCC_2_Release_BL2_NSOFF_CFG0
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100382 ("arm/rse/neoverse_rd/rdv3", "GCC_13_2", "2",
Jamie Fox9283cbc2024-04-22 13:40:01 +0100383 "OFF", "OFF", "Release", True, "", "NSOFF, CFG0"),
Nicola Mazzucato75b76af2025-02-07 15:20:59 +0000384 # RSE_RDV3R1_GCC_2_Release_BL2_NSOFF_CFG0
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100385 ("arm/rse/neoverse_rd/rdv3r1", "GCC_13_2", "2",
Nicola Mazzucato75b76af2025-02-07 15:20:59 +0000386 "OFF", "OFF", "Release", True, "", "NSOFF, CFG0"),
Ziad Elhanafy937333f2024-05-22 14:17:40 +0100387 # RSE_RD1AE_GCC_2_Release_BL2_NSOFF
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100388 ("arm/rse/automotive_rd/rd1ae", "GCC_13_2", "2",
Ziad Elhanafy937333f2024-05-22 14:17:40 +0100389 "OFF", "OFF", "Release", True, "", "NSOFF"),
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800390 # stm32l562e_dk_ARMCLANG_1_RegS_RegNS_Release_BL2_CRYPTO_OFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300391 ("stm/stm32l562e_dk", "ARMCLANG_6_21", "1",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800392 "RegS, RegNS", "OFF", "Release", True, "", "CRYPTO_OFF"),
393 # stm32l562e_dk_GCC_2_Release_BL2_CRYPTO_ON
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100394 ("stm/stm32l562e_dk", "GCC_13_2", "2",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800395 "OFF", "OFF", "Release", True, "", "CRYPTO_ON"),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100396 # stm32l562e_dk_GCC_3_RegBL2_RegS_RegNS_Release_BL2_CRYPTO_OFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100397 ("stm/stm32l562e_dk", "GCC_13_2", "3",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800398 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "CRYPTO_OFF"),
Arthur She4f08c152023-05-15 15:29:14 -0700399 # b_u585i_iot02a_GCC_1_RegS_RegNS_Release_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100400 ("stm/b_u585i_iot02a", "GCC_13_2", "1",
Arthur She4f08c152023-05-15 15:29:14 -0700401 "RegS, RegNS", "OFF", "Release", True, "", ""),
402 # b_u585i_iot02a_ARMCLANG_2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300403 ("stm/b_u585i_iot02a", "ARMCLANG_6_21", "2",
Arthur She4f08c152023-05-15 15:29:14 -0700404 "RegS, RegNS", "OFF", "Release", True, "", ""),
Anton Komlev4164ab62024-02-23 10:59:56 +0100405 # stm32h573i_dk_GCC_1_RegS_RegNS_Release_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100406 ("stm/stm32h573i_dk", "GCC_13_2", "1",
Anton Komlev4164ab62024-02-23 10:59:56 +0100407 "RegS, RegNS", "OFF", "Release", True, "", ""),
408 # stm32h573i_dk_ARMCLANG_2_RegS_RegNS_Release_BL2
409 ("stm/stm32h573i_dk", "ARMCLANG_6_21", "2",
410 "RegS, RegNS", "OFF", "Release", True, "", ""),
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800411 # psoc64_GCC_2_RegS_RegNS_Release
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100412 ("cypress/psoc64", "GCC_13_2", "2",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800413 "RegS, RegNS", "OFF", "Release", False, "", ""),
Nicola Mazzucato4bad6c62024-10-28 14:42:17 +0000414 # rp2350_GCC_2_RegBL2_RegS_RegNS_Release_BL2_MEDIUM
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100415 ("rpi/rp2350", "GCC_13_2", "2",
Nicola Mazzucato4bad6c62024-10-28 14:42:17 +0000416 "RegBL2, RegS, RegNS", "OFF", "Release", True, "profile_medium", ""),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800417 ],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800418 "invalid": _common_tfm_invalid_configs + []
419 }
420
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800421# Config group for nightly job
422config_nightly_test = {"seed_params": {
423 "tfm_platform": ["arm/mps2/an519",
424 "arm/mps2/an521",
425 "arm/mps3/an524",
Mark Horvathef57baa2022-09-12 13:36:36 +0200426 "arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100427 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800428 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800429 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800430 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800431 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800432 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800433 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800434 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100435 },
436 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800437 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100438 }
439
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000440config_all_plat = {
441 # corstone1000_GCC_2_RegS_Release_BL2_NSOFF_CS1K_TEST_FVP
442 "seed_params": {
443 "tfm_platform": ["arm/corstone1000"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100444 "compiler": ["GCC_13_2"],
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000445 "isolation_level": ["2"],
446 "test_regression": ["RegS"],
447 "test_psa_api": ["OFF"],
448 "cmake_build_type": ["Release"],
449 "with_bl2": [True],
450 "profile": [""],
451 "extra_params": ["NSOFF, CS1K_TEST, FVP"]
452 },
453 "common_params": _common_tfm_builder_cfg,
454 "valid": [
455 # AN521_GCC_3_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100456 ("arm/mps2/an521", "GCC_13_2", "3",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000457 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
458 # AN519_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100459 ("arm/mps2/an519", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000460 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
461 # AN524_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100462 ("arm/mps3/an524", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000463 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
464 # CS300_AN547_GCC_1_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100465 ("arm/mps3/corstone300/an547", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000466 "OFF", "OFF", "Debug", True, "", ""),
467 # CS300_AN552_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100468 ("arm/mps3/corstone300/an552", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000469 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
470 # CS300_FVP_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100471 ("arm/mps3/corstone300/fvp", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000472 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
473 # corstone310_GCC_1_Debug_BL2_NSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100474 ("arm/mps3/corstone310/fvp", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000475 "OFF", "OFF", "Debug", True, "", "NSOFF"),
476 # corstone315_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100477 ("arm/mps4/corstone315", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000478 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
479 # corstone320_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100480 ("arm/mps4/corstone320", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000481 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
482 # MUSCA_B1_GCC_3_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100483 ("arm/musca_b1", "GCC_13_2", "3",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000484 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000485 # RSE_TC3_GCC_3_RegS_RegNS_Debug_BL2_ATTESTATION_SCHEME_DPE
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100486 ("arm/rse/tc/tc3", "GCC_13_2", "3",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000487 "RegS, RegNS", "OFF", "Debug", True, "", "ATTESTATION_SCHEME_DPE"),
488 # psoc64_GCC_2_RegS_RegNS_Release
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100489 ("cypress/psoc64", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000490 "RegS, RegNS", "OFF", "Release", False, "", ""),
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000491 ## nrf5340dk_GCC_1_Debug_BL2_NSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100492 #("nordic_nrf/nrf5340dk_nrf5340_cpuapp", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000493 # "OFF", "OFF", "Release", True, "", "NSOFF"),
494 ## nrf9160dk_GCC_1_Debug_BL2_NSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100495 #("nordic_nrf/nrf9160dk_nrf9160", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000496 # "OFF", "OFF", "Release", True, "", "NSOFF"),
497 ## M2351_GCC_1_Release_BL2_NSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100498 #("nuvoton/m2351", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000499 # "OFF", "OFF", "Release", True, "", "NSOFF"),
500 # M2354_GCC_1_Debug_BL2_NSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100501 ("nuvoton/m2354", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000502 "OFF", "OFF", "Debug", True, "", "NSOFF"),
503 # lpcxpresso55s69_GCC_2_RegS_RegNS_Relwithdebinfo_MEDIUM
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100504 ("nxp/lpcxpresso55s69", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000505 "RegS, RegNS", "OFF", "Relwithdebinfo", False, "profile_medium", ""),
506 # rp2350_GCC_2_RegBL2_RegS_RegNS_RelWithDebInfo_BL2_MEDIUM
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100507 ("rpi/rp2350", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000508 "RegBL2, RegS, RegNS", "OFF", "Relwithdebinfo", True, "profile_medium", ""),
509 # b_u585i_iot02a_GCC_2_RegS_RegNS_Release_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100510 ("stm/b_u585i_iot02a", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000511 "RegS, RegNS", "OFF", "Release", True, "", ""),
512 # nucleo_l552ze_q_GCC_1_Release_BL2_NSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100513 ("stm/nucleo_l552ze_q", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000514 "OFF", "OFF", "Release", True, "", "NSOFF"),
515 # stm32h573i_dk_GCC_2_RegS_RegNS_Release_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100516 ("stm/stm32h573i_dk", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000517 "RegS, RegNS", "OFF", "Release", True, "", ""),
518 # stm32l562e_dk_GCC_3_RegBL2_RegS_RegNS_Release_BL2_CRYPTO_OFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100519 ("stm/stm32l562e_dk", "GCC_13_2", "3",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000520 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "CRYPTO_OFF"),
521 # stm32l562e_dk_GCC_3_Release_BL2_CRYPTO_ON
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100522 ("stm/stm32l562e_dk", "GCC_13_2", "3",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000523 "OFF", "OFF", "Release", True, "", "CRYPTO_ON"),
Matthew Dalzell8fbf3562025-05-13 14:46:50 +0100524 # stm32wba65i_dk_GCC_2_RegS_RegNS_Release_MEDIUM
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100525 ("stm/stm32wba65i_dk", "GCC_13_2", "2",
Matthew Dalzell8fbf3562025-05-13 14:46:50 +0100526 "RegS, RegNS", "OFF", "Release", False, "profile_medium", ""),
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000527 ],
528 "invalid": _common_tfm_invalid_configs + []
529 }
530
531
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800532# Config group for release job
533config_release_test = {"seed_params": {
534 "tfm_platform": ["arm/mps2/an519",
535 "arm/mps2/an521",
536 "arm/mps3/an524",
Antonio de Angelis6ce8d722025-07-06 21:38:15 +0100537 "arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100538 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800539 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800540 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800541 "test_psa_api": ["OFF"],
542 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800543 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800544 "profile": [""],
David Vinczed78e2622022-11-24 15:04:00 +0100545 "extra_params": ["TEST_CBOR"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800546 },
547 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800548 "valid": [
549 # sanity test for GCC v11.2
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800550 # AN521_GCC_3_RegBL2_RegS_RegNS_Relwithdebinfo_BL2
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800551 ("arm/mps2/an521", "GCC_11_2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800552 "3", "RegBL2, RegS, RegNS", "OFF", "Relwithdebinfo",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800553 True, "", ""),
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800554 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800555 "invalid": _common_tfm_invalid_configs + []
556 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800557
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800558# Config groups for TF-M features
559config_profile_s = {"seed_params": {
David Huda27ae72022-03-28 15:32:19 +0800560 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100561 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
David Huda27ae72022-03-28 15:32:19 +0800562 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800563 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
David Huda27ae72022-03-28 15:32:19 +0800564 "test_psa_api": ["OFF"],
565 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
David Huda27ae72022-03-28 15:32:19 +0800566 "with_bl2": [True],
David Huda27ae72022-03-28 15:32:19 +0800567 "profile": ["profile_small"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800568 "extra_params": ["PSOFF"]
David Huda27ae72022-03-28 15:32:19 +0800569 },
570 "common_params": _common_tfm_builder_cfg,
David Huda27ae72022-03-28 15:32:19 +0800571 "invalid": _common_tfm_invalid_configs + [
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100572 ("arm/mps2/an519", "GCC_13_2", "*", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800573 "*", "Minsizerel", "*", "*", "*")
David Huda27ae72022-03-28 15:32:19 +0800574 ]
575 }
576
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800577config_profile_m = {"seed_params": {
578 "tfm_platform": ["arm/mps2/an519",
579 "arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200580 "arm/musca_b1"],
Nicola Mazzucato596fe7e2025-05-28 21:42:16 +0100581 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800582 "isolation_level": ["2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800583 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800584 "test_psa_api": ["OFF"],
585 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800586 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800587 "profile": ["profile_medium"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800588 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800589 },
590 "common_params": _common_tfm_builder_cfg,
591 "invalid": _common_tfm_invalid_configs + []
592 }
593
David Hu3d333762022-10-27 18:12:33 +0800594config_profile_m_arotless = {"seed_params": {
595 "tfm_platform": ["arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100596 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
David Hu3d333762022-10-27 18:12:33 +0800597 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800598 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
David Hu3d333762022-10-27 18:12:33 +0800599 "test_psa_api": ["OFF"],
600 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
601 "with_bl2": [True],
602 "profile": ["profile_medium_arotless"],
603 "extra_params": ["", "PSOFF"]
604 },
605 "common_params": _common_tfm_builder_cfg,
606 "invalid": _common_tfm_invalid_configs + []
607 }
608
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800609config_profile_l = {"seed_params": {
610 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100611 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800612 "isolation_level": ["3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800613 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800614 "test_psa_api": ["OFF"],
615 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800616 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800617 "profile": ["profile_large"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800618 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800619 },
620 "common_params": _common_tfm_builder_cfg,
621 "invalid": _common_tfm_invalid_configs + []
622 }
623
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800624config_ipc_backend = {"seed_params": {
625 "tfm_platform": ["arm/mps2/an519",
626 "arm/mps2/an521",
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800627 "arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100628 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800629 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800630 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800631 "test_psa_api": ["OFF"],
632 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
633 "with_bl2": [True],
634 "profile": [""],
635 "extra_params": ["IPC"]
636 },
637 "common_params": _common_tfm_builder_cfg,
638 "invalid": _common_tfm_invalid_configs + []
639 }
640
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800641config_cc_driver_psa = {"seed_params": {
Antonio de Angelis6ce8d722025-07-06 21:38:15 +0100642 "tfm_platform": ["arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100643 "compiler": ["GCC_13_2"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800644 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800645 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800646 "test_psa_api": ["OFF"],
647 "cmake_build_type": ["Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800648 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800649 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800650 "extra_params": ["CC_DRIVER_PSA"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800651 },
652 "common_params": _common_tfm_builder_cfg,
653 "invalid": _common_tfm_invalid_configs + []
654 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100655
Antonio de Angelis9d7f0842025-06-27 22:23:51 +0100656config_cc3xx_runtime_enabled = {"seed_params": {
Antonio de Angelis6ce8d722025-07-06 21:38:15 +0100657 "tfm_platform": ["arm/musca_b1"],
Antonio de Angelis9d7f0842025-06-27 22:23:51 +0100658 "compiler": ["GCC_13_2"],
659 "isolation_level": ["1"],
660 "test_regression": ["RegBL2, RegS, RegNS"],
661 "test_psa_api": ["OFF"],
662 "cmake_build_type": ["Release"],
663 "with_bl2": [True],
664 "profile": [""],
665 "extra_params": ["CC3XX_RUNTIME_ENABLED"]
666 },
667 "common_params": _common_tfm_builder_cfg,
668 "invalid": _common_tfm_invalid_configs + []
669 }
670
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800671config_fp = {"seed_params": {
Xinyu Zhange91567c2023-09-13 14:10:11 +0800672 "tfm_platform": ["arm/mps2/an521",
673 "arm/mps3/corstone300/an552",
674 "arm/mps3/corstone300/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100675 "compiler": ["GCC_13_2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800676 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800677 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800678 "test_psa_api": ["OFF"],
679 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800680 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800681 "profile": [""],
Mark Horvath93cb5fb2022-09-06 17:51:24 +0200682 "extra_params": ["FPOFF", "FPON", "FPON, LZOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800683 },
684 "common_params": _common_tfm_builder_cfg,
685 "invalid": _common_tfm_invalid_configs + []
686 }
Karl Zhangeffed972020-06-30 15:48:01 +0800687
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800688config_psa_api = {"seed_params": {
689 "tfm_platform": ["arm/mps2/an521",
Antonio de Angelis6ce8d722025-07-06 21:38:15 +0100690 "arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100691 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800692 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800693 "test_regression": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800694 "test_psa_api": ["IPC",
695 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800696 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800697 "STORAGE"],
Antonio de Angelis240495b2025-03-30 22:46:54 +0100698 "cmake_build_type": ["Release", "Minsizerel"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800699 "with_bl2": [True],
Antonio de Angelis240495b2025-03-30 22:46:54 +0100700 "profile": ["profile_large"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800701 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800702 },
703 "common_params": _common_tfm_builder_cfg,
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300704 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800705 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800706
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800707config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800708 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100709 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800710 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800711 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800712 "test_psa_api": ["OFF"],
713 "cmake_build_type": ["Debug"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800714 "with_bl2": [True],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800715 "profile": [""],
Xinyu Zhang67612992021-12-20 14:11:27 +0800716 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800717 },
718 "common_params": _common_tfm_builder_cfg,
719 "invalid": _common_tfm_invalid_configs + []
720 }
721
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800722config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800723 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100724 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800725 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800726 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800727 "test_psa_api": ["OFF"],
728 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800729 "with_bl2": [True],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800730 "profile": [""],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800731 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800732 },
733 "common_params": _common_tfm_builder_cfg,
734 "invalid": _common_tfm_invalid_configs + []
735 }
736
Bence Balogh79fda442022-10-14 18:01:37 +0200737# Config groups for TF-M examples
738config_example_vad = {"seed_params": {
Bence Balogh1aa8d582023-08-29 13:10:02 +0200739 "tfm_platform": ["arm/mps3/corstone300/an552"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100740 "compiler": ["GCC_13_2"],
Bence Balogh79fda442022-10-14 18:01:37 +0200741 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800742 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200743 "test_psa_api": ["OFF"],
744 "cmake_build_type": ["Release"],
745 "with_bl2": [True],
746 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200747 "extra_params": ["EXTRAS_EXAMPLE_VAD"]
Bence Balogh79fda442022-10-14 18:01:37 +0200748 },
749 "common_params": _common_tfm_builder_cfg,
750 "invalid": _common_tfm_invalid_configs + []
751 }
752
Bence Balogh852f8bd2023-08-07 14:46:54 +0200753config_example_dma350_clcd = {"seed_params": {
Bence Balogh79fda442022-10-14 18:01:37 +0200754 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100755 "compiler": ["GCC_13_2"],
Bence Balogh79fda442022-10-14 18:01:37 +0200756 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800757 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200758 "test_psa_api": ["OFF"],
759 "cmake_build_type": ["Release"],
760 "with_bl2": [True],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200761 "profile": ["profile_medium"],
762 "extra_params": ["EXTRAS_EXAMPLE_DMA350_CLCD"]
Bence Balogh79fda442022-10-14 18:01:37 +0200763 },
764 "common_params": _common_tfm_builder_cfg,
765 "invalid": _common_tfm_invalid_configs + []
766 }
767
768config_example_dma350_s = {"seed_params": {
769 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100770 "compiler": ["GCC_13_2"],
Bence Balogh79fda442022-10-14 18:01:37 +0200771 "isolation_level": ["1"],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200772 "test_regression": ["RegS"],
Bence Balogh79fda442022-10-14 18:01:37 +0200773 "test_psa_api": ["OFF"],
774 "cmake_build_type": ["Release"],
775 "with_bl2": [True],
776 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200777 "extra_params": ["EXTRAS_EXAMPLE_DMA350_S"]
Bence Balogh79fda442022-10-14 18:01:37 +0200778 },
779 "common_params": _common_tfm_builder_cfg,
780 "invalid": _common_tfm_invalid_configs + []
781 }
782
Bence Baloghd23cbda2023-08-07 15:30:58 +0200783config_example_dma350_ns = {"seed_params": {
784 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100785 "compiler": ["GCC_13_2"],
Bence Baloghd23cbda2023-08-07 15:30:58 +0200786 "isolation_level": ["1"],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200787 "test_regression": ["RegS, RegNS"],
Bence Baloghd23cbda2023-08-07 15:30:58 +0200788 "test_psa_api": ["OFF"],
789 "cmake_build_type": ["Release"],
790 "with_bl2": [True],
791 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200792 "extra_params": ["EXTRAS_EXAMPLE_DMA350_NS"]
Bence Baloghd23cbda2023-08-07 15:30:58 +0200793 },
794 "common_params": _common_tfm_builder_cfg,
795 "invalid": _common_tfm_invalid_configs + []
796 }
797
Bence Balogh79fda442022-10-14 18:01:37 +0200798config_example_dma350_trigger = {"seed_params": {
799 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100800 "compiler": ["GCC_13_2"],
Bence Balogh79fda442022-10-14 18:01:37 +0200801 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800802 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200803 "test_psa_api": ["OFF"],
804 "cmake_build_type": ["Release"],
805 "with_bl2": [True],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200806 "profile": ["profile_medium"],
807 "extra_params": ["EXTRAS_EXAMPLE_DMA350_TRIGGER"]
Bence Balogh79fda442022-10-14 18:01:37 +0200808 },
809 "common_params": _common_tfm_builder_cfg,
810 "invalid": _common_tfm_invalid_configs + []
811 }
812
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300813config_misra = {"seed_params": {
814 "tfm_platform": ["arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100815 "compiler": ["GCC_13_2"],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300816 "isolation_level": ["1"],
817 "test_regression": ["OFF"],
818 "test_psa_api": ["OFF"],
819 "cmake_build_type": ["Debug"],
820 "with_bl2": [True],
Matthew Dalzellb7895ae2025-04-10 12:30:01 +0100821 "profile": ["profile_small", "profile_medium_arotless"],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300822 "extra_params": ["PSOFF"]
823 },
824 "common_params": _common_tfm_builder_cfg,
Xinyu Zhange17926f2023-08-14 11:00:43 +0800825 "valid": [
826 # MUSCA_B1_GCC_2_Debug_BL2_MEDIUM_PSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100827 ("arm/musca_b1", "GCC_13_2", "2", "OFF",
Xinyu Zhange17926f2023-08-14 11:00:43 +0800828 "OFF", "Debug", True, "profile_medium", "PSOFF"),
829 # MUSCA_B1_GCC_3_Debug_BL2_LARGE_PSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100830 ("arm/musca_b1", "GCC_13_2", "3", "OFF",
Xinyu Zhange17926f2023-08-14 11:00:43 +0800831 "OFF", "Debug", True, "profile_large", "PSOFF"),
832 ],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300833 "invalid": _common_tfm_invalid_configs + []
834 }
835
Paul Sokolovskya526e5d2023-06-15 09:49:13 +0300836config_misra_debug = {"seed_params": {
837 "tfm_platform": ["arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100838 "compiler": ["GCC_13_2"],
Paul Sokolovskya526e5d2023-06-15 09:49:13 +0300839 "isolation_level": ["1"],
840 "test_regression": ["OFF"],
841 "test_psa_api": ["OFF"],
842 "cmake_build_type": ["Debug"],
843 "with_bl2": [True],
844 "profile": ["profile_small"],
845 "extra_params": ["PSOFF"]
846 },
847 "common_params": _common_tfm_builder_cfg,
848 "invalid": _common_tfm_invalid_configs + []
849 }
850
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800851# Config groups for code coverage
852config_cov_profile_s = deepcopy(config_profile_s)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800853config_cov_profile_s["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100854config_cov_profile_s["seed_params"]["compiler"] = ["GCC_13_2"]
Xinyu Zhangbdc37e32022-04-06 17:47:44 +0800855
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800856config_cov_profile_m = deepcopy(config_profile_m)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800857config_cov_profile_m["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100858config_cov_profile_m["seed_params"]["compiler"] = ["GCC_13_2"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800859
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800860config_cov_profile_l = deepcopy(config_profile_l)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800861config_cov_profile_l["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100862config_cov_profile_l["seed_params"]["compiler"] = ["GCC_13_2"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800863
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800864config_cov_ipc_backend = deepcopy(config_ipc_backend)
865config_cov_ipc_backend["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100866config_cov_ipc_backend["seed_params"]["compiler"] = ["GCC_13_2"]
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800867
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800868config_cov_nsce = deepcopy(config_nsce)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800869config_cov_nsce["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100870config_cov_nsce["seed_params"]["compiler"] = ["GCC_13_2"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800871
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800872config_cov_mmio = deepcopy(config_mmio)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800873config_cov_mmio["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100874config_cov_mmio["seed_params"]["compiler"] = ["GCC_13_2"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800875
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800876config_cov_fp = deepcopy(config_fp)
877config_cov_fp["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100878config_cov_fp["seed_params"]["compiler"] = ["GCC_13_2"]
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800879
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800880# Config groups for platforms
881config_an519 = {"seed_params": {
Xinyu Zhangf25856a2021-06-17 14:06:46 +0800882 "tfm_platform": ["arm/mps2/an519"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100883 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800884 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800885 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800886 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800887 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800888 "with_bl2": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800889 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800890 "extra_params": ["", "NSOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800891 },
892 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800893 "invalid": _common_tfm_invalid_configs + []
894 }
895
896config_an521 = {"seed_params": {
897 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100898 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800899 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800900 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800901 "test_psa_api": ["OFF"],
902 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800903 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800904 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800905 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800906 },
907 "common_params": _common_tfm_builder_cfg,
908 "invalid": _common_tfm_invalid_configs + []
909 }
910
911config_an524 = {"seed_params": {
912 "tfm_platform": ["arm/mps3/an524"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100913 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800914 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800915 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800916 "test_psa_api": ["OFF"],
917 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800918 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800919 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800920 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800921 },
922 "common_params": _common_tfm_builder_cfg,
923 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800924 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000925
Bence Balogh1aa8d582023-08-29 13:10:02 +0200926config_cs300_an547 = {"seed_params": {
927 "tfm_platform": ["arm/mps3/corstone300/an547"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100928 "compiler": ["GCC_13_2"],
Bence Balogh1aa8d582023-08-29 13:10:02 +0200929 "isolation_level": ["1"],
930 "test_regression": ["OFF"],
931 "test_psa_api": ["OFF"],
932 "cmake_build_type": ["Debug"],
933 "with_bl2": [True],
934 "profile": [""],
935 "extra_params": [""]
936 },
937 "common_params": _common_tfm_builder_cfg,
938 "invalid": _common_tfm_invalid_configs + []
939 }
Xinyu Zhang38b76742021-11-11 13:57:56 +0800940
Bence Balogh1aa8d582023-08-29 13:10:02 +0200941config_cs300_an552 = {"seed_params": {
942 "tfm_platform": ["arm/mps3/corstone300/an552"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100943 "compiler": ["GCC_13_2"],
Bence Balogh1aa8d582023-08-29 13:10:02 +0200944 "isolation_level": ["1", "2"],
945 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
946 "test_psa_api": ["OFF"],
947 "cmake_build_type": ["Debug", "Release"],
948 "with_bl2": [True],
949 "profile": [""],
950 "extra_params": [""]
951 },
952 "common_params": _common_tfm_builder_cfg,
953 "invalid": _common_tfm_invalid_configs + []
954 }
955
956config_cs300_fvp = {"seed_params": {
957 "tfm_platform": ["arm/mps3/corstone300/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100958 "compiler": ["GCC_13_2"],
Bence Balogh1aa8d582023-08-29 13:10:02 +0200959 "isolation_level": ["1", "2"],
960 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
961 "test_psa_api": ["OFF"],
962 "cmake_build_type": ["Debug", "Release"],
963 "with_bl2": [True],
964 "profile": [""],
965 "extra_params": [""]
966 },
967 "common_params": _common_tfm_builder_cfg,
968 "invalid": _common_tfm_invalid_configs + []
969 }
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800970
971config_musca_b1 = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200972 "tfm_platform": ["arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100973 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800974 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800975 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800976 "test_psa_api": ["OFF"],
977 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800978 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800979 "profile": [""],
Antonio de Angelis9a3bd142025-06-27 21:37:31 +0100980 "extra_params": [""]
981 },
982 "common_params": _common_tfm_builder_cfg,
983 "invalid": _common_tfm_invalid_configs + []
984 }
985
986config_musca_b1_nsoff = {"seed_params": {
987 "tfm_platform": ["arm/musca_b1"],
988 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
989 "isolation_level": ["1", "2", "3"],
990 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
991 "test_psa_api": ["OFF"],
992 "cmake_build_type": ["Debug", "Release"],
993 "with_bl2": [True],
994 "profile": [""],
995 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800996 },
997 "common_params": _common_tfm_builder_cfg,
998 "invalid": _common_tfm_invalid_configs + []
999 }
1000
Bence Balogh8731a092022-05-24 17:24:54 +02001001config_corstone310 = {"seed_params": {
Bence Balogh23d8fa72022-11-08 12:16:23 +01001002 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001003 "compiler": ["GCC_13_2"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001004 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001005 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001006 "test_psa_api": ["OFF"],
1007 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001008 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001009 "profile": [""],
Gergely Korcsák6abc66c2025-04-29 14:55:33 +02001010 "extra_params": ["NSOFF", "PROV_TFM_DUMMY", "PROV_MCUBOOT_GEN_KEYS"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001011 },
1012 "common_params": _common_tfm_builder_cfg,
1013 "invalid": _common_tfm_invalid_configs + []
1014 }
1015
Nicola Mazzucatobde5d432024-05-20 11:43:18 +01001016config_corstone310_pacbti = {"seed_params": {
1017 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Nicola Mazzucatob4e19572024-08-21 12:26:14 +01001018 "compiler": ["ARMCLANG_6_21"],
Nicola Mazzucatobde5d432024-05-20 11:43:18 +01001019 "isolation_level": ["1"],
1020 "test_regression": ["OFF"],
1021 "test_psa_api": ["OFF"],
1022 "cmake_build_type": ["Debug"],
1023 "with_bl2": [True],
1024 "profile": [""],
1025 "extra_params": ["PACBTI_STD"]
1026 },
1027 "common_params": _common_tfm_builder_cfg,
1028 "invalid": _common_tfm_invalid_configs + []
1029 }
1030
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001031config_corstone315 = {"seed_params": {
1032 "tfm_platform": ["arm/mps4/corstone315"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001033 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001034 "isolation_level": ["1"],
Gergely Korcsáka403e222024-04-09 10:51:00 +02001035 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001036 "test_psa_api": ["OFF"],
1037 "cmake_build_type": ["Debug", "Release"],
1038 "with_bl2": [True],
1039 "profile": [""],
1040 "extra_params": [""]
1041 },
1042 "common_params": _common_tfm_builder_cfg,
1043 "invalid": _common_tfm_invalid_configs + []
1044 }
1045
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001046config_corstone320 = {"seed_params": {
1047 "tfm_platform": ["arm/mps4/corstone320"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001048 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001049 "isolation_level": ["1"],
1050 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
1051 "test_psa_api": ["OFF"],
1052 "cmake_build_type": ["Debug", "Release"],
1053 "with_bl2": [True],
1054 "profile": [""],
1055 "extra_params": [""]
1056 },
1057 "common_params": _common_tfm_builder_cfg,
1058 "invalid": _common_tfm_invalid_configs + []
1059 }
1060
Jamie Fox82a91d02024-09-27 14:54:14 +01001061config_rse_tc3 = {"seed_params": {
1062 "tfm_platform": ["arm/rse/tc/tc3"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001063 "compiler": ["GCC_13_2"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +01001064 "isolation_level": ["1", "2", "3"],
Jamie Fox9283cbc2024-04-22 13:40:01 +01001065 "test_regression": ["OFF", "RegS, RegNS"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001066 "test_psa_api": ["OFF"],
1067 "cmake_build_type": ["Debug", "Release"],
1068 "with_bl2": [True],
1069 "profile": [""],
Nicola Mazzucato551c5f32024-10-02 09:43:04 +01001070 "extra_params": ["ATTESTATION_SCHEME_DPE"]
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001071 },
1072 "common_params": _common_tfm_builder_cfg,
Jamie Fox9e2c2352023-01-13 15:11:23 +00001073 "invalid": _common_tfm_invalid_configs + [
Jamie Fox5ae6fa42024-02-19 15:11:00 +00001074 # BL2 is too large for RSE in Debug builds with tests
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001075 ("arm/rse/tc/tc3", "GCC_13_2", "*", "RegBL2, RegS, RegNS", "*",
Jamie Fox9e2c2352023-01-13 15:11:23 +00001076 "Debug", True, "*", "*"),
1077 ]
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001078 }
1079
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001080config_rse_tc4 = {"seed_params": {
1081 "tfm_platform": ["arm/rse/tc/tc4"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001082 "compiler": ["GCC_13_2"],
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001083 "isolation_level": ["1", "2", "3"],
Jackson Cooper-Driver042d0fa2025-03-03 12:45:54 +00001084 "test_regression": ["OFF", "RegS, RegNS", "RegBL1_1"],
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001085 "test_psa_api": ["OFF"],
1086 "cmake_build_type": ["Debug", "Release"],
1087 "with_bl2": [True],
1088 "profile": [""],
Jackson Cooper-Driver49350442025-05-29 14:13:45 +01001089 "extra_params": ["ATTESTATION_SCHEME_DPE", "RSE_PROVISIONING_SYMMETRIC"]
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001090 },
1091 "common_params": _common_tfm_builder_cfg,
1092 "invalid": _common_tfm_invalid_configs + [
1093 # BL2 is too large for RSE in Debug builds with tests
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001094 ("arm/rse/tc/tc4", "GCC_13_2", "*", "RegBL2, RegS, RegNS", "*",
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001095 "Debug", True, "*", "*"),
Jackson Cooper-Drivere6e1db02025-05-16 10:45:20 +01001096 ],
1097 "valid": [
1098 ("arm/rse/tc/tc4", "*", "*", "*", "*",
1099 "MinSizeRel", True, "*", "RSE_COPY_USE_ROM_LIB_IN_SRAM"),
Jackson Cooper-Driver2fb4d5a2025-07-16 15:55:10 +01001100 # RSE_RUN_BL1_1_TESTS_IN_PCI only relevant when running BL1_1 tests
1101 ("arm/rse/tc/tc4", "*", "*", "RegBL1_1", "*",
1102 "*", True, "*", "RSE_RUN_BL1_1_TESTS_IN_PCI"),
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001103 ]
1104 }
1105
Nicola Mazzucatoe932bd72025-04-14 17:11:10 +01001106# RSE-specific build-only cases.
1107# New cases should be better added in the valid section
1108# This group is only consumed in "tf-m-extra-build" CI job
1109config_rse_build_only = {"seed_params": {
1110 "tfm_platform": ["arm/rse/tc/tc4"],
1111 "compiler": ["ARMCLANG_6_21"],
1112 "isolation_level": ["2"],
1113 "test_regression": ["OFF"],
1114 "test_psa_api": ["OFF"],
1115 "cmake_build_type": ["Release"],
1116 "with_bl2": [True],
1117 "profile": [""],
1118 "extra_params": ["ATTESTATION_SCHEME_CCA, RSE_SUPPORT_ROM_LIB_RELOCATION_OFF"]
1119 },
1120 "common_params": _common_tfm_builder_cfg,
1121 "invalid": _common_tfm_invalid_configs + []
1122 }
1123
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301124config_rse_rdv3 = {"seed_params": {
Antonio de Angelis373187e2025-01-11 22:09:30 +00001125 "tfm_platform": ["arm/rse/neoverse_rd/rdv3"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001126 "compiler": ["GCC_13_2"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +01001127 "isolation_level": ["1", "2", "3"],
Joel Goddard2dd81a12024-01-23 15:10:08 +00001128 "test_regression": ["OFF"],
1129 "test_psa_api": ["OFF"],
1130 "cmake_build_type": ["Debug", "Release"],
1131 "with_bl2": [True],
1132 "profile": [""],
Jamie Fox9283cbc2024-04-22 13:40:01 +01001133 "extra_params": ["NSOFF, CFG0"]
Joel Goddard2dd81a12024-01-23 15:10:08 +00001134 },
1135 "common_params": _common_tfm_builder_cfg,
1136 "invalid": _common_tfm_invalid_configs + []
1137 }
1138
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001139config_rse_rdv3r1 = {"seed_params": {
1140 "tfm_platform": ["arm/rse/neoverse_rd/rdv3r1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001141 "compiler": ["GCC_13_2"],
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001142 "isolation_level": ["1", "2"],
1143 "test_regression": ["OFF"],
1144 "test_psa_api": ["OFF"],
1145 "cmake_build_type": ["Debug", "Release"],
1146 "with_bl2": [True],
1147 "profile": [""],
1148 "extra_params": ["NSOFF, CFG0"]
1149 },
1150 "common_params": _common_tfm_builder_cfg,
1151 "invalid": _common_tfm_invalid_configs + []
1152 }
1153
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001154config_rse_rd1ae = {"seed_params": {
1155 "tfm_platform": ["arm/rse/automotive_rd/rd1ae"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001156 "compiler": ["GCC_13_2"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +01001157 "isolation_level": ["1", "2", "3"],
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001158 "test_regression": ["OFF"],
1159 "test_psa_api": ["OFF"],
1160 "cmake_build_type": ["Debug", "Release"],
1161 "with_bl2": [True],
1162 "profile": [""],
1163 "extra_params": ["NSOFF"]
1164 },
1165 "common_params": _common_tfm_builder_cfg,
1166 "invalid": _common_tfm_invalid_configs + []
1167 }
1168
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001169config_psoc64 = {"seed_params": {
1170 "tfm_platform": ["cypress/psoc64"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001171 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001172 "isolation_level": ["1", "2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001173 "test_regression": ["RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001174 "test_psa_api": ["OFF"],
1175 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001176 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001177 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001178 "extra_params": [""]
1179 },
1180 "common_params": _common_tfm_builder_cfg,
1181 "invalid": _common_tfm_invalid_configs + []
1182 }
1183
1184config_corstone1000 = {"seed_params": {
1185 "tfm_platform": ["arm/corstone1000"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001186 "compiler": ["GCC_13_2"],
Xinyu Zhang5c4f2182023-10-31 16:26:45 +08001187 "isolation_level": ["1", "2"],
Emekcan Arasf8b39802023-04-24 10:15:22 +01001188 "test_regression": ["RegS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001189 "test_psa_api": ["OFF"],
Matthew Dalzellfc808ea2025-04-16 18:42:16 +01001190 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001191 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001192 "profile": [""],
Xinyu Zhang09acfbf2023-10-30 18:30:48 +08001193 "extra_params": ["NSOFF, CS1K_TEST, FVP", "NSOFF, CS1K_TEST, FPGA"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001194 },
1195 "common_params": _common_tfm_builder_cfg,
1196 "invalid": _common_tfm_invalid_configs + []
1197 }
1198
1199config_stm32l562e_dk = {"seed_params": {
1200 "tfm_platform": ["stm/stm32l562e_dk"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001201 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001202 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001203 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001204 "test_psa_api": ["OFF"],
1205 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001206 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001207 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001208 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
1209 },
1210 "common_params": _common_tfm_builder_cfg,
1211 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001212 # Oversize issue on config stm32l562e_dk_ARMCLANG_1_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001213 ("stm/stm32l562e_dk", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001214 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "*"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001215 # all other tests are off when CRYPTO is ON
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001216 ("stm/stm32l562e_dk", "*", "*", "RegBL2, RegS, RegNS", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +08001217 "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001218 # all other tests are ON when CRYPTO is OFF
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001219 ("stm/stm32l562e_dk", "*", "*", "OFF", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +08001220 "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001221 ]
1222 }
1223
1224config_b_u585i_iot02a = {"seed_params": {
1225 "tfm_platform": ["stm/b_u585i_iot02a"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001226 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Arthur She026ebb62023-02-08 18:47:39 -08001227 "isolation_level": ["1", "2"],
Arthur She96c6f772023-05-09 21:32:50 -07001228 "test_regression": ["OFF", "RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001229 "test_psa_api": ["OFF"],
1230 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001231 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001232 "profile": [""],
Arthur She026ebb62023-02-08 18:47:39 -08001233 "extra_params": [""]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001234 },
1235 "common_params": _common_tfm_builder_cfg,
1236 "invalid": _common_tfm_invalid_configs + []
1237 }
1238
Anton Komlev4164ab62024-02-23 10:59:56 +01001239config_stm32h573i_dk = {"seed_params": {
1240 "tfm_platform": ["stm/stm32h573i_dk"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001241 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Anton Komlev4164ab62024-02-23 10:59:56 +01001242 "isolation_level": ["1", "2"],
1243 "test_regression": ["OFF", "RegS, RegNS"],
1244 "test_psa_api": ["OFF"],
1245 "cmake_build_type": ["Release"],
1246 "with_bl2": [True],
1247 "profile": [""],
1248 "extra_params": [""]
1249 },
1250 "common_params": _common_tfm_builder_cfg,
1251 "invalid": _common_tfm_invalid_configs + []
1252 }
1253
Matthew Dalzelld5325dd2025-04-17 14:46:10 +01001254config_stm32wba65i_dk = {"seed_params": {
1255 "tfm_platform": ["stm/stm32wba65i_dk"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001256 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Matthew Dalzelld5325dd2025-04-17 14:46:10 +01001257 "isolation_level": ["1", "2"],
1258 "test_regression": ["OFF", "RegS, RegNS"],
1259 "test_psa_api": ["OFF"],
1260 "cmake_build_type": ["Release"],
1261 "with_bl2": [False],
1262 "profile": ["profile_small","profile_medium"],
1263 "extra_params": [""]
1264 },
1265 "common_params": _common_tfm_builder_cfg,
1266 "invalid": _common_tfm_invalid_configs + [
1267 ("stm/stm32wba65i_dk", "*", "2", "*",
1268 "*", "*", "*", "profile_small", "*"),
1269 ]
1270 }
1271
1272
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001273config_nucleo_l552ze_q = {"seed_params": {
1274 "tfm_platform": ["stm/nucleo_l552ze_q"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001275 "compiler": ["GCC_13_2"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001276 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001277 "test_regression": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001278 "test_psa_api": ["OFF"],
1279 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001280 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001281 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001282 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001283 },
1284 "common_params": _common_tfm_builder_cfg,
1285 "invalid": _common_tfm_invalid_configs + []
1286 }
1287
1288config_lpcxpresso55s69 = {"seed_params": {
1289 "tfm_platform": ["nxp/lpcxpresso55s69"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001290 "compiler": ["GCC_13_2"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001291 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001292 "test_regression": ["OFF", "RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001293 "test_psa_api": ["OFF"],
1294 "cmake_build_type": ["Relwithdebinfo"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001295 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001296 "profile": ["profile_medium"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001297 "extra_params": [""]
1298 },
1299 "common_params": _common_tfm_builder_cfg,
1300 "invalid": _common_tfm_invalid_configs + []
1301 }
1302
Xinyu Zhang38b76742021-11-11 13:57:56 +08001303config_nrf5340dk = {"seed_params": {
1304 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001305 "compiler": ["GCC_13_2"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001306 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001307 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001308 "test_psa_api": ["OFF"],
1309 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001310 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001311 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001312 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001313 },
1314 "common_params": _common_tfm_builder_cfg,
1315 "invalid": _common_tfm_invalid_configs + []
1316 }
1317
1318config_nrf9160dk = {"seed_params": {
1319 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001320 "compiler": ["GCC_13_2"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001321 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001322 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001323 "test_psa_api": ["OFF"],
1324 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001325 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001326 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001327 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001328 },
1329 "common_params": _common_tfm_builder_cfg,
1330 "invalid": _common_tfm_invalid_configs + []
1331 }
1332
1333config_m2351 = {"seed_params": {
1334 "tfm_platform": ["nuvoton/m2351"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001335 "compiler": ["GCC_13_2"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001336 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001337 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001338 "test_psa_api": ["OFF"],
1339 "cmake_build_type": ["Release"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001340 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001341 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001342 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001343 },
1344 "common_params": _common_tfm_builder_cfg,
1345 "invalid": _common_tfm_invalid_configs + []
1346 }
1347
1348config_m2354 = {"seed_params": {
1349 "tfm_platform": ["nuvoton/m2354"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001350 "compiler": ["GCC_13_2"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001351 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001352 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001353 "test_psa_api": ["OFF"],
1354 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001355 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001356 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001357 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001358 },
1359 "common_params": _common_tfm_builder_cfg,
1360 "invalid": _common_tfm_invalid_configs + []
1361 }
1362
Dávid Házi0bd447f2024-10-24 19:44:31 +00001363config_rp2350 = {"seed_params": {
1364 "tfm_platform": ["rpi/rp2350"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001365 "compiler": ["GCC_13_2"],
Dávid Házi0bd447f2024-10-24 19:44:31 +00001366 "isolation_level": ["2"],
1367 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
1368 "test_psa_api": ["OFF"],
1369 "cmake_build_type": ["RelWithDebInfo", "Release"],
1370 "with_bl2": [True],
Nicola Mazzucato4bad6c62024-10-28 14:42:17 +00001371 "profile": ["profile_medium"],
Dávid Házi0bd447f2024-10-24 19:44:31 +00001372 "extra_params": [""]
1373 },
1374 "common_params": _common_tfm_builder_cfg,
1375 "invalid": _common_tfm_invalid_configs + []
1376 }
1377
Jianliang Shen48704152023-10-17 17:06:00 +08001378config_mem_footprint = {"seed_params": {
1379 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001380 "compiler": ["ARMCLANG_6_21"],
Jianliang Shen48704152023-10-17 17:06:00 +08001381 "isolation_level": ["1"],
1382 "test_regression": ["OFF"],
1383 "test_psa_api": ["OFF"],
1384 "cmake_build_type": ["Minsizerel"],
1385 "with_bl2": [True],
1386 "profile": [""],
1387 "extra_params": [""]
1388 },
1389 "common_params": _common_tfm_builder_cfg,
1390 "valid": [
1391 # AN521_ARMCLANG_1_Minsizerel_BL2_SMALL_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001392 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Jianliang Shen48704152023-10-17 17:06:00 +08001393 "OFF", "OFF", "Minsizerel", True, "profile_small", "PSOFF"),
1394 # AN521_ARMCLANG_2_Minsizerel_BL2_MEDIUM_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001395 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Jianliang Shen48704152023-10-17 17:06:00 +08001396 "OFF", "OFF", "Minsizerel", True, "profile_medium", "PSOFF"),
1397 # AN521_ARMCLANG_3_Minsizerel_BL2_LARGE_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001398 ("arm/mps2/an521", "ARMCLANG_6_21", "3",
Jianliang Shen48704152023-10-17 17:06:00 +08001399 "OFF", "OFF", "Minsizerel", True, "profile_large", "PSOFF"),
1400 ],
1401 "invalid": _common_tfm_invalid_configs + []
1402 }
1403
Jianliang Shen5492f752023-07-27 15:59:01 +08001404config_prof = {"seed_params": {
1405 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001406 "compiler": ["GCC_13_2"],
Jianliang Shen5492f752023-07-27 15:59:01 +08001407 "isolation_level": ["1"],
1408 "test_regression": ["OFF"],
1409 "test_psa_api": ["OFF"],
1410 "cmake_build_type": ["Release"],
1411 "with_bl2": [True],
1412 "profile": [""],
1413 "extra_params": ["PROF"]
1414 },
1415 "common_params": _common_tfm_builder_cfg,
1416 "valid": [
1417 # AN521_GNUARM_1_Release_BL2_IPC_PROF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001418 ("arm/mps2/an521", "GCC_13_2", "1",
Jianliang Shen5492f752023-07-27 15:59:01 +08001419 "OFF", "OFF", "Release", True, "", "IPC, PROF"),
1420 # AN521_GNUARM_2_Release_BL2_PROF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001421 ("arm/mps2/an521", "GCC_13_2", "2",
Jianliang Shen5492f752023-07-27 15:59:01 +08001422 "OFF", "OFF", "Release", True, "", "PROF"),
1423 # AN521_GNUARM_3_Release_BL2_PROF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001424 ("arm/mps2/an521", "GCC_13_2", "3",
Jianliang Shen5492f752023-07-27 15:59:01 +08001425 "OFF", "OFF", "Release", True, "", "PROF"),
1426 ],
1427 "invalid": _common_tfm_invalid_configs + []
1428 }
1429
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001430# Config groups for debug
1431config_debug = {"seed_params": {
1432 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001433 "compiler": ["GCC_13_2"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001434 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001435 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001436 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001437 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001438 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001439 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001440 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001441 },
1442 "common_params": _common_tfm_builder_cfg,
1443 "invalid": _common_tfm_invalid_configs + []
1444 }
1445
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001446config_debug_regr = deepcopy(config_debug)
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001447config_debug_regr["seed_params"]["test_regression"] = ["RegBL2, RegS, RegNS"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001448
1449config_debug_PSA_API = {"seed_params": {
1450 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001451 "compiler": ["ARMCLANG_6_21"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001452 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001453 "test_regression": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001454 "test_psa_api": ["CRYPTO",
1455 "INITIAL_ATTESTATION",
1456 "STORAGE",
1457 "IPC"],
1458 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001459 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001460 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001461 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001462 },
1463 "common_params": _common_tfm_builder_cfg,
1464 "invalid": _common_tfm_invalid_configs + []
1465 }
1466
Matthew Dalzell06e8f692024-11-09 00:55:06 +00001467
1468
Karl Zhangaff558a2020-05-15 14:28:23 +01001469_builtin_configs = {
Xinyu Zhang5c4f2182023-10-31 16:26:45 +08001470 # per-patch test group
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001471 "pp_test": config_pp_test,
Karl Zhang14573bc2020-06-08 09:23:21 +08001472
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001473 # nightly test groups
1474 "nightly_test": config_nightly_test,
1475 "nightly_profile_s": config_profile_s,
1476 "nightly_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +08001477 "nightly_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001478 "nightly_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001479 "nightly_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001480 "nightly_cc_driver_psa": config_cc_driver_psa,
Antonio de Angelis9d7f0842025-06-27 22:23:51 +01001481 "nightly_cc3xx_runtime_enabled": config_cc3xx_runtime_enabled,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001482 "nightly_fp":config_fp,
1483 "nightly_psa_api": config_psa_api,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001484 "nightly_nsce": config_nsce,
1485 "nightly_mmio": config_mmio,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001486 "nightly_cs300_an547": config_cs300_an547,
1487 "nightly_cs300_an552": config_cs300_an552,
1488 "nightly_cs300_fvp": config_cs300_fvp,
Bence Balogh8731a092022-05-24 17:24:54 +02001489 "nightly_corstone310": config_corstone310,
Nicola Mazzucatobde5d432024-05-20 11:43:18 +01001490 "nightly_corstone310_pacbti" : config_corstone310_pacbti,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001491 "nightly_corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001492 "nightly_corstone320": config_corstone320,
Antonio de Angelis92ad2442023-08-07 15:00:32 +02001493 "nightly_corstone1000": config_corstone1000,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001494 #"nightly_rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001495 "nightly_rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301496 "nightly_rse_rdv3": config_rse_rdv3,
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001497 "nightly_rse_rdv3r1": config_rse_rdv3r1,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001498 "nightly_rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001499 "nightly_psoc64": config_psoc64,
Anton Komlev55c3c022024-03-05 16:24:17 +01001500 "nightly_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -08001501 "nightly_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001502 "nightly_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001503 "nightly_lpcxpresso55s69": config_lpcxpresso55s69,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001504 "nightly_rp2350": config_rp2350,
Matthew Dalzell06e8f692024-11-09 00:55:06 +00001505 "nightly_all_plat": config_all_plat,
Karl Zhang14573bc2020-06-08 09:23:21 +08001506
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001507 # release test groups
1508 "release_test": config_release_test,
1509 "release_profile_s": config_profile_s,
1510 "release_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +08001511 "release_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001512 "release_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001513 "release_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001514 "release_cc_driver_psa": config_cc_driver_psa,
1515 "release_fp": config_fp,
1516 "release_psa_api": config_psa_api,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001517 "release_nsce": config_nsce,
1518 "release_mmio": config_mmio,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001519 "release_cs300_an547": config_cs300_an547,
1520 "release_cs300_an552": config_cs300_an552,
1521 "release_cs300_fvp": config_cs300_fvp,
Bence Balogh8731a092022-05-24 17:24:54 +02001522 "release_corstone310": config_corstone310,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001523 "release_corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001524 "release_corstone320": config_corstone320,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001525 #"release_rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001526 "release_rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301527 "release_rse_rdv3": config_rse_rdv3,
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001528 "release_rse_rdv3r1": config_rse_rdv3r1,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001529 "release_rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001530 "release_psoc64": config_psoc64,
Anton Komlev55c3c022024-03-05 16:24:17 +01001531 "release_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -08001532 "release_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001533 "release_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001534 "release_lpcxpresso55s69": config_lpcxpresso55s69,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001535 "release_rp2350": config_rp2350,
Karl Zhang14573bc2020-06-08 09:23:21 +08001536
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001537 # code coverage test groups
1538 "coverage_profile_s": config_cov_profile_s,
1539 "coverage_profile_m": config_cov_profile_m,
1540 "coverage_profile_l": config_cov_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001541 "coverage_ipc_backend": config_cov_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001542 "coverage_nsce": config_cov_nsce,
1543 "coverage_mmio": config_cov_mmio,
Xinyu Zhang5f725ee2022-12-19 10:29:20 +08001544 "coverage_fp": config_cov_fp,
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001545
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +03001546 # MISRA analysis
1547 "misra": config_misra,
Paul Sokolovskya526e5d2023-06-15 09:49:13 +03001548 "misra_debug": config_misra_debug,
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +03001549
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001550 # platform groups
1551 "an521": config_an521,
1552 "an519": config_an519,
1553 "an524": config_an524,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001554 "cs300_an547": config_cs300_an547,
1555 "cs300_an552": config_cs300_an552,
1556 "cs300_fvp": config_cs300_fvp,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001557 "musca_b1": config_musca_b1,
Antonio de Angelis9a3bd142025-06-27 21:37:31 +01001558 "musca_b1_nsoff": config_musca_b1_nsoff,
Bence Balogh8731a092022-05-24 17:24:54 +02001559 "corstone310": config_corstone310,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001560 "corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001561 "corstone320": config_corstone320,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001562 #"rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001563 "rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301564 "rse_rdv3": config_rse_rdv3,
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001565 "rse_rdv3r1": config_rse_rdv3r1,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001566 "rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001567 "cypress_psoc64": config_psoc64,
Antonio de Angelis92ad2442023-08-07 15:00:32 +02001568 "corstone1000": config_corstone1000,
Anton Komlev55c3c022024-03-05 16:24:17 +01001569 "stm_stm32l562e_dk": config_stm32l562e_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001570 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001571 "stm_stm32h573i_dk": config_stm32h573i_dk,
Matthew Dalzelld5325dd2025-04-17 14:46:10 +01001572 "stm_stm32wba65i_dk" : config_stm32wba65i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001573 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1574 "nxp_lpcxpresso55s69": config_lpcxpresso55s69,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001575 "nordic_nrf5340dk": config_nrf5340dk,
1576 "nordic_nrf9160dk": config_nrf9160dk,
1577 "nuvoton_m2351": config_m2351,
1578 "nuvoton_m2354": config_m2354,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001579 "rp2350": config_rp2350,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001580
Bence Balogh79fda442022-10-14 18:01:37 +02001581 # config groups for tf-m-extras examples
1582 "example_vad": config_example_vad,
1583 "example_dma350_trigger": config_example_dma350_trigger,
Bence Balogh852f8bd2023-08-07 14:46:54 +02001584 "example_dma350_clcd": config_example_dma350_clcd,
Bence Balogh79fda442022-10-14 18:01:37 +02001585 "example_dma350_s": config_example_dma350_s,
Bence Baloghd23cbda2023-08-07 15:30:58 +02001586 "example_dma350_ns": config_example_dma350_ns,
Bence Balogh79fda442022-10-14 18:01:37 +02001587
Jianliang Shen48704152023-10-17 17:06:00 +08001588 # config groups for tf-m performance monitor
1589 "mem_footprint": config_mem_footprint,
Jianliang Shen5492f752023-07-27 15:59:01 +08001590 "profiling": config_prof,
1591
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001592 # config groups for debug
Dean Birch4c6ad622020-03-13 11:28:03 +00001593 "debug": config_debug,
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001594 "debug_regr": config_debug_regr,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001595 "debug_PSA_API": config_debug_PSA_API,
Nicola Mazzucatoe932bd72025-04-14 17:11:10 +01001596
1597 # groups for build-only
1598 "rse_build_only": config_rse_build_only,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001599 }
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001600
1601if __name__ == '__main__':
1602 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001603
Nicola Mazzucato935f9cb2025-05-16 17:21:07 +01001604 # Default behavior is to export reference config when called
Minos Galanakisea421232019-06-20 17:11:28 +01001605 _dir = os.getcwd()
1606 from utils import save_json
1607 for _cname, _cfg in _builtin_configs.items():
1608 _fname = os.path.join(_dir, _cname + ".json")
1609 print("Exporting config %s" % _fname)
1610 save_json(_fname, _cfg)