blob: 5bcb225169e8f2f567992c4c68ac5206d5d14fd9 [file] [log] [blame]
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001#!/usr/bin/env python3
2
3""" builtin_configs.py:
4
5 Default configuration files used as reference """
6
7from __future__ import print_function
8
9__copyright__ = """
10/*
Raef Colesaac84bc2025-01-09 14:20:12 +000011 * SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010012 *
13 * SPDX-License-Identifier: BSD-3-Clause
14 *
15 */
16 """
Karl Zhang08681e62020-10-30 13:56:03 +080017
18__author__ = "tf-m@lists.trustedfirmware.org"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010019__project__ = "Trusted Firmware-M Open CI"
Xinyu Zhang06286a92021-07-22 14:00:51 +080020__version__ = "1.4.0"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010021
Paul Sokolovsky3e8fce02022-04-07 01:23:30 +030022from copy import deepcopy
23
24
Minos Galanakisea421232019-06-20 17:11:28 +010025# common parameters for tf-m build system
26# This configuration template will be passed into the tfm-builder module after
27# the template evaluation is converted to a command
28
29_common_tfm_builder_cfg = {
30 "config_type": "tf-m",
31 "codebase_root_dir": "tf-m",
32 # Order to which the variants are evaluated. This affects the name of
33 # variant configuration and the wildcard replacement logic in invalid
34 # configuration tuples
Xinyu Zhangb708f572020-09-15 11:43:46 +080035 "sort_order": ["tfm_platform",
Xinyu Zhang433771e2022-04-01 16:49:17 +080036 "compiler",
Xinyu Zhangb708f572020-09-15 11:43:46 +080037 "isolation_level",
38 "test_regression",
39 "test_psa_api",
Minos Galanakisea421232019-06-20 17:11:28 +010040 "cmake_build_type",
Xinyu Zhangb708f572020-09-15 11:43:46 +080041 "with_bl2",
Xinyu Zhang9fd74242020-10-22 11:30:50 +080042 "profile",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +080043 "extra_params"],
Minos Galanakisea421232019-06-20 17:11:28 +010044
45 # Keys for the templace will come from the combinations of parameters
46 # provided in the seed dictionary.
47
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080048 "spe_config_template": "cmake -G Ninja " + \
Jianliang Shen7905e5d2023-11-07 10:40:47 +080049 "-S %(spe_root_dir)s " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080050 "-B %(ci_build_root_dir)s/spe " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080051 "-DTFM_PLATFORM=%(tfm_platform)s " + \
Xinyu Zhang85588522023-10-31 13:58:04 +080052 "-DTFM_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(s_compiler)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080053 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
Xinyu Zhangb18ae742023-04-25 14:33:27 +080054 "%(test_regression)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080055 "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080056 "-DTEST_PSA_API=%(test_psa_api)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080057 "-DBL2=%(with_bl2)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080058 "-DTFM_PROFILE=%(profile)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080059 "%(extra_params)s " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080060 "-DCONFIG_TFM_SOURCE_PATH=%(codebase_root_dir)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080061 "-DMBEDCRYPTO_PATH=%(codebase_root_dir)s/../mbedtls " + \
62 "-DPSA_ARCH_TESTS_PATH=%(codebase_root_dir)s/../psa-arch-tests " + \
63 "-DMCUBOOT_PATH=%(codebase_root_dir)s/../mcuboot " + \
Xinyu Zhang1f21cb22023-06-26 17:56:49 +080064 "-DQCBOR_PATH=%(codebase_root_dir)s/../qcbor " + \
David Vinczefaa61ff2025-01-09 16:02:06 +000065 "-DT_COSE_PATH=%(codebase_root_dir)s/../t_cose " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080066 "-DTFM_EXTRAS_REPO_PATH=%(codebase_root_dir)s/../tf-m-extras ",
67
68 "nspe_config_template": "cmake -G Ninja " + \
Jianliang Shen7905e5d2023-11-07 10:40:47 +080069 "-S %(nspe_root_dir)s " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080070 "-B %(ci_build_root_dir)s/nspe " + \
71 "-DCONFIG_SPE_PATH=%(ci_build_root_dir)s/spe/api_ns " + \
Xinyu Zhang85588522023-10-31 13:58:04 +080072 "-DTFM_TOOLCHAIN_FILE=%(ci_build_root_dir)s/spe/api_ns/cmake/%(ns_compiler)s " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080073 "%(extra_params)s " + \
David Vinczefaa61ff2025-01-09 16:02:06 +000074 "-DQCBOR_PATH=%(codebase_root_dir)s/../qcbor " + \
75 "-DT_COSE_PATH=%(codebase_root_dir)s/../t_cose ",
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080076
77 # CMake build commands will be executed for every build.
78 "spe_cmake_build": "cmake --build %(ci_build_root_dir)s/spe -- install",
79 "nspe_cmake_build": "cmake --build %(ci_build_root_dir)s/nspe --",
Karl Zhangaff558a2020-05-15 14:28:23 +010080
Xinyu Zhang433771e2022-04-01 16:49:17 +080081 "set_compiler_path": "export PATH=$PATH:$%(compiler)s_PATH",
82
Minos Galanakisea421232019-06-20 17:11:28 +010083 # A small subset of string substitution params is allowed in commands.
84 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
85 # _tbm_target_platform_ with the paths set when building
86
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080087 "artifact_capture_rex": (r'%(ci_build_root_dir)s/nspe'
Minos Galanakisea421232019-06-20 17:11:28 +010088 r'/(\w+\.(?:axf|bin|hex))$'),
89
Xinyu Zhang46b37182023-06-30 15:36:44 +080090 # Keys will append extra commands when matching target_platform
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080091 "post_build": {"arm/corstone1000": ("dd conv=notrunc bs=1 if=%(ci_build_root_dir)s/spe/bin/bl1_1.bin of=%(ci_build_root_dir)s/spe/bin/bl1.bin seek=0;"
Bence Baloghb0580a62025-03-10 15:15:42 +010092 "dd conv=notrunc bs=1 if=%(ci_build_root_dir)s/spe/bin/bl1_provisioning_bundle.bin of=%(ci_build_root_dir)s/spe/bin/bl1.bin seek=51200;"
Xinyu Zhang09acfbf2023-10-30 18:30:48 +080093 "%(codebase_root_dir)s/platform/ext/target/arm/corstone1000/create-flash-image.sh %(ci_build_root_dir)s/spe/bin/ cs1000.bin;"),
Matthew Dalzell59ea18e2024-06-06 17:00:52 +010094 "arm/musca_b1": ("if [ -d \"%(ci_build_root_dir)s/nspe\" ]; then "
Matthew Dalzell4fd9e502024-04-19 11:04:26 +010095 "srec_cat "
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080096 "%(ci_build_root_dir)s/spe/bin/"
97 "bl2.bin "
98 "-Binary -offset 0xA000000 "
99 "-fill 0xFF 0xA000000 0xA020000 "
100 "%(ci_build_root_dir)s/nspe/"
101 "tfm_s_ns_signed.bin "
102 "-Binary -offset 0xA020000 "
103 "-fill 0xFF 0xA020000 0xA200000 "
104 "-o %(ci_build_root_dir)s/"
Matthew Dalzell4fd9e502024-04-19 11:04:26 +0100105 "spe/bin/tfm.hex -Intel;"
Matthew Dalzell4fd9e502024-04-19 11:04:26 +0100106 "fi;"),
Jamie Fox82a91d02024-09-27 14:54:14 +0100107 "arm/rse/tc/tc3": ("if [ -f \"%(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin\" ]; then "
Jackson Cooper-Driverc034b912025-08-06 15:06:36 +0100108 "cp %(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin %(ci_build_root_dir)s/spe/bin/sram.bin;"
Raef Colesf9a20742024-06-06 10:47:49 +0100109 "else "
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/;"
Arthur She87602dc2022-02-06 14:42:18 -0800210 "sudo /usr/local/bin/cysecuretools "
211 "--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;"
216 "sudo /usr/local/bin/cysecuretools "
217 "--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-Driver49350442025-05-29 14:13:45 +0100383 ("arm/rse/tc/tc4", "GCC_13_2", "2",
Jackson Cooper-Drivere6e1db02025-05-16 10:45:20 +0100384 "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"),
504 # M2354_GCC_1_Debug_BL2_NSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100505 ("nuvoton/m2354", "GCC_13_2", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000506 "OFF", "OFF", "Debug", True, "", "NSOFF"),
507 # 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,
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800552 "valid": [
553 # sanity test for GCC v11.2
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800554 # AN521_GCC_3_RegBL2_RegS_RegNS_Relwithdebinfo_BL2
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800555 ("arm/mps2/an521", "GCC_11_2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800556 "3", "RegBL2, RegS, RegNS", "OFF", "Relwithdebinfo",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800557 True, "", ""),
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800558 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800559 "invalid": _common_tfm_invalid_configs + []
560 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800561
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800562# Config groups for TF-M features
563config_profile_s = {"seed_params": {
David Huda27ae72022-03-28 15:32:19 +0800564 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100565 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
David Huda27ae72022-03-28 15:32:19 +0800566 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800567 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
David Huda27ae72022-03-28 15:32:19 +0800568 "test_psa_api": ["OFF"],
569 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
David Huda27ae72022-03-28 15:32:19 +0800570 "with_bl2": [True],
David Huda27ae72022-03-28 15:32:19 +0800571 "profile": ["profile_small"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800572 "extra_params": ["PSOFF"]
David Huda27ae72022-03-28 15:32:19 +0800573 },
574 "common_params": _common_tfm_builder_cfg,
David Huda27ae72022-03-28 15:32:19 +0800575 "invalid": _common_tfm_invalid_configs + [
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100576 ("arm/mps2/an519", "GCC_13_2", "*", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800577 "*", "Minsizerel", "*", "*", "*")
David Huda27ae72022-03-28 15:32:19 +0800578 ]
579 }
580
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800581config_profile_m = {"seed_params": {
582 "tfm_platform": ["arm/mps2/an519",
583 "arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200584 "arm/musca_b1"],
Nicola Mazzucato596fe7e2025-05-28 21:42:16 +0100585 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800586 "isolation_level": ["2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800587 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800588 "test_psa_api": ["OFF"],
589 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800590 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800591 "profile": ["profile_medium"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800592 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800593 },
594 "common_params": _common_tfm_builder_cfg,
595 "invalid": _common_tfm_invalid_configs + []
596 }
597
David Hu3d333762022-10-27 18:12:33 +0800598config_profile_m_arotless = {"seed_params": {
599 "tfm_platform": ["arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100600 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
David Hu3d333762022-10-27 18:12:33 +0800601 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800602 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
David Hu3d333762022-10-27 18:12:33 +0800603 "test_psa_api": ["OFF"],
604 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
605 "with_bl2": [True],
606 "profile": ["profile_medium_arotless"],
607 "extra_params": ["", "PSOFF"]
608 },
609 "common_params": _common_tfm_builder_cfg,
610 "invalid": _common_tfm_invalid_configs + []
611 }
612
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800613config_profile_l = {"seed_params": {
614 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100615 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800616 "isolation_level": ["3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800617 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800618 "test_psa_api": ["OFF"],
619 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800620 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800621 "profile": ["profile_large"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800622 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800623 },
624 "common_params": _common_tfm_builder_cfg,
625 "invalid": _common_tfm_invalid_configs + []
626 }
627
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800628config_ipc_backend = {"seed_params": {
629 "tfm_platform": ["arm/mps2/an519",
630 "arm/mps2/an521",
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800631 "arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100632 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800633 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800634 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800635 "test_psa_api": ["OFF"],
636 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
637 "with_bl2": [True],
638 "profile": [""],
639 "extra_params": ["IPC"]
640 },
641 "common_params": _common_tfm_builder_cfg,
642 "invalid": _common_tfm_invalid_configs + []
643 }
644
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800645config_cc_driver_psa = {"seed_params": {
Antonio de Angelis6ce8d722025-07-06 21:38:15 +0100646 "tfm_platform": ["arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100647 "compiler": ["GCC_13_2"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800648 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800649 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800650 "test_psa_api": ["OFF"],
651 "cmake_build_type": ["Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800652 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800653 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800654 "extra_params": ["CC_DRIVER_PSA"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800655 },
656 "common_params": _common_tfm_builder_cfg,
657 "invalid": _common_tfm_invalid_configs + []
658 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100659
Antonio de Angelis9d7f0842025-06-27 22:23:51 +0100660config_cc3xx_runtime_enabled = {"seed_params": {
Antonio de Angelis6ce8d722025-07-06 21:38:15 +0100661 "tfm_platform": ["arm/musca_b1"],
Antonio de Angelis9d7f0842025-06-27 22:23:51 +0100662 "compiler": ["GCC_13_2"],
663 "isolation_level": ["1"],
664 "test_regression": ["RegBL2, RegS, RegNS"],
665 "test_psa_api": ["OFF"],
666 "cmake_build_type": ["Release"],
667 "with_bl2": [True],
668 "profile": [""],
669 "extra_params": ["CC3XX_RUNTIME_ENABLED"]
670 },
671 "common_params": _common_tfm_builder_cfg,
672 "invalid": _common_tfm_invalid_configs + []
673 }
674
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800675config_fp = {"seed_params": {
Xinyu Zhange91567c2023-09-13 14:10:11 +0800676 "tfm_platform": ["arm/mps2/an521",
677 "arm/mps3/corstone300/an552",
678 "arm/mps3/corstone300/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100679 "compiler": ["GCC_13_2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800680 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800681 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800682 "test_psa_api": ["OFF"],
683 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800684 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800685 "profile": [""],
Mark Horvath93cb5fb2022-09-06 17:51:24 +0200686 "extra_params": ["FPOFF", "FPON", "FPON, LZOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800687 },
688 "common_params": _common_tfm_builder_cfg,
689 "invalid": _common_tfm_invalid_configs + []
690 }
Karl Zhangeffed972020-06-30 15:48:01 +0800691
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800692config_psa_api = {"seed_params": {
693 "tfm_platform": ["arm/mps2/an521",
Antonio de Angelis6ce8d722025-07-06 21:38:15 +0100694 "arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100695 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800696 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800697 "test_regression": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800698 "test_psa_api": ["IPC",
699 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800700 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800701 "STORAGE"],
Antonio de Angelis240495b2025-03-30 22:46:54 +0100702 "cmake_build_type": ["Release", "Minsizerel"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800703 "with_bl2": [True],
Antonio de Angelis240495b2025-03-30 22:46:54 +0100704 "profile": ["profile_large"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800705 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800706 },
707 "common_params": _common_tfm_builder_cfg,
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300708 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800709 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800710
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800711config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800712 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100713 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800714 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800715 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800716 "test_psa_api": ["OFF"],
717 "cmake_build_type": ["Debug"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800718 "with_bl2": [True],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800719 "profile": [""],
Xinyu Zhang67612992021-12-20 14:11:27 +0800720 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800721 },
722 "common_params": _common_tfm_builder_cfg,
723 "invalid": _common_tfm_invalid_configs + []
724 }
725
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800726config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800727 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100728 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800729 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800730 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800731 "test_psa_api": ["OFF"],
732 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800733 "with_bl2": [True],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800734 "profile": [""],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800735 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800736 },
737 "common_params": _common_tfm_builder_cfg,
738 "invalid": _common_tfm_invalid_configs + []
739 }
740
Bence Balogh79fda442022-10-14 18:01:37 +0200741# Config groups for TF-M examples
742config_example_vad = {"seed_params": {
Bence Balogh1aa8d582023-08-29 13:10:02 +0200743 "tfm_platform": ["arm/mps3/corstone300/an552"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100744 "compiler": ["GCC_13_2"],
Bence Balogh79fda442022-10-14 18:01:37 +0200745 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800746 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200747 "test_psa_api": ["OFF"],
748 "cmake_build_type": ["Release"],
749 "with_bl2": [True],
750 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200751 "extra_params": ["EXTRAS_EXAMPLE_VAD"]
Bence Balogh79fda442022-10-14 18:01:37 +0200752 },
753 "common_params": _common_tfm_builder_cfg,
754 "invalid": _common_tfm_invalid_configs + []
755 }
756
Bence Balogh852f8bd2023-08-07 14:46:54 +0200757config_example_dma350_clcd = {"seed_params": {
Bence Balogh79fda442022-10-14 18:01:37 +0200758 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100759 "compiler": ["GCC_13_2"],
Bence Balogh79fda442022-10-14 18:01:37 +0200760 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800761 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200762 "test_psa_api": ["OFF"],
763 "cmake_build_type": ["Release"],
764 "with_bl2": [True],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200765 "profile": ["profile_medium"],
766 "extra_params": ["EXTRAS_EXAMPLE_DMA350_CLCD"]
Bence Balogh79fda442022-10-14 18:01:37 +0200767 },
768 "common_params": _common_tfm_builder_cfg,
769 "invalid": _common_tfm_invalid_configs + []
770 }
771
772config_example_dma350_s = {"seed_params": {
773 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100774 "compiler": ["GCC_13_2"],
Bence Balogh79fda442022-10-14 18:01:37 +0200775 "isolation_level": ["1"],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200776 "test_regression": ["RegS"],
Bence Balogh79fda442022-10-14 18:01:37 +0200777 "test_psa_api": ["OFF"],
778 "cmake_build_type": ["Release"],
779 "with_bl2": [True],
780 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200781 "extra_params": ["EXTRAS_EXAMPLE_DMA350_S"]
Bence Balogh79fda442022-10-14 18:01:37 +0200782 },
783 "common_params": _common_tfm_builder_cfg,
784 "invalid": _common_tfm_invalid_configs + []
785 }
786
Bence Baloghd23cbda2023-08-07 15:30:58 +0200787config_example_dma350_ns = {"seed_params": {
788 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100789 "compiler": ["GCC_13_2"],
Bence Baloghd23cbda2023-08-07 15:30:58 +0200790 "isolation_level": ["1"],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200791 "test_regression": ["RegS, RegNS"],
Bence Baloghd23cbda2023-08-07 15:30:58 +0200792 "test_psa_api": ["OFF"],
793 "cmake_build_type": ["Release"],
794 "with_bl2": [True],
795 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200796 "extra_params": ["EXTRAS_EXAMPLE_DMA350_NS"]
Bence Baloghd23cbda2023-08-07 15:30:58 +0200797 },
798 "common_params": _common_tfm_builder_cfg,
799 "invalid": _common_tfm_invalid_configs + []
800 }
801
Bence Balogh79fda442022-10-14 18:01:37 +0200802config_example_dma350_trigger = {"seed_params": {
803 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100804 "compiler": ["GCC_13_2"],
Bence Balogh79fda442022-10-14 18:01:37 +0200805 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800806 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200807 "test_psa_api": ["OFF"],
808 "cmake_build_type": ["Release"],
809 "with_bl2": [True],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200810 "profile": ["profile_medium"],
811 "extra_params": ["EXTRAS_EXAMPLE_DMA350_TRIGGER"]
Bence Balogh79fda442022-10-14 18:01:37 +0200812 },
813 "common_params": _common_tfm_builder_cfg,
814 "invalid": _common_tfm_invalid_configs + []
815 }
816
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300817config_misra = {"seed_params": {
818 "tfm_platform": ["arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100819 "compiler": ["GCC_13_2"],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300820 "isolation_level": ["1"],
821 "test_regression": ["OFF"],
822 "test_psa_api": ["OFF"],
823 "cmake_build_type": ["Debug"],
824 "with_bl2": [True],
Matthew Dalzellb7895ae2025-04-10 12:30:01 +0100825 "profile": ["profile_small", "profile_medium_arotless"],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300826 "extra_params": ["PSOFF"]
827 },
828 "common_params": _common_tfm_builder_cfg,
Xinyu Zhange17926f2023-08-14 11:00:43 +0800829 "valid": [
830 # MUSCA_B1_GCC_2_Debug_BL2_MEDIUM_PSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100831 ("arm/musca_b1", "GCC_13_2", "2", "OFF",
Xinyu Zhange17926f2023-08-14 11:00:43 +0800832 "OFF", "Debug", True, "profile_medium", "PSOFF"),
833 # MUSCA_B1_GCC_3_Debug_BL2_LARGE_PSOFF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100834 ("arm/musca_b1", "GCC_13_2", "3", "OFF",
Xinyu Zhange17926f2023-08-14 11:00:43 +0800835 "OFF", "Debug", True, "profile_large", "PSOFF"),
836 ],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300837 "invalid": _common_tfm_invalid_configs + []
838 }
839
Paul Sokolovskya526e5d2023-06-15 09:49:13 +0300840config_misra_debug = {"seed_params": {
841 "tfm_platform": ["arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100842 "compiler": ["GCC_13_2"],
Paul Sokolovskya526e5d2023-06-15 09:49:13 +0300843 "isolation_level": ["1"],
844 "test_regression": ["OFF"],
845 "test_psa_api": ["OFF"],
846 "cmake_build_type": ["Debug"],
847 "with_bl2": [True],
848 "profile": ["profile_small"],
849 "extra_params": ["PSOFF"]
850 },
851 "common_params": _common_tfm_builder_cfg,
852 "invalid": _common_tfm_invalid_configs + []
853 }
854
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800855# Config groups for code coverage
856config_cov_profile_s = deepcopy(config_profile_s)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800857config_cov_profile_s["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100858config_cov_profile_s["seed_params"]["compiler"] = ["GCC_13_2"]
Xinyu Zhangbdc37e32022-04-06 17:47:44 +0800859
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800860config_cov_profile_m = deepcopy(config_profile_m)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800861config_cov_profile_m["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100862config_cov_profile_m["seed_params"]["compiler"] = ["GCC_13_2"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800863
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800864config_cov_profile_l = deepcopy(config_profile_l)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800865config_cov_profile_l["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100866config_cov_profile_l["seed_params"]["compiler"] = ["GCC_13_2"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800867
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800868config_cov_ipc_backend = deepcopy(config_ipc_backend)
869config_cov_ipc_backend["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100870config_cov_ipc_backend["seed_params"]["compiler"] = ["GCC_13_2"]
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800871
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800872config_cov_nsce = deepcopy(config_nsce)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800873config_cov_nsce["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100874config_cov_nsce["seed_params"]["compiler"] = ["GCC_13_2"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800875
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800876config_cov_mmio = deepcopy(config_mmio)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800877config_cov_mmio["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100878config_cov_mmio["seed_params"]["compiler"] = ["GCC_13_2"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800879
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800880config_cov_fp = deepcopy(config_fp)
881config_cov_fp["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100882config_cov_fp["seed_params"]["compiler"] = ["GCC_13_2"]
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800883
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800884# Config groups for platforms
885config_an519 = {"seed_params": {
Xinyu Zhangf25856a2021-06-17 14:06:46 +0800886 "tfm_platform": ["arm/mps2/an519"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100887 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800888 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800889 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800890 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800891 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800892 "with_bl2": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800893 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800894 "extra_params": ["", "NSOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800895 },
896 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800897 "invalid": _common_tfm_invalid_configs + []
898 }
899
900config_an521 = {"seed_params": {
901 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100902 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800903 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800904 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800905 "test_psa_api": ["OFF"],
906 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800907 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800908 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800909 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800910 },
911 "common_params": _common_tfm_builder_cfg,
912 "invalid": _common_tfm_invalid_configs + []
913 }
914
915config_an524 = {"seed_params": {
916 "tfm_platform": ["arm/mps3/an524"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100917 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800918 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800919 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800920 "test_psa_api": ["OFF"],
921 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800922 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800923 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800924 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800925 },
926 "common_params": _common_tfm_builder_cfg,
927 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800928 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000929
Bence Balogh1aa8d582023-08-29 13:10:02 +0200930config_cs300_an547 = {"seed_params": {
931 "tfm_platform": ["arm/mps3/corstone300/an547"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100932 "compiler": ["GCC_13_2"],
Bence Balogh1aa8d582023-08-29 13:10:02 +0200933 "isolation_level": ["1"],
934 "test_regression": ["OFF"],
935 "test_psa_api": ["OFF"],
936 "cmake_build_type": ["Debug"],
937 "with_bl2": [True],
938 "profile": [""],
939 "extra_params": [""]
940 },
941 "common_params": _common_tfm_builder_cfg,
942 "invalid": _common_tfm_invalid_configs + []
943 }
Xinyu Zhang38b76742021-11-11 13:57:56 +0800944
Bence Balogh1aa8d582023-08-29 13:10:02 +0200945config_cs300_an552 = {"seed_params": {
946 "tfm_platform": ["arm/mps3/corstone300/an552"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100947 "compiler": ["GCC_13_2"],
Bence Balogh1aa8d582023-08-29 13:10:02 +0200948 "isolation_level": ["1", "2"],
949 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
950 "test_psa_api": ["OFF"],
951 "cmake_build_type": ["Debug", "Release"],
952 "with_bl2": [True],
953 "profile": [""],
954 "extra_params": [""]
955 },
956 "common_params": _common_tfm_builder_cfg,
957 "invalid": _common_tfm_invalid_configs + []
958 }
959
960config_cs300_fvp = {"seed_params": {
961 "tfm_platform": ["arm/mps3/corstone300/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100962 "compiler": ["GCC_13_2"],
Bence Balogh1aa8d582023-08-29 13:10:02 +0200963 "isolation_level": ["1", "2"],
964 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
965 "test_psa_api": ["OFF"],
966 "cmake_build_type": ["Debug", "Release"],
967 "with_bl2": [True],
968 "profile": [""],
969 "extra_params": [""]
970 },
971 "common_params": _common_tfm_builder_cfg,
972 "invalid": _common_tfm_invalid_configs + []
973 }
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800974
975config_musca_b1 = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200976 "tfm_platform": ["arm/musca_b1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +0100977 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800978 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800979 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800980 "test_psa_api": ["OFF"],
981 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800982 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800983 "profile": [""],
Antonio de Angelis9a3bd142025-06-27 21:37:31 +0100984 "extra_params": [""]
985 },
986 "common_params": _common_tfm_builder_cfg,
987 "invalid": _common_tfm_invalid_configs + []
988 }
989
990config_musca_b1_nsoff = {"seed_params": {
991 "tfm_platform": ["arm/musca_b1"],
992 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
993 "isolation_level": ["1", "2", "3"],
994 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
995 "test_psa_api": ["OFF"],
996 "cmake_build_type": ["Debug", "Release"],
997 "with_bl2": [True],
998 "profile": [""],
999 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001000 },
1001 "common_params": _common_tfm_builder_cfg,
1002 "invalid": _common_tfm_invalid_configs + []
1003 }
1004
Bence Balogh8731a092022-05-24 17:24:54 +02001005config_corstone310 = {"seed_params": {
Bence Balogh23d8fa72022-11-08 12:16:23 +01001006 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001007 "compiler": ["GCC_13_2"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001008 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001009 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001010 "test_psa_api": ["OFF"],
1011 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001012 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001013 "profile": [""],
Gergely Korcsák6abc66c2025-04-29 14:55:33 +02001014 "extra_params": ["NSOFF", "PROV_TFM_DUMMY", "PROV_MCUBOOT_GEN_KEYS"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001015 },
1016 "common_params": _common_tfm_builder_cfg,
1017 "invalid": _common_tfm_invalid_configs + []
1018 }
1019
Nicola Mazzucatobde5d432024-05-20 11:43:18 +01001020config_corstone310_pacbti = {"seed_params": {
1021 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Nicola Mazzucatob4e19572024-08-21 12:26:14 +01001022 "compiler": ["ARMCLANG_6_21"],
Nicola Mazzucatobde5d432024-05-20 11:43:18 +01001023 "isolation_level": ["1"],
1024 "test_regression": ["OFF"],
1025 "test_psa_api": ["OFF"],
1026 "cmake_build_type": ["Debug"],
1027 "with_bl2": [True],
1028 "profile": [""],
1029 "extra_params": ["PACBTI_STD"]
1030 },
1031 "common_params": _common_tfm_builder_cfg,
1032 "invalid": _common_tfm_invalid_configs + []
1033 }
1034
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001035config_corstone315 = {"seed_params": {
1036 "tfm_platform": ["arm/mps4/corstone315"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001037 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001038 "isolation_level": ["1"],
Gergely Korcsáka403e222024-04-09 10:51:00 +02001039 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001040 "test_psa_api": ["OFF"],
1041 "cmake_build_type": ["Debug", "Release"],
1042 "with_bl2": [True],
1043 "profile": [""],
1044 "extra_params": [""]
1045 },
1046 "common_params": _common_tfm_builder_cfg,
1047 "invalid": _common_tfm_invalid_configs + []
1048 }
1049
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001050config_corstone320 = {"seed_params": {
1051 "tfm_platform": ["arm/mps4/corstone320"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001052 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001053 "isolation_level": ["1"],
1054 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
1055 "test_psa_api": ["OFF"],
1056 "cmake_build_type": ["Debug", "Release"],
1057 "with_bl2": [True],
1058 "profile": [""],
1059 "extra_params": [""]
1060 },
1061 "common_params": _common_tfm_builder_cfg,
1062 "invalid": _common_tfm_invalid_configs + []
1063 }
1064
Jamie Fox82a91d02024-09-27 14:54:14 +01001065config_rse_tc3 = {"seed_params": {
1066 "tfm_platform": ["arm/rse/tc/tc3"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001067 "compiler": ["GCC_13_2"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +01001068 "isolation_level": ["1", "2", "3"],
Jamie Fox9283cbc2024-04-22 13:40:01 +01001069 "test_regression": ["OFF", "RegS, RegNS"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001070 "test_psa_api": ["OFF"],
1071 "cmake_build_type": ["Debug", "Release"],
1072 "with_bl2": [True],
1073 "profile": [""],
Nicola Mazzucato551c5f32024-10-02 09:43:04 +01001074 "extra_params": ["ATTESTATION_SCHEME_DPE"]
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001075 },
1076 "common_params": _common_tfm_builder_cfg,
Jamie Fox9e2c2352023-01-13 15:11:23 +00001077 "invalid": _common_tfm_invalid_configs + [
Jamie Fox5ae6fa42024-02-19 15:11:00 +00001078 # BL2 is too large for RSE in Debug builds with tests
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001079 ("arm/rse/tc/tc3", "GCC_13_2", "*", "RegBL2, RegS, RegNS", "*",
Jamie Fox9e2c2352023-01-13 15:11:23 +00001080 "Debug", True, "*", "*"),
1081 ]
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001082 }
1083
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001084config_rse_tc4 = {"seed_params": {
1085 "tfm_platform": ["arm/rse/tc/tc4"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001086 "compiler": ["GCC_13_2"],
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001087 "isolation_level": ["1", "2", "3"],
Jackson Cooper-Driver042d0fa2025-03-03 12:45:54 +00001088 "test_regression": ["OFF", "RegS, RegNS", "RegBL1_1"],
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001089 "test_psa_api": ["OFF"],
1090 "cmake_build_type": ["Debug", "Release"],
1091 "with_bl2": [True],
1092 "profile": [""],
Jackson Cooper-Driver49350442025-05-29 14:13:45 +01001093 "extra_params": ["ATTESTATION_SCHEME_DPE", "RSE_PROVISIONING_SYMMETRIC"]
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001094 },
1095 "common_params": _common_tfm_builder_cfg,
1096 "invalid": _common_tfm_invalid_configs + [
1097 # BL2 is too large for RSE in Debug builds with tests
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001098 ("arm/rse/tc/tc4", "GCC_13_2", "*", "RegBL2, RegS, RegNS", "*",
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001099 "Debug", True, "*", "*"),
Jackson Cooper-Drivere6e1db02025-05-16 10:45:20 +01001100 ],
1101 "valid": [
1102 ("arm/rse/tc/tc4", "*", "*", "*", "*",
1103 "MinSizeRel", True, "*", "RSE_COPY_USE_ROM_LIB_IN_SRAM"),
Jackson Cooper-Driver2fb4d5a2025-07-16 15:55:10 +01001104 # RSE_RUN_BL1_1_TESTS_IN_PCI only relevant when running BL1_1 tests
1105 ("arm/rse/tc/tc4", "*", "*", "RegBL1_1", "*",
1106 "*", True, "*", "RSE_RUN_BL1_1_TESTS_IN_PCI"),
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001107 ]
1108 }
1109
Nicola Mazzucatoe932bd72025-04-14 17:11:10 +01001110# RSE-specific build-only cases.
1111# New cases should be better added in the valid section
1112# This group is only consumed in "tf-m-extra-build" CI job
1113config_rse_build_only = {"seed_params": {
1114 "tfm_platform": ["arm/rse/tc/tc4"],
1115 "compiler": ["ARMCLANG_6_21"],
1116 "isolation_level": ["2"],
1117 "test_regression": ["OFF"],
1118 "test_psa_api": ["OFF"],
1119 "cmake_build_type": ["Release"],
1120 "with_bl2": [True],
1121 "profile": [""],
1122 "extra_params": ["ATTESTATION_SCHEME_CCA, RSE_SUPPORT_ROM_LIB_RELOCATION_OFF"]
1123 },
1124 "common_params": _common_tfm_builder_cfg,
1125 "invalid": _common_tfm_invalid_configs + []
1126 }
1127
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301128config_rse_rdv3 = {"seed_params": {
Antonio de Angelis373187e2025-01-11 22:09:30 +00001129 "tfm_platform": ["arm/rse/neoverse_rd/rdv3"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001130 "compiler": ["GCC_13_2"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +01001131 "isolation_level": ["1", "2", "3"],
Joel Goddard2dd81a12024-01-23 15:10:08 +00001132 "test_regression": ["OFF"],
1133 "test_psa_api": ["OFF"],
1134 "cmake_build_type": ["Debug", "Release"],
1135 "with_bl2": [True],
1136 "profile": [""],
Jamie Fox9283cbc2024-04-22 13:40:01 +01001137 "extra_params": ["NSOFF, CFG0"]
Joel Goddard2dd81a12024-01-23 15:10:08 +00001138 },
1139 "common_params": _common_tfm_builder_cfg,
1140 "invalid": _common_tfm_invalid_configs + []
1141 }
1142
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001143config_rse_rdv3r1 = {"seed_params": {
1144 "tfm_platform": ["arm/rse/neoverse_rd/rdv3r1"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001145 "compiler": ["GCC_13_2"],
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001146 "isolation_level": ["1", "2"],
1147 "test_regression": ["OFF"],
1148 "test_psa_api": ["OFF"],
1149 "cmake_build_type": ["Debug", "Release"],
1150 "with_bl2": [True],
1151 "profile": [""],
1152 "extra_params": ["NSOFF, CFG0"]
1153 },
1154 "common_params": _common_tfm_builder_cfg,
1155 "invalid": _common_tfm_invalid_configs + []
1156 }
1157
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001158config_rse_rd1ae = {"seed_params": {
1159 "tfm_platform": ["arm/rse/automotive_rd/rd1ae"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001160 "compiler": ["GCC_13_2"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +01001161 "isolation_level": ["1", "2", "3"],
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001162 "test_regression": ["OFF"],
1163 "test_psa_api": ["OFF"],
1164 "cmake_build_type": ["Debug", "Release"],
1165 "with_bl2": [True],
1166 "profile": [""],
1167 "extra_params": ["NSOFF"]
1168 },
1169 "common_params": _common_tfm_builder_cfg,
1170 "invalid": _common_tfm_invalid_configs + []
1171 }
1172
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001173config_psoc64 = {"seed_params": {
1174 "tfm_platform": ["cypress/psoc64"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001175 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001176 "isolation_level": ["1", "2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001177 "test_regression": ["RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001178 "test_psa_api": ["OFF"],
1179 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001180 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001181 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001182 "extra_params": [""]
1183 },
1184 "common_params": _common_tfm_builder_cfg,
1185 "invalid": _common_tfm_invalid_configs + []
1186 }
1187
1188config_corstone1000 = {"seed_params": {
1189 "tfm_platform": ["arm/corstone1000"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001190 "compiler": ["GCC_13_2"],
Xinyu Zhang5c4f2182023-10-31 16:26:45 +08001191 "isolation_level": ["1", "2"],
Emekcan Arasf8b39802023-04-24 10:15:22 +01001192 "test_regression": ["RegS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001193 "test_psa_api": ["OFF"],
Matthew Dalzellfc808ea2025-04-16 18:42:16 +01001194 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001195 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001196 "profile": [""],
Xinyu Zhang09acfbf2023-10-30 18:30:48 +08001197 "extra_params": ["NSOFF, CS1K_TEST, FVP", "NSOFF, CS1K_TEST, FPGA"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001198 },
1199 "common_params": _common_tfm_builder_cfg,
1200 "invalid": _common_tfm_invalid_configs + []
1201 }
1202
1203config_stm32l562e_dk = {"seed_params": {
1204 "tfm_platform": ["stm/stm32l562e_dk"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001205 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001206 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001207 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001208 "test_psa_api": ["OFF"],
1209 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001210 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001211 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001212 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
1213 },
1214 "common_params": _common_tfm_builder_cfg,
1215 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001216 # Oversize issue on config stm32l562e_dk_ARMCLANG_1_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001217 ("stm/stm32l562e_dk", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001218 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "*"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001219 # all other tests are off when CRYPTO is ON
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001220 ("stm/stm32l562e_dk", "*", "*", "RegBL2, RegS, RegNS", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +08001221 "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001222 # all other tests are ON when CRYPTO is OFF
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001223 ("stm/stm32l562e_dk", "*", "*", "OFF", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +08001224 "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001225 ]
1226 }
1227
1228config_b_u585i_iot02a = {"seed_params": {
1229 "tfm_platform": ["stm/b_u585i_iot02a"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001230 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Arthur She026ebb62023-02-08 18:47:39 -08001231 "isolation_level": ["1", "2"],
Arthur She96c6f772023-05-09 21:32:50 -07001232 "test_regression": ["OFF", "RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001233 "test_psa_api": ["OFF"],
1234 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001235 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001236 "profile": [""],
Arthur She026ebb62023-02-08 18:47:39 -08001237 "extra_params": [""]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001238 },
1239 "common_params": _common_tfm_builder_cfg,
1240 "invalid": _common_tfm_invalid_configs + []
1241 }
1242
Anton Komlev4164ab62024-02-23 10:59:56 +01001243config_stm32h573i_dk = {"seed_params": {
1244 "tfm_platform": ["stm/stm32h573i_dk"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001245 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Anton Komlev4164ab62024-02-23 10:59:56 +01001246 "isolation_level": ["1", "2"],
1247 "test_regression": ["OFF", "RegS, RegNS"],
1248 "test_psa_api": ["OFF"],
1249 "cmake_build_type": ["Release"],
1250 "with_bl2": [True],
1251 "profile": [""],
1252 "extra_params": [""]
1253 },
1254 "common_params": _common_tfm_builder_cfg,
1255 "invalid": _common_tfm_invalid_configs + []
1256 }
1257
Matthew Dalzelld5325dd2025-04-17 14:46:10 +01001258config_stm32wba65i_dk = {"seed_params": {
1259 "tfm_platform": ["stm/stm32wba65i_dk"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001260 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Matthew Dalzelld5325dd2025-04-17 14:46:10 +01001261 "isolation_level": ["1", "2"],
1262 "test_regression": ["OFF", "RegS, RegNS"],
1263 "test_psa_api": ["OFF"],
1264 "cmake_build_type": ["Release"],
1265 "with_bl2": [False],
1266 "profile": ["profile_small","profile_medium"],
1267 "extra_params": [""]
1268 },
1269 "common_params": _common_tfm_builder_cfg,
1270 "invalid": _common_tfm_invalid_configs + [
1271 ("stm/stm32wba65i_dk", "*", "2", "*",
1272 "*", "*", "*", "profile_small", "*"),
1273 ]
1274 }
1275
1276
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001277config_nucleo_l552ze_q = {"seed_params": {
1278 "tfm_platform": ["stm/nucleo_l552ze_q"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001279 "compiler": ["GCC_13_2"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001280 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001281 "test_regression": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001282 "test_psa_api": ["OFF"],
1283 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001284 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001285 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001286 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001287 },
1288 "common_params": _common_tfm_builder_cfg,
1289 "invalid": _common_tfm_invalid_configs + []
1290 }
1291
1292config_lpcxpresso55s69 = {"seed_params": {
1293 "tfm_platform": ["nxp/lpcxpresso55s69"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001294 "compiler": ["GCC_13_2"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001295 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001296 "test_regression": ["OFF", "RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001297 "test_psa_api": ["OFF"],
1298 "cmake_build_type": ["Relwithdebinfo"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001299 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001300 "profile": ["profile_medium"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001301 "extra_params": [""]
1302 },
1303 "common_params": _common_tfm_builder_cfg,
1304 "invalid": _common_tfm_invalid_configs + []
1305 }
1306
Xinyu Zhang38b76742021-11-11 13:57:56 +08001307config_nrf5340dk = {"seed_params": {
1308 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001309 "compiler": ["GCC_13_2"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001310 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001311 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001312 "test_psa_api": ["OFF"],
1313 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001314 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001315 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001316 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001317 },
1318 "common_params": _common_tfm_builder_cfg,
1319 "invalid": _common_tfm_invalid_configs + []
1320 }
1321
1322config_nrf9160dk = {"seed_params": {
1323 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001324 "compiler": ["GCC_13_2"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001325 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001326 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001327 "test_psa_api": ["OFF"],
1328 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001329 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001330 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001331 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001332 },
1333 "common_params": _common_tfm_builder_cfg,
1334 "invalid": _common_tfm_invalid_configs + []
1335 }
1336
1337config_m2351 = {"seed_params": {
1338 "tfm_platform": ["nuvoton/m2351"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001339 "compiler": ["GCC_13_2"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001340 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001341 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001342 "test_psa_api": ["OFF"],
1343 "cmake_build_type": ["Release"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001344 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001345 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001346 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001347 },
1348 "common_params": _common_tfm_builder_cfg,
1349 "invalid": _common_tfm_invalid_configs + []
1350 }
1351
1352config_m2354 = {"seed_params": {
1353 "tfm_platform": ["nuvoton/m2354"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001354 "compiler": ["GCC_13_2"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001355 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001356 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001357 "test_psa_api": ["OFF"],
1358 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001359 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001360 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001361 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001362 },
1363 "common_params": _common_tfm_builder_cfg,
1364 "invalid": _common_tfm_invalid_configs + []
1365 }
1366
Dávid Házi0bd447f2024-10-24 19:44:31 +00001367config_rp2350 = {"seed_params": {
1368 "tfm_platform": ["rpi/rp2350"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001369 "compiler": ["GCC_13_2"],
Dávid Házi0bd447f2024-10-24 19:44:31 +00001370 "isolation_level": ["2"],
1371 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
1372 "test_psa_api": ["OFF"],
1373 "cmake_build_type": ["RelWithDebInfo", "Release"],
1374 "with_bl2": [True],
Nicola Mazzucato4bad6c62024-10-28 14:42:17 +00001375 "profile": ["profile_medium"],
Dávid Házi0bd447f2024-10-24 19:44:31 +00001376 "extra_params": [""]
1377 },
1378 "common_params": _common_tfm_builder_cfg,
1379 "invalid": _common_tfm_invalid_configs + []
1380 }
1381
Jianliang Shen48704152023-10-17 17:06:00 +08001382config_mem_footprint = {"seed_params": {
1383 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001384 "compiler": ["ARMCLANG_6_21"],
Jianliang Shen48704152023-10-17 17:06:00 +08001385 "isolation_level": ["1"],
1386 "test_regression": ["OFF"],
1387 "test_psa_api": ["OFF"],
1388 "cmake_build_type": ["Minsizerel"],
1389 "with_bl2": [True],
1390 "profile": [""],
1391 "extra_params": [""]
1392 },
1393 "common_params": _common_tfm_builder_cfg,
1394 "valid": [
1395 # AN521_ARMCLANG_1_Minsizerel_BL2_SMALL_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001396 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Jianliang Shen48704152023-10-17 17:06:00 +08001397 "OFF", "OFF", "Minsizerel", True, "profile_small", "PSOFF"),
1398 # AN521_ARMCLANG_2_Minsizerel_BL2_MEDIUM_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001399 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Jianliang Shen48704152023-10-17 17:06:00 +08001400 "OFF", "OFF", "Minsizerel", True, "profile_medium", "PSOFF"),
1401 # AN521_ARMCLANG_3_Minsizerel_BL2_LARGE_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001402 ("arm/mps2/an521", "ARMCLANG_6_21", "3",
Jianliang Shen48704152023-10-17 17:06:00 +08001403 "OFF", "OFF", "Minsizerel", True, "profile_large", "PSOFF"),
1404 ],
1405 "invalid": _common_tfm_invalid_configs + []
1406 }
1407
Jianliang Shen5492f752023-07-27 15:59:01 +08001408config_prof = {"seed_params": {
1409 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001410 "compiler": ["GCC_13_2"],
Jianliang Shen5492f752023-07-27 15:59:01 +08001411 "isolation_level": ["1"],
1412 "test_regression": ["OFF"],
1413 "test_psa_api": ["OFF"],
1414 "cmake_build_type": ["Release"],
1415 "with_bl2": [True],
1416 "profile": [""],
1417 "extra_params": ["PROF"]
1418 },
1419 "common_params": _common_tfm_builder_cfg,
1420 "valid": [
1421 # AN521_GNUARM_1_Release_BL2_IPC_PROF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001422 ("arm/mps2/an521", "GCC_13_2", "1",
Jianliang Shen5492f752023-07-27 15:59:01 +08001423 "OFF", "OFF", "Release", True, "", "IPC, PROF"),
1424 # AN521_GNUARM_2_Release_BL2_PROF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001425 ("arm/mps2/an521", "GCC_13_2", "2",
Jianliang Shen5492f752023-07-27 15:59:01 +08001426 "OFF", "OFF", "Release", True, "", "PROF"),
1427 # AN521_GNUARM_3_Release_BL2_PROF
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001428 ("arm/mps2/an521", "GCC_13_2", "3",
Jianliang Shen5492f752023-07-27 15:59:01 +08001429 "OFF", "OFF", "Release", True, "", "PROF"),
1430 ],
1431 "invalid": _common_tfm_invalid_configs + []
1432 }
1433
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001434# Config groups for debug
1435config_debug = {"seed_params": {
1436 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzelle719a1c2025-06-06 14:19:51 +01001437 "compiler": ["GCC_13_2"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001438 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001439 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001440 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001441 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001442 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001443 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001444 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001445 },
1446 "common_params": _common_tfm_builder_cfg,
1447 "invalid": _common_tfm_invalid_configs + []
1448 }
1449
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001450config_debug_regr = deepcopy(config_debug)
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001451config_debug_regr["seed_params"]["test_regression"] = ["RegBL2, RegS, RegNS"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001452
1453config_debug_PSA_API = {"seed_params": {
1454 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001455 "compiler": ["ARMCLANG_6_21"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001456 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001457 "test_regression": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001458 "test_psa_api": ["CRYPTO",
1459 "INITIAL_ATTESTATION",
1460 "STORAGE",
1461 "IPC"],
1462 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001463 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001464 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001465 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001466 },
1467 "common_params": _common_tfm_builder_cfg,
1468 "invalid": _common_tfm_invalid_configs + []
1469 }
1470
Matthew Dalzell06e8f692024-11-09 00:55:06 +00001471
1472
Karl Zhangaff558a2020-05-15 14:28:23 +01001473_builtin_configs = {
Xinyu Zhang5c4f2182023-10-31 16:26:45 +08001474 # per-patch test group
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001475 "pp_test": config_pp_test,
Karl Zhang14573bc2020-06-08 09:23:21 +08001476
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001477 # nightly test groups
1478 "nightly_test": config_nightly_test,
1479 "nightly_profile_s": config_profile_s,
1480 "nightly_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +08001481 "nightly_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001482 "nightly_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001483 "nightly_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001484 "nightly_cc_driver_psa": config_cc_driver_psa,
Antonio de Angelis9d7f0842025-06-27 22:23:51 +01001485 "nightly_cc3xx_runtime_enabled": config_cc3xx_runtime_enabled,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001486 "nightly_fp":config_fp,
1487 "nightly_psa_api": config_psa_api,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001488 "nightly_nsce": config_nsce,
1489 "nightly_mmio": config_mmio,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001490 "nightly_cs300_an547": config_cs300_an547,
1491 "nightly_cs300_an552": config_cs300_an552,
1492 "nightly_cs300_fvp": config_cs300_fvp,
Bence Balogh8731a092022-05-24 17:24:54 +02001493 "nightly_corstone310": config_corstone310,
Nicola Mazzucatobde5d432024-05-20 11:43:18 +01001494 "nightly_corstone310_pacbti" : config_corstone310_pacbti,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001495 "nightly_corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001496 "nightly_corstone320": config_corstone320,
Antonio de Angelis92ad2442023-08-07 15:00:32 +02001497 "nightly_corstone1000": config_corstone1000,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001498 #"nightly_rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001499 "nightly_rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301500 "nightly_rse_rdv3": config_rse_rdv3,
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001501 "nightly_rse_rdv3r1": config_rse_rdv3r1,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001502 "nightly_rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001503 "nightly_psoc64": config_psoc64,
Anton Komlev55c3c022024-03-05 16:24:17 +01001504 "nightly_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -08001505 "nightly_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001506 "nightly_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001507 "nightly_lpcxpresso55s69": config_lpcxpresso55s69,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001508 "nightly_rp2350": config_rp2350,
Matthew Dalzell06e8f692024-11-09 00:55:06 +00001509 "nightly_all_plat": config_all_plat,
Karl Zhang14573bc2020-06-08 09:23:21 +08001510
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001511 # release test groups
1512 "release_test": config_release_test,
1513 "release_profile_s": config_profile_s,
1514 "release_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +08001515 "release_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001516 "release_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001517 "release_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001518 "release_cc_driver_psa": config_cc_driver_psa,
1519 "release_fp": config_fp,
1520 "release_psa_api": config_psa_api,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001521 "release_nsce": config_nsce,
1522 "release_mmio": config_mmio,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001523 "release_cs300_an547": config_cs300_an547,
1524 "release_cs300_an552": config_cs300_an552,
1525 "release_cs300_fvp": config_cs300_fvp,
Bence Balogh8731a092022-05-24 17:24:54 +02001526 "release_corstone310": config_corstone310,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001527 "release_corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001528 "release_corstone320": config_corstone320,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001529 #"release_rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001530 "release_rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301531 "release_rse_rdv3": config_rse_rdv3,
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001532 "release_rse_rdv3r1": config_rse_rdv3r1,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001533 "release_rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001534 "release_psoc64": config_psoc64,
Anton Komlev55c3c022024-03-05 16:24:17 +01001535 "release_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -08001536 "release_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001537 "release_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001538 "release_lpcxpresso55s69": config_lpcxpresso55s69,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001539 "release_rp2350": config_rp2350,
Karl Zhang14573bc2020-06-08 09:23:21 +08001540
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001541 # code coverage test groups
1542 "coverage_profile_s": config_cov_profile_s,
1543 "coverage_profile_m": config_cov_profile_m,
1544 "coverage_profile_l": config_cov_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001545 "coverage_ipc_backend": config_cov_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001546 "coverage_nsce": config_cov_nsce,
1547 "coverage_mmio": config_cov_mmio,
Xinyu Zhang5f725ee2022-12-19 10:29:20 +08001548 "coverage_fp": config_cov_fp,
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001549
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +03001550 # MISRA analysis
1551 "misra": config_misra,
Paul Sokolovskya526e5d2023-06-15 09:49:13 +03001552 "misra_debug": config_misra_debug,
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +03001553
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001554 # platform groups
1555 "an521": config_an521,
1556 "an519": config_an519,
1557 "an524": config_an524,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001558 "cs300_an547": config_cs300_an547,
1559 "cs300_an552": config_cs300_an552,
1560 "cs300_fvp": config_cs300_fvp,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001561 "musca_b1": config_musca_b1,
Antonio de Angelis9a3bd142025-06-27 21:37:31 +01001562 "musca_b1_nsoff": config_musca_b1_nsoff,
Bence Balogh8731a092022-05-24 17:24:54 +02001563 "corstone310": config_corstone310,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001564 "corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001565 "corstone320": config_corstone320,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001566 #"rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001567 "rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301568 "rse_rdv3": config_rse_rdv3,
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001569 "rse_rdv3r1": config_rse_rdv3r1,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001570 "rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001571 "cypress_psoc64": config_psoc64,
Antonio de Angelis92ad2442023-08-07 15:00:32 +02001572 "corstone1000": config_corstone1000,
Anton Komlev55c3c022024-03-05 16:24:17 +01001573 "stm_stm32l562e_dk": config_stm32l562e_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001574 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001575 "stm_stm32h573i_dk": config_stm32h573i_dk,
Matthew Dalzelld5325dd2025-04-17 14:46:10 +01001576 "stm_stm32wba65i_dk" : config_stm32wba65i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001577 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1578 "nxp_lpcxpresso55s69": config_lpcxpresso55s69,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001579 "nordic_nrf5340dk": config_nrf5340dk,
1580 "nordic_nrf9160dk": config_nrf9160dk,
1581 "nuvoton_m2351": config_m2351,
1582 "nuvoton_m2354": config_m2354,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001583 "rp2350": config_rp2350,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001584
Bence Balogh79fda442022-10-14 18:01:37 +02001585 # config groups for tf-m-extras examples
1586 "example_vad": config_example_vad,
1587 "example_dma350_trigger": config_example_dma350_trigger,
Bence Balogh852f8bd2023-08-07 14:46:54 +02001588 "example_dma350_clcd": config_example_dma350_clcd,
Bence Balogh79fda442022-10-14 18:01:37 +02001589 "example_dma350_s": config_example_dma350_s,
Bence Baloghd23cbda2023-08-07 15:30:58 +02001590 "example_dma350_ns": config_example_dma350_ns,
Bence Balogh79fda442022-10-14 18:01:37 +02001591
Jianliang Shen48704152023-10-17 17:06:00 +08001592 # config groups for tf-m performance monitor
1593 "mem_footprint": config_mem_footprint,
Jianliang Shen5492f752023-07-27 15:59:01 +08001594 "profiling": config_prof,
1595
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001596 # config groups for debug
Dean Birch4c6ad622020-03-13 11:28:03 +00001597 "debug": config_debug,
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001598 "debug_regr": config_debug_regr,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001599 "debug_PSA_API": config_debug_PSA_API,
Nicola Mazzucatoe932bd72025-04-14 17:11:10 +01001600
1601 # groups for build-only
1602 "rse_build_only": config_rse_build_only,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001603 }
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001604
1605if __name__ == '__main__':
1606 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001607
Nicola Mazzucato935f9cb2025-05-16 17:21:07 +01001608 # Default behavior is to export reference config when called
Minos Galanakisea421232019-06-20 17:11:28 +01001609 _dir = os.getcwd()
1610 from utils import save_json
1611 for _cname, _cfg in _builtin_configs.items():
1612 _fname = os.path.join(_dir, _cname + ".json")
1613 print("Exporting config %s" % _fname)
1614 save_json(_fname, _cfg)