blob: fd041daf02884f5dd551c583f52305747c306706 [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;"
Harsimran Singh Tungala0b03722025-08-28 11:00:21 +000092 "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=59392;"
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 "
Raef Coles28948402025-07-28 10:34:50 +0100110 # dummy file with no data to keep the FVP happy
111 "touch %(ci_build_root_dir)s/spe/bin/sram.bin;"
Jackson Cooper-Driverc034b912025-08-06 15:06:36 +0100112 "fi;"
Raef Colesf9a20742024-06-06 10:47:49 +0100113 "srec_cat "
Jamie Fox9283cbc2024-04-22 13:40:01 +0100114 "%(ci_build_root_dir)s/spe/bin/bl1_1.bin -Binary -offset 0x0 "
115 "%(ci_build_root_dir)s/spe/bin/rom_dma_ics.bin -Binary -offset 0x1F000 "
116 "-o %(ci_build_root_dir)s/spe/bin/rom.bin -Binary;"
Jamie Fox82a91d02024-09-27 14:54:14 +0100117 "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 +0100118 "chmod 755 fiptool;"
Jamie Fox82a91d02024-09-27 14:54:14 +0100119 "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 +0100120 "./fiptool update "
Jamie Fox82a91d02024-09-27 14:54:14 +0100121 "--align 8192 --rse-bl2 %(ci_build_root_dir)s/spe/bin/bl2_signed.bin "
122 "--align 8192 --rse-s %(ci_build_root_dir)s/spe/bin/tfm_s_encrypted.bin "
123 "--align 8192 --rse-ns %(ci_build_root_dir)s/nspe/bin/tfm_ns_encrypted.bin "
124 "--align 8192 --rse-sic-tables-s %(ci_build_root_dir)s/spe/bin/tfm_s_sic_tables_signed.bin "
125 "--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 +0100126 "--out %(ci_build_root_dir)s/spe/bin/host_flash.bin "
127 "fip.bin"),
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000128 "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 +0100129 "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 +0000130 "else "
Raef Coles28948402025-07-28 10:34:50 +0100131 # dummy file with no data to keep the FVP happy
132 "touch %(ci_build_root_dir)s/spe/bin/sram.bin;"
Jackson Cooper-Driverc034b912025-08-06 15:06:36 +0100133 "fi;"
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000134 "srec_cat "
135 "%(ci_build_root_dir)s/spe/bin/bl1_1.bin -Binary -offset 0x0 "
136 "%(ci_build_root_dir)s/spe/bin/rom_dma_ics.bin -Binary -offset 0x1F000 "
137 "-o %(ci_build_root_dir)s/spe/bin/rom.bin -Binary;"
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000138 # fiptool in tc3 directory also compatible with tc4 fip.bin
139 "curl --fail --no-progress-meter --connect-timeout 10 --retry 6 -LS -o fiptool https://downloads.trustedfirmware.org/tf-m/rse/tc/tc3/fiptool;"
140 "chmod 755 fiptool;"
141 "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;"
142 "./fiptool update "
143 "--align 8192 --rse-bl2 %(ci_build_root_dir)s/spe/bin/bl2_signed.bin "
144 "--align 8192 --rse-s %(ci_build_root_dir)s/spe/bin/tfm_s_encrypted.bin "
145 "--align 8192 --rse-ns %(ci_build_root_dir)s/nspe/bin/tfm_ns_encrypted.bin "
146 "--align 8192 --rse-sic-tables-s %(ci_build_root_dir)s/spe/bin/tfm_s_sic_tables_signed.bin "
147 "--align 8192 --rse-sic-tables-ns %(ci_build_root_dir)s/nspe/bin/tfm_ns_sic_tables_signed.bin "
148 "--out %(ci_build_root_dir)s/spe/bin/host_flash.bin "
149 "fip.bin"),
Xinyu Zhang46b37182023-06-30 15:36:44 +0800150 "stm/stm32l562e_dk": ("echo 'STM32L562E-DK board post process';"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800151 "%(ci_build_root_dir)s/spe/api_ns/postbuild.sh;"
152 "pushd %(ci_build_root_dir)s/spe/api_ns;"
153 "mkdir -p image_signing/scripts ;"
154 "cp %(ci_build_root_dir)s/nspe/bin/tfm_ns_signed.bin image_signing/scripts ;"
155 "tar jcf ./bin/stm32l562e-dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh "
156 "bin/bl2.bin "
157 "bin/tfm_s_signed.bin "
158 "image_signing/scripts/tfm_ns_signed.bin ;"
Xinyu Zhang46b37182023-06-30 15:36:44 +0800159 "popd"),
160 "stm/b_u585i_iot02a": ("echo 'STM32U5 board post process';"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800161 "%(ci_build_root_dir)s/spe/api_ns/postbuild.sh;"
162 "pushd %(ci_build_root_dir)s/spe/api_ns;"
163 "mkdir -p image_signing/scripts ;"
164 "cp %(ci_build_root_dir)s/nspe/bin/tfm_ns_signed.bin image_signing/scripts ;"
165 "tar jcf ./bin/b_u585i_iot02a-tfm.tar.bz2 regression.sh TFM_UPDATE.sh "
166 "bin/bl2.bin "
167 "bin/tfm_s_signed.bin "
168 "image_signing/scripts/tfm_ns_signed.bin ;"
Xinyu Zhang46b37182023-06-30 15:36:44 +0800169 "popd"),
Anton Komlev4164ab62024-02-23 10:59:56 +0100170 "stm/stm32h573i_dk": ("echo 'STM32H573I-DK board post process';"
171 "%(ci_build_root_dir)s/spe/api_ns/postbuild.sh;"
172 "pushd %(ci_build_root_dir)s/spe/api_ns;"
173 "mkdir -p image_signing/scripts ;"
174 "cp %(ci_build_root_dir)s/nspe/bin/tfm_ns_signed.bin image_signing/scripts ;"
175 "tar jcf ./bin/stm32h573i_dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh "
176 "bin/bl2.bin "
177 "bin/tfm_s_signed.bin "
178 "image_signing/scripts/tfm_ns_signed.bin ;"
179 "popd"),
Matthew Dalzell0bdc0b22024-04-17 18:13:31 +0100180 "nxp/lpcxpresso55s69": ("echo 'LPCXpresso55S69 bo.ard post process\n';"
181 "mkdir -p %(codebase_root_dir)s/build/bin ;"
182 # Workaround for flash_JLink.py
183 "cp %(ci_build_root_dir)s/spe/bin/tfm_s.hex %(codebase_root_dir)s/build/bin ;"
184 "cp %(ci_build_root_dir)s/nspe/bin/tfm_ns.hex %(codebase_root_dir)s/build/bin ;"
185 "cd %(codebase_root_dir)s/build/bin; "
186 "rm -f flash.jlink; "
187 "if [ -f \"%(ci_build_root_dir)s/spe/bin/bl2.hex\" ]; then "
188 "echo r >> flash.jlink; "
189 "echo erase >> flash.jlink; "
190 "echo loadfile bl2.hex >> flash.jlink; "
191 "echo loadfile tfm_s_ns_signed.bin -0x8000 >> flash.jlink; "
192 "echo r >> flash.jlink; "
193 "echo go >> flash.jlink; "
194 "echo exit >> flash.jlink; "
195 "else "
196 "echo r >> flash.jlink; "
197 "echo erase >> flash.jlink; "
198 "echo loadfile tfm_s.hex >> flash.jlink; "
199 "echo loadfile tfm_ns.hex >> flash.jlink; "
200 "echo r >> flash.jlink; "
201 "echo go >> flash.jlink; "
202 "echo exit >> flash.jlink; "
203 "fi;"
204 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"
205 "tar jcf lpcxpresso55s69-tfm.tar.bz2 flash.jlink ${BIN_FILES};"
206 "mv lpcxpresso55s69-tfm.tar.bz2 %(ci_build_root_dir)s/nspe/bin ;"
207 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"),
Xinyu Zhang46b37182023-06-30 15:36:44 +0800208 "cypress/psoc64": ("echo 'Sign binaries for Cypress PSoC64 platform';"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800209 "pushd %(codebase_root_dir)s/;"
Matthew Dalzell0060be62025-08-18 16:47:10 +0100210 "cysecuretools "
Arthur She87602dc2022-02-06 14:42:18 -0800211 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
212 "--target cy8ckit-064s0s2-4343w "
213 "sign-image "
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800214 "--hex %(ci_build_root_dir)s/spe/bin/tfm_s.hex "
Arthur She87602dc2022-02-06 14:42:18 -0800215 "--image-type BOOT --image-id 1;"
Matthew Dalzell0060be62025-08-18 16:47:10 +0100216 "cysecuretools "
Arthur She87602dc2022-02-06 14:42:18 -0800217 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
218 "--target cy8ckit-064s0s2-4343w "
219 "sign-image "
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800220 "--hex %(ci_build_root_dir)s/nspe/bin/tfm_ns.hex "
Arthur She87602dc2022-02-06 14:42:18 -0800221 "--image-type BOOT --image-id 16;"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800222 "mv %(ci_build_root_dir)s/spe/bin/tfm_s.hex %(ci_build_root_dir)s/spe/bin/tfm_s_signed.hex;"
223 "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 +0800224 "popd")
Minos Galanakisea421232019-06-20 17:11:28 +0100225 },
226
227 # (Optional) If set will fail if those artefacts are missing post build
228 "required_artefacts": {"all": [
Antonio de Angelis9a3bd142025-06-27 21:37:31 +0100229 "%(ci_build_root_dir)s/spe/bin/"
230 "tfm_s.bin",
231 "%(ci_build_root_dir)s/nspe/"
232 "tfm_ns.bin"],
Mark Horvathef57baa2022-09-12 13:36:36 +0200233 "arm/musca_b1": [
Antonio de Angelis9a3bd142025-06-27 21:37:31 +0100234 "%(ci_build_root_dir)s/tfm.hex",
235 "%(ci_build_root_dir)s/spe/bin/"
236 "bl2.bin",
237 "%(ci_build_root_dir)s/spe/bin/"
238 "tfm_sign.bin"],
Jamie Fox82a91d02024-09-27 14:54:14 +0100239 "arm/rse/tc/tc3": [
Antonio de Angelis9a3bd142025-06-27 21:37:31 +0100240 "%(ci_build_root_dir)s/spe/bin/rom.bin",
Raef Coles28948402025-07-28 10:34:50 +0100241 "%(ci_build_root_dir)s/spe/bin/provisioning/combined_provisioning_message.bin",
Jackson Cooper-Driverc034b912025-08-06 15:06:36 +0100242 "%(ci_build_root_dir)s/spe/bin/sram.bin",
Antonio de Angelis9a3bd142025-06-27 21:37:31 +0100243 "%(ci_build_root_dir)s/spe/bin/host_flash.bin"],
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000244 "arm/rse/tc/tc4": [
Antonio de Angelis9a3bd142025-06-27 21:37:31 +0100245 "%(ci_build_root_dir)s/spe/bin/rom.bin",
Raef Coles28948402025-07-28 10:34:50 +0100246 "%(ci_build_root_dir)s/spe/bin/provisioning/combined_provisioning_message.bin",
Jackson Cooper-Driverc034b912025-08-06 15:06:36 +0100247 "%(ci_build_root_dir)s/spe/bin/sram.bin",
Antonio de Angelis9a3bd142025-06-27 21:37:31 +0100248 "%(ci_build_root_dir)s/spe/bin/host_flash.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100249 }
250}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100251
Xinyu Zhangb708f572020-09-15 11:43:46 +0800252# List of all build configs that are impossible under all circumstances
253_common_tfm_invalid_configs = [
Antonio de Angelis6ce8d722025-07-06 21:38:15 +0100254 # LR_CODE size exceeds limit on MUSCA_B1 with regression tests in Debug mode built with ARMCLANG
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300255 ("arm/musca_b1", "ARMCLANG_6_21", "*", "RegBL2, RegS, RegNS", "OFF", "Debug", "*", "", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800256 # Load range overlap on Musca for IPC Debug type: T895
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300257 ("arm/musca_b1", "ARMCLANG_6_21", "*", "*", "IPC", "Debug", "*", "*", "*"),
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300258 # FF does not support L3
Summer Qin379abb62022-10-08 16:41:54 +0800259 ("*", "*", "3", "*", "IPC", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800260 # Musca requires BL2
Summer Qin379abb62022-10-08 16:41:54 +0800261 ("arm/musca_b1", "*", "*", "*", "*", "*", False, "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800262 # Only AN521 and MUSCA_B1 support Isolation Level 3
Summer Qin379abb62022-10-08 16:41:54 +0800263 ("arm/mps2/an519", "*", "3", "*", "*", "*", "*", "*", "*"),
264 ("arm/mps3/an524", "*", "3", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800265 ]
266
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100267# Configure build manager to build several combinations
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800268# Config group for per-patch job
269config_pp_test = {"seed_params": {
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800270 # AN519_ARMCLANG_IPC_1_RegBL2_RegS_RegNS_Debug_BL2
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800271 "tfm_platform": ["arm/mps2/an519"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300272 "compiler": ["ARMCLANG_6_21"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800273 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800274 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800275 "test_psa_api": ["OFF"],
276 "cmake_build_type": ["Debug"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800277 "with_bl2": [True],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800278 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800279 "extra_params": [""]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800280 },
281 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800282 "valid": [
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800283 # AN519_ARMCLANG_2_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300284 ("arm/mps2/an519", "ARMCLANG_6_21", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800285 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800286 # AN519_GCC_2_RegBL2_RegS_RegNS_Release_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100287 ("arm/mps2/an519", "GCC_13_2", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800288 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
289 # AN519_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100290 ("arm/mps2/an519", "GCC_13_2", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800291 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
292 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_SMALL_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300293 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800294 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "profile_small", "PSOFF"),
295 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300296 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800297 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Chris Branddc827302024-10-11 15:20:17 -0700298 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_PSCLEAR
299 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
300 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", "PSCLEAR"),
301 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_PSLIMIT
302 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
303 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", "PSLIMIT"),
Jianliang Shen6984bef2023-07-25 10:36:56 +0800304 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_IPC
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300305 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Jianliang Shen6984bef2023-07-25 10:36:56 +0800306 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", "IPC"),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800307 # AN521_ARMCLANG_2_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300308 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800309 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
310 # AN521_ARMCLANG_3_RegBL2_RegS_RegNS_Minsizerel_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300311 ("arm/mps2/an521", "ARMCLANG_6_21", "3",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800312 "RegBL2, RegS, RegNS", "OFF", "Minsizerel", True, "", ""),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800313 # AN521_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100314 ("arm/mps2/an521", "GCC_13_2", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800315 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100316 # AN521_GCC_2_RegBL2_RegS_RegNS_Debug_BL2_MEDIUM
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100317 ("arm/mps2/an521", "GCC_13_2", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800318 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "profile_medium", ""),
319 # AN521_GCC_2_RegBL2_RegS_RegNS_Release_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100320 ("arm/mps2/an521", "GCC_13_2", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800321 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
322 # AN521_GCC_3_RegBL2_RegS_RegNS_Minsizerel_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100323 ("arm/mps2/an521", "GCC_13_2", "3",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800324 "RegBL2, RegS, RegNS", "OFF", "Minsizerel", True, "", ""),
Xinyu Zhang280f5ab2023-10-31 16:17:21 +0800325 # AN521_GCC_1_FF_Release_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100326 ("arm/mps2/an521", "GCC_13_2", "1",
Xinyu Zhang280f5ab2023-10-31 16:17:21 +0800327 "OFF", "IPC", "Release", True, "", ""),
328 # AN521_ARMCLANG_2_STORAGE_Debug_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300329 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Xinyu Zhang280f5ab2023-10-31 16:17:21 +0800330 "OFF", "STORAGE", "Debug", True, "", ""),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100331 # CS300_FVP_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100332 ("arm/mps3/corstone300/fvp", "GCC_13_2", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800333 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100334 # CS300_FVP_GCC_2_RegBL2_RegS_RegNS_Release_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100335 ("arm/mps3/corstone300/fvp", "GCC_13_2", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800336 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100337 # corstone310_ARMCLANG_1_Debug_BL2_PACBTI_STD
Nicola Mazzucatob4e19572024-08-21 12:26:14 +0100338 ("arm/mps3/corstone310/fvp", "ARMCLANG_6_21", "1",
Nicola Mazzucatob542f2b2024-05-23 10:13:43 +0100339 "OFF", "OFF", "Debug", True, "", "PACBTI_STD"),
Xinyu Zhang5c4f2182023-10-31 16:26:45 +0800340 # corstone1000_GCC_2_RegS_Debug_BL2_NSOFF_CS1K_TEST_FVP
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100341 ("arm/corstone1000", "GCC_13_2", "2",
Xinyu Zhang5c4f2182023-10-31 16:26:45 +0800342 "RegS", "OFF", "Debug", True, "", "NSOFF, CS1K_TEST, FVP"),
Matthew Dalzell397fb3c2024-06-21 11:03:38 +0100343 # corstone315_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2
344 ("arm/mps4/corstone315", "ARMCLANG_6_21", "1",
345 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Gergely Korcsák78a4d142024-08-05 07:41:36 +0200346 # corstone320_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2
347 ("arm/mps4/corstone320", "ARMCLANG_6_21", "1",
348 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800349 # MUSCA_B1_GCC_1_RegBL2_RegS_RegNS_Minsizerel_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100350 ("arm/musca_b1", "GCC_13_2", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800351 "RegBL2, RegS, RegNS", "OFF", "Minsizerel", True, "", ""),
Antonio de Angelis6ce8d722025-07-06 21:38:15 +0100352 # MUSCA_B1_GCC_1_RegBL2_RegS_RegNS_Release_BL2_CC_DRIVER_PSA
353 ("arm/musca_b1", "GCC_13_2", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800354 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "CC_DRIVER_PSA"),
Nicola Mazzucato8617ae92024-10-02 13:14:15 +0100355 # RSE_TC3_GCC_3_RegS_RegNS_Release_BL2_ATTESTATION_SCHEME_DPE
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100356 #("arm/rse/tc/tc3", "GCC_13_2", "3",
Antonio de Angelis78a01fc2025-02-06 11:11:25 +0000357 # "RegS, RegNS", "OFF", "Release", True, "", "ATTESTATION_SCHEME_DPE"),
Jamie Fox82a91d02024-09-27 14:54:14 +0100358 # RSE_TC3_GCC_2_RegBL1_1_Debug_BL2
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100359 #("arm/rse/tc/tc3", "GCC_13_2", "2",
Antonio de Angelis78a01fc2025-02-06 11:11:25 +0000360 # "RegBL1_1", "OFF", "Debug", True, "", ""),
Nicola Mazzucatob4763262024-09-26 12:39:06 +0100361 # RSE_TC3_GCC_2_Release_BL2_ATTESTATION_SCHEME_CCA
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100362 #("arm/rse/tc/tc3", "GCC_13_2", "2",
Antonio de Angelis78a01fc2025-02-06 11:11:25 +0000363 # "OFF", "OFF", "Release", True, "", "ATTESTATION_SCHEME_CCA"),
Tamas Ban33b2e382025-03-17 12:23:08 +0100364 # RSE_TC4_GCC_3_RegS_RegNS_Release_BL2_ATTESTATION_SCHEME_DPE
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100365 ("arm/rse/tc/tc4", "GCC_13_2", "3",
Tamas Ban33b2e382025-03-17 12:23:08 +0100366 "RegS, RegNS", "OFF", "Release", True, "", "ATTESTATION_SCHEME_DPE"),
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100367 # RSE_TC4_GCC_3_RegS_RegNS_Release_BL2_RSE_PROVISIONING_SYMMETRIC
368 ("arm/rse/tc/tc4", "GCC_13_2", "3",
369 "RegS, RegNS", "OFF", "Release", True, "", "RSE_PROVISIONING_SYMMETRIC"),
Jackson Cooper-Driver0ac3fe02025-02-20 09:23:03 +0000370 # RSE_TC4_GCC_2_Debug_BL2
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100371 ("arm/rse/tc/tc4", "GCC_13_2", "2",
Tamas Ban33b2e382025-03-17 12:23:08 +0100372 "OFF", "OFF", "Debug", True, "", ""),
Jackson Cooper-Driver042d0fa2025-03-03 12:45:54 +0000373 # RSE_TC4_GCC_2_RegBL1_1_Debug_BL2
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100374 ("arm/rse/tc/tc4", "GCC_13_2", "2",
Tamas Ban33b2e382025-03-17 12:23:08 +0100375 "RegBL1_1", "OFF", "Debug", True, "", ""),
Jackson Cooper-Driver2fb4d5a2025-07-16 15:55:10 +0100376 # RSE_TC4_GCC_2_RegBL1_1_Debug_BL2
377 ("arm/rse/tc/tc4", "GCC_13_2", "2",
378 "RegBL1_1", "OFF", "Debug", True, "", "RSE_RUN_BL1_1_TESTS_IN_PCI"),
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000379 # RSE_TC4_GCC_2_Release_BL2_ATTESTATION_SCHEME_CCA
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100380 ("arm/rse/tc/tc4", "GCC_13_2", "2",
Tamas Ban33b2e382025-03-17 12:23:08 +0100381 "OFF", "OFF", "Release", True, "", "ATTESTATION_SCHEME_CCA"),
Jackson Cooper-Drivere6e1db02025-05-16 10:45:20 +0100382 # RSE_TC4_GCC_2_RegS_RegNS_MinSizeRel_BL2_RSE_COPY_USE_ROM_LIB_IN_SRAM
Jackson Cooper-Driver79d46f52025-08-19 11:35:01 +0100383 # ("arm/rse/tc/tc4", "GCC_13_2", "2",
384 # "RegS, RegNS", "OFF", "MinSizeRel", True, "", "RSE_COPY_USE_ROM_LIB_IN_SRAM"),
Ishan Deshpande80d840e2025-01-09 18:46:56 +0530385 # RSE_RDV3_GCC_2_Release_BL2_NSOFF_CFG0
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100386 ("arm/rse/neoverse_rd/rdv3", "GCC_13_2", "2",
Jamie Fox9283cbc2024-04-22 13:40:01 +0100387 "OFF", "OFF", "Release", True, "", "NSOFF, CFG0"),
Nicola Mazzucato75b76af2025-02-07 15:20:59 +0000388 # RSE_RDV3R1_GCC_2_Release_BL2_NSOFF_CFG0
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100389 ("arm/rse/neoverse_rd/rdv3r1", "GCC_13_2", "2",
Nicola Mazzucato75b76af2025-02-07 15:20:59 +0000390 "OFF", "OFF", "Release", True, "", "NSOFF, CFG0"),
Ziad Elhanafy937333f2024-05-22 14:17:40 +0100391 # RSE_RD1AE_GCC_2_Release_BL2_NSOFF
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100392 ("arm/rse/automotive_rd/rd1ae", "GCC_13_2", "2",
Ziad Elhanafy937333f2024-05-22 14:17:40 +0100393 "OFF", "OFF", "Release", True, "", "NSOFF"),
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800394 # stm32l562e_dk_ARMCLANG_1_RegS_RegNS_Release_BL2_CRYPTO_OFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300395 ("stm/stm32l562e_dk", "ARMCLANG_6_21", "1",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800396 "RegS, RegNS", "OFF", "Release", True, "", "CRYPTO_OFF"),
397 # stm32l562e_dk_GCC_2_Release_BL2_CRYPTO_ON
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100398 ("stm/stm32l562e_dk", "GCC_13_2", "2",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800399 "OFF", "OFF", "Release", True, "", "CRYPTO_ON"),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100400 # stm32l562e_dk_GCC_3_RegBL2_RegS_RegNS_Release_BL2_CRYPTO_OFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100401 ("stm/stm32l562e_dk", "GCC_13_2", "3",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800402 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "CRYPTO_OFF"),
Arthur She4f08c152023-05-15 15:29:14 -0700403 # b_u585i_iot02a_GCC_1_RegS_RegNS_Release_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100404 ("stm/b_u585i_iot02a", "GCC_13_2", "1",
Arthur She4f08c152023-05-15 15:29:14 -0700405 "RegS, RegNS", "OFF", "Release", True, "", ""),
406 # b_u585i_iot02a_ARMCLANG_2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300407 ("stm/b_u585i_iot02a", "ARMCLANG_6_21", "2",
Arthur She4f08c152023-05-15 15:29:14 -0700408 "RegS, RegNS", "OFF", "Release", True, "", ""),
Anton Komlev4164ab62024-02-23 10:59:56 +0100409 # stm32h573i_dk_GCC_1_RegS_RegNS_Release_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100410 ("stm/stm32h573i_dk", "GCC_13_2", "1",
Anton Komlev4164ab62024-02-23 10:59:56 +0100411 "RegS, RegNS", "OFF", "Release", True, "", ""),
412 # stm32h573i_dk_ARMCLANG_2_RegS_RegNS_Release_BL2
413 ("stm/stm32h573i_dk", "ARMCLANG_6_21", "2",
414 "RegS, RegNS", "OFF", "Release", True, "", ""),
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800415 # psoc64_GCC_2_RegS_RegNS_Release
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100416 ("cypress/psoc64", "GCC_13_2", "2",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800417 "RegS, RegNS", "OFF", "Release", False, "", ""),
Nicola Mazzucato4bad6c62024-10-28 14:42:17 +0000418 # rp2350_GCC_2_RegBL2_RegS_RegNS_Release_BL2_MEDIUM
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100419 ("rpi/rp2350", "GCC_13_2", "2",
Nicola Mazzucato4bad6c62024-10-28 14:42:17 +0000420 "RegBL2, RegS, RegNS", "OFF", "Release", True, "profile_medium", ""),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800421 ],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800422 "invalid": _common_tfm_invalid_configs + []
423 }
424
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800425# Config group for nightly job
426config_nightly_test = {"seed_params": {
427 "tfm_platform": ["arm/mps2/an519",
428 "arm/mps2/an521",
429 "arm/mps3/an524",
Mark Horvathef57baa2022-09-12 13:36:36 +0200430 "arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100431 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800432 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800433 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800434 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800435 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800436 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800437 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800438 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100439 },
440 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800441 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100442 }
443
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000444config_all_plat = {
445 # corstone1000_GCC_2_RegS_Release_BL2_NSOFF_CS1K_TEST_FVP
446 "seed_params": {
447 "tfm_platform": ["arm/corstone1000"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100448 "compiler": ["GCC_13_2"],
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000449 "isolation_level": ["2"],
450 "test_regression": ["RegS"],
451 "test_psa_api": ["OFF"],
452 "cmake_build_type": ["Release"],
453 "with_bl2": [True],
454 "profile": [""],
455 "extra_params": ["NSOFF, CS1K_TEST, FVP"]
456 },
457 "common_params": _common_tfm_builder_cfg,
458 "valid": [
459 # AN521_GCC_3_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100460 ("arm/mps2/an521", "GCC_13_2", "3",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000461 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
462 # AN519_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100463 ("arm/mps2/an519", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000464 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
465 # AN524_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100466 ("arm/mps3/an524", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000467 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
468 # CS300_AN547_GCC_1_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100469 ("arm/mps3/corstone300/an547", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000470 "OFF", "OFF", "Debug", True, "", ""),
471 # CS300_AN552_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100472 ("arm/mps3/corstone300/an552", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000473 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
474 # CS300_FVP_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100475 ("arm/mps3/corstone300/fvp", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000476 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
477 # corstone310_GCC_1_Debug_BL2_NSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100478 ("arm/mps3/corstone310/fvp", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000479 "OFF", "OFF", "Debug", True, "", "NSOFF"),
480 # corstone315_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100481 ("arm/mps4/corstone315", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000482 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
483 # corstone320_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100484 ("arm/mps4/corstone320", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000485 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
486 # MUSCA_B1_GCC_3_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100487 ("arm/musca_b1", "GCC_13_2", "3",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000488 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000489 # RSE_TC3_GCC_3_RegS_RegNS_Debug_BL2_ATTESTATION_SCHEME_DPE
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100490 ("arm/rse/tc/tc3", "GCC_13_2", "3",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000491 "RegS, RegNS", "OFF", "Debug", True, "", "ATTESTATION_SCHEME_DPE"),
492 # psoc64_GCC_2_RegS_RegNS_Release
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100493 ("cypress/psoc64", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000494 "RegS, RegNS", "OFF", "Release", False, "", ""),
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000495 ## nrf5340dk_GCC_1_Debug_BL2_NSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100496 #("nordic_nrf/nrf5340dk_nrf5340_cpuapp", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000497 # "OFF", "OFF", "Release", True, "", "NSOFF"),
498 ## nrf9160dk_GCC_1_Debug_BL2_NSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100499 #("nordic_nrf/nrf9160dk_nrf9160", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000500 # "OFF", "OFF", "Release", True, "", "NSOFF"),
501 ## M2351_GCC_1_Release_BL2_NSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100502 #("nuvoton/m2351", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000503 # "OFF", "OFF", "Release", True, "", "NSOFF"),
Matthew Dalzell60386672025-08-19 14:51:35 +0100504 ## M2354_GCC_1_Debug_BL2_NSOFF
505 #("nuvoton/m2354", "GCC_13_2", "1",
506 # "OFF", "OFF", "Debug", True, "", "NSOFF"),
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000507 # lpcxpresso55s69_GCC_2_RegS_RegNS_Relwithdebinfo_MEDIUM
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100508 ("nxp/lpcxpresso55s69", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000509 "RegS, RegNS", "OFF", "Relwithdebinfo", False, "profile_medium", ""),
510 # rp2350_GCC_2_RegBL2_RegS_RegNS_RelWithDebInfo_BL2_MEDIUM
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100511 ("rpi/rp2350", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000512 "RegBL2, RegS, RegNS", "OFF", "Relwithdebinfo", True, "profile_medium", ""),
513 # b_u585i_iot02a_GCC_2_RegS_RegNS_Release_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100514 ("stm/b_u585i_iot02a", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000515 "RegS, RegNS", "OFF", "Release", True, "", ""),
516 # nucleo_l552ze_q_GCC_1_Release_BL2_NSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100517 ("stm/nucleo_l552ze_q", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000518 "OFF", "OFF", "Release", True, "", "NSOFF"),
519 # stm32h573i_dk_GCC_2_RegS_RegNS_Release_BL2
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100520 ("stm/stm32h573i_dk", "GCC_13_2", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000521 "RegS, RegNS", "OFF", "Release", True, "", ""),
522 # stm32l562e_dk_GCC_3_RegBL2_RegS_RegNS_Release_BL2_CRYPTO_OFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100523 ("stm/stm32l562e_dk", "GCC_13_2", "3",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000524 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "CRYPTO_OFF"),
525 # stm32l562e_dk_GCC_3_Release_BL2_CRYPTO_ON
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100526 ("stm/stm32l562e_dk", "GCC_13_2", "3",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000527 "OFF", "OFF", "Release", True, "", "CRYPTO_ON"),
Matthew Dalzell8fbf3562025-05-13 14:46:50 +0100528 # stm32wba65i_dk_GCC_2_RegS_RegNS_Release_MEDIUM
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100529 ("stm/stm32wba65i_dk", "GCC_13_2", "2",
Matthew Dalzell8fbf3562025-05-13 14:46:50 +0100530 "RegS, RegNS", "OFF", "Release", False, "profile_medium", ""),
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000531 ],
532 "invalid": _common_tfm_invalid_configs + []
533 }
534
535
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800536# Config group for release job
537config_release_test = {"seed_params": {
538 "tfm_platform": ["arm/mps2/an519",
539 "arm/mps2/an521",
540 "arm/mps3/an524",
Antonio de Angelis6ce8d722025-07-06 21:38:15 +0100541 "arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100542 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800543 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800544 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800545 "test_psa_api": ["OFF"],
546 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800547 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800548 "profile": [""],
David Vinczed78e2622022-11-24 15:04:00 +0100549 "extra_params": ["TEST_CBOR"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800550 },
551 "common_params": _common_tfm_builder_cfg,
Matthew Dalzell767a95b2025-08-18 14:35:39 +0100552 "valid": [],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800553 "invalid": _common_tfm_invalid_configs + []
554 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800555
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800556# Config groups for TF-M features
557config_profile_s = {"seed_params": {
David Huda27ae72022-03-28 15:32:19 +0800558 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100559 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
David Huda27ae72022-03-28 15:32:19 +0800560 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800561 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
David Huda27ae72022-03-28 15:32:19 +0800562 "test_psa_api": ["OFF"],
563 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
David Huda27ae72022-03-28 15:32:19 +0800564 "with_bl2": [True],
David Huda27ae72022-03-28 15:32:19 +0800565 "profile": ["profile_small"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800566 "extra_params": ["PSOFF"]
David Huda27ae72022-03-28 15:32:19 +0800567 },
568 "common_params": _common_tfm_builder_cfg,
David Huda27ae72022-03-28 15:32:19 +0800569 "invalid": _common_tfm_invalid_configs + [
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100570 ("arm/mps2/an519", "GCC_13_2", "*", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800571 "*", "Minsizerel", "*", "*", "*")
David Huda27ae72022-03-28 15:32:19 +0800572 ]
573 }
574
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800575config_profile_m = {"seed_params": {
576 "tfm_platform": ["arm/mps2/an519",
577 "arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200578 "arm/musca_b1"],
Nicola Mazzucato596fe7e2025-05-28 21:42:16 +0100579 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800580 "isolation_level": ["2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800581 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800582 "test_psa_api": ["OFF"],
583 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800584 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800585 "profile": ["profile_medium"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800586 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800587 },
588 "common_params": _common_tfm_builder_cfg,
589 "invalid": _common_tfm_invalid_configs + []
590 }
591
David Hu3d333762022-10-27 18:12:33 +0800592config_profile_m_arotless = {"seed_params": {
593 "tfm_platform": ["arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100594 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
David Hu3d333762022-10-27 18:12:33 +0800595 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800596 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
David Hu3d333762022-10-27 18:12:33 +0800597 "test_psa_api": ["OFF"],
598 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
599 "with_bl2": [True],
600 "profile": ["profile_medium_arotless"],
601 "extra_params": ["", "PSOFF"]
602 },
603 "common_params": _common_tfm_builder_cfg,
604 "invalid": _common_tfm_invalid_configs + []
605 }
606
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800607config_profile_l = {"seed_params": {
608 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100609 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800610 "isolation_level": ["3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800611 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800612 "test_psa_api": ["OFF"],
613 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800614 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800615 "profile": ["profile_large"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800616 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800617 },
618 "common_params": _common_tfm_builder_cfg,
619 "invalid": _common_tfm_invalid_configs + []
620 }
621
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800622config_ipc_backend = {"seed_params": {
623 "tfm_platform": ["arm/mps2/an519",
624 "arm/mps2/an521",
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800625 "arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100626 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800627 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800628 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800629 "test_psa_api": ["OFF"],
630 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
631 "with_bl2": [True],
632 "profile": [""],
633 "extra_params": ["IPC"]
634 },
635 "common_params": _common_tfm_builder_cfg,
636 "invalid": _common_tfm_invalid_configs + []
637 }
638
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800639config_cc_driver_psa = {"seed_params": {
Antonio de Angelis6ce8d722025-07-06 21:38:15 +0100640 "tfm_platform": ["arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100641 "compiler": ["GCC_13_2"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800642 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800643 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800644 "test_psa_api": ["OFF"],
645 "cmake_build_type": ["Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800646 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800647 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800648 "extra_params": ["CC_DRIVER_PSA"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800649 },
650 "common_params": _common_tfm_builder_cfg,
651 "invalid": _common_tfm_invalid_configs + []
652 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100653
Antonio de Angelis9d7f0842025-06-27 22:23:51 +0100654config_cc3xx_runtime_enabled = {"seed_params": {
Antonio de Angelis6ce8d722025-07-06 21:38:15 +0100655 "tfm_platform": ["arm/musca_b1"],
Antonio de Angelis9d7f0842025-06-27 22:23:51 +0100656 "compiler": ["GCC_13_2"],
657 "isolation_level": ["1"],
658 "test_regression": ["RegBL2, RegS, RegNS"],
659 "test_psa_api": ["OFF"],
660 "cmake_build_type": ["Release"],
661 "with_bl2": [True],
662 "profile": [""],
663 "extra_params": ["CC3XX_RUNTIME_ENABLED"]
664 },
665 "common_params": _common_tfm_builder_cfg,
666 "invalid": _common_tfm_invalid_configs + []
667 }
668
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800669config_fp = {"seed_params": {
Xinyu Zhange91567c2023-09-13 14:10:11 +0800670 "tfm_platform": ["arm/mps2/an521",
671 "arm/mps3/corstone300/an552",
672 "arm/mps3/corstone300/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100673 "compiler": ["GCC_13_2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800674 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800675 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800676 "test_psa_api": ["OFF"],
677 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800678 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800679 "profile": [""],
Mark Horvath93cb5fb2022-09-06 17:51:24 +0200680 "extra_params": ["FPOFF", "FPON", "FPON, LZOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800681 },
682 "common_params": _common_tfm_builder_cfg,
683 "invalid": _common_tfm_invalid_configs + []
684 }
Karl Zhangeffed972020-06-30 15:48:01 +0800685
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800686config_psa_api = {"seed_params": {
687 "tfm_platform": ["arm/mps2/an521",
Antonio de Angelis6ce8d722025-07-06 21:38:15 +0100688 "arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100689 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800690 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800691 "test_regression": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800692 "test_psa_api": ["IPC",
693 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800694 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800695 "STORAGE"],
Antonio de Angelis240495b2025-03-30 22:46:54 +0100696 "cmake_build_type": ["Release", "Minsizerel"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800697 "with_bl2": [True],
Antonio de Angelis240495b2025-03-30 22:46:54 +0100698 "profile": ["profile_large"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800699 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800700 },
701 "common_params": _common_tfm_builder_cfg,
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300702 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800703 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800704
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800705config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800706 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100707 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800708 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800709 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800710 "test_psa_api": ["OFF"],
711 "cmake_build_type": ["Debug"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800712 "with_bl2": [True],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800713 "profile": [""],
Xinyu Zhang67612992021-12-20 14:11:27 +0800714 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800715 },
716 "common_params": _common_tfm_builder_cfg,
717 "invalid": _common_tfm_invalid_configs + []
718 }
719
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800720config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800721 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100722 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800723 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800724 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800725 "test_psa_api": ["OFF"],
726 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800727 "with_bl2": [True],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800728 "profile": [""],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800729 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800730 },
731 "common_params": _common_tfm_builder_cfg,
732 "invalid": _common_tfm_invalid_configs + []
733 }
734
Bence Balogh79fda442022-10-14 18:01:37 +0200735# Config groups for TF-M examples
736config_example_vad = {"seed_params": {
Bence Balogh1aa8d582023-08-29 13:10:02 +0200737 "tfm_platform": ["arm/mps3/corstone300/an552"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100738 "compiler": ["GCC_13_2"],
Bence Balogh79fda442022-10-14 18:01:37 +0200739 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800740 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200741 "test_psa_api": ["OFF"],
742 "cmake_build_type": ["Release"],
743 "with_bl2": [True],
744 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200745 "extra_params": ["EXTRAS_EXAMPLE_VAD"]
Bence Balogh79fda442022-10-14 18:01:37 +0200746 },
747 "common_params": _common_tfm_builder_cfg,
748 "invalid": _common_tfm_invalid_configs + []
749 }
750
Bence Balogh852f8bd2023-08-07 14:46:54 +0200751config_example_dma350_clcd = {"seed_params": {
Bence Balogh79fda442022-10-14 18:01:37 +0200752 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100753 "compiler": ["GCC_13_2"],
Bence Balogh79fda442022-10-14 18:01:37 +0200754 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800755 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200756 "test_psa_api": ["OFF"],
757 "cmake_build_type": ["Release"],
758 "with_bl2": [True],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200759 "profile": ["profile_medium"],
760 "extra_params": ["EXTRAS_EXAMPLE_DMA350_CLCD"]
Bence Balogh79fda442022-10-14 18:01:37 +0200761 },
762 "common_params": _common_tfm_builder_cfg,
763 "invalid": _common_tfm_invalid_configs + []
764 }
765
766config_example_dma350_s = {"seed_params": {
767 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100768 "compiler": ["GCC_13_2"],
Bence Balogh79fda442022-10-14 18:01:37 +0200769 "isolation_level": ["1"],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200770 "test_regression": ["RegS"],
Bence Balogh79fda442022-10-14 18:01:37 +0200771 "test_psa_api": ["OFF"],
772 "cmake_build_type": ["Release"],
773 "with_bl2": [True],
774 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200775 "extra_params": ["EXTRAS_EXAMPLE_DMA350_S"]
Bence Balogh79fda442022-10-14 18:01:37 +0200776 },
777 "common_params": _common_tfm_builder_cfg,
778 "invalid": _common_tfm_invalid_configs + []
779 }
780
Bence Baloghd23cbda2023-08-07 15:30:58 +0200781config_example_dma350_ns = {"seed_params": {
782 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100783 "compiler": ["GCC_13_2"],
Bence Baloghd23cbda2023-08-07 15:30:58 +0200784 "isolation_level": ["1"],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200785 "test_regression": ["RegS, RegNS"],
Bence Baloghd23cbda2023-08-07 15:30:58 +0200786 "test_psa_api": ["OFF"],
787 "cmake_build_type": ["Release"],
788 "with_bl2": [True],
789 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200790 "extra_params": ["EXTRAS_EXAMPLE_DMA350_NS"]
Bence Baloghd23cbda2023-08-07 15:30:58 +0200791 },
792 "common_params": _common_tfm_builder_cfg,
793 "invalid": _common_tfm_invalid_configs + []
794 }
795
Bence Balogh79fda442022-10-14 18:01:37 +0200796config_example_dma350_trigger = {"seed_params": {
797 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100798 "compiler": ["GCC_13_2"],
Bence Balogh79fda442022-10-14 18:01:37 +0200799 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800800 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200801 "test_psa_api": ["OFF"],
802 "cmake_build_type": ["Release"],
803 "with_bl2": [True],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200804 "profile": ["profile_medium"],
805 "extra_params": ["EXTRAS_EXAMPLE_DMA350_TRIGGER"]
Bence Balogh79fda442022-10-14 18:01:37 +0200806 },
807 "common_params": _common_tfm_builder_cfg,
808 "invalid": _common_tfm_invalid_configs + []
809 }
810
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300811config_misra = {"seed_params": {
812 "tfm_platform": ["arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100813 "compiler": ["GCC_13_2"],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300814 "isolation_level": ["1"],
815 "test_regression": ["OFF"],
816 "test_psa_api": ["OFF"],
817 "cmake_build_type": ["Debug"],
818 "with_bl2": [True],
Matthew Dalzellb7895ae2025-04-10 12:30:01 +0100819 "profile": ["profile_small", "profile_medium_arotless"],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300820 "extra_params": ["PSOFF"]
821 },
822 "common_params": _common_tfm_builder_cfg,
Xinyu Zhange17926f2023-08-14 11:00:43 +0800823 "valid": [
824 # MUSCA_B1_GCC_2_Debug_BL2_MEDIUM_PSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100825 ("arm/musca_b1", "GCC_13_2", "2", "OFF",
Xinyu Zhange17926f2023-08-14 11:00:43 +0800826 "OFF", "Debug", True, "profile_medium", "PSOFF"),
827 # MUSCA_B1_GCC_3_Debug_BL2_LARGE_PSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100828 ("arm/musca_b1", "GCC_13_2", "3", "OFF",
Xinyu Zhange17926f2023-08-14 11:00:43 +0800829 "OFF", "Debug", True, "profile_large", "PSOFF"),
830 ],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300831 "invalid": _common_tfm_invalid_configs + []
832 }
833
Paul Sokolovskya526e5d2023-06-15 09:49:13 +0300834config_misra_debug = {"seed_params": {
835 "tfm_platform": ["arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100836 "compiler": ["GCC_13_2"],
Paul Sokolovskya526e5d2023-06-15 09:49:13 +0300837 "isolation_level": ["1"],
838 "test_regression": ["OFF"],
839 "test_psa_api": ["OFF"],
840 "cmake_build_type": ["Debug"],
841 "with_bl2": [True],
842 "profile": ["profile_small"],
843 "extra_params": ["PSOFF"]
844 },
845 "common_params": _common_tfm_builder_cfg,
846 "invalid": _common_tfm_invalid_configs + []
847 }
848
Matthew Dalzell735fd502025-08-11 15:48:38 +0100849config_erpc_test = {"seed_params": {
850 "tfm_platform": ["arm/mps2/an521"],
851 "compiler": ["GCC_13_2"],
852 "isolation_level": ["1"],
853 "test_regression": ["RegNS"],
854 "test_psa_api": ["OFF"],
855 "cmake_build_type": ["Debug"],
856 "with_bl2": [True],
857 "profile": [""],
858 "extra_params": ["ERPC"]
859 },
860 "common_params": _common_tfm_builder_cfg,
861 "invalid": _common_tfm_invalid_configs + []
862 }
863
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800864# Config groups for code coverage
865config_cov_profile_s = deepcopy(config_profile_s)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800866config_cov_profile_s["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100867config_cov_profile_s["seed_params"]["compiler"] = ["GCC_13_2"]
Xinyu Zhangbdc37e32022-04-06 17:47:44 +0800868
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800869config_cov_profile_m = deepcopy(config_profile_m)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800870config_cov_profile_m["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100871config_cov_profile_m["seed_params"]["compiler"] = ["GCC_13_2"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800872
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800873config_cov_profile_l = deepcopy(config_profile_l)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800874config_cov_profile_l["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100875config_cov_profile_l["seed_params"]["compiler"] = ["GCC_13_2"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800876
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800877config_cov_ipc_backend = deepcopy(config_ipc_backend)
878config_cov_ipc_backend["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100879config_cov_ipc_backend["seed_params"]["compiler"] = ["GCC_13_2"]
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800880
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800881config_cov_nsce = deepcopy(config_nsce)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800882config_cov_nsce["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100883config_cov_nsce["seed_params"]["compiler"] = ["GCC_13_2"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800884
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800885config_cov_mmio = deepcopy(config_mmio)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800886config_cov_mmio["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100887config_cov_mmio["seed_params"]["compiler"] = ["GCC_13_2"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800888
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800889config_cov_fp = deepcopy(config_fp)
890config_cov_fp["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100891config_cov_fp["seed_params"]["compiler"] = ["GCC_13_2"]
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800892
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800893# Config groups for platforms
894config_an519 = {"seed_params": {
Xinyu Zhangf25856a2021-06-17 14:06:46 +0800895 "tfm_platform": ["arm/mps2/an519"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100896 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800897 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800898 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800899 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800900 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800901 "with_bl2": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800902 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800903 "extra_params": ["", "NSOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800904 },
905 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800906 "invalid": _common_tfm_invalid_configs + []
907 }
908
909config_an521 = {"seed_params": {
910 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100911 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800912 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800913 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800914 "test_psa_api": ["OFF"],
915 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800916 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800917 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800918 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800919 },
920 "common_params": _common_tfm_builder_cfg,
921 "invalid": _common_tfm_invalid_configs + []
922 }
923
924config_an524 = {"seed_params": {
925 "tfm_platform": ["arm/mps3/an524"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100926 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800927 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800928 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800929 "test_psa_api": ["OFF"],
930 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800931 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800932 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800933 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800934 },
935 "common_params": _common_tfm_builder_cfg,
936 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800937 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000938
Bence Balogh1aa8d582023-08-29 13:10:02 +0200939config_cs300_an547 = {"seed_params": {
940 "tfm_platform": ["arm/mps3/corstone300/an547"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100941 "compiler": ["GCC_13_2"],
Bence Balogh1aa8d582023-08-29 13:10:02 +0200942 "isolation_level": ["1"],
943 "test_regression": ["OFF"],
944 "test_psa_api": ["OFF"],
945 "cmake_build_type": ["Debug"],
946 "with_bl2": [True],
947 "profile": [""],
948 "extra_params": [""]
949 },
950 "common_params": _common_tfm_builder_cfg,
951 "invalid": _common_tfm_invalid_configs + []
952 }
Xinyu Zhang38b76742021-11-11 13:57:56 +0800953
Bence Balogh1aa8d582023-08-29 13:10:02 +0200954config_cs300_an552 = {"seed_params": {
955 "tfm_platform": ["arm/mps3/corstone300/an552"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100956 "compiler": ["GCC_13_2"],
Bence Balogh1aa8d582023-08-29 13:10:02 +0200957 "isolation_level": ["1", "2"],
958 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
959 "test_psa_api": ["OFF"],
960 "cmake_build_type": ["Debug", "Release"],
961 "with_bl2": [True],
962 "profile": [""],
963 "extra_params": [""]
964 },
965 "common_params": _common_tfm_builder_cfg,
966 "invalid": _common_tfm_invalid_configs + []
967 }
968
969config_cs300_fvp = {"seed_params": {
970 "tfm_platform": ["arm/mps3/corstone300/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100971 "compiler": ["GCC_13_2"],
Bence Balogh1aa8d582023-08-29 13:10:02 +0200972 "isolation_level": ["1", "2"],
973 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
974 "test_psa_api": ["OFF"],
975 "cmake_build_type": ["Debug", "Release"],
976 "with_bl2": [True],
977 "profile": [""],
978 "extra_params": [""]
979 },
980 "common_params": _common_tfm_builder_cfg,
981 "invalid": _common_tfm_invalid_configs + []
982 }
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800983
984config_musca_b1 = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200985 "tfm_platform": ["arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100986 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800987 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800988 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800989 "test_psa_api": ["OFF"],
990 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800991 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800992 "profile": [""],
Antonio de Angelis9a3bd142025-06-27 21:37:31 +0100993 "extra_params": [""]
994 },
995 "common_params": _common_tfm_builder_cfg,
996 "invalid": _common_tfm_invalid_configs + []
997 }
998
999config_musca_b1_nsoff = {"seed_params": {
1000 "tfm_platform": ["arm/musca_b1"],
1001 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
1002 "isolation_level": ["1", "2", "3"],
1003 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
1004 "test_psa_api": ["OFF"],
1005 "cmake_build_type": ["Debug", "Release"],
1006 "with_bl2": [True],
1007 "profile": [""],
1008 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001009 },
1010 "common_params": _common_tfm_builder_cfg,
1011 "invalid": _common_tfm_invalid_configs + []
1012 }
1013
Bence Balogh8731a092022-05-24 17:24:54 +02001014config_corstone310 = {"seed_params": {
Bence Balogh23d8fa72022-11-08 12:16:23 +01001015 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001016 "compiler": ["GCC_13_2"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001017 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001018 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001019 "test_psa_api": ["OFF"],
1020 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001021 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001022 "profile": [""],
Gergely Korcsák6abc66c2025-04-29 14:55:33 +02001023 "extra_params": ["NSOFF", "PROV_TFM_DUMMY", "PROV_MCUBOOT_GEN_KEYS"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001024 },
1025 "common_params": _common_tfm_builder_cfg,
1026 "invalid": _common_tfm_invalid_configs + []
1027 }
1028
Nicola Mazzucatobde5d432024-05-20 11:43:18 +01001029config_corstone310_pacbti = {"seed_params": {
1030 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Nicola Mazzucatob4e19572024-08-21 12:26:14 +01001031 "compiler": ["ARMCLANG_6_21"],
Nicola Mazzucatobde5d432024-05-20 11:43:18 +01001032 "isolation_level": ["1"],
1033 "test_regression": ["OFF"],
1034 "test_psa_api": ["OFF"],
1035 "cmake_build_type": ["Debug"],
1036 "with_bl2": [True],
1037 "profile": [""],
1038 "extra_params": ["PACBTI_STD"]
1039 },
1040 "common_params": _common_tfm_builder_cfg,
1041 "invalid": _common_tfm_invalid_configs + []
1042 }
1043
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001044config_corstone315 = {"seed_params": {
1045 "tfm_platform": ["arm/mps4/corstone315"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001046 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001047 "isolation_level": ["1"],
Gergely Korcsáka403e222024-04-09 10:51:00 +02001048 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001049 "test_psa_api": ["OFF"],
1050 "cmake_build_type": ["Debug", "Release"],
1051 "with_bl2": [True],
1052 "profile": [""],
1053 "extra_params": [""]
1054 },
1055 "common_params": _common_tfm_builder_cfg,
1056 "invalid": _common_tfm_invalid_configs + []
1057 }
1058
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001059config_corstone320 = {"seed_params": {
1060 "tfm_platform": ["arm/mps4/corstone320"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001061 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001062 "isolation_level": ["1"],
1063 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
1064 "test_psa_api": ["OFF"],
1065 "cmake_build_type": ["Debug", "Release"],
1066 "with_bl2": [True],
1067 "profile": [""],
1068 "extra_params": [""]
1069 },
1070 "common_params": _common_tfm_builder_cfg,
1071 "invalid": _common_tfm_invalid_configs + []
1072 }
1073
Jamie Fox82a91d02024-09-27 14:54:14 +01001074config_rse_tc3 = {"seed_params": {
1075 "tfm_platform": ["arm/rse/tc/tc3"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001076 "compiler": ["GCC_13_2"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +01001077 "isolation_level": ["1", "2", "3"],
Jamie Fox9283cbc2024-04-22 13:40:01 +01001078 "test_regression": ["OFF", "RegS, RegNS"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001079 "test_psa_api": ["OFF"],
1080 "cmake_build_type": ["Debug", "Release"],
1081 "with_bl2": [True],
1082 "profile": [""],
Nicola Mazzucato551c5f32024-10-02 09:43:04 +01001083 "extra_params": ["ATTESTATION_SCHEME_DPE"]
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001084 },
1085 "common_params": _common_tfm_builder_cfg,
Jamie Fox9e2c2352023-01-13 15:11:23 +00001086 "invalid": _common_tfm_invalid_configs + [
Jamie Fox5ae6fa42024-02-19 15:11:00 +00001087 # BL2 is too large for RSE in Debug builds with tests
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001088 ("arm/rse/tc/tc3", "GCC_13_2", "*", "RegBL2, RegS, RegNS", "*",
Jamie Fox9e2c2352023-01-13 15:11:23 +00001089 "Debug", True, "*", "*"),
1090 ]
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001091 }
1092
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001093config_rse_tc4 = {"seed_params": {
1094 "tfm_platform": ["arm/rse/tc/tc4"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001095 "compiler": ["GCC_13_2"],
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001096 "isolation_level": ["1", "2", "3"],
Jackson Cooper-Driver042d0fa2025-03-03 12:45:54 +00001097 "test_regression": ["OFF", "RegS, RegNS", "RegBL1_1"],
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001098 "test_psa_api": ["OFF"],
1099 "cmake_build_type": ["Debug", "Release"],
1100 "with_bl2": [True],
1101 "profile": [""],
Jackson Cooper-Driver49350442025-05-29 14:13:45 +01001102 "extra_params": ["ATTESTATION_SCHEME_DPE", "RSE_PROVISIONING_SYMMETRIC"]
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001103 },
1104 "common_params": _common_tfm_builder_cfg,
1105 "invalid": _common_tfm_invalid_configs + [
1106 # BL2 is too large for RSE in Debug builds with tests
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001107 ("arm/rse/tc/tc4", "GCC_13_2", "*", "RegBL2, RegS, RegNS", "*",
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001108 "Debug", True, "*", "*"),
Jackson Cooper-Drivere6e1db02025-05-16 10:45:20 +01001109 ],
1110 "valid": [
Jackson Cooper-Driver79d46f52025-08-19 11:35:01 +01001111 # BL1_1 code is too large to copy into VM1 without overwriting
1112 # persistent data
1113 # ("arm/rse/tc/tc4", "*", "*", "*", "*",
1114 # "MinSizeRel", True, "*", "RSE_COPY_USE_ROM_LIB_IN_SRAM"),
Jackson Cooper-Driver2fb4d5a2025-07-16 15:55:10 +01001115 # RSE_RUN_BL1_1_TESTS_IN_PCI only relevant when running BL1_1 tests
1116 ("arm/rse/tc/tc4", "*", "*", "RegBL1_1", "*",
1117 "*", True, "*", "RSE_RUN_BL1_1_TESTS_IN_PCI"),
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001118 ]
1119 }
1120
Nicola Mazzucatoe932bd72025-04-14 17:11:10 +01001121# RSE-specific build-only cases.
1122# New cases should be better added in the valid section
1123# This group is only consumed in "tf-m-extra-build" CI job
1124config_rse_build_only = {"seed_params": {
1125 "tfm_platform": ["arm/rse/tc/tc4"],
1126 "compiler": ["ARMCLANG_6_21"],
1127 "isolation_level": ["2"],
1128 "test_regression": ["OFF"],
1129 "test_psa_api": ["OFF"],
1130 "cmake_build_type": ["Release"],
1131 "with_bl2": [True],
1132 "profile": [""],
1133 "extra_params": ["ATTESTATION_SCHEME_CCA, RSE_SUPPORT_ROM_LIB_RELOCATION_OFF"]
1134 },
1135 "common_params": _common_tfm_builder_cfg,
1136 "invalid": _common_tfm_invalid_configs + []
1137 }
1138
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301139config_rse_rdv3 = {"seed_params": {
Antonio de Angelis373187e2025-01-11 22:09:30 +00001140 "tfm_platform": ["arm/rse/neoverse_rd/rdv3"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001141 "compiler": ["GCC_13_2"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +01001142 "isolation_level": ["1", "2", "3"],
Joel Goddard2dd81a12024-01-23 15:10:08 +00001143 "test_regression": ["OFF"],
1144 "test_psa_api": ["OFF"],
1145 "cmake_build_type": ["Debug", "Release"],
1146 "with_bl2": [True],
1147 "profile": [""],
Jamie Fox9283cbc2024-04-22 13:40:01 +01001148 "extra_params": ["NSOFF, CFG0"]
Joel Goddard2dd81a12024-01-23 15:10:08 +00001149 },
1150 "common_params": _common_tfm_builder_cfg,
1151 "invalid": _common_tfm_invalid_configs + []
1152 }
1153
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001154config_rse_rdv3r1 = {"seed_params": {
1155 "tfm_platform": ["arm/rse/neoverse_rd/rdv3r1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001156 "compiler": ["GCC_13_2"],
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001157 "isolation_level": ["1", "2"],
1158 "test_regression": ["OFF"],
1159 "test_psa_api": ["OFF"],
1160 "cmake_build_type": ["Debug", "Release"],
1161 "with_bl2": [True],
1162 "profile": [""],
1163 "extra_params": ["NSOFF, CFG0"]
1164 },
1165 "common_params": _common_tfm_builder_cfg,
1166 "invalid": _common_tfm_invalid_configs + []
1167 }
1168
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001169config_rse_rd1ae = {"seed_params": {
1170 "tfm_platform": ["arm/rse/automotive_rd/rd1ae"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001171 "compiler": ["GCC_13_2"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +01001172 "isolation_level": ["1", "2", "3"],
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001173 "test_regression": ["OFF"],
1174 "test_psa_api": ["OFF"],
1175 "cmake_build_type": ["Debug", "Release"],
1176 "with_bl2": [True],
1177 "profile": [""],
1178 "extra_params": ["NSOFF"]
1179 },
1180 "common_params": _common_tfm_builder_cfg,
1181 "invalid": _common_tfm_invalid_configs + []
1182 }
1183
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001184config_psoc64 = {"seed_params": {
1185 "tfm_platform": ["cypress/psoc64"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001186 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001187 "isolation_level": ["1", "2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001188 "test_regression": ["RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001189 "test_psa_api": ["OFF"],
1190 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001191 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001192 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001193 "extra_params": [""]
1194 },
1195 "common_params": _common_tfm_builder_cfg,
1196 "invalid": _common_tfm_invalid_configs + []
1197 }
1198
1199config_corstone1000 = {"seed_params": {
1200 "tfm_platform": ["arm/corstone1000"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001201 "compiler": ["GCC_13_2"],
Xinyu Zhang5c4f2182023-10-31 16:26:45 +08001202 "isolation_level": ["1", "2"],
Emekcan Arasf8b39802023-04-24 10:15:22 +01001203 "test_regression": ["RegS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001204 "test_psa_api": ["OFF"],
Matthew Dalzellfc808ea2025-04-16 18:42:16 +01001205 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001206 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001207 "profile": [""],
Xinyu Zhang09acfbf2023-10-30 18:30:48 +08001208 "extra_params": ["NSOFF, CS1K_TEST, FVP", "NSOFF, CS1K_TEST, FPGA"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001209 },
1210 "common_params": _common_tfm_builder_cfg,
1211 "invalid": _common_tfm_invalid_configs + []
1212 }
1213
1214config_stm32l562e_dk = {"seed_params": {
1215 "tfm_platform": ["stm/stm32l562e_dk"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001216 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001217 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001218 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001219 "test_psa_api": ["OFF"],
1220 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001221 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001222 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001223 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
1224 },
1225 "common_params": _common_tfm_builder_cfg,
1226 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001227 # Oversize issue on config stm32l562e_dk_ARMCLANG_1_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001228 ("stm/stm32l562e_dk", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001229 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "*"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001230 # all other tests are off when CRYPTO is ON
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001231 ("stm/stm32l562e_dk", "*", "*", "RegBL2, RegS, RegNS", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +08001232 "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001233 # all other tests are ON when CRYPTO is OFF
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001234 ("stm/stm32l562e_dk", "*", "*", "OFF", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +08001235 "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001236 ]
1237 }
1238
1239config_b_u585i_iot02a = {"seed_params": {
1240 "tfm_platform": ["stm/b_u585i_iot02a"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001241 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Arthur She026ebb62023-02-08 18:47:39 -08001242 "isolation_level": ["1", "2"],
Arthur She96c6f772023-05-09 21:32:50 -07001243 "test_regression": ["OFF", "RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001244 "test_psa_api": ["OFF"],
1245 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001246 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001247 "profile": [""],
Arthur She026ebb62023-02-08 18:47:39 -08001248 "extra_params": [""]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001249 },
1250 "common_params": _common_tfm_builder_cfg,
1251 "invalid": _common_tfm_invalid_configs + []
1252 }
1253
Anton Komlev4164ab62024-02-23 10:59:56 +01001254config_stm32h573i_dk = {"seed_params": {
1255 "tfm_platform": ["stm/stm32h573i_dk"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001256 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Anton Komlev4164ab62024-02-23 10:59:56 +01001257 "isolation_level": ["1", "2"],
1258 "test_regression": ["OFF", "RegS, RegNS"],
1259 "test_psa_api": ["OFF"],
1260 "cmake_build_type": ["Release"],
1261 "with_bl2": [True],
1262 "profile": [""],
1263 "extra_params": [""]
1264 },
1265 "common_params": _common_tfm_builder_cfg,
1266 "invalid": _common_tfm_invalid_configs + []
1267 }
1268
Matthew Dalzelld5325dd2025-04-17 14:46:10 +01001269config_stm32wba65i_dk = {"seed_params": {
1270 "tfm_platform": ["stm/stm32wba65i_dk"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001271 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Matthew Dalzelld5325dd2025-04-17 14:46:10 +01001272 "isolation_level": ["1", "2"],
1273 "test_regression": ["OFF", "RegS, RegNS"],
1274 "test_psa_api": ["OFF"],
1275 "cmake_build_type": ["Release"],
1276 "with_bl2": [False],
1277 "profile": ["profile_small","profile_medium"],
1278 "extra_params": [""]
1279 },
1280 "common_params": _common_tfm_builder_cfg,
1281 "invalid": _common_tfm_invalid_configs + [
1282 ("stm/stm32wba65i_dk", "*", "2", "*",
1283 "*", "*", "*", "profile_small", "*"),
1284 ]
1285 }
1286
1287
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001288config_nucleo_l552ze_q = {"seed_params": {
1289 "tfm_platform": ["stm/nucleo_l552ze_q"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001290 "compiler": ["GCC_13_2"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001291 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001292 "test_regression": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001293 "test_psa_api": ["OFF"],
1294 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001295 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001296 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001297 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001298 },
1299 "common_params": _common_tfm_builder_cfg,
1300 "invalid": _common_tfm_invalid_configs + []
1301 }
1302
1303config_lpcxpresso55s69 = {"seed_params": {
1304 "tfm_platform": ["nxp/lpcxpresso55s69"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001305 "compiler": ["GCC_13_2"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001306 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001307 "test_regression": ["OFF", "RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001308 "test_psa_api": ["OFF"],
1309 "cmake_build_type": ["Relwithdebinfo"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001310 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001311 "profile": ["profile_medium"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001312 "extra_params": [""]
1313 },
1314 "common_params": _common_tfm_builder_cfg,
1315 "invalid": _common_tfm_invalid_configs + []
1316 }
1317
Xinyu Zhang38b76742021-11-11 13:57:56 +08001318config_nrf5340dk = {"seed_params": {
1319 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
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_nrf9160dk = {"seed_params": {
1334 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
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": ["Debug"],
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_m2351 = {"seed_params": {
1349 "tfm_platform": ["nuvoton/m2351"],
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": ["Release"],
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
1363config_m2354 = {"seed_params": {
1364 "tfm_platform": ["nuvoton/m2354"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001365 "compiler": ["GCC_13_2"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001366 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001367 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001368 "test_psa_api": ["OFF"],
1369 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001370 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001371 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001372 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001373 },
1374 "common_params": _common_tfm_builder_cfg,
1375 "invalid": _common_tfm_invalid_configs + []
1376 }
1377
Dávid Házi0bd447f2024-10-24 19:44:31 +00001378config_rp2350 = {"seed_params": {
1379 "tfm_platform": ["rpi/rp2350"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001380 "compiler": ["GCC_13_2"],
Dávid Házi0bd447f2024-10-24 19:44:31 +00001381 "isolation_level": ["2"],
1382 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
1383 "test_psa_api": ["OFF"],
1384 "cmake_build_type": ["RelWithDebInfo", "Release"],
1385 "with_bl2": [True],
Nicola Mazzucato4bad6c62024-10-28 14:42:17 +00001386 "profile": ["profile_medium"],
Dávid Házi0bd447f2024-10-24 19:44:31 +00001387 "extra_params": [""]
1388 },
1389 "common_params": _common_tfm_builder_cfg,
1390 "invalid": _common_tfm_invalid_configs + []
1391 }
1392
Jianliang Shen48704152023-10-17 17:06:00 +08001393config_mem_footprint = {"seed_params": {
1394 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001395 "compiler": ["ARMCLANG_6_21"],
Jianliang Shen48704152023-10-17 17:06:00 +08001396 "isolation_level": ["1"],
1397 "test_regression": ["OFF"],
1398 "test_psa_api": ["OFF"],
1399 "cmake_build_type": ["Minsizerel"],
1400 "with_bl2": [True],
1401 "profile": [""],
1402 "extra_params": [""]
1403 },
1404 "common_params": _common_tfm_builder_cfg,
1405 "valid": [
1406 # AN521_ARMCLANG_1_Minsizerel_BL2_SMALL_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001407 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Jianliang Shen48704152023-10-17 17:06:00 +08001408 "OFF", "OFF", "Minsizerel", True, "profile_small", "PSOFF"),
1409 # AN521_ARMCLANG_2_Minsizerel_BL2_MEDIUM_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001410 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Jianliang Shen48704152023-10-17 17:06:00 +08001411 "OFF", "OFF", "Minsizerel", True, "profile_medium", "PSOFF"),
1412 # AN521_ARMCLANG_3_Minsizerel_BL2_LARGE_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001413 ("arm/mps2/an521", "ARMCLANG_6_21", "3",
Jianliang Shen48704152023-10-17 17:06:00 +08001414 "OFF", "OFF", "Minsizerel", True, "profile_large", "PSOFF"),
1415 ],
1416 "invalid": _common_tfm_invalid_configs + []
1417 }
1418
Jianliang Shen5492f752023-07-27 15:59:01 +08001419config_prof = {"seed_params": {
1420 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001421 "compiler": ["GCC_13_2"],
Jianliang Shen5492f752023-07-27 15:59:01 +08001422 "isolation_level": ["1"],
1423 "test_regression": ["OFF"],
1424 "test_psa_api": ["OFF"],
1425 "cmake_build_type": ["Release"],
1426 "with_bl2": [True],
1427 "profile": [""],
1428 "extra_params": ["PROF"]
1429 },
1430 "common_params": _common_tfm_builder_cfg,
1431 "valid": [
1432 # AN521_GNUARM_1_Release_BL2_IPC_PROF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001433 ("arm/mps2/an521", "GCC_13_2", "1",
Jianliang Shen5492f752023-07-27 15:59:01 +08001434 "OFF", "OFF", "Release", True, "", "IPC, PROF"),
1435 # AN521_GNUARM_2_Release_BL2_PROF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001436 ("arm/mps2/an521", "GCC_13_2", "2",
Jianliang Shen5492f752023-07-27 15:59:01 +08001437 "OFF", "OFF", "Release", True, "", "PROF"),
1438 # AN521_GNUARM_3_Release_BL2_PROF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001439 ("arm/mps2/an521", "GCC_13_2", "3",
Jianliang Shen5492f752023-07-27 15:59:01 +08001440 "OFF", "OFF", "Release", True, "", "PROF"),
1441 ],
1442 "invalid": _common_tfm_invalid_configs + []
1443 }
1444
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001445# Config groups for debug
1446config_debug = {"seed_params": {
1447 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001448 "compiler": ["GCC_13_2"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001449 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001450 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001451 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001452 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001453 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001454 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001455 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001456 },
1457 "common_params": _common_tfm_builder_cfg,
1458 "invalid": _common_tfm_invalid_configs + []
1459 }
1460
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001461config_debug_regr = deepcopy(config_debug)
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001462config_debug_regr["seed_params"]["test_regression"] = ["RegBL2, RegS, RegNS"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001463
1464config_debug_PSA_API = {"seed_params": {
1465 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001466 "compiler": ["ARMCLANG_6_21"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001467 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001468 "test_regression": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001469 "test_psa_api": ["CRYPTO",
1470 "INITIAL_ATTESTATION",
1471 "STORAGE",
1472 "IPC"],
1473 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001474 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001475 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001476 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001477 },
1478 "common_params": _common_tfm_builder_cfg,
1479 "invalid": _common_tfm_invalid_configs + []
1480 }
1481
Matthew Dalzell06e8f692024-11-09 00:55:06 +00001482
1483
Karl Zhangaff558a2020-05-15 14:28:23 +01001484_builtin_configs = {
Xinyu Zhang5c4f2182023-10-31 16:26:45 +08001485 # per-patch test group
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001486 "pp_test": config_pp_test,
Karl Zhang14573bc2020-06-08 09:23:21 +08001487
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001488 # nightly test groups
1489 "nightly_test": config_nightly_test,
1490 "nightly_profile_s": config_profile_s,
1491 "nightly_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +08001492 "nightly_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001493 "nightly_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001494 "nightly_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001495 "nightly_cc_driver_psa": config_cc_driver_psa,
Antonio de Angelis9d7f0842025-06-27 22:23:51 +01001496 "nightly_cc3xx_runtime_enabled": config_cc3xx_runtime_enabled,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001497 "nightly_fp":config_fp,
1498 "nightly_psa_api": config_psa_api,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001499 "nightly_nsce": config_nsce,
1500 "nightly_mmio": config_mmio,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001501 "nightly_cs300_an547": config_cs300_an547,
1502 "nightly_cs300_an552": config_cs300_an552,
1503 "nightly_cs300_fvp": config_cs300_fvp,
Bence Balogh8731a092022-05-24 17:24:54 +02001504 "nightly_corstone310": config_corstone310,
Nicola Mazzucatobde5d432024-05-20 11:43:18 +01001505 "nightly_corstone310_pacbti" : config_corstone310_pacbti,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001506 "nightly_corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001507 "nightly_corstone320": config_corstone320,
Antonio de Angelis92ad2442023-08-07 15:00:32 +02001508 "nightly_corstone1000": config_corstone1000,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001509 #"nightly_rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001510 "nightly_rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301511 "nightly_rse_rdv3": config_rse_rdv3,
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001512 "nightly_rse_rdv3r1": config_rse_rdv3r1,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001513 "nightly_rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001514 "nightly_psoc64": config_psoc64,
Anton Komlev55c3c022024-03-05 16:24:17 +01001515 "nightly_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -08001516 "nightly_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001517 "nightly_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001518 "nightly_lpcxpresso55s69": config_lpcxpresso55s69,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001519 "nightly_rp2350": config_rp2350,
Matthew Dalzell06e8f692024-11-09 00:55:06 +00001520 "nightly_all_plat": config_all_plat,
Karl Zhang14573bc2020-06-08 09:23:21 +08001521
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001522 # release test groups
1523 "release_test": config_release_test,
1524 "release_profile_s": config_profile_s,
1525 "release_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +08001526 "release_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001527 "release_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001528 "release_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001529 "release_cc_driver_psa": config_cc_driver_psa,
1530 "release_fp": config_fp,
1531 "release_psa_api": config_psa_api,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001532 "release_nsce": config_nsce,
1533 "release_mmio": config_mmio,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001534 "release_cs300_an547": config_cs300_an547,
1535 "release_cs300_an552": config_cs300_an552,
1536 "release_cs300_fvp": config_cs300_fvp,
Bence Balogh8731a092022-05-24 17:24:54 +02001537 "release_corstone310": config_corstone310,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001538 "release_corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001539 "release_corstone320": config_corstone320,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001540 #"release_rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001541 "release_rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301542 "release_rse_rdv3": config_rse_rdv3,
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001543 "release_rse_rdv3r1": config_rse_rdv3r1,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001544 "release_rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001545 "release_psoc64": config_psoc64,
Anton Komlev55c3c022024-03-05 16:24:17 +01001546 "release_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -08001547 "release_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001548 "release_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001549 "release_lpcxpresso55s69": config_lpcxpresso55s69,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001550 "release_rp2350": config_rp2350,
Matthew Dalzell735fd502025-08-11 15:48:38 +01001551 "erpc_test" : config_erpc_test,
Karl Zhang14573bc2020-06-08 09:23:21 +08001552
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001553 # code coverage test groups
1554 "coverage_profile_s": config_cov_profile_s,
1555 "coverage_profile_m": config_cov_profile_m,
1556 "coverage_profile_l": config_cov_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001557 "coverage_ipc_backend": config_cov_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001558 "coverage_nsce": config_cov_nsce,
1559 "coverage_mmio": config_cov_mmio,
Xinyu Zhang5f725ee2022-12-19 10:29:20 +08001560 "coverage_fp": config_cov_fp,
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001561
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +03001562 # MISRA analysis
1563 "misra": config_misra,
Paul Sokolovskya526e5d2023-06-15 09:49:13 +03001564 "misra_debug": config_misra_debug,
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +03001565
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001566 # platform groups
1567 "an521": config_an521,
1568 "an519": config_an519,
1569 "an524": config_an524,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001570 "cs300_an547": config_cs300_an547,
1571 "cs300_an552": config_cs300_an552,
1572 "cs300_fvp": config_cs300_fvp,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001573 "musca_b1": config_musca_b1,
Antonio de Angelis9a3bd142025-06-27 21:37:31 +01001574 "musca_b1_nsoff": config_musca_b1_nsoff,
Bence Balogh8731a092022-05-24 17:24:54 +02001575 "corstone310": config_corstone310,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001576 "corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001577 "corstone320": config_corstone320,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001578 #"rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001579 "rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301580 "rse_rdv3": config_rse_rdv3,
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001581 "rse_rdv3r1": config_rse_rdv3r1,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001582 "rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001583 "cypress_psoc64": config_psoc64,
Antonio de Angelis92ad2442023-08-07 15:00:32 +02001584 "corstone1000": config_corstone1000,
Anton Komlev55c3c022024-03-05 16:24:17 +01001585 "stm_stm32l562e_dk": config_stm32l562e_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001586 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001587 "stm_stm32h573i_dk": config_stm32h573i_dk,
Matthew Dalzelld5325dd2025-04-17 14:46:10 +01001588 "stm_stm32wba65i_dk" : config_stm32wba65i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001589 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1590 "nxp_lpcxpresso55s69": config_lpcxpresso55s69,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001591 "nordic_nrf5340dk": config_nrf5340dk,
1592 "nordic_nrf9160dk": config_nrf9160dk,
1593 "nuvoton_m2351": config_m2351,
1594 "nuvoton_m2354": config_m2354,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001595 "rp2350": config_rp2350,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001596
Bence Balogh79fda442022-10-14 18:01:37 +02001597 # config groups for tf-m-extras examples
1598 "example_vad": config_example_vad,
1599 "example_dma350_trigger": config_example_dma350_trigger,
Bence Balogh852f8bd2023-08-07 14:46:54 +02001600 "example_dma350_clcd": config_example_dma350_clcd,
Bence Balogh79fda442022-10-14 18:01:37 +02001601 "example_dma350_s": config_example_dma350_s,
Bence Baloghd23cbda2023-08-07 15:30:58 +02001602 "example_dma350_ns": config_example_dma350_ns,
Bence Balogh79fda442022-10-14 18:01:37 +02001603
Jianliang Shen48704152023-10-17 17:06:00 +08001604 # config groups for tf-m performance monitor
1605 "mem_footprint": config_mem_footprint,
Jianliang Shen5492f752023-07-27 15:59:01 +08001606 "profiling": config_prof,
1607
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001608 # config groups for debug
Dean Birch4c6ad622020-03-13 11:28:03 +00001609 "debug": config_debug,
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001610 "debug_regr": config_debug_regr,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001611 "debug_PSA_API": config_debug_PSA_API,
Nicola Mazzucatoe932bd72025-04-14 17:11:10 +01001612
1613 # groups for build-only
1614 "rse_build_only": config_rse_build_only,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001615 }
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001616
1617if __name__ == '__main__':
1618 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001619
Nicola Mazzucato935f9cb2025-05-16 17:21:07 +01001620 # Default behavior is to export reference config when called
Minos Galanakisea421232019-06-20 17:11:28 +01001621 _dir = os.getcwd()
1622 from utils import save_json
1623 for _cname, _cfg in _builtin_configs.items():
1624 _fname = os.path.join(_dir, _cname + ".json")
1625 print("Exporting config %s" % _fname)
1626 save_json(_fname, _cfg)