blob: 0be297aa746f837bf2098dec7c6880fc0aec8237 [file] [log] [blame]
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001#!/usr/bin/env python3
2
3""" builtin_configs.py:
4
5 Default configuration files used as reference """
6
7from __future__ import print_function
8
9__copyright__ = """
10/*
Raef Colesaac84bc2025-01-09 14:20:12 +000011 * SPDX-FileCopyrightText: Copyright The TrustedFirmware-M Contributors
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010012 *
13 * SPDX-License-Identifier: BSD-3-Clause
14 *
15 */
16 """
Karl Zhang08681e62020-10-30 13:56:03 +080017
18__author__ = "tf-m@lists.trustedfirmware.org"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010019__project__ = "Trusted Firmware-M Open CI"
Xinyu Zhang06286a92021-07-22 14:00:51 +080020__version__ = "1.4.0"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010021
Paul Sokolovsky3e8fce02022-04-07 01:23:30 +030022from copy import deepcopy
23
24
Minos Galanakisea421232019-06-20 17:11:28 +010025# common parameters for tf-m build system
26# This configuration template will be passed into the tfm-builder module after
27# the template evaluation is converted to a command
28
29_common_tfm_builder_cfg = {
30 "config_type": "tf-m",
31 "codebase_root_dir": "tf-m",
32 # Order to which the variants are evaluated. This affects the name of
33 # variant configuration and the wildcard replacement logic in invalid
34 # configuration tuples
Xinyu Zhangb708f572020-09-15 11:43:46 +080035 "sort_order": ["tfm_platform",
Xinyu Zhang433771e2022-04-01 16:49:17 +080036 "compiler",
Xinyu Zhangb708f572020-09-15 11:43:46 +080037 "isolation_level",
38 "test_regression",
39 "test_psa_api",
Minos Galanakisea421232019-06-20 17:11:28 +010040 "cmake_build_type",
Xinyu Zhangb708f572020-09-15 11:43:46 +080041 "with_bl2",
Xinyu Zhang9fd74242020-10-22 11:30:50 +080042 "profile",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +080043 "extra_params"],
Minos Galanakisea421232019-06-20 17:11:28 +010044
45 # Keys for the templace will come from the combinations of parameters
46 # provided in the seed dictionary.
47
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080048 "spe_config_template": "cmake -G Ninja " + \
Jianliang Shen7905e5d2023-11-07 10:40:47 +080049 "-S %(spe_root_dir)s " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080050 "-B %(ci_build_root_dir)s/spe " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080051 "-DTFM_PLATFORM=%(tfm_platform)s " + \
Xinyu Zhang85588522023-10-31 13:58:04 +080052 "-DTFM_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(s_compiler)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080053 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
Xinyu Zhangb18ae742023-04-25 14:33:27 +080054 "%(test_regression)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080055 "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080056 "-DTEST_PSA_API=%(test_psa_api)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080057 "-DBL2=%(with_bl2)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080058 "-DTFM_PROFILE=%(profile)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080059 "%(extra_params)s " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080060 "-DCONFIG_TFM_SOURCE_PATH=%(codebase_root_dir)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080061 "-DMBEDCRYPTO_PATH=%(codebase_root_dir)s/../mbedtls " + \
62 "-DPSA_ARCH_TESTS_PATH=%(codebase_root_dir)s/../psa-arch-tests " + \
63 "-DMCUBOOT_PATH=%(codebase_root_dir)s/../mcuboot " + \
Xinyu Zhang1f21cb22023-06-26 17:56:49 +080064 "-DQCBOR_PATH=%(codebase_root_dir)s/../qcbor " + \
David Vinczefaa61ff2025-01-09 16:02:06 +000065 "-DT_COSE_PATH=%(codebase_root_dir)s/../t_cose " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080066 "-DTFM_EXTRAS_REPO_PATH=%(codebase_root_dir)s/../tf-m-extras ",
67
68 "nspe_config_template": "cmake -G Ninja " + \
Jianliang Shen7905e5d2023-11-07 10:40:47 +080069 "-S %(nspe_root_dir)s " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080070 "-B %(ci_build_root_dir)s/nspe " + \
71 "-DCONFIG_SPE_PATH=%(ci_build_root_dir)s/spe/api_ns " + \
Xinyu Zhang85588522023-10-31 13:58:04 +080072 "-DTFM_TOOLCHAIN_FILE=%(ci_build_root_dir)s/spe/api_ns/cmake/%(ns_compiler)s " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080073 "%(extra_params)s " + \
David Vinczefaa61ff2025-01-09 16:02:06 +000074 "-DQCBOR_PATH=%(codebase_root_dir)s/../qcbor " + \
75 "-DT_COSE_PATH=%(codebase_root_dir)s/../t_cose ",
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080076
77 # CMake build commands will be executed for every build.
78 "spe_cmake_build": "cmake --build %(ci_build_root_dir)s/spe -- install",
79 "nspe_cmake_build": "cmake --build %(ci_build_root_dir)s/nspe --",
Karl Zhangaff558a2020-05-15 14:28:23 +010080
Xinyu Zhang433771e2022-04-01 16:49:17 +080081 "set_compiler_path": "export PATH=$PATH:$%(compiler)s_PATH",
82
Minos Galanakisea421232019-06-20 17:11:28 +010083 # A small subset of string substitution params is allowed in commands.
84 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
85 # _tbm_target_platform_ with the paths set when building
86
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080087 "artifact_capture_rex": (r'%(ci_build_root_dir)s/nspe'
Minos Galanakisea421232019-06-20 17:11:28 +010088 r'/(\w+\.(?:axf|bin|hex))$'),
89
Xinyu Zhang46b37182023-06-30 15:36:44 +080090 # Keys will append extra commands when matching target_platform
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080091 "post_build": {"arm/corstone1000": ("dd conv=notrunc bs=1 if=%(ci_build_root_dir)s/spe/bin/bl1_1.bin of=%(ci_build_root_dir)s/spe/bin/bl1.bin seek=0;"
Harsimran Singh Tungala0b03722025-08-28 11:00:21 +000092 "dd conv=notrunc bs=1 if=%(ci_build_root_dir)s/spe/bin/bl1_provisioning_bundle.bin of=%(ci_build_root_dir)s/spe/bin/bl1.bin seek=59392;"
Xinyu Zhang09acfbf2023-10-30 18:30:48 +080093 "%(codebase_root_dir)s/platform/ext/target/arm/corstone1000/create-flash-image.sh %(ci_build_root_dir)s/spe/bin/ cs1000.bin;"),
Matthew Dalzell59ea18e2024-06-06 17:00:52 +010094 "arm/musca_b1": ("if [ -d \"%(ci_build_root_dir)s/nspe\" ]; then "
Matthew Dalzell4fd9e502024-04-19 11:04:26 +010095 "srec_cat "
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080096 "%(ci_build_root_dir)s/spe/bin/"
97 "bl2.bin "
98 "-Binary -offset 0xA000000 "
99 "-fill 0xFF 0xA000000 0xA020000 "
100 "%(ci_build_root_dir)s/nspe/"
101 "tfm_s_ns_signed.bin "
102 "-Binary -offset 0xA020000 "
103 "-fill 0xFF 0xA020000 0xA200000 "
104 "-o %(ci_build_root_dir)s/"
Matthew Dalzell4fd9e502024-04-19 11:04:26 +0100105 "spe/bin/tfm.hex -Intel;"
Matthew Dalzell4fd9e502024-04-19 11:04:26 +0100106 "fi;"),
Jamie Fox82a91d02024-09-27 14:54:14 +0100107 "arm/rse/tc/tc3": ("if [ -f \"%(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin\" ]; then "
Jackson Cooper-Driverc034b912025-08-06 15:06:36 +0100108 "cp %(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin %(ci_build_root_dir)s/spe/bin/sram.bin;"
Raef Colesf9a20742024-06-06 10:47:49 +0100109 "else "
Raef Coles28948402025-07-28 10:34:50 +0100110 # dummy file with no data to keep the FVP happy
111 "touch %(ci_build_root_dir)s/spe/bin/sram.bin;"
Jackson Cooper-Driverc034b912025-08-06 15:06:36 +0100112 "fi;"
Raef Colesf9a20742024-06-06 10:47:49 +0100113 "srec_cat "
Jamie Fox9283cbc2024-04-22 13:40:01 +0100114 "%(ci_build_root_dir)s/spe/bin/bl1_1.bin -Binary -offset 0x0 "
115 "%(ci_build_root_dir)s/spe/bin/rom_dma_ics.bin -Binary -offset 0x1F000 "
116 "-o %(ci_build_root_dir)s/spe/bin/rom.bin -Binary;"
Jamie Fox82a91d02024-09-27 14:54:14 +0100117 "curl --fail --no-progress-meter --connect-timeout 10 --retry 6 -LS -o fiptool https://downloads.trustedfirmware.org/tf-m/rse/tc/tc3/fiptool;"
Jamie Fox9283cbc2024-04-22 13:40:01 +0100118 "chmod 755 fiptool;"
Jamie Fox82a91d02024-09-27 14:54:14 +0100119 "curl --fail --no-progress-meter --connect-timeout 10 --retry 6 -LS -o fip.bin https://downloads.trustedfirmware.org/tf-m/rse/tc/tc3/fip.bin;"
Jamie Fox9283cbc2024-04-22 13:40:01 +0100120 "./fiptool update "
Jamie Fox82a91d02024-09-27 14:54:14 +0100121 "--align 8192 --rse-bl2 %(ci_build_root_dir)s/spe/bin/bl2_signed.bin "
122 "--align 8192 --rse-s %(ci_build_root_dir)s/spe/bin/tfm_s_encrypted.bin "
123 "--align 8192 --rse-ns %(ci_build_root_dir)s/nspe/bin/tfm_ns_encrypted.bin "
124 "--align 8192 --rse-sic-tables-s %(ci_build_root_dir)s/spe/bin/tfm_s_sic_tables_signed.bin "
125 "--align 8192 --rse-sic-tables-ns %(ci_build_root_dir)s/nspe/bin/tfm_ns_sic_tables_signed.bin "
Jamie Fox9283cbc2024-04-22 13:40:01 +0100126 "--out %(ci_build_root_dir)s/spe/bin/host_flash.bin "
127 "fip.bin"),
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000128 "arm/rse/tc/tc4": ("if [ -f \"%(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin\" ]; then "
Jackson Cooper-Driverc034b912025-08-06 15:06:36 +0100129 "cp %(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin %(ci_build_root_dir)s/spe/bin/sram.bin;"
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000130 "else "
Raef Coles28948402025-07-28 10:34:50 +0100131 # dummy file with no data to keep the FVP happy
132 "touch %(ci_build_root_dir)s/spe/bin/sram.bin;"
Jackson Cooper-Driverc034b912025-08-06 15:06:36 +0100133 "fi;"
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000134 "srec_cat "
135 "%(ci_build_root_dir)s/spe/bin/bl1_1.bin -Binary -offset 0x0 "
136 "%(ci_build_root_dir)s/spe/bin/rom_dma_ics.bin -Binary -offset 0x1F000 "
137 "-o %(ci_build_root_dir)s/spe/bin/rom.bin -Binary;"
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000138 # fiptool in tc3 directory also compatible with tc4 fip.bin
139 "curl --fail --no-progress-meter --connect-timeout 10 --retry 6 -LS -o fiptool https://downloads.trustedfirmware.org/tf-m/rse/tc/tc3/fiptool;"
140 "chmod 755 fiptool;"
141 "curl --fail --no-progress-meter --connect-timeout 10 --retry 6 -LS -o fip.bin https://downloads.trustedfirmware.org/tf-m/rse/tc/tc4/4806a3a08/fip.bin;"
142 "./fiptool update "
143 "--align 8192 --rse-bl2 %(ci_build_root_dir)s/spe/bin/bl2_signed.bin "
144 "--align 8192 --rse-s %(ci_build_root_dir)s/spe/bin/tfm_s_encrypted.bin "
145 "--align 8192 --rse-ns %(ci_build_root_dir)s/nspe/bin/tfm_ns_encrypted.bin "
146 "--align 8192 --rse-sic-tables-s %(ci_build_root_dir)s/spe/bin/tfm_s_sic_tables_signed.bin "
147 "--align 8192 --rse-sic-tables-ns %(ci_build_root_dir)s/nspe/bin/tfm_ns_sic_tables_signed.bin "
148 "--out %(ci_build_root_dir)s/spe/bin/host_flash.bin "
149 "fip.bin"),
Xinyu Zhang46b37182023-06-30 15:36:44 +0800150 "stm/stm32l562e_dk": ("echo 'STM32L562E-DK board post process';"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800151 "%(ci_build_root_dir)s/spe/api_ns/postbuild.sh;"
152 "pushd %(ci_build_root_dir)s/spe/api_ns;"
153 "mkdir -p image_signing/scripts ;"
154 "cp %(ci_build_root_dir)s/nspe/bin/tfm_ns_signed.bin image_signing/scripts ;"
155 "tar jcf ./bin/stm32l562e-dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh "
156 "bin/bl2.bin "
157 "bin/tfm_s_signed.bin "
158 "image_signing/scripts/tfm_ns_signed.bin ;"
Xinyu Zhang46b37182023-06-30 15:36:44 +0800159 "popd"),
160 "stm/b_u585i_iot02a": ("echo 'STM32U5 board post process';"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800161 "%(ci_build_root_dir)s/spe/api_ns/postbuild.sh;"
162 "pushd %(ci_build_root_dir)s/spe/api_ns;"
163 "mkdir -p image_signing/scripts ;"
164 "cp %(ci_build_root_dir)s/nspe/bin/tfm_ns_signed.bin image_signing/scripts ;"
165 "tar jcf ./bin/b_u585i_iot02a-tfm.tar.bz2 regression.sh TFM_UPDATE.sh "
166 "bin/bl2.bin "
167 "bin/tfm_s_signed.bin "
168 "image_signing/scripts/tfm_ns_signed.bin ;"
Xinyu Zhang46b37182023-06-30 15:36:44 +0800169 "popd"),
Anton Komlev4164ab62024-02-23 10:59:56 +0100170 "stm/stm32h573i_dk": ("echo 'STM32H573I-DK board post process';"
171 "%(ci_build_root_dir)s/spe/api_ns/postbuild.sh;"
172 "pushd %(ci_build_root_dir)s/spe/api_ns;"
173 "mkdir -p image_signing/scripts ;"
174 "cp %(ci_build_root_dir)s/nspe/bin/tfm_ns_signed.bin image_signing/scripts ;"
175 "tar jcf ./bin/stm32h573i_dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh "
176 "bin/bl2.bin "
177 "bin/tfm_s_signed.bin "
178 "image_signing/scripts/tfm_ns_signed.bin ;"
179 "popd"),
Matthew Dalzell0bdc0b22024-04-17 18:13:31 +0100180 "nxp/lpcxpresso55s69": ("echo 'LPCXpresso55S69 bo.ard post process\n';"
181 "mkdir -p %(codebase_root_dir)s/build/bin ;"
182 # Workaround for flash_JLink.py
183 "cp %(ci_build_root_dir)s/spe/bin/tfm_s.hex %(codebase_root_dir)s/build/bin ;"
184 "cp %(ci_build_root_dir)s/nspe/bin/tfm_ns.hex %(codebase_root_dir)s/build/bin ;"
185 "cd %(codebase_root_dir)s/build/bin; "
186 "rm -f flash.jlink; "
187 "if [ -f \"%(ci_build_root_dir)s/spe/bin/bl2.hex\" ]; then "
188 "echo r >> flash.jlink; "
189 "echo erase >> flash.jlink; "
190 "echo loadfile bl2.hex >> flash.jlink; "
191 "echo loadfile tfm_s_ns_signed.bin -0x8000 >> flash.jlink; "
192 "echo r >> flash.jlink; "
193 "echo go >> flash.jlink; "
194 "echo exit >> flash.jlink; "
195 "else "
196 "echo r >> flash.jlink; "
197 "echo erase >> flash.jlink; "
198 "echo loadfile tfm_s.hex >> flash.jlink; "
199 "echo loadfile tfm_ns.hex >> flash.jlink; "
200 "echo r >> flash.jlink; "
201 "echo go >> flash.jlink; "
202 "echo exit >> flash.jlink; "
203 "fi;"
204 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"
205 "tar jcf lpcxpresso55s69-tfm.tar.bz2 flash.jlink ${BIN_FILES};"
206 "mv lpcxpresso55s69-tfm.tar.bz2 %(ci_build_root_dir)s/nspe/bin ;"
207 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"),
Xinyu Zhang46b37182023-06-30 15:36:44 +0800208 "cypress/psoc64": ("echo 'Sign binaries for Cypress PSoC64 platform';"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800209 "pushd %(codebase_root_dir)s/;"
Matthew Dalzell0060be62025-08-18 16:47:10 +0100210 "cysecuretools "
Arthur She87602dc2022-02-06 14:42:18 -0800211 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
212 "--target cy8ckit-064s0s2-4343w "
213 "sign-image "
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800214 "--hex %(ci_build_root_dir)s/spe/bin/tfm_s.hex "
Arthur She87602dc2022-02-06 14:42:18 -0800215 "--image-type BOOT --image-id 1;"
Matthew Dalzell0060be62025-08-18 16:47:10 +0100216 "cysecuretools "
Arthur She87602dc2022-02-06 14:42:18 -0800217 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
218 "--target cy8ckit-064s0s2-4343w "
219 "sign-image "
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800220 "--hex %(ci_build_root_dir)s/nspe/bin/tfm_ns.hex "
Arthur She87602dc2022-02-06 14:42:18 -0800221 "--image-type BOOT --image-id 16;"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800222 "mv %(ci_build_root_dir)s/spe/bin/tfm_s.hex %(ci_build_root_dir)s/spe/bin/tfm_s_signed.hex;"
223 "mv %(ci_build_root_dir)s/nspe/bin/tfm_ns.hex %(ci_build_root_dir)s/nspe/bin/tfm_ns_signed.hex;"
Xinyu Zhang46b37182023-06-30 15:36:44 +0800224 "popd")
Minos Galanakisea421232019-06-20 17:11:28 +0100225 },
226
227 # (Optional) If set will fail if those artefacts are missing post build
228 "required_artefacts": {"all": [
Antonio de Angelis9a3bd142025-06-27 21:37:31 +0100229 "%(ci_build_root_dir)s/spe/bin/"
230 "tfm_s.bin",
231 "%(ci_build_root_dir)s/nspe/"
232 "tfm_ns.bin"],
Mark Horvathef57baa2022-09-12 13:36:36 +0200233 "arm/musca_b1": [
Antonio de Angelis9a3bd142025-06-27 21:37:31 +0100234 "%(ci_build_root_dir)s/tfm.hex",
235 "%(ci_build_root_dir)s/spe/bin/"
236 "bl2.bin",
237 "%(ci_build_root_dir)s/spe/bin/"
238 "tfm_sign.bin"],
Jamie Fox82a91d02024-09-27 14:54:14 +0100239 "arm/rse/tc/tc3": [
Antonio de Angelis9a3bd142025-06-27 21:37:31 +0100240 "%(ci_build_root_dir)s/spe/bin/rom.bin",
Raef Coles28948402025-07-28 10:34:50 +0100241 "%(ci_build_root_dir)s/spe/bin/provisioning/combined_provisioning_message.bin",
Jackson Cooper-Driverc034b912025-08-06 15:06:36 +0100242 "%(ci_build_root_dir)s/spe/bin/sram.bin",
Antonio de Angelis9a3bd142025-06-27 21:37:31 +0100243 "%(ci_build_root_dir)s/spe/bin/host_flash.bin"],
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000244 "arm/rse/tc/tc4": [
Antonio de Angelis9a3bd142025-06-27 21:37:31 +0100245 "%(ci_build_root_dir)s/spe/bin/rom.bin",
Raef Coles28948402025-07-28 10:34:50 +0100246 "%(ci_build_root_dir)s/spe/bin/provisioning/combined_provisioning_message.bin",
Jackson Cooper-Driverc034b912025-08-06 15:06:36 +0100247 "%(ci_build_root_dir)s/spe/bin/sram.bin",
Antonio de Angelis9a3bd142025-06-27 21:37:31 +0100248 "%(ci_build_root_dir)s/spe/bin/host_flash.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100249 }
250}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100251
Xinyu Zhangb708f572020-09-15 11:43:46 +0800252# List of all build configs that are impossible under all circumstances
253_common_tfm_invalid_configs = [
Antonio de Angelis6ce8d722025-07-06 21:38:15 +0100254 # LR_CODE size exceeds limit on MUSCA_B1 with regression tests in Debug mode built with ARMCLANG
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300255 ("arm/musca_b1", "ARMCLANG_6_21", "*", "RegBL2, RegS, RegNS", "OFF", "Debug", "*", "", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800256 # Load range overlap on Musca for IPC Debug type: T895
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300257 ("arm/musca_b1", "ARMCLANG_6_21", "*", "*", "IPC", "Debug", "*", "*", "*"),
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300258 # FF does not support L3
Summer Qin379abb62022-10-08 16:41:54 +0800259 ("*", "*", "3", "*", "IPC", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800260 # Musca requires BL2
Summer Qin379abb62022-10-08 16:41:54 +0800261 ("arm/musca_b1", "*", "*", "*", "*", "*", False, "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800262 # Only AN521 and MUSCA_B1 support Isolation Level 3
Summer Qin379abb62022-10-08 16:41:54 +0800263 ("arm/mps2/an519", "*", "3", "*", "*", "*", "*", "*", "*"),
264 ("arm/mps3/an524", "*", "3", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800265 ]
266
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100267# Configure build manager to build several combinations
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800268# Config group for per-patch job
269config_pp_test = {"seed_params": {
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800270 # AN519_ARMCLANG_IPC_1_RegBL2_RegS_RegNS_Debug_BL2
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800271 "tfm_platform": ["arm/mps2/an519"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300272 "compiler": ["ARMCLANG_6_21"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800273 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800274 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800275 "test_psa_api": ["OFF"],
276 "cmake_build_type": ["Debug"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800277 "with_bl2": [True],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800278 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800279 "extra_params": [""]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800280 },
281 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800282 "valid": [
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800283 # AN519_ARMCLANG_2_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300284 ("arm/mps2/an519", "ARMCLANG_6_21", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800285 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800286 # AN519_GCC_2_RegBL2_RegS_RegNS_Release_BL2
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100287 ("arm/mps2/an519", "GCC_14_3", "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 Dalzella8e4cf42025-09-23 11:04:49 +0100290 ("arm/mps2/an519", "GCC_14_3", "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 Dalzella8e4cf42025-09-23 11:04:49 +0100314 ("arm/mps2/an521", "GCC_14_3", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800315 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Umair Khan80332b62025-09-25 14:06:24 +0100316 # AN521_GCC_1_RegBL2_RegS_RegNS_RegFihHigh_Debug_BL2
317 ("arm/mps2/an521", "GCC_13_2", "1",
318 "RegBL2, RegS, RegNS, RegFihHigh", "OFF", "Debug", True, "", ""),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100319 # AN521_GCC_2_RegBL2_RegS_RegNS_Debug_BL2_MEDIUM
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100320 ("arm/mps2/an521", "GCC_14_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800321 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "profile_medium", ""),
322 # AN521_GCC_2_RegBL2_RegS_RegNS_Release_BL2
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100323 ("arm/mps2/an521", "GCC_14_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800324 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
325 # AN521_GCC_3_RegBL2_RegS_RegNS_Minsizerel_BL2
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100326 ("arm/mps2/an521", "GCC_14_3", "3",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800327 "RegBL2, RegS, RegNS", "OFF", "Minsizerel", True, "", ""),
Xinyu Zhang280f5ab2023-10-31 16:17:21 +0800328 # AN521_GCC_1_FF_Release_BL2
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100329 ("arm/mps2/an521", "GCC_14_3", "1",
Xinyu Zhang280f5ab2023-10-31 16:17:21 +0800330 "OFF", "IPC", "Release", True, "", ""),
331 # AN521_ARMCLANG_2_STORAGE_Debug_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300332 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Xinyu Zhang280f5ab2023-10-31 16:17:21 +0800333 "OFF", "STORAGE", "Debug", True, "", ""),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100334 # CS300_FVP_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100335 ("arm/mps3/corstone300/fvp", "GCC_14_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800336 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100337 # CS300_FVP_GCC_2_RegBL2_RegS_RegNS_Release_BL2
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100338 ("arm/mps3/corstone300/fvp", "GCC_14_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800339 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100340 # corstone310_ARMCLANG_1_Debug_BL2_PACBTI_STD
Nicola Mazzucatob4e19572024-08-21 12:26:14 +0100341 ("arm/mps3/corstone310/fvp", "ARMCLANG_6_21", "1",
Nicola Mazzucatob542f2b2024-05-23 10:13:43 +0100342 "OFF", "OFF", "Debug", True, "", "PACBTI_STD"),
Xinyu Zhang5c4f2182023-10-31 16:26:45 +0800343 # corstone1000_GCC_2_RegS_Debug_BL2_NSOFF_CS1K_TEST_FVP
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100344 ("arm/corstone1000", "GCC_14_3", "2",
Xinyu Zhang5c4f2182023-10-31 16:26:45 +0800345 "RegS", "OFF", "Debug", True, "", "NSOFF, CS1K_TEST, FVP"),
Matthew Dalzell397fb3c2024-06-21 11:03:38 +0100346 # corstone315_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2
347 ("arm/mps4/corstone315", "ARMCLANG_6_21", "1",
348 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Gergely Korcsák78a4d142024-08-05 07:41:36 +0200349 # corstone320_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2
350 ("arm/mps4/corstone320", "ARMCLANG_6_21", "1",
351 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800352 # MUSCA_B1_GCC_1_RegBL2_RegS_RegNS_Minsizerel_BL2
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100353 ("arm/musca_b1", "GCC_14_3", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800354 "RegBL2, RegS, RegNS", "OFF", "Minsizerel", True, "", ""),
Antonio de Angelis6ce8d722025-07-06 21:38:15 +0100355 # MUSCA_B1_GCC_1_RegBL2_RegS_RegNS_Release_BL2_CC_DRIVER_PSA
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100356 ("arm/musca_b1", "GCC_14_3", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800357 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "CC_DRIVER_PSA"),
Nicola Mazzucato8617ae92024-10-02 13:14:15 +0100358 # RSE_TC3_GCC_3_RegS_RegNS_Release_BL2_ATTESTATION_SCHEME_DPE
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100359 #("arm/rse/tc/tc3", "GCC_14_3", "3",
Antonio de Angelis78a01fc2025-02-06 11:11:25 +0000360 # "RegS, RegNS", "OFF", "Release", True, "", "ATTESTATION_SCHEME_DPE"),
Jamie Fox82a91d02024-09-27 14:54:14 +0100361 # RSE_TC3_GCC_2_RegBL1_1_Debug_BL2
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100362 #("arm/rse/tc/tc3", "GCC_14_3", "2",
Antonio de Angelis78a01fc2025-02-06 11:11:25 +0000363 # "RegBL1_1", "OFF", "Debug", True, "", ""),
Nicola Mazzucatob4763262024-09-26 12:39:06 +0100364 # RSE_TC3_GCC_2_Release_BL2_ATTESTATION_SCHEME_CCA
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100365 #("arm/rse/tc/tc3", "GCC_14_3", "2",
Antonio de Angelis78a01fc2025-02-06 11:11:25 +0000366 # "OFF", "OFF", "Release", True, "", "ATTESTATION_SCHEME_CCA"),
Tamas Ban33b2e382025-03-17 12:23:08 +0100367 # RSE_TC4_GCC_3_RegS_RegNS_Release_BL2_ATTESTATION_SCHEME_DPE
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100368 ("arm/rse/tc/tc4", "GCC_14_3", "3",
Tamas Ban33b2e382025-03-17 12:23:08 +0100369 "RegS, RegNS", "OFF", "Release", True, "", "ATTESTATION_SCHEME_DPE"),
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100370 # RSE_TC4_GCC_3_RegS_RegNS_Release_BL2_RSE_PROVISIONING_SYMMETRIC
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100371 ("arm/rse/tc/tc4", "GCC_14_3", "3",
Jackson Cooper-Driver49350442025-05-29 14:13:45 +0100372 "RegS, RegNS", "OFF", "Release", True, "", "RSE_PROVISIONING_SYMMETRIC"),
Jackson Cooper-Driver0ac3fe02025-02-20 09:23:03 +0000373 # RSE_TC4_GCC_2_Debug_BL2
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100374 ("arm/rse/tc/tc4", "GCC_14_3", "2",
Tamas Ban33b2e382025-03-17 12:23:08 +0100375 "OFF", "OFF", "Debug", True, "", ""),
Jackson Cooper-Driver042d0fa2025-03-03 12:45:54 +0000376 # RSE_TC4_GCC_2_RegBL1_1_Debug_BL2
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100377 ("arm/rse/tc/tc4", "GCC_14_3", "2",
Tamas Ban33b2e382025-03-17 12:23:08 +0100378 "RegBL1_1", "OFF", "Debug", True, "", ""),
Jackson Cooper-Driver2fb4d5a2025-07-16 15:55:10 +0100379 # RSE_TC4_GCC_2_RegBL1_1_Debug_BL2
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100380 ("arm/rse/tc/tc4", "GCC_14_3", "2",
Jackson Cooper-Driver2fb4d5a2025-07-16 15:55:10 +0100381 "RegBL1_1", "OFF", "Debug", True, "", "RSE_RUN_BL1_1_TESTS_IN_PCI"),
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +0000382 # RSE_TC4_GCC_2_Release_BL2_ATTESTATION_SCHEME_CCA
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100383 ("arm/rse/tc/tc4", "GCC_14_3", "2",
Tamas Ban33b2e382025-03-17 12:23:08 +0100384 "OFF", "OFF", "Release", True, "", "ATTESTATION_SCHEME_CCA"),
Jackson Cooper-Drivere6e1db02025-05-16 10:45:20 +0100385 # RSE_TC4_GCC_2_RegS_RegNS_MinSizeRel_BL2_RSE_COPY_USE_ROM_LIB_IN_SRAM
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100386 # ("arm/rse/tc/tc4", "GCC_14_3", "2",
Jackson Cooper-Driver79d46f52025-08-19 11:35:01 +0100387 # "RegS, RegNS", "OFF", "MinSizeRel", True, "", "RSE_COPY_USE_ROM_LIB_IN_SRAM"),
Ishan Deshpande80d840e2025-01-09 18:46:56 +0530388 # RSE_RDV3_GCC_2_Release_BL2_NSOFF_CFG0
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100389 ("arm/rse/neoverse_rd/rdv3", "GCC_14_3", "2",
Jamie Fox9283cbc2024-04-22 13:40:01 +0100390 "OFF", "OFF", "Release", True, "", "NSOFF, CFG0"),
Nicola Mazzucato75b76af2025-02-07 15:20:59 +0000391 # RSE_RDV3R1_GCC_2_Release_BL2_NSOFF_CFG0
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100392 ("arm/rse/neoverse_rd/rdv3r1", "GCC_14_3", "2",
Nicola Mazzucato75b76af2025-02-07 15:20:59 +0000393 "OFF", "OFF", "Release", True, "", "NSOFF, CFG0"),
Ambroise Vincenteba3c5c2025-08-26 08:46:23 +0100394 # RSE_CSSAspen_GCC_2_Release_BL2_NSOFF
395 ("arm/rse/automotive_rd/css-aspen", "GCC_13_2", "2",
396 "OFF", "OFF", "Release", True, "", "NSOFF"),
Ziad Elhanafy937333f2024-05-22 14:17:40 +0100397 # RSE_RD1AE_GCC_2_Release_BL2_NSOFF
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100398 ("arm/rse/automotive_rd/rd1ae", "GCC_14_3", "2",
Ziad Elhanafy937333f2024-05-22 14:17:40 +0100399 "OFF", "OFF", "Release", True, "", "NSOFF"),
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800400 # stm32l562e_dk_ARMCLANG_1_RegS_RegNS_Release_BL2_CRYPTO_OFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300401 ("stm/stm32l562e_dk", "ARMCLANG_6_21", "1",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800402 "RegS, RegNS", "OFF", "Release", True, "", "CRYPTO_OFF"),
403 # stm32l562e_dk_GCC_2_Release_BL2_CRYPTO_ON
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100404 ("stm/stm32l562e_dk", "GCC_14_3", "2",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800405 "OFF", "OFF", "Release", True, "", "CRYPTO_ON"),
Matthew Dalzell276318d2024-09-12 15:59:31 +0100406 # stm32l562e_dk_GCC_3_RegBL2_RegS_RegNS_Release_BL2_CRYPTO_OFF
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100407 ("stm/stm32l562e_dk", "GCC_14_3", "3",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800408 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "CRYPTO_OFF"),
Arthur She4f08c152023-05-15 15:29:14 -0700409 # b_u585i_iot02a_GCC_1_RegS_RegNS_Release_BL2
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100410 ("stm/b_u585i_iot02a", "GCC_14_3", "1",
Arthur She4f08c152023-05-15 15:29:14 -0700411 "RegS, RegNS", "OFF", "Release", True, "", ""),
412 # b_u585i_iot02a_ARMCLANG_2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300413 ("stm/b_u585i_iot02a", "ARMCLANG_6_21", "2",
Arthur She4f08c152023-05-15 15:29:14 -0700414 "RegS, RegNS", "OFF", "Release", True, "", ""),
Anton Komlev4164ab62024-02-23 10:59:56 +0100415 # stm32h573i_dk_GCC_1_RegS_RegNS_Release_BL2
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100416 ("stm/stm32h573i_dk", "GCC_14_3", "1",
Anton Komlev4164ab62024-02-23 10:59:56 +0100417 "RegS, RegNS", "OFF", "Release", True, "", ""),
418 # stm32h573i_dk_ARMCLANG_2_RegS_RegNS_Release_BL2
419 ("stm/stm32h573i_dk", "ARMCLANG_6_21", "2",
420 "RegS, RegNS", "OFF", "Release", True, "", ""),
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800421 # psoc64_GCC_2_RegS_RegNS_Release
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100422 ("cypress/psoc64", "GCC_14_3", "2",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800423 "RegS, RegNS", "OFF", "Release", False, "", ""),
Nicola Mazzucato4bad6c62024-10-28 14:42:17 +0000424 # rp2350_GCC_2_RegBL2_RegS_RegNS_Release_BL2_MEDIUM
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100425 ("rpi/rp2350", "GCC_14_3", "2",
Nicola Mazzucato4bad6c62024-10-28 14:42:17 +0000426 "RegBL2, RegS, RegNS", "OFF", "Release", True, "profile_medium", ""),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800427 ],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800428 "invalid": _common_tfm_invalid_configs + []
429 }
430
Umair Khan80332b62025-09-25 14:06:24 +0100431# Config group for FIH testing
432config_fih_test = {"seed_params": {
433 "tfm_platform": ["arm/mps2/an521"],
434 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
435 "isolation_level": ["1", "2", "3"],
436 "test_regression": ["RegFihLow", "RegFihMedium", "RegFihHigh"],
437 "test_psa_api": ["OFF"],
438 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
439 "with_bl2": [True],
440 "profile": [""],
441 "extra_params": [""]
442 },
443 "common_params": _common_tfm_builder_cfg,
444 "invalid": _common_tfm_invalid_configs + []
445 }
446
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800447# Config group for nightly job
448config_nightly_test = {"seed_params": {
449 "tfm_platform": ["arm/mps2/an519",
450 "arm/mps2/an521",
451 "arm/mps3/an524",
Mark Horvathef57baa2022-09-12 13:36:36 +0200452 "arm/musca_b1"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100453 "compiler": ["GCC_14_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800454 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800455 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800456 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800457 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800458 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800459 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800460 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100461 },
462 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800463 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100464 }
465
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000466config_all_plat = {
467 # corstone1000_GCC_2_RegS_Release_BL2_NSOFF_CS1K_TEST_FVP
468 "seed_params": {
469 "tfm_platform": ["arm/corstone1000"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100470 "compiler": ["GCC_14_3"],
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000471 "isolation_level": ["2"],
472 "test_regression": ["RegS"],
473 "test_psa_api": ["OFF"],
474 "cmake_build_type": ["Release"],
475 "with_bl2": [True],
476 "profile": [""],
477 "extra_params": ["NSOFF, CS1K_TEST, FVP"]
478 },
479 "common_params": _common_tfm_builder_cfg,
480 "valid": [
481 # AN521_GCC_3_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100482 ("arm/mps2/an521", "GCC_14_3", "3",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000483 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
484 # AN519_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100485 ("arm/mps2/an519", "GCC_14_3", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000486 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
487 # AN524_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100488 ("arm/mps3/an524", "GCC_14_3", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000489 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
490 # CS300_AN547_GCC_1_Debug_BL2
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100491 ("arm/mps3/corstone300/an547", "GCC_14_3", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000492 "OFF", "OFF", "Debug", True, "", ""),
493 # CS300_AN552_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100494 ("arm/mps3/corstone300/an552", "GCC_14_3", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000495 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
496 # CS300_FVP_GCC_2_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100497 ("arm/mps3/corstone300/fvp", "GCC_14_3", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000498 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
499 # corstone310_GCC_1_Debug_BL2_NSOFF
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100500 ("arm/mps3/corstone310/fvp", "GCC_14_3", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000501 "OFF", "OFF", "Debug", True, "", "NSOFF"),
502 # corstone315_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100503 ("arm/mps4/corstone315", "GCC_14_3", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000504 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
505 # corstone320_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100506 ("arm/mps4/corstone320", "GCC_14_3", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000507 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
508 # MUSCA_B1_GCC_3_RegBL2_RegS_RegNS_Debug_BL2
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100509 ("arm/musca_b1", "GCC_14_3", "3",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000510 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000511 # RSE_TC3_GCC_3_RegS_RegNS_Debug_BL2_ATTESTATION_SCHEME_DPE
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100512 ("arm/rse/tc/tc3", "GCC_14_3", "3",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000513 "RegS, RegNS", "OFF", "Debug", True, "", "ATTESTATION_SCHEME_DPE"),
514 # psoc64_GCC_2_RegS_RegNS_Release
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100515 ("cypress/psoc64", "GCC_14_3", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000516 "RegS, RegNS", "OFF", "Release", False, "", ""),
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000517 ## nrf5340dk_GCC_1_Debug_BL2_NSOFF
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100518 #("nordic_nrf/nrf5340dk_nrf5340_cpuapp", "GCC_14_3", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000519 # "OFF", "OFF", "Release", True, "", "NSOFF"),
520 ## nrf9160dk_GCC_1_Debug_BL2_NSOFF
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100521 #("nordic_nrf/nrf9160dk_nrf9160", "GCC_14_3", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000522 # "OFF", "OFF", "Release", True, "", "NSOFF"),
523 ## M2351_GCC_1_Release_BL2_NSOFF
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100524 #("nuvoton/m2351", "GCC_14_3", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000525 # "OFF", "OFF", "Release", True, "", "NSOFF"),
Matthew Dalzell815fc832025-10-01 17:00:49 +0100526 # M2354_GCC_1_Debug_BL2_NSOFF
527 ("nuvoton/m2354", "GCC_14_3", "1",
528 "OFF", "OFF", "Debug", True, "", "NSOFF"),
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000529 # lpcxpresso55s69_GCC_2_RegS_RegNS_Relwithdebinfo_MEDIUM
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100530 ("nxp/lpcxpresso55s69", "GCC_14_3", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000531 "RegS, RegNS", "OFF", "Relwithdebinfo", False, "profile_medium", ""),
532 # rp2350_GCC_2_RegBL2_RegS_RegNS_RelWithDebInfo_BL2_MEDIUM
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100533 ("rpi/rp2350", "GCC_14_3", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000534 "RegBL2, RegS, RegNS", "OFF", "Relwithdebinfo", True, "profile_medium", ""),
535 # b_u585i_iot02a_GCC_2_RegS_RegNS_Release_BL2
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100536 ("stm/b_u585i_iot02a", "GCC_14_3", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000537 "RegS, RegNS", "OFF", "Release", True, "", ""),
538 # nucleo_l552ze_q_GCC_1_Release_BL2_NSOFF
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100539 ("stm/nucleo_l552ze_q", "GCC_14_3", "1",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000540 "OFF", "OFF", "Release", True, "", "NSOFF"),
541 # stm32h573i_dk_GCC_2_RegS_RegNS_Release_BL2
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100542 ("stm/stm32h573i_dk", "GCC_14_3", "2",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000543 "RegS, RegNS", "OFF", "Release", True, "", ""),
544 # stm32l562e_dk_GCC_3_RegBL2_RegS_RegNS_Release_BL2_CRYPTO_OFF
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100545 ("stm/stm32l562e_dk", "GCC_14_3", "3",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000546 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "CRYPTO_OFF"),
547 # stm32l562e_dk_GCC_3_Release_BL2_CRYPTO_ON
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100548 ("stm/stm32l562e_dk", "GCC_14_3", "3",
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000549 "OFF", "OFF", "Release", True, "", "CRYPTO_ON"),
Matthew Dalzell8fbf3562025-05-13 14:46:50 +0100550 # stm32wba65i_dk_GCC_2_RegS_RegNS_Release_MEDIUM
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100551 ("stm/stm32wba65i_dk", "GCC_14_3", "2",
Matthew Dalzell8fbf3562025-05-13 14:46:50 +0100552 "RegS, RegNS", "OFF", "Release", False, "profile_medium", ""),
Matthew Dalzell06e8f692024-11-09 00:55:06 +0000553 ],
554 "invalid": _common_tfm_invalid_configs + []
555 }
556
557
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800558# Config group for release job
559config_release_test = {"seed_params": {
560 "tfm_platform": ["arm/mps2/an519",
561 "arm/mps2/an521",
562 "arm/mps3/an524",
Antonio de Angelis6ce8d722025-07-06 21:38:15 +0100563 "arm/musca_b1"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100564 "compiler": ["GCC_14_3", "ARMCLANG_6_21"],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800565 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800566 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800567 "test_psa_api": ["OFF"],
568 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800569 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800570 "profile": [""],
David Vinczed78e2622022-11-24 15:04:00 +0100571 "extra_params": ["TEST_CBOR"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800572 },
573 "common_params": _common_tfm_builder_cfg,
Matthew Dalzell767a95b2025-08-18 14:35:39 +0100574 "valid": [],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800575 "invalid": _common_tfm_invalid_configs + []
576 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800577
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800578# Config groups for TF-M features
579config_profile_s = {"seed_params": {
David Huda27ae72022-03-28 15:32:19 +0800580 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100581 "compiler": ["GCC_14_3", "ARMCLANG_6_21"],
David Huda27ae72022-03-28 15:32:19 +0800582 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800583 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
David Huda27ae72022-03-28 15:32:19 +0800584 "test_psa_api": ["OFF"],
585 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
David Huda27ae72022-03-28 15:32:19 +0800586 "with_bl2": [True],
David Huda27ae72022-03-28 15:32:19 +0800587 "profile": ["profile_small"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800588 "extra_params": ["PSOFF"]
David Huda27ae72022-03-28 15:32:19 +0800589 },
590 "common_params": _common_tfm_builder_cfg,
David Huda27ae72022-03-28 15:32:19 +0800591 "invalid": _common_tfm_invalid_configs + [
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100592 ("arm/mps2/an519", "GCC_14_3", "*", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800593 "*", "Minsizerel", "*", "*", "*")
David Huda27ae72022-03-28 15:32:19 +0800594 ]
595 }
596
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800597config_profile_m = {"seed_params": {
598 "tfm_platform": ["arm/mps2/an519",
599 "arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200600 "arm/musca_b1"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100601 "compiler": ["GCC_14_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800602 "isolation_level": ["2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800603 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800604 "test_psa_api": ["OFF"],
605 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800606 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800607 "profile": ["profile_medium"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800608 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800609 },
610 "common_params": _common_tfm_builder_cfg,
611 "invalid": _common_tfm_invalid_configs + []
612 }
613
David Hu3d333762022-10-27 18:12:33 +0800614config_profile_m_arotless = {"seed_params": {
615 "tfm_platform": ["arm/musca_b1"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100616 "compiler": ["GCC_14_3", "ARMCLANG_6_21"],
David Hu3d333762022-10-27 18:12:33 +0800617 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800618 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
David Hu3d333762022-10-27 18:12:33 +0800619 "test_psa_api": ["OFF"],
620 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
621 "with_bl2": [True],
622 "profile": ["profile_medium_arotless"],
623 "extra_params": ["", "PSOFF"]
624 },
625 "common_params": _common_tfm_builder_cfg,
626 "invalid": _common_tfm_invalid_configs + []
627 }
628
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800629config_profile_l = {"seed_params": {
630 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100631 "compiler": ["GCC_14_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800632 "isolation_level": ["3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800633 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800634 "test_psa_api": ["OFF"],
635 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800636 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800637 "profile": ["profile_large"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800638 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800639 },
640 "common_params": _common_tfm_builder_cfg,
641 "invalid": _common_tfm_invalid_configs + []
642 }
643
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800644config_ipc_backend = {"seed_params": {
645 "tfm_platform": ["arm/mps2/an519",
646 "arm/mps2/an521",
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800647 "arm/musca_b1"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100648 "compiler": ["GCC_14_3", "ARMCLANG_6_21"],
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800649 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800650 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800651 "test_psa_api": ["OFF"],
652 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
653 "with_bl2": [True],
654 "profile": [""],
655 "extra_params": ["IPC"]
656 },
657 "common_params": _common_tfm_builder_cfg,
658 "invalid": _common_tfm_invalid_configs + []
659 }
660
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800661config_cc_driver_psa = {"seed_params": {
Antonio de Angelis6ce8d722025-07-06 21:38:15 +0100662 "tfm_platform": ["arm/musca_b1"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100663 "compiler": ["GCC_14_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800664 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800665 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800666 "test_psa_api": ["OFF"],
667 "cmake_build_type": ["Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800668 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800669 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800670 "extra_params": ["CC_DRIVER_PSA"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800671 },
672 "common_params": _common_tfm_builder_cfg,
673 "invalid": _common_tfm_invalid_configs + []
674 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100675
Antonio de Angelis9d7f0842025-06-27 22:23:51 +0100676config_cc3xx_runtime_enabled = {"seed_params": {
Antonio de Angelis6ce8d722025-07-06 21:38:15 +0100677 "tfm_platform": ["arm/musca_b1"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100678 "compiler": ["GCC_14_3"],
Antonio de Angelis9d7f0842025-06-27 22:23:51 +0100679 "isolation_level": ["1"],
680 "test_regression": ["RegBL2, RegS, RegNS"],
681 "test_psa_api": ["OFF"],
682 "cmake_build_type": ["Release"],
683 "with_bl2": [True],
684 "profile": [""],
685 "extra_params": ["CC3XX_RUNTIME_ENABLED"]
686 },
687 "common_params": _common_tfm_builder_cfg,
688 "invalid": _common_tfm_invalid_configs + []
689 }
690
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800691config_fp = {"seed_params": {
Xinyu Zhange91567c2023-09-13 14:10:11 +0800692 "tfm_platform": ["arm/mps2/an521",
693 "arm/mps3/corstone300/an552",
694 "arm/mps3/corstone300/fvp"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100695 "compiler": ["GCC_14_3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800696 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800697 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800698 "test_psa_api": ["OFF"],
699 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800700 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800701 "profile": [""],
Mark Horvath93cb5fb2022-09-06 17:51:24 +0200702 "extra_params": ["FPOFF", "FPON", "FPON, LZOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800703 },
704 "common_params": _common_tfm_builder_cfg,
705 "invalid": _common_tfm_invalid_configs + []
706 }
Karl Zhangeffed972020-06-30 15:48:01 +0800707
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800708config_psa_api = {"seed_params": {
709 "tfm_platform": ["arm/mps2/an521",
Antonio de Angelis6ce8d722025-07-06 21:38:15 +0100710 "arm/musca_b1"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100711 "compiler": ["GCC_14_3", "ARMCLANG_6_21"],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800712 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800713 "test_regression": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800714 "test_psa_api": ["IPC",
715 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800716 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800717 "STORAGE"],
Antonio de Angelis240495b2025-03-30 22:46:54 +0100718 "cmake_build_type": ["Release", "Minsizerel"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800719 "with_bl2": [True],
Antonio de Angelis240495b2025-03-30 22:46:54 +0100720 "profile": ["profile_large"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800721 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800722 },
723 "common_params": _common_tfm_builder_cfg,
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300724 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800725 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800726
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800727config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800728 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100729 "compiler": ["GCC_14_3", "ARMCLANG_6_21"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800730 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800731 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800732 "test_psa_api": ["OFF"],
733 "cmake_build_type": ["Debug"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800734 "with_bl2": [True],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800735 "profile": [""],
Xinyu Zhang67612992021-12-20 14:11:27 +0800736 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800737 },
738 "common_params": _common_tfm_builder_cfg,
739 "invalid": _common_tfm_invalid_configs + []
740 }
741
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800742config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800743 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100744 "compiler": ["GCC_14_3", "ARMCLANG_6_21"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800745 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800746 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800747 "test_psa_api": ["OFF"],
748 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800749 "with_bl2": [True],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800750 "profile": [""],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800751 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800752 },
753 "common_params": _common_tfm_builder_cfg,
754 "invalid": _common_tfm_invalid_configs + []
755 }
756
Bence Balogh79fda442022-10-14 18:01:37 +0200757# Config groups for TF-M examples
758config_example_vad = {"seed_params": {
Bence Balogh1aa8d582023-08-29 13:10:02 +0200759 "tfm_platform": ["arm/mps3/corstone300/an552"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100760 "compiler": ["GCC_14_3"],
Bence Balogh79fda442022-10-14 18:01:37 +0200761 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800762 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200763 "test_psa_api": ["OFF"],
764 "cmake_build_type": ["Release"],
765 "with_bl2": [True],
766 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200767 "extra_params": ["EXTRAS_EXAMPLE_VAD"]
Bence Balogh79fda442022-10-14 18:01:37 +0200768 },
769 "common_params": _common_tfm_builder_cfg,
770 "invalid": _common_tfm_invalid_configs + []
771 }
772
Bence Balogh852f8bd2023-08-07 14:46:54 +0200773config_example_dma350_clcd = {"seed_params": {
Bence Balogh79fda442022-10-14 18:01:37 +0200774 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100775 "compiler": ["GCC_14_3"],
Bence Balogh79fda442022-10-14 18:01:37 +0200776 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800777 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200778 "test_psa_api": ["OFF"],
779 "cmake_build_type": ["Release"],
780 "with_bl2": [True],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200781 "profile": ["profile_medium"],
782 "extra_params": ["EXTRAS_EXAMPLE_DMA350_CLCD"]
Bence Balogh79fda442022-10-14 18:01:37 +0200783 },
784 "common_params": _common_tfm_builder_cfg,
785 "invalid": _common_tfm_invalid_configs + []
786 }
787
788config_example_dma350_s = {"seed_params": {
789 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100790 "compiler": ["GCC_14_3"],
Bence Balogh79fda442022-10-14 18:01:37 +0200791 "isolation_level": ["1"],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200792 "test_regression": ["RegS"],
Bence Balogh79fda442022-10-14 18:01:37 +0200793 "test_psa_api": ["OFF"],
794 "cmake_build_type": ["Release"],
795 "with_bl2": [True],
796 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200797 "extra_params": ["EXTRAS_EXAMPLE_DMA350_S"]
Bence Balogh79fda442022-10-14 18:01:37 +0200798 },
799 "common_params": _common_tfm_builder_cfg,
800 "invalid": _common_tfm_invalid_configs + []
801 }
802
Bence Baloghd23cbda2023-08-07 15:30:58 +0200803config_example_dma350_ns = {"seed_params": {
804 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100805 "compiler": ["GCC_14_3"],
Bence Baloghd23cbda2023-08-07 15:30:58 +0200806 "isolation_level": ["1"],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200807 "test_regression": ["RegS, RegNS"],
Bence Baloghd23cbda2023-08-07 15:30:58 +0200808 "test_psa_api": ["OFF"],
809 "cmake_build_type": ["Release"],
810 "with_bl2": [True],
811 "profile": [""],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200812 "extra_params": ["EXTRAS_EXAMPLE_DMA350_NS"]
Bence Baloghd23cbda2023-08-07 15:30:58 +0200813 },
814 "common_params": _common_tfm_builder_cfg,
815 "invalid": _common_tfm_invalid_configs + []
816 }
817
Bence Balogh79fda442022-10-14 18:01:37 +0200818config_example_dma350_trigger = {"seed_params": {
819 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100820 "compiler": ["GCC_14_3"],
Bence Balogh79fda442022-10-14 18:01:37 +0200821 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800822 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200823 "test_psa_api": ["OFF"],
824 "cmake_build_type": ["Release"],
825 "with_bl2": [True],
Gergely Korcsáked6e2532024-06-03 13:17:12 +0200826 "profile": ["profile_medium"],
827 "extra_params": ["EXTRAS_EXAMPLE_DMA350_TRIGGER"]
Bence Balogh79fda442022-10-14 18:01:37 +0200828 },
829 "common_params": _common_tfm_builder_cfg,
830 "invalid": _common_tfm_invalid_configs + []
831 }
832
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300833config_misra = {"seed_params": {
834 "tfm_platform": ["arm/musca_b1"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100835 "compiler": ["GCC_14_3"],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300836 "isolation_level": ["1"],
837 "test_regression": ["OFF"],
838 "test_psa_api": ["OFF"],
839 "cmake_build_type": ["Debug"],
840 "with_bl2": [True],
Matthew Dalzellb7895ae2025-04-10 12:30:01 +0100841 "profile": ["profile_small", "profile_medium_arotless"],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300842 "extra_params": ["PSOFF"]
843 },
844 "common_params": _common_tfm_builder_cfg,
Xinyu Zhange17926f2023-08-14 11:00:43 +0800845 "valid": [
846 # MUSCA_B1_GCC_2_Debug_BL2_MEDIUM_PSOFF
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100847 ("arm/musca_b1", "GCC_14_3", "2", "OFF",
Xinyu Zhange17926f2023-08-14 11:00:43 +0800848 "OFF", "Debug", True, "profile_medium", "PSOFF"),
849 # MUSCA_B1_GCC_3_Debug_BL2_LARGE_PSOFF
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100850 ("arm/musca_b1", "GCC_14_3", "3", "OFF",
Xinyu Zhange17926f2023-08-14 11:00:43 +0800851 "OFF", "Debug", True, "profile_large", "PSOFF"),
852 ],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300853 "invalid": _common_tfm_invalid_configs + []
854 }
855
Paul Sokolovskya526e5d2023-06-15 09:49:13 +0300856config_misra_debug = {"seed_params": {
857 "tfm_platform": ["arm/musca_b1"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100858 "compiler": ["GCC_14_3"],
Paul Sokolovskya526e5d2023-06-15 09:49:13 +0300859 "isolation_level": ["1"],
860 "test_regression": ["OFF"],
861 "test_psa_api": ["OFF"],
862 "cmake_build_type": ["Debug"],
863 "with_bl2": [True],
864 "profile": ["profile_small"],
865 "extra_params": ["PSOFF"]
866 },
867 "common_params": _common_tfm_builder_cfg,
868 "invalid": _common_tfm_invalid_configs + []
869 }
870
Matthew Dalzell735fd502025-08-11 15:48:38 +0100871config_erpc_test = {"seed_params": {
872 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100873 "compiler": ["GCC_14_3"],
Matthew Dalzell735fd502025-08-11 15:48:38 +0100874 "isolation_level": ["1"],
875 "test_regression": ["RegNS"],
876 "test_psa_api": ["OFF"],
877 "cmake_build_type": ["Debug"],
878 "with_bl2": [True],
879 "profile": [""],
880 "extra_params": ["ERPC"]
881 },
882 "common_params": _common_tfm_builder_cfg,
883 "invalid": _common_tfm_invalid_configs + []
884 }
885
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800886# Config groups for code coverage
887config_cov_profile_s = deepcopy(config_profile_s)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800888config_cov_profile_s["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100889config_cov_profile_s["seed_params"]["compiler"] = ["GCC_14_3"]
Xinyu Zhangbdc37e32022-04-06 17:47:44 +0800890
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800891config_cov_profile_m = deepcopy(config_profile_m)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800892config_cov_profile_m["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100893config_cov_profile_m["seed_params"]["compiler"] = ["GCC_14_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800894
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800895config_cov_profile_l = deepcopy(config_profile_l)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800896config_cov_profile_l["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100897config_cov_profile_l["seed_params"]["compiler"] = ["GCC_14_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800898
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800899config_cov_ipc_backend = deepcopy(config_ipc_backend)
900config_cov_ipc_backend["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100901config_cov_ipc_backend["seed_params"]["compiler"] = ["GCC_14_3"]
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800902
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800903config_cov_nsce = deepcopy(config_nsce)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800904config_cov_nsce["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100905config_cov_nsce["seed_params"]["compiler"] = ["GCC_14_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800906
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800907config_cov_mmio = deepcopy(config_mmio)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800908config_cov_mmio["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100909config_cov_mmio["seed_params"]["compiler"] = ["GCC_14_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800910
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800911config_cov_fp = deepcopy(config_fp)
912config_cov_fp["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100913config_cov_fp["seed_params"]["compiler"] = ["GCC_14_3"]
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800914
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800915# Config groups for platforms
916config_an519 = {"seed_params": {
Xinyu Zhangf25856a2021-06-17 14:06:46 +0800917 "tfm_platform": ["arm/mps2/an519"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100918 "compiler": ["GCC_14_3", "ARMCLANG_6_21"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800919 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800920 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800921 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800922 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800923 "with_bl2": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800924 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800925 "extra_params": ["", "NSOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800926 },
927 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800928 "invalid": _common_tfm_invalid_configs + []
929 }
930
931config_an521 = {"seed_params": {
932 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100933 "compiler": ["GCC_14_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800934 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800935 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800936 "test_psa_api": ["OFF"],
937 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800938 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800939 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800940 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800941 },
942 "common_params": _common_tfm_builder_cfg,
943 "invalid": _common_tfm_invalid_configs + []
944 }
945
946config_an524 = {"seed_params": {
947 "tfm_platform": ["arm/mps3/an524"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100948 "compiler": ["GCC_14_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800949 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800950 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800951 "test_psa_api": ["OFF"],
952 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800953 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800954 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800955 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800956 },
957 "common_params": _common_tfm_builder_cfg,
958 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800959 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000960
Bence Balogh1aa8d582023-08-29 13:10:02 +0200961config_cs300_an547 = {"seed_params": {
962 "tfm_platform": ["arm/mps3/corstone300/an547"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100963 "compiler": ["GCC_14_3"],
Bence Balogh1aa8d582023-08-29 13:10:02 +0200964 "isolation_level": ["1"],
965 "test_regression": ["OFF"],
966 "test_psa_api": ["OFF"],
967 "cmake_build_type": ["Debug"],
968 "with_bl2": [True],
969 "profile": [""],
970 "extra_params": [""]
971 },
972 "common_params": _common_tfm_builder_cfg,
973 "invalid": _common_tfm_invalid_configs + []
974 }
Xinyu Zhang38b76742021-11-11 13:57:56 +0800975
Bence Balogh1aa8d582023-08-29 13:10:02 +0200976config_cs300_an552 = {"seed_params": {
977 "tfm_platform": ["arm/mps3/corstone300/an552"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100978 "compiler": ["GCC_14_3"],
Bence Balogh1aa8d582023-08-29 13:10:02 +0200979 "isolation_level": ["1", "2"],
980 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
981 "test_psa_api": ["OFF"],
982 "cmake_build_type": ["Debug", "Release"],
983 "with_bl2": [True],
984 "profile": [""],
985 "extra_params": [""]
986 },
987 "common_params": _common_tfm_builder_cfg,
988 "invalid": _common_tfm_invalid_configs + []
989 }
990
991config_cs300_fvp = {"seed_params": {
992 "tfm_platform": ["arm/mps3/corstone300/fvp"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +0100993 "compiler": ["GCC_14_3"],
Bence Balogh1aa8d582023-08-29 13:10:02 +0200994 "isolation_level": ["1", "2"],
995 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
996 "test_psa_api": ["OFF"],
997 "cmake_build_type": ["Debug", "Release"],
998 "with_bl2": [True],
999 "profile": [""],
1000 "extra_params": [""]
1001 },
1002 "common_params": _common_tfm_builder_cfg,
1003 "invalid": _common_tfm_invalid_configs + []
1004 }
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001005
1006config_musca_b1 = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +02001007 "tfm_platform": ["arm/musca_b1"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001008 "compiler": ["GCC_14_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001009 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001010 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001011 "test_psa_api": ["OFF"],
1012 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001013 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001014 "profile": [""],
Antonio de Angelis9a3bd142025-06-27 21:37:31 +01001015 "extra_params": [""]
1016 },
1017 "common_params": _common_tfm_builder_cfg,
1018 "invalid": _common_tfm_invalid_configs + []
1019 }
1020
Bence Balogh8731a092022-05-24 17:24:54 +02001021config_corstone310 = {"seed_params": {
Bence Balogh23d8fa72022-11-08 12:16:23 +01001022 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001023 "compiler": ["GCC_14_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001024 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001025 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001026 "test_psa_api": ["OFF"],
1027 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001028 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001029 "profile": [""],
Gergely Korcsák6abc66c2025-04-29 14:55:33 +02001030 "extra_params": ["NSOFF", "PROV_TFM_DUMMY", "PROV_MCUBOOT_GEN_KEYS"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001031 },
1032 "common_params": _common_tfm_builder_cfg,
1033 "invalid": _common_tfm_invalid_configs + []
1034 }
1035
Nicola Mazzucatobde5d432024-05-20 11:43:18 +01001036config_corstone310_pacbti = {"seed_params": {
1037 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Nicola Mazzucatob4e19572024-08-21 12:26:14 +01001038 "compiler": ["ARMCLANG_6_21"],
Nicola Mazzucatobde5d432024-05-20 11:43:18 +01001039 "isolation_level": ["1"],
1040 "test_regression": ["OFF"],
1041 "test_psa_api": ["OFF"],
1042 "cmake_build_type": ["Debug"],
1043 "with_bl2": [True],
1044 "profile": [""],
1045 "extra_params": ["PACBTI_STD"]
1046 },
1047 "common_params": _common_tfm_builder_cfg,
1048 "invalid": _common_tfm_invalid_configs + []
1049 }
1050
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001051config_corstone315 = {"seed_params": {
1052 "tfm_platform": ["arm/mps4/corstone315"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001053 "compiler": ["GCC_14_3", "ARMCLANG_6_21"],
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001054 "isolation_level": ["1"],
Gergely Korcsáka403e222024-04-09 10:51:00 +02001055 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001056 "test_psa_api": ["OFF"],
1057 "cmake_build_type": ["Debug", "Release"],
1058 "with_bl2": [True],
1059 "profile": [""],
1060 "extra_params": [""]
1061 },
1062 "common_params": _common_tfm_builder_cfg,
1063 "invalid": _common_tfm_invalid_configs + []
1064 }
1065
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001066config_corstone320 = {"seed_params": {
1067 "tfm_platform": ["arm/mps4/corstone320"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001068 "compiler": ["GCC_14_3", "ARMCLANG_6_21"],
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001069 "isolation_level": ["1"],
1070 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
1071 "test_psa_api": ["OFF"],
1072 "cmake_build_type": ["Debug", "Release"],
1073 "with_bl2": [True],
1074 "profile": [""],
1075 "extra_params": [""]
1076 },
1077 "common_params": _common_tfm_builder_cfg,
1078 "invalid": _common_tfm_invalid_configs + []
1079 }
1080
Jamie Fox82a91d02024-09-27 14:54:14 +01001081config_rse_tc3 = {"seed_params": {
1082 "tfm_platform": ["arm/rse/tc/tc3"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001083 "compiler": ["GCC_14_3"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +01001084 "isolation_level": ["1", "2", "3"],
Jamie Fox9283cbc2024-04-22 13:40:01 +01001085 "test_regression": ["OFF", "RegS, RegNS"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001086 "test_psa_api": ["OFF"],
1087 "cmake_build_type": ["Debug", "Release"],
1088 "with_bl2": [True],
1089 "profile": [""],
Nicola Mazzucato551c5f32024-10-02 09:43:04 +01001090 "extra_params": ["ATTESTATION_SCHEME_DPE"]
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001091 },
1092 "common_params": _common_tfm_builder_cfg,
Jamie Fox9e2c2352023-01-13 15:11:23 +00001093 "invalid": _common_tfm_invalid_configs + [
Jamie Fox5ae6fa42024-02-19 15:11:00 +00001094 # BL2 is too large for RSE in Debug builds with tests
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001095 ("arm/rse/tc/tc3", "GCC_14_3", "*", "RegBL2, RegS, RegNS", "*",
Jamie Fox9e2c2352023-01-13 15:11:23 +00001096 "Debug", True, "*", "*"),
1097 ]
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001098 }
1099
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001100config_rse_tc4 = {"seed_params": {
1101 "tfm_platform": ["arm/rse/tc/tc4"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001102 "compiler": ["GCC_14_3"],
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001103 "isolation_level": ["1", "2", "3"],
Jackson Cooper-Driver042d0fa2025-03-03 12:45:54 +00001104 "test_regression": ["OFF", "RegS, RegNS", "RegBL1_1"],
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001105 "test_psa_api": ["OFF"],
1106 "cmake_build_type": ["Debug", "Release"],
1107 "with_bl2": [True],
1108 "profile": [""],
Jackson Cooper-Driver49350442025-05-29 14:13:45 +01001109 "extra_params": ["ATTESTATION_SCHEME_DPE", "RSE_PROVISIONING_SYMMETRIC"]
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001110 },
1111 "common_params": _common_tfm_builder_cfg,
1112 "invalid": _common_tfm_invalid_configs + [
1113 # BL2 is too large for RSE in Debug builds with tests
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001114 ("arm/rse/tc/tc4", "GCC_14_3", "*", "RegBL2, RegS, RegNS", "*",
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001115 "Debug", True, "*", "*"),
Jackson Cooper-Drivere6e1db02025-05-16 10:45:20 +01001116 ],
1117 "valid": [
Jackson Cooper-Driver79d46f52025-08-19 11:35:01 +01001118 # BL1_1 code is too large to copy into VM1 without overwriting
1119 # persistent data
1120 # ("arm/rse/tc/tc4", "*", "*", "*", "*",
1121 # "MinSizeRel", True, "*", "RSE_COPY_USE_ROM_LIB_IN_SRAM"),
Jackson Cooper-Driver2fb4d5a2025-07-16 15:55:10 +01001122 # RSE_RUN_BL1_1_TESTS_IN_PCI only relevant when running BL1_1 tests
1123 ("arm/rse/tc/tc4", "*", "*", "RegBL1_1", "*",
1124 "*", True, "*", "RSE_RUN_BL1_1_TESTS_IN_PCI"),
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001125 ]
1126 }
1127
Nicola Mazzucatoe932bd72025-04-14 17:11:10 +01001128# RSE-specific build-only cases.
1129# New cases should be better added in the valid section
1130# This group is only consumed in "tf-m-extra-build" CI job
1131config_rse_build_only = {"seed_params": {
1132 "tfm_platform": ["arm/rse/tc/tc4"],
1133 "compiler": ["ARMCLANG_6_21"],
1134 "isolation_level": ["2"],
1135 "test_regression": ["OFF"],
1136 "test_psa_api": ["OFF"],
1137 "cmake_build_type": ["Release"],
1138 "with_bl2": [True],
1139 "profile": [""],
1140 "extra_params": ["ATTESTATION_SCHEME_CCA, RSE_SUPPORT_ROM_LIB_RELOCATION_OFF"]
1141 },
1142 "common_params": _common_tfm_builder_cfg,
1143 "invalid": _common_tfm_invalid_configs + []
1144 }
1145
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301146config_rse_rdv3 = {"seed_params": {
Antonio de Angelis373187e2025-01-11 22:09:30 +00001147 "tfm_platform": ["arm/rse/neoverse_rd/rdv3"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001148 "compiler": ["GCC_14_3"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +01001149 "isolation_level": ["1", "2", "3"],
Joel Goddard2dd81a12024-01-23 15:10:08 +00001150 "test_regression": ["OFF"],
1151 "test_psa_api": ["OFF"],
1152 "cmake_build_type": ["Debug", "Release"],
1153 "with_bl2": [True],
1154 "profile": [""],
Jamie Fox9283cbc2024-04-22 13:40:01 +01001155 "extra_params": ["NSOFF, CFG0"]
Joel Goddard2dd81a12024-01-23 15:10:08 +00001156 },
1157 "common_params": _common_tfm_builder_cfg,
1158 "invalid": _common_tfm_invalid_configs + []
1159 }
1160
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001161config_rse_rdv3r1 = {"seed_params": {
1162 "tfm_platform": ["arm/rse/neoverse_rd/rdv3r1"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001163 "compiler": ["GCC_14_3"],
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001164 "isolation_level": ["1", "2"],
1165 "test_regression": ["OFF"],
1166 "test_psa_api": ["OFF"],
1167 "cmake_build_type": ["Debug", "Release"],
1168 "with_bl2": [True],
1169 "profile": [""],
1170 "extra_params": ["NSOFF, CFG0"]
1171 },
1172 "common_params": _common_tfm_builder_cfg,
1173 "invalid": _common_tfm_invalid_configs + []
1174 }
1175
Ambroise Vincenteba3c5c2025-08-26 08:46:23 +01001176config_rse_cssaspen = {"seed_params": {
1177 "tfm_platform": ["arm/rse/automotive_rd/css-aspen"],
1178 "compiler": ["GCC_13_2"],
1179 "isolation_level": ["1", "2", "3"],
1180 "test_regression": ["OFF"],
1181 "test_psa_api": ["OFF"],
1182 "cmake_build_type": ["Debug", "Release"],
1183 "with_bl2": [True],
1184 "profile": [""],
1185 "extra_params": ["NSOFF"]
1186 },
1187 "common_params": _common_tfm_builder_cfg,
1188 "invalid": _common_tfm_invalid_configs + []
1189 }
1190
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001191config_rse_rd1ae = {"seed_params": {
1192 "tfm_platform": ["arm/rse/automotive_rd/rd1ae"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001193 "compiler": ["GCC_14_3"],
Jamie Foxc5b9e6a2024-10-10 17:07:57 +01001194 "isolation_level": ["1", "2", "3"],
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001195 "test_regression": ["OFF"],
1196 "test_psa_api": ["OFF"],
1197 "cmake_build_type": ["Debug", "Release"],
1198 "with_bl2": [True],
1199 "profile": [""],
1200 "extra_params": ["NSOFF"]
1201 },
1202 "common_params": _common_tfm_builder_cfg,
1203 "invalid": _common_tfm_invalid_configs + []
1204 }
1205
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001206config_psoc64 = {"seed_params": {
1207 "tfm_platform": ["cypress/psoc64"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001208 "compiler": ["GCC_14_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001209 "isolation_level": ["1", "2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001210 "test_regression": ["RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001211 "test_psa_api": ["OFF"],
1212 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001213 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001214 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001215 "extra_params": [""]
1216 },
1217 "common_params": _common_tfm_builder_cfg,
1218 "invalid": _common_tfm_invalid_configs + []
1219 }
1220
1221config_corstone1000 = {"seed_params": {
1222 "tfm_platform": ["arm/corstone1000"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001223 "compiler": ["GCC_14_3"],
Xinyu Zhang5c4f2182023-10-31 16:26:45 +08001224 "isolation_level": ["1", "2"],
Emekcan Arasf8b39802023-04-24 10:15:22 +01001225 "test_regression": ["RegS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001226 "test_psa_api": ["OFF"],
Matthew Dalzellfc808ea2025-04-16 18:42:16 +01001227 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001228 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001229 "profile": [""],
Xinyu Zhang09acfbf2023-10-30 18:30:48 +08001230 "extra_params": ["NSOFF, CS1K_TEST, FVP", "NSOFF, CS1K_TEST, FPGA"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001231 },
1232 "common_params": _common_tfm_builder_cfg,
1233 "invalid": _common_tfm_invalid_configs + []
1234 }
1235
1236config_stm32l562e_dk = {"seed_params": {
1237 "tfm_platform": ["stm/stm32l562e_dk"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001238 "compiler": ["GCC_14_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001239 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001240 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001241 "test_psa_api": ["OFF"],
1242 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001243 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001244 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001245 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
1246 },
1247 "common_params": _common_tfm_builder_cfg,
1248 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001249 # Oversize issue on config stm32l562e_dk_ARMCLANG_1_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001250 ("stm/stm32l562e_dk", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001251 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "*"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001252 # all other tests are off when CRYPTO is ON
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001253 ("stm/stm32l562e_dk", "*", "*", "RegBL2, RegS, RegNS", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +08001254 "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001255 # all other tests are ON when CRYPTO is OFF
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001256 ("stm/stm32l562e_dk", "*", "*", "OFF", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +08001257 "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001258 ]
1259 }
1260
1261config_b_u585i_iot02a = {"seed_params": {
1262 "tfm_platform": ["stm/b_u585i_iot02a"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001263 "compiler": ["GCC_14_3", "ARMCLANG_6_21"],
Arthur She026ebb62023-02-08 18:47:39 -08001264 "isolation_level": ["1", "2"],
Arthur She96c6f772023-05-09 21:32:50 -07001265 "test_regression": ["OFF", "RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001266 "test_psa_api": ["OFF"],
1267 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001268 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001269 "profile": [""],
Arthur She026ebb62023-02-08 18:47:39 -08001270 "extra_params": [""]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001271 },
1272 "common_params": _common_tfm_builder_cfg,
1273 "invalid": _common_tfm_invalid_configs + []
1274 }
1275
Anton Komlev4164ab62024-02-23 10:59:56 +01001276config_stm32h573i_dk = {"seed_params": {
1277 "tfm_platform": ["stm/stm32h573i_dk"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001278 "compiler": ["GCC_14_3", "ARMCLANG_6_21"],
Anton Komlev4164ab62024-02-23 10:59:56 +01001279 "isolation_level": ["1", "2"],
1280 "test_regression": ["OFF", "RegS, RegNS"],
1281 "test_psa_api": ["OFF"],
1282 "cmake_build_type": ["Release"],
1283 "with_bl2": [True],
1284 "profile": [""],
1285 "extra_params": [""]
1286 },
1287 "common_params": _common_tfm_builder_cfg,
1288 "invalid": _common_tfm_invalid_configs + []
1289 }
1290
Matthew Dalzelld5325dd2025-04-17 14:46:10 +01001291config_stm32wba65i_dk = {"seed_params": {
1292 "tfm_platform": ["stm/stm32wba65i_dk"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001293 "compiler": ["GCC_14_3", "ARMCLANG_6_21"],
Matthew Dalzelld5325dd2025-04-17 14:46:10 +01001294 "isolation_level": ["1", "2"],
1295 "test_regression": ["OFF", "RegS, RegNS"],
1296 "test_psa_api": ["OFF"],
1297 "cmake_build_type": ["Release"],
1298 "with_bl2": [False],
1299 "profile": ["profile_small","profile_medium"],
1300 "extra_params": [""]
1301 },
1302 "common_params": _common_tfm_builder_cfg,
1303 "invalid": _common_tfm_invalid_configs + [
1304 ("stm/stm32wba65i_dk", "*", "2", "*",
1305 "*", "*", "*", "profile_small", "*"),
1306 ]
1307 }
1308
1309
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001310config_nucleo_l552ze_q = {"seed_params": {
1311 "tfm_platform": ["stm/nucleo_l552ze_q"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001312 "compiler": ["GCC_14_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001313 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001314 "test_regression": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001315 "test_psa_api": ["OFF"],
1316 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001317 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001318 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001319 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001320 },
1321 "common_params": _common_tfm_builder_cfg,
1322 "invalid": _common_tfm_invalid_configs + []
1323 }
1324
1325config_lpcxpresso55s69 = {"seed_params": {
1326 "tfm_platform": ["nxp/lpcxpresso55s69"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001327 "compiler": ["GCC_14_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001328 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001329 "test_regression": ["OFF", "RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001330 "test_psa_api": ["OFF"],
1331 "cmake_build_type": ["Relwithdebinfo"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001332 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001333 "profile": ["profile_medium"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001334 "extra_params": [""]
1335 },
1336 "common_params": _common_tfm_builder_cfg,
1337 "invalid": _common_tfm_invalid_configs + []
1338 }
1339
Xinyu Zhang38b76742021-11-11 13:57:56 +08001340config_nrf5340dk = {"seed_params": {
1341 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001342 "compiler": ["GCC_14_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001343 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001344 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001345 "test_psa_api": ["OFF"],
1346 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001347 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001348 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001349 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001350 },
1351 "common_params": _common_tfm_builder_cfg,
1352 "invalid": _common_tfm_invalid_configs + []
1353 }
1354
1355config_nrf9160dk = {"seed_params": {
1356 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001357 "compiler": ["GCC_14_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001358 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001359 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001360 "test_psa_api": ["OFF"],
1361 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001362 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001363 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001364 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001365 },
1366 "common_params": _common_tfm_builder_cfg,
1367 "invalid": _common_tfm_invalid_configs + []
1368 }
1369
1370config_m2351 = {"seed_params": {
1371 "tfm_platform": ["nuvoton/m2351"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001372 "compiler": ["GCC_14_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001373 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001374 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001375 "test_psa_api": ["OFF"],
1376 "cmake_build_type": ["Release"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001377 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001378 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001379 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001380 },
1381 "common_params": _common_tfm_builder_cfg,
1382 "invalid": _common_tfm_invalid_configs + []
1383 }
1384
1385config_m2354 = {"seed_params": {
1386 "tfm_platform": ["nuvoton/m2354"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001387 "compiler": ["GCC_14_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001388 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001389 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001390 "test_psa_api": ["OFF"],
1391 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001392 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001393 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001394 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001395 },
1396 "common_params": _common_tfm_builder_cfg,
1397 "invalid": _common_tfm_invalid_configs + []
1398 }
1399
Dávid Házi0bd447f2024-10-24 19:44:31 +00001400config_rp2350 = {"seed_params": {
1401 "tfm_platform": ["rpi/rp2350"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001402 "compiler": ["GCC_14_3"],
Dávid Házi0bd447f2024-10-24 19:44:31 +00001403 "isolation_level": ["2"],
1404 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
1405 "test_psa_api": ["OFF"],
1406 "cmake_build_type": ["RelWithDebInfo", "Release"],
1407 "with_bl2": [True],
Nicola Mazzucato4bad6c62024-10-28 14:42:17 +00001408 "profile": ["profile_medium"],
Dávid Házi0bd447f2024-10-24 19:44:31 +00001409 "extra_params": [""]
1410 },
1411 "common_params": _common_tfm_builder_cfg,
1412 "invalid": _common_tfm_invalid_configs + []
1413 }
1414
Jianliang Shen48704152023-10-17 17:06:00 +08001415config_mem_footprint = {"seed_params": {
1416 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001417 "compiler": ["ARMCLANG_6_21"],
Jianliang Shen48704152023-10-17 17:06:00 +08001418 "isolation_level": ["1"],
1419 "test_regression": ["OFF"],
1420 "test_psa_api": ["OFF"],
1421 "cmake_build_type": ["Minsizerel"],
1422 "with_bl2": [True],
1423 "profile": [""],
1424 "extra_params": [""]
1425 },
1426 "common_params": _common_tfm_builder_cfg,
1427 "valid": [
1428 # AN521_ARMCLANG_1_Minsizerel_BL2_SMALL_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001429 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Jianliang Shen48704152023-10-17 17:06:00 +08001430 "OFF", "OFF", "Minsizerel", True, "profile_small", "PSOFF"),
1431 # AN521_ARMCLANG_2_Minsizerel_BL2_MEDIUM_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001432 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Jianliang Shen48704152023-10-17 17:06:00 +08001433 "OFF", "OFF", "Minsizerel", True, "profile_medium", "PSOFF"),
1434 # AN521_ARMCLANG_3_Minsizerel_BL2_LARGE_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001435 ("arm/mps2/an521", "ARMCLANG_6_21", "3",
Jianliang Shen48704152023-10-17 17:06:00 +08001436 "OFF", "OFF", "Minsizerel", True, "profile_large", "PSOFF"),
1437 ],
1438 "invalid": _common_tfm_invalid_configs + []
1439 }
1440
Jianliang Shen5492f752023-07-27 15:59:01 +08001441config_prof = {"seed_params": {
1442 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001443 "compiler": ["GCC_14_3"],
Jianliang Shen5492f752023-07-27 15:59:01 +08001444 "isolation_level": ["1"],
1445 "test_regression": ["OFF"],
1446 "test_psa_api": ["OFF"],
1447 "cmake_build_type": ["Release"],
1448 "with_bl2": [True],
1449 "profile": [""],
1450 "extra_params": ["PROF"]
1451 },
1452 "common_params": _common_tfm_builder_cfg,
1453 "valid": [
1454 # AN521_GNUARM_1_Release_BL2_IPC_PROF
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001455 ("arm/mps2/an521", "GCC_14_3", "1",
Jianliang Shen5492f752023-07-27 15:59:01 +08001456 "OFF", "OFF", "Release", True, "", "IPC, PROF"),
1457 # AN521_GNUARM_2_Release_BL2_PROF
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001458 ("arm/mps2/an521", "GCC_14_3", "2",
Jianliang Shen5492f752023-07-27 15:59:01 +08001459 "OFF", "OFF", "Release", True, "", "PROF"),
1460 # AN521_GNUARM_3_Release_BL2_PROF
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001461 ("arm/mps2/an521", "GCC_14_3", "3",
Jianliang Shen5492f752023-07-27 15:59:01 +08001462 "OFF", "OFF", "Release", True, "", "PROF"),
1463 ],
1464 "invalid": _common_tfm_invalid_configs + []
1465 }
1466
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001467# Config groups for debug
1468config_debug = {"seed_params": {
1469 "tfm_platform": ["arm/mps2/an521"],
Matthew Dalzella8e4cf42025-09-23 11:04:49 +01001470 "compiler": ["GCC_14_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001471 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001472 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001473 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001474 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001475 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001476 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001477 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001478 },
1479 "common_params": _common_tfm_builder_cfg,
1480 "invalid": _common_tfm_invalid_configs + []
1481 }
1482
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001483config_debug_regr = deepcopy(config_debug)
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001484config_debug_regr["seed_params"]["test_regression"] = ["RegBL2, RegS, RegNS"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001485
1486config_debug_PSA_API = {"seed_params": {
1487 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001488 "compiler": ["ARMCLANG_6_21"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001489 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001490 "test_regression": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001491 "test_psa_api": ["CRYPTO",
1492 "INITIAL_ATTESTATION",
1493 "STORAGE",
1494 "IPC"],
1495 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001496 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001497 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001498 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001499 },
1500 "common_params": _common_tfm_builder_cfg,
1501 "invalid": _common_tfm_invalid_configs + []
1502 }
1503
Matthew Dalzell06e8f692024-11-09 00:55:06 +00001504
1505
Karl Zhangaff558a2020-05-15 14:28:23 +01001506_builtin_configs = {
Xinyu Zhang5c4f2182023-10-31 16:26:45 +08001507 # per-patch test group
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001508 "pp_test": config_pp_test,
Karl Zhang14573bc2020-06-08 09:23:21 +08001509
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001510 # nightly test groups
1511 "nightly_test": config_nightly_test,
Umair Khan80332b62025-09-25 14:06:24 +01001512 "nightly_fih_test": config_fih_test,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001513 "nightly_profile_s": config_profile_s,
1514 "nightly_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +08001515 "nightly_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001516 "nightly_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001517 "nightly_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001518 "nightly_cc_driver_psa": config_cc_driver_psa,
Antonio de Angelis9d7f0842025-06-27 22:23:51 +01001519 "nightly_cc3xx_runtime_enabled": config_cc3xx_runtime_enabled,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001520 "nightly_fp":config_fp,
1521 "nightly_psa_api": config_psa_api,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001522 "nightly_nsce": config_nsce,
1523 "nightly_mmio": config_mmio,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001524 "nightly_cs300_an547": config_cs300_an547,
1525 "nightly_cs300_an552": config_cs300_an552,
1526 "nightly_cs300_fvp": config_cs300_fvp,
Bence Balogh8731a092022-05-24 17:24:54 +02001527 "nightly_corstone310": config_corstone310,
Nicola Mazzucatobde5d432024-05-20 11:43:18 +01001528 "nightly_corstone310_pacbti" : config_corstone310_pacbti,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001529 "nightly_corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001530 "nightly_corstone320": config_corstone320,
Antonio de Angelis92ad2442023-08-07 15:00:32 +02001531 "nightly_corstone1000": config_corstone1000,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001532 #"nightly_rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001533 "nightly_rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301534 "nightly_rse_rdv3": config_rse_rdv3,
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001535 "nightly_rse_rdv3r1": config_rse_rdv3r1,
Ambroise Vincenteba3c5c2025-08-26 08:46:23 +01001536 "nightly_rse_cssaspen": config_rse_cssaspen,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001537 "nightly_rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001538 "nightly_psoc64": config_psoc64,
Anton Komlev55c3c022024-03-05 16:24:17 +01001539 "nightly_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -08001540 "nightly_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001541 "nightly_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001542 "nightly_lpcxpresso55s69": config_lpcxpresso55s69,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001543 "nightly_rp2350": config_rp2350,
Matthew Dalzell06e8f692024-11-09 00:55:06 +00001544 "nightly_all_plat": config_all_plat,
Matthew Dalzella4a5dc72025-09-10 16:25:34 +01001545 "nightly_erpc" : config_erpc_test,
Karl Zhang14573bc2020-06-08 09:23:21 +08001546
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001547 # release test groups
1548 "release_test": config_release_test,
1549 "release_profile_s": config_profile_s,
1550 "release_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +08001551 "release_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001552 "release_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001553 "release_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001554 "release_cc_driver_psa": config_cc_driver_psa,
1555 "release_fp": config_fp,
1556 "release_psa_api": config_psa_api,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001557 "release_nsce": config_nsce,
1558 "release_mmio": config_mmio,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001559 "release_cs300_an547": config_cs300_an547,
1560 "release_cs300_an552": config_cs300_an552,
1561 "release_cs300_fvp": config_cs300_fvp,
Bence Balogh8731a092022-05-24 17:24:54 +02001562 "release_corstone310": config_corstone310,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001563 "release_corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001564 "release_corstone320": config_corstone320,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001565 #"release_rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001566 "release_rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301567 "release_rse_rdv3": config_rse_rdv3,
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001568 "release_rse_rdv3r1": config_rse_rdv3r1,
Ambroise Vincenteba3c5c2025-08-26 08:46:23 +01001569 "release_rse_cssaspen": config_rse_cssaspen,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001570 "release_rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001571 "release_psoc64": config_psoc64,
Anton Komlev55c3c022024-03-05 16:24:17 +01001572 "release_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -08001573 "release_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001574 "release_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001575 "release_lpcxpresso55s69": config_lpcxpresso55s69,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001576 "release_rp2350": config_rp2350,
Matthew Dalzella4a5dc72025-09-10 16:25:34 +01001577 "release_erpc" : config_erpc_test,
Karl Zhang14573bc2020-06-08 09:23:21 +08001578
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001579 # code coverage test groups
1580 "coverage_profile_s": config_cov_profile_s,
1581 "coverage_profile_m": config_cov_profile_m,
1582 "coverage_profile_l": config_cov_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001583 "coverage_ipc_backend": config_cov_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001584 "coverage_nsce": config_cov_nsce,
1585 "coverage_mmio": config_cov_mmio,
Xinyu Zhang5f725ee2022-12-19 10:29:20 +08001586 "coverage_fp": config_cov_fp,
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001587
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +03001588 # MISRA analysis
1589 "misra": config_misra,
Paul Sokolovskya526e5d2023-06-15 09:49:13 +03001590 "misra_debug": config_misra_debug,
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +03001591
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001592 # platform groups
1593 "an521": config_an521,
1594 "an519": config_an519,
1595 "an524": config_an524,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001596 "cs300_an547": config_cs300_an547,
1597 "cs300_an552": config_cs300_an552,
1598 "cs300_fvp": config_cs300_fvp,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001599 "musca_b1": config_musca_b1,
Bence Balogh8731a092022-05-24 17:24:54 +02001600 "corstone310": config_corstone310,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001601 "corstone315": config_corstone315,
Gergely Korcsák78a4d142024-08-05 07:41:36 +02001602 "corstone320": config_corstone320,
Antonio de Angelis78a01fc2025-02-06 11:11:25 +00001603 #"rse_tc3": config_rse_tc3,
Jackson Cooper-Driver164c54c2025-01-08 11:56:07 +00001604 "rse_tc4": config_rse_tc4,
Ishan Deshpande80d840e2025-01-09 18:46:56 +05301605 "rse_rdv3": config_rse_rdv3,
Nicola Mazzucato75b76af2025-02-07 15:20:59 +00001606 "rse_rdv3r1": config_rse_rdv3r1,
Ambroise Vincenteba3c5c2025-08-26 08:46:23 +01001607 "rse_cssaspen": config_rse_cssaspen,
Ziad Elhanafy937333f2024-05-22 14:17:40 +01001608 "rse_rd1ae": config_rse_rd1ae,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001609 "cypress_psoc64": config_psoc64,
Antonio de Angelis92ad2442023-08-07 15:00:32 +02001610 "corstone1000": config_corstone1000,
Anton Komlev55c3c022024-03-05 16:24:17 +01001611 "stm_stm32l562e_dk": config_stm32l562e_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001612 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001613 "stm_stm32h573i_dk": config_stm32h573i_dk,
Matthew Dalzelld5325dd2025-04-17 14:46:10 +01001614 "stm_stm32wba65i_dk" : config_stm32wba65i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001615 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1616 "nxp_lpcxpresso55s69": config_lpcxpresso55s69,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001617 "nordic_nrf5340dk": config_nrf5340dk,
1618 "nordic_nrf9160dk": config_nrf9160dk,
1619 "nuvoton_m2351": config_m2351,
1620 "nuvoton_m2354": config_m2354,
Dávid Házi0bd447f2024-10-24 19:44:31 +00001621 "rp2350": config_rp2350,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001622
Bence Balogh79fda442022-10-14 18:01:37 +02001623 # config groups for tf-m-extras examples
1624 "example_vad": config_example_vad,
1625 "example_dma350_trigger": config_example_dma350_trigger,
Bence Balogh852f8bd2023-08-07 14:46:54 +02001626 "example_dma350_clcd": config_example_dma350_clcd,
Bence Balogh79fda442022-10-14 18:01:37 +02001627 "example_dma350_s": config_example_dma350_s,
Bence Baloghd23cbda2023-08-07 15:30:58 +02001628 "example_dma350_ns": config_example_dma350_ns,
Bence Balogh79fda442022-10-14 18:01:37 +02001629
Jianliang Shen48704152023-10-17 17:06:00 +08001630 # config groups for tf-m performance monitor
1631 "mem_footprint": config_mem_footprint,
Jianliang Shen5492f752023-07-27 15:59:01 +08001632 "profiling": config_prof,
1633
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001634 # config groups for debug
Dean Birch4c6ad622020-03-13 11:28:03 +00001635 "debug": config_debug,
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001636 "debug_regr": config_debug_regr,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001637 "debug_PSA_API": config_debug_PSA_API,
Nicola Mazzucatoe932bd72025-04-14 17:11:10 +01001638
Matthew Dalzella4a5dc72025-09-10 16:25:34 +01001639 # config groups for eRPC
1640 "erpc_test" : config_erpc_test,
1641
Nicola Mazzucatoe932bd72025-04-14 17:11:10 +01001642 # groups for build-only
1643 "rse_build_only": config_rse_build_only,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001644 }
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001645
1646if __name__ == '__main__':
1647 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001648
Nicola Mazzucato935f9cb2025-05-16 17:21:07 +01001649 # Default behavior is to export reference config when called
Minos Galanakisea421232019-06-20 17:11:28 +01001650 _dir = os.getcwd()
1651 from utils import save_json
1652 for _cname, _cfg in _builtin_configs.items():
1653 _fname = os.path.join(_dir, _cname + ".json")
1654 print("Exporting config %s" % _fname)
1655 save_json(_fname, _cfg)