blob: fc3c82c435101799fcced7dc1d7a4b1496e288ad [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/*
Gergely Korcsákba0c5212024-04-03 18:21:49 +020011 * Copyright (c) 2018-2024, Arm Limited. All rights reserved.
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010012 *
13 * SPDX-License-Identifier: BSD-3-Clause
14 *
15 */
16 """
Karl Zhang08681e62020-10-30 13:56:03 +080017
18__author__ = "tf-m@lists.trustedfirmware.org"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010019__project__ = "Trusted Firmware-M Open CI"
Xinyu Zhang06286a92021-07-22 14:00:51 +080020__version__ = "1.4.0"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010021
Paul Sokolovsky3e8fce02022-04-07 01:23:30 +030022from copy import deepcopy
23
24
Minos Galanakisea421232019-06-20 17:11:28 +010025# common parameters for tf-m build system
26# This configuration template will be passed into the tfm-builder module after
27# the template evaluation is converted to a command
28
29_common_tfm_builder_cfg = {
30 "config_type": "tf-m",
31 "codebase_root_dir": "tf-m",
32 # Order to which the variants are evaluated. This affects the name of
33 # variant configuration and the wildcard replacement logic in invalid
34 # configuration tuples
Xinyu Zhangb708f572020-09-15 11:43:46 +080035 "sort_order": ["tfm_platform",
Xinyu Zhang433771e2022-04-01 16:49:17 +080036 "compiler",
Xinyu Zhangb708f572020-09-15 11:43:46 +080037 "isolation_level",
38 "test_regression",
39 "test_psa_api",
Minos Galanakisea421232019-06-20 17:11:28 +010040 "cmake_build_type",
Xinyu Zhangb708f572020-09-15 11:43:46 +080041 "with_bl2",
Xinyu Zhang9fd74242020-10-22 11:30:50 +080042 "profile",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +080043 "extra_params"],
Minos Galanakisea421232019-06-20 17:11:28 +010044
45 # Keys for the templace will come from the combinations of parameters
46 # provided in the seed dictionary.
47
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080048 "spe_config_template": "cmake -G Ninja " + \
Jianliang Shen7905e5d2023-11-07 10:40:47 +080049 "-S %(spe_root_dir)s " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080050 "-B %(ci_build_root_dir)s/spe " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080051 "-DTFM_PLATFORM=%(tfm_platform)s " + \
Xinyu Zhang85588522023-10-31 13:58:04 +080052 "-DTFM_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(s_compiler)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080053 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
Xinyu Zhangb18ae742023-04-25 14:33:27 +080054 "%(test_regression)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080055 "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080056 "-DTEST_PSA_API=%(test_psa_api)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080057 "-DBL2=%(with_bl2)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080058 "-DTFM_PROFILE=%(profile)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080059 "%(extra_params)s " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080060 "-DCONFIG_TFM_SOURCE_PATH=%(codebase_root_dir)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080061 "-DMBEDCRYPTO_PATH=%(codebase_root_dir)s/../mbedtls " + \
62 "-DPSA_ARCH_TESTS_PATH=%(codebase_root_dir)s/../psa-arch-tests " + \
63 "-DMCUBOOT_PATH=%(codebase_root_dir)s/../mcuboot " + \
Xinyu Zhang1f21cb22023-06-26 17:56:49 +080064 "-DQCBOR_PATH=%(codebase_root_dir)s/../qcbor " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080065 "-DTFM_EXTRAS_REPO_PATH=%(codebase_root_dir)s/../tf-m-extras ",
66
67 "nspe_config_template": "cmake -G Ninja " + \
Jianliang Shen7905e5d2023-11-07 10:40:47 +080068 "-S %(nspe_root_dir)s " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080069 "-B %(ci_build_root_dir)s/nspe " + \
70 "-DCONFIG_SPE_PATH=%(ci_build_root_dir)s/spe/api_ns " + \
Xinyu Zhang85588522023-10-31 13:58:04 +080071 "-DTFM_TOOLCHAIN_FILE=%(ci_build_root_dir)s/spe/api_ns/cmake/%(ns_compiler)s " + \
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080072 "%(extra_params)s " + \
73 "-DQCBOR_PATH=%(codebase_root_dir)s/../qcbor ",
74
75 # CMake build commands will be executed for every build.
76 "spe_cmake_build": "cmake --build %(ci_build_root_dir)s/spe -- install",
77 "nspe_cmake_build": "cmake --build %(ci_build_root_dir)s/nspe --",
Karl Zhangaff558a2020-05-15 14:28:23 +010078
Xinyu Zhang433771e2022-04-01 16:49:17 +080079 "set_compiler_path": "export PATH=$PATH:$%(compiler)s_PATH",
80
Minos Galanakisea421232019-06-20 17:11:28 +010081 # A small subset of string substitution params is allowed in commands.
82 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
83 # _tbm_target_platform_ with the paths set when building
84
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080085 "artifact_capture_rex": (r'%(ci_build_root_dir)s/nspe'
Minos Galanakisea421232019-06-20 17:11:28 +010086 r'/(\w+\.(?:axf|bin|hex))$'),
87
Xinyu Zhang46b37182023-06-30 15:36:44 +080088 # Keys will append extra commands when matching target_platform
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080089 "post_build": {"arm/corstone1000": ("dd conv=notrunc bs=1 if=%(ci_build_root_dir)s/spe/bin/bl1_1.bin of=%(ci_build_root_dir)s/spe/bin/bl1.bin seek=0;"
90 "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=40960;"
Xinyu Zhang09acfbf2023-10-30 18:30:48 +080091 "%(codebase_root_dir)s/platform/ext/target/arm/corstone1000/create-flash-image.sh %(ci_build_root_dir)s/spe/bin/ cs1000.bin;"),
Emekcan Aras6df7d552023-08-15 09:54:42 +010092 "arm/musca_b1": ("srec_cat "
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +080093 "%(ci_build_root_dir)s/spe/bin/"
94 "bl2.bin "
95 "-Binary -offset 0xA000000 "
96 "-fill 0xFF 0xA000000 0xA020000 "
97 "%(ci_build_root_dir)s/nspe/"
98 "tfm_s_ns_signed.bin "
99 "-Binary -offset 0xA020000 "
100 "-fill 0xFF 0xA020000 0xA200000 "
101 "-o %(ci_build_root_dir)s/"
Antonio de Angelised5a22d2025-07-06 21:38:15 +0100102 "spe/bin/tfm.hex -Intel;"
103 "fi;"),
104 "arm/rse/tc/tc3": ("if [ -f \"%(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin\" ]; then "
105 "srec_cat "
106 "%(ci_build_root_dir)s/spe/bin/bl1_1.bin -Binary -offset 0x0 "
107 "%(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin -Binary -offset 0x10000 "
108 "%(ci_build_root_dir)s/spe/bin/rom_dma_ics.bin -Binary -offset 0x1F000 "
109 "-o %(ci_build_root_dir)s/spe/bin/rom.bin -Binary;"
110 "else "
111 "srec_cat "
112 "%(ci_build_root_dir)s/spe/bin/bl1_1.bin -Binary -offset 0x0 "
113 "%(ci_build_root_dir)s/spe/bin/rom_dma_ics.bin -Binary -offset 0x1F000 "
114 "-o %(ci_build_root_dir)s/spe/bin/rom.bin -Binary;"
115 "fi;"
116 "curl --fail --no-progress-meter --connect-timeout 10 --retry 6 -LS -o fiptool https://downloads.trustedfirmware.org/tf-m/rse/tc/tc3/fiptool;"
117 "chmod 755 fiptool;"
118 "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;"
119 "./fiptool update "
120 "--align 8192 --rse-bl2 %(ci_build_root_dir)s/spe/bin/bl2_signed.bin "
121 "--align 8192 --rse-s %(ci_build_root_dir)s/spe/bin/tfm_s_encrypted.bin "
122 "--align 8192 --rse-ns %(ci_build_root_dir)s/nspe/bin/tfm_ns_encrypted.bin "
123 "--align 8192 --rse-sic-tables-s %(ci_build_root_dir)s/spe/bin/tfm_s_sic_tables_signed.bin "
124 "--align 8192 --rse-sic-tables-ns %(ci_build_root_dir)s/nspe/bin/tfm_ns_sic_tables_signed.bin "
125 "--out %(ci_build_root_dir)s/spe/bin/host_flash.bin "
126 "fip.bin"),
127 "arm/rse/tc/tc4": ("if [ -f \"%(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin\" ]; then "
128 "srec_cat "
129 "%(ci_build_root_dir)s/spe/bin/bl1_1.bin -Binary -offset 0x0 "
130 "%(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin -Binary -offset 0x18000 "
131 "%(ci_build_root_dir)s/spe/bin/rom_dma_ics.bin -Binary -offset 0x1F000 "
132 "-o %(ci_build_root_dir)s/spe/bin/rom.bin -Binary;"
133 "else "
134 "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;"
138 "fi;"
139 # fiptool in tc3 directory also compatible with tc4 fip.bin
140 "curl --fail --no-progress-meter --connect-timeout 10 --retry 6 -LS -o fiptool https://downloads.trustedfirmware.org/tf-m/rse/tc/tc3/fiptool;"
141 "chmod 755 fiptool;"
142 "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;"
143 "./fiptool update "
144 "--align 8192 --rse-bl2 %(ci_build_root_dir)s/spe/bin/bl2_signed.bin "
145 "--align 8192 --rse-s %(ci_build_root_dir)s/spe/bin/tfm_s_encrypted.bin "
146 "--align 8192 --rse-ns %(ci_build_root_dir)s/nspe/bin/tfm_ns_encrypted.bin "
147 "--align 8192 --rse-sic-tables-s %(ci_build_root_dir)s/spe/bin/tfm_s_sic_tables_signed.bin "
148 "--align 8192 --rse-sic-tables-ns %(ci_build_root_dir)s/nspe/bin/tfm_ns_sic_tables_signed.bin "
149 "--out %(ci_build_root_dir)s/spe/bin/host_flash.bin "
150 "fip.bin"),
Xinyu Zhang46b37182023-06-30 15:36:44 +0800151 "stm/stm32l562e_dk": ("echo 'STM32L562E-DK board post process';"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800152 "%(ci_build_root_dir)s/spe/api_ns/postbuild.sh;"
153 "pushd %(ci_build_root_dir)s/spe/api_ns;"
154 "mkdir -p image_signing/scripts ;"
155 "cp %(ci_build_root_dir)s/nspe/bin/tfm_ns_signed.bin image_signing/scripts ;"
156 "tar jcf ./bin/stm32l562e-dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh "
157 "bin/bl2.bin "
158 "bin/tfm_s_signed.bin "
159 "image_signing/scripts/tfm_ns_signed.bin ;"
Xinyu Zhang46b37182023-06-30 15:36:44 +0800160 "popd"),
161 "stm/b_u585i_iot02a": ("echo 'STM32U5 board post process';"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800162 "%(ci_build_root_dir)s/spe/api_ns/postbuild.sh;"
163 "pushd %(ci_build_root_dir)s/spe/api_ns;"
164 "mkdir -p image_signing/scripts ;"
165 "cp %(ci_build_root_dir)s/nspe/bin/tfm_ns_signed.bin image_signing/scripts ;"
166 "tar jcf ./bin/b_u585i_iot02a-tfm.tar.bz2 regression.sh TFM_UPDATE.sh "
167 "bin/bl2.bin "
168 "bin/tfm_s_signed.bin "
169 "image_signing/scripts/tfm_ns_signed.bin ;"
Xinyu Zhang46b37182023-06-30 15:36:44 +0800170 "popd"),
Anton Komlev4164ab62024-02-23 10:59:56 +0100171 "stm/stm32h573i_dk": ("echo 'STM32H573I-DK board post process';"
172 "%(ci_build_root_dir)s/spe/api_ns/postbuild.sh;"
173 "pushd %(ci_build_root_dir)s/spe/api_ns;"
174 "mkdir -p image_signing/scripts ;"
175 "cp %(ci_build_root_dir)s/nspe/bin/tfm_ns_signed.bin image_signing/scripts ;"
176 "tar jcf ./bin/stm32h573i_dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh "
177 "bin/bl2.bin "
178 "bin/tfm_s_signed.bin "
179 "image_signing/scripts/tfm_ns_signed.bin ;"
180 "popd"),
Matthew Dalzella4595bb2024-04-17 18:13:31 +0100181 "nxp/lpcxpresso55s69": ("echo 'LPCXpresso55S69 bo.ard post process\n';"
182 "mkdir -p %(codebase_root_dir)s/build/bin ;"
183 # Workaround for flash_JLink.py
184 "cp %(ci_build_root_dir)s/spe/bin/tfm_s.hex %(codebase_root_dir)s/build/bin ;"
185 "cp %(ci_build_root_dir)s/nspe/bin/tfm_ns.hex %(codebase_root_dir)s/build/bin ;"
186 "cd %(codebase_root_dir)s/build/bin; "
187 "rm -f flash.jlink; "
188 "if [ -f \"%(ci_build_root_dir)s/spe/bin/bl2.hex\" ]; then "
189 "echo r >> flash.jlink; "
190 "echo erase >> flash.jlink; "
191 "echo loadfile bl2.hex >> flash.jlink; "
192 "echo loadfile tfm_s_ns_signed.bin -0x8000 >> flash.jlink; "
193 "echo r >> flash.jlink; "
194 "echo go >> flash.jlink; "
195 "echo exit >> flash.jlink; "
196 "else "
197 "echo r >> flash.jlink; "
198 "echo erase >> flash.jlink; "
199 "echo loadfile tfm_s.hex >> flash.jlink; "
200 "echo loadfile tfm_ns.hex >> flash.jlink; "
201 "echo r >> flash.jlink; "
202 "echo go >> flash.jlink; "
203 "echo exit >> flash.jlink; "
204 "fi;"
205 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"
206 "tar jcf lpcxpresso55s69-tfm.tar.bz2 flash.jlink ${BIN_FILES};"
207 "mv lpcxpresso55s69-tfm.tar.bz2 %(ci_build_root_dir)s/nspe/bin ;"
208 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"),
Xinyu Zhang46b37182023-06-30 15:36:44 +0800209 "cypress/psoc64": ("echo 'Sign binaries for Cypress PSoC64 platform';"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800210 "pushd %(codebase_root_dir)s/;"
Arthur She87602dc2022-02-06 14:42:18 -0800211 "sudo /usr/local/bin/cysecuretools "
212 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
213 "--target cy8ckit-064s0s2-4343w "
214 "sign-image "
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800215 "--hex %(ci_build_root_dir)s/spe/bin/tfm_s.hex "
Arthur She87602dc2022-02-06 14:42:18 -0800216 "--image-type BOOT --image-id 1;"
217 "sudo /usr/local/bin/cysecuretools "
218 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
219 "--target cy8ckit-064s0s2-4343w "
220 "sign-image "
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800221 "--hex %(ci_build_root_dir)s/nspe/bin/tfm_ns.hex "
Arthur She87602dc2022-02-06 14:42:18 -0800222 "--image-type BOOT --image-id 16;"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800223 "mv %(ci_build_root_dir)s/spe/bin/tfm_s.hex %(ci_build_root_dir)s/spe/bin/tfm_s_signed.hex;"
224 "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 +0800225 "popd")
Minos Galanakisea421232019-06-20 17:11:28 +0100226 },
227
228 # (Optional) If set will fail if those artefacts are missing post build
229 "required_artefacts": {"all": [
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800230 "%(ci_build_root_dir)s/spe/bin/"
Xinyu Zhangb708f572020-09-15 11:43:46 +0800231 "tfm_s.bin",
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800232 "%(ci_build_root_dir)s/nspe/"
Xinyu Zhangb708f572020-09-15 11:43:46 +0800233 "tfm_ns.bin"],
Mark Horvathef57baa2022-09-12 13:36:36 +0200234 "arm/musca_b1": [
Antonio de Angelised5a22d2025-07-06 21:38:15 +0100235 "%(ci_build_root_dir)s/tfm.hex",
236 "%(ci_build_root_dir)s/spe/bin/"
237 "bl2.bin",
238 "%(ci_build_root_dir)s/spe/bin/"
239 "tfm_sign.bin"],
240 "arm/rse/tc/tc3": [
241 "%(ci_build_root_dir)s/spe/bin/rom.bin",
242 "%(ci_build_root_dir)s/spe/bin/provisioning/combined_provisioning_message.bin",
243 "%(ci_build_root_dir)s/spe/bin/host_flash.bin"],
244 "arm/rse/tc/tc4": [
245 "%(ci_build_root_dir)s/spe/bin/rom.bin",
246 "%(ci_build_root_dir)s/spe/bin/provisioning/combined_provisioning_message.bin",
247 "%(ci_build_root_dir)s/spe/bin/host_flash.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100248 }
249}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100250
Xinyu Zhangb708f572020-09-15 11:43:46 +0800251# List of all build configs that are impossible under all circumstances
252_common_tfm_invalid_configs = [
Antonio de Angelised5a22d2025-07-06 21:38:15 +0100253 # LR_CODE size exceeds limit on MUSCA_B1 with regression tests in Debug mode built with ARMCLANG
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300254 ("arm/musca_b1", "ARMCLANG_6_21", "*", "RegBL2, RegS, RegNS", "OFF", "Debug", "*", "", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800255 # Load range overlap on Musca for IPC Debug type: T895
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300256 ("arm/musca_b1", "ARMCLANG_6_21", "*", "*", "IPC", "Debug", "*", "*", "*"),
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300257 # FF does not support L3
Summer Qin379abb62022-10-08 16:41:54 +0800258 ("*", "*", "3", "*", "IPC", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800259 # Musca requires BL2
Summer Qin379abb62022-10-08 16:41:54 +0800260 ("arm/musca_b1", "*", "*", "*", "*", "*", False, "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800261 # Only AN521 and MUSCA_B1 support Isolation Level 3
Summer Qin379abb62022-10-08 16:41:54 +0800262 ("arm/mps2/an519", "*", "3", "*", "*", "*", "*", "*", "*"),
263 ("arm/mps3/an524", "*", "3", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800264 ]
265
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100266# Configure build manager to build several combinations
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800267# Config group for per-patch job
268config_pp_test = {"seed_params": {
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800269 # AN519_ARMCLANG_IPC_1_RegBL2_RegS_RegNS_Debug_BL2
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800270 "tfm_platform": ["arm/mps2/an519"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300271 "compiler": ["ARMCLANG_6_21"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800272 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800273 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800274 "test_psa_api": ["OFF"],
275 "cmake_build_type": ["Debug"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800276 "with_bl2": [True],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800277 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800278 "extra_params": [""]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800279 },
280 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800281 "valid": [
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800282 # AN519_ARMCLANG_2_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300283 ("arm/mps2/an519", "ARMCLANG_6_21", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800284 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
285 # AN519_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800286 ("arm/mps2/an519", "GCC_10_3", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800287 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
288 # AN519_GCC_2_RegBL2_RegS_RegNS_Release_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800289 ("arm/mps2/an519", "GCC_10_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800290 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
291 # AN519_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800292 ("arm/mps2/an519", "GCC_10_3", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800293 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
294 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_SMALL_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300295 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800296 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "profile_small", "PSOFF"),
297 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300298 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800299 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Jianliang Shen6984bef2023-07-25 10:36:56 +0800300 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_IPC
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300301 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Jianliang Shen6984bef2023-07-25 10:36:56 +0800302 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", "IPC"),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800303 # AN521_ARMCLANG_2_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300304 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800305 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
306 # AN521_ARMCLANG_3_RegBL2_RegS_RegNS_Minsizerel_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300307 ("arm/mps2/an521", "ARMCLANG_6_21", "3",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800308 "RegBL2, RegS, RegNS", "OFF", "Minsizerel", True, "", ""),
309 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_SMALL_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300310 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800311 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "profile_small", "PSOFF"),
312 # AN521_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800313 ("arm/mps2/an521", "GCC_10_3", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800314 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800315 # AN521_GCC_2_Debug_BL2_MEDIUM
316 ("arm/mps2/an521", "GCC_10_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800317 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "profile_medium", ""),
318 # AN521_GCC_2_RegBL2_RegS_RegNS_Release_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800319 ("arm/mps2/an521", "GCC_10_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800320 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
321 # AN521_GCC_3_RegBL2_RegS_RegNS_Minsizerel_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800322 ("arm/mps2/an521", "GCC_10_3", "3",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800323 "RegBL2, RegS, RegNS", "OFF", "Minsizerel", True, "", ""),
324 # AN521_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800325 ("arm/mps2/an521", "GCC_10_3", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800326 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Xinyu Zhang280f5ab2023-10-31 16:17:21 +0800327 # AN521_GCC_1_FF_Release_BL2
328 ("arm/mps2/an521", "GCC_10_3", "1",
329 "OFF", "IPC", "Release", True, "", ""),
330 # AN521_ARMCLANG_2_STORAGE_Debug_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300331 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Xinyu Zhang280f5ab2023-10-31 16:17:21 +0800332 "OFF", "STORAGE", "Debug", True, "", ""),
Bence Balogh1aa8d582023-08-29 13:10:02 +0200333 # CS300_FVP_GNUARM_2_RegBL2_RegS_RegNS_Debug_BL2
334 ("arm/mps3/corstone300/fvp", "GCC_10_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800335 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Bence Balogh1aa8d582023-08-29 13:10:02 +0200336 # CS300_FVP_GNUARM_2_RegBL2_RegS_RegNS_Release_BL2
337 ("arm/mps3/corstone300/fvp", "GCC_10_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800338 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
Xinyu Zhang5c4f2182023-10-31 16:26:45 +0800339 # corstone1000_GCC_2_RegS_Debug_BL2_NSOFF_CS1K_TEST_FVP
340 ("arm/corstone1000", "GCC_10_3", "2",
341 "RegS", "OFF", "Debug", True, "", "NSOFF, CS1K_TEST, FVP"),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800342 # MUSCA_B1_GCC_1_RegBL2_RegS_RegNS_Minsizerel_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800343 ("arm/musca_b1", "GCC_10_3", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800344 "RegBL2, RegS, RegNS", "OFF", "Minsizerel", True, "", ""),
Antonio de Angelised5a22d2025-07-06 21:38:15 +0100345 # MUSCA_B1_GCC_1_RegBL2_RegS_RegNS_Release_BL2_CC_DRIVER_PSA
346 ("arm/musca_b1", "GCC_13_2", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800347 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "CC_DRIVER_PSA"),
Jamie Fox5ae6fa42024-02-19 15:11:00 +0000348 # RSE_TC_GCC_2_Release_BL2_PSOFF
349 ("arm/rse/tc", "GCC_10_3", "2",
Xinyu Zhangeddc68a2023-11-07 12:08:26 +0800350 "RegS, RegNS", "OFF", "Release", True, "", "PSOFF"),
Joel Goddard2dd81a12024-01-23 15:10:08 +0000351 # RSE_RDFremont_GCC_2_Release_BL2_NSOFF_PSOFF_CFG0
352 ("arm/rse/rdfremont", "GCC_10_3", "2",
353 "OFF", "OFF", "Release", True, "", "NSOFF, PSOFF, CFG0"),
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800354 # stm32l562e_dk_ARMCLANG_1_RegS_RegNS_Release_BL2_CRYPTO_OFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300355 ("stm/stm32l562e_dk", "ARMCLANG_6_21", "1",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800356 "RegS, RegNS", "OFF", "Release", True, "", "CRYPTO_OFF"),
357 # stm32l562e_dk_GCC_2_Release_BL2_CRYPTO_ON
Summer Qin379abb62022-10-08 16:41:54 +0800358 ("stm/stm32l562e_dk", "GCC_10_3", "2",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800359 "OFF", "OFF", "Release", True, "", "CRYPTO_ON"),
360 # stm32l562e_dk_GCC_3_RegS_RegNS_Release_BL2_CRYPTO_OFF
Summer Qin379abb62022-10-08 16:41:54 +0800361 ("stm/stm32l562e_dk", "GCC_10_3", "3",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800362 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "CRYPTO_OFF"),
Arthur She4f08c152023-05-15 15:29:14 -0700363 # b_u585i_iot02a_GCC_1_RegS_RegNS_Release_BL2
364 ("stm/b_u585i_iot02a", "GCC_10_3", "1",
365 "RegS, RegNS", "OFF", "Release", True, "", ""),
366 # b_u585i_iot02a_ARMCLANG_2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300367 ("stm/b_u585i_iot02a", "ARMCLANG_6_21", "2",
Arthur She4f08c152023-05-15 15:29:14 -0700368 "RegS, RegNS", "OFF", "Release", True, "", ""),
Anton Komlev4164ab62024-02-23 10:59:56 +0100369 # stm32h573i_dk_GCC_1_RegS_RegNS_Release_BL2
370 ("stm/stm32h573i_dk", "GCC_10_3", "1",
371 "RegS, RegNS", "OFF", "Release", True, "", ""),
372 # stm32h573i_dk_ARMCLANG_2_RegS_RegNS_Release_BL2
373 ("stm/stm32h573i_dk", "ARMCLANG_6_21", "2",
374 "RegS, RegNS", "OFF", "Release", True, "", ""),
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800375 # psoc64_GCC_2_RegS_RegNS_Release
Summer Qin379abb62022-10-08 16:41:54 +0800376 ("cypress/psoc64", "GCC_10_3", "2",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800377 "RegS, RegNS", "OFF", "Release", False, "", ""),
Nicola Mazzucatodbf5d752024-10-28 14:42:17 +0000378 # rp2350_GCC_2_RegBL2_RegS_RegNS_Release_BL2_MEDIUM
Dávid Házi32be32d2024-10-24 19:44:31 +0000379 ("rpi/rp2350", "GCC_10_3", "2",
Nicola Mazzucatodbf5d752024-10-28 14:42:17 +0000380 "RegBL2, RegS, RegNS", "OFF", "Release", True, "profile_medium", ""),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800381 ],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800382 "invalid": _common_tfm_invalid_configs + []
383 }
384
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800385# Config group for nightly job
386config_nightly_test = {"seed_params": {
387 "tfm_platform": ["arm/mps2/an519",
388 "arm/mps2/an521",
389 "arm/mps3/an524",
Mark Horvathef57baa2022-09-12 13:36:36 +0200390 "arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300391 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800392 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800393 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800394 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800395 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800396 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800397 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800398 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100399 },
400 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800401 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100402 }
403
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800404# Config group for release job
405config_release_test = {"seed_params": {
406 "tfm_platform": ["arm/mps2/an519",
407 "arm/mps2/an521",
408 "arm/mps3/an524",
Antonio de Angelised5a22d2025-07-06 21:38:15 +0100409 "arm/musca_b1"],
410 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800411 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800412 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800413 "test_psa_api": ["OFF"],
414 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800415 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800416 "profile": [""],
David Vinczed78e2622022-11-24 15:04:00 +0100417 "extra_params": ["TEST_CBOR"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800418 },
419 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800420 "valid": [
421 # sanity test for GCC v11.2
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800422 # AN521_GCC_3_RegBL2_RegS_RegNS_Relwithdebinfo_BL2
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800423 ("arm/mps2/an521", "GCC_11_2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800424 "3", "RegBL2, RegS, RegNS", "OFF", "Relwithdebinfo",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800425 True, "", ""),
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800426 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800427 "invalid": _common_tfm_invalid_configs + []
428 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800429
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800430# Config groups for TF-M features
431config_profile_s = {"seed_params": {
David Huda27ae72022-03-28 15:32:19 +0800432 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300433 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
David Huda27ae72022-03-28 15:32:19 +0800434 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800435 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
David Huda27ae72022-03-28 15:32:19 +0800436 "test_psa_api": ["OFF"],
437 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
David Huda27ae72022-03-28 15:32:19 +0800438 "with_bl2": [True],
David Huda27ae72022-03-28 15:32:19 +0800439 "profile": ["profile_small"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800440 "extra_params": ["PSOFF"]
David Huda27ae72022-03-28 15:32:19 +0800441 },
442 "common_params": _common_tfm_builder_cfg,
David Huda27ae72022-03-28 15:32:19 +0800443 "invalid": _common_tfm_invalid_configs + [
Summer Qin379abb62022-10-08 16:41:54 +0800444 ("arm/mps2/an519", "GCC_10_3", "*", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800445 "*", "Minsizerel", "*", "*", "*")
David Huda27ae72022-03-28 15:32:19 +0800446 ]
447 }
448
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800449config_profile_m = {"seed_params": {
450 "tfm_platform": ["arm/mps2/an519",
451 "arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200452 "arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300453 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800454 "isolation_level": ["2"],
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"],
457 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800458 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800459 "profile": ["profile_medium"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800460 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800461 },
462 "common_params": _common_tfm_builder_cfg,
463 "invalid": _common_tfm_invalid_configs + []
464 }
465
David Hu3d333762022-10-27 18:12:33 +0800466config_profile_m_arotless = {"seed_params": {
467 "tfm_platform": ["arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300468 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
David Hu3d333762022-10-27 18:12:33 +0800469 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800470 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
David Hu3d333762022-10-27 18:12:33 +0800471 "test_psa_api": ["OFF"],
472 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
473 "with_bl2": [True],
474 "profile": ["profile_medium_arotless"],
475 "extra_params": ["", "PSOFF"]
476 },
477 "common_params": _common_tfm_builder_cfg,
478 "invalid": _common_tfm_invalid_configs + []
479 }
480
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800481config_profile_l = {"seed_params": {
482 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300483 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800484 "isolation_level": ["3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800485 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800486 "test_psa_api": ["OFF"],
487 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800488 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800489 "profile": ["profile_large"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800490 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800491 },
492 "common_params": _common_tfm_builder_cfg,
493 "invalid": _common_tfm_invalid_configs + []
494 }
495
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800496config_ipc_backend = {"seed_params": {
497 "tfm_platform": ["arm/mps2/an519",
498 "arm/mps2/an521",
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800499 "arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300500 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800501 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800502 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800503 "test_psa_api": ["OFF"],
504 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
505 "with_bl2": [True],
506 "profile": [""],
507 "extra_params": ["IPC"]
508 },
509 "common_params": _common_tfm_builder_cfg,
510 "invalid": _common_tfm_invalid_configs + []
511 }
512
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800513config_cc_driver_psa = {"seed_params": {
Antonio de Angelised5a22d2025-07-06 21:38:15 +0100514 "tfm_platform": ["arm/musca_b1"],
515 "compiler": ["GCC_13_2"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800516 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800517 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800518 "test_psa_api": ["OFF"],
519 "cmake_build_type": ["Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800520 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800521 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800522 "extra_params": ["CC_DRIVER_PSA"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800523 },
524 "common_params": _common_tfm_builder_cfg,
525 "invalid": _common_tfm_invalid_configs + []
526 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100527
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800528config_fp = {"seed_params": {
Xinyu Zhange91567c2023-09-13 14:10:11 +0800529 "tfm_platform": ["arm/mps2/an521",
530 "arm/mps3/corstone300/an552",
531 "arm/mps3/corstone300/fvp"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800532 "compiler": ["GCC_10_3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800533 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800534 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800535 "test_psa_api": ["OFF"],
536 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800537 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800538 "profile": [""],
Mark Horvath93cb5fb2022-09-06 17:51:24 +0200539 "extra_params": ["FPOFF", "FPON", "FPON, LZOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800540 },
541 "common_params": _common_tfm_builder_cfg,
542 "invalid": _common_tfm_invalid_configs + []
543 }
Karl Zhangeffed972020-06-30 15:48:01 +0800544
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800545config_psa_api = {"seed_params": {
546 "tfm_platform": ["arm/mps2/an521",
Antonio de Angelised5a22d2025-07-06 21:38:15 +0100547 "arm/musca_b1"],
548 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800549 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800550 "test_regression": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800551 "test_psa_api": ["IPC",
552 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800553 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800554 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800555 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800556 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800557 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800558 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800559 },
560 "common_params": _common_tfm_builder_cfg,
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300561 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800562 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800563
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800564config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800565 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300566 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800567 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800568 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800569 "test_psa_api": ["OFF"],
570 "cmake_build_type": ["Debug"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800571 "with_bl2": [True],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800572 "profile": [""],
Xinyu Zhang67612992021-12-20 14:11:27 +0800573 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800574 },
575 "common_params": _common_tfm_builder_cfg,
576 "invalid": _common_tfm_invalid_configs + []
577 }
578
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800579config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800580 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300581 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800582 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800583 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800584 "test_psa_api": ["OFF"],
585 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800586 "with_bl2": [True],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800587 "profile": [""],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800588 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800589 },
590 "common_params": _common_tfm_builder_cfg,
591 "invalid": _common_tfm_invalid_configs + []
592 }
593
Bence Balogh79fda442022-10-14 18:01:37 +0200594# Config groups for TF-M examples
595config_example_vad = {"seed_params": {
Bence Balogh1aa8d582023-08-29 13:10:02 +0200596 "tfm_platform": ["arm/mps3/corstone300/an552"],
Bence Balogh79fda442022-10-14 18:01:37 +0200597 "compiler": ["GCC_10_3"],
598 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800599 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200600 "test_psa_api": ["OFF"],
601 "cmake_build_type": ["Release"],
602 "with_bl2": [True],
603 "profile": [""],
604 "extra_params": ["EXAMPLE_VAD"]
605 },
606 "common_params": _common_tfm_builder_cfg,
607 "invalid": _common_tfm_invalid_configs + []
608 }
609
Bence Balogh852f8bd2023-08-07 14:46:54 +0200610config_example_dma350_clcd = {"seed_params": {
Bence Balogh79fda442022-10-14 18:01:37 +0200611 "tfm_platform": ["arm/mps3/corstone310/fvp"],
612 "compiler": ["GCC_10_3"],
613 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800614 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200615 "test_psa_api": ["OFF"],
616 "cmake_build_type": ["Release"],
617 "with_bl2": [True],
618 "profile": [""],
Bence Balogh852f8bd2023-08-07 14:46:54 +0200619 "extra_params": ["EXAMPLE_DMA350_CLCD"]
Bence Balogh79fda442022-10-14 18:01:37 +0200620 },
621 "common_params": _common_tfm_builder_cfg,
622 "invalid": _common_tfm_invalid_configs + []
623 }
624
625config_example_dma350_s = {"seed_params": {
626 "tfm_platform": ["arm/mps3/corstone310/fvp"],
627 "compiler": ["GCC_10_3"],
628 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800629 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200630 "test_psa_api": ["OFF"],
631 "cmake_build_type": ["Release"],
632 "with_bl2": [True],
633 "profile": [""],
634 "extra_params": ["EXAMPLE_DMA350_S"]
635 },
636 "common_params": _common_tfm_builder_cfg,
637 "invalid": _common_tfm_invalid_configs + []
638 }
639
Bence Baloghd23cbda2023-08-07 15:30:58 +0200640config_example_dma350_ns = {"seed_params": {
641 "tfm_platform": ["arm/mps3/corstone310/fvp"],
642 "compiler": ["GCC_10_3"],
643 "isolation_level": ["1"],
644 "test_regression": ["OFF"],
645 "test_psa_api": ["OFF"],
646 "cmake_build_type": ["Release"],
647 "with_bl2": [True],
648 "profile": [""],
649 "extra_params": ["EXAMPLE_DMA350_NS"]
650 },
651 "common_params": _common_tfm_builder_cfg,
652 "invalid": _common_tfm_invalid_configs + []
653 }
654
Bence Balogh79fda442022-10-14 18:01:37 +0200655config_example_dma350_trigger = {"seed_params": {
656 "tfm_platform": ["arm/mps3/corstone310/fvp"],
657 "compiler": ["GCC_10_3"],
658 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800659 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200660 "test_psa_api": ["OFF"],
661 "cmake_build_type": ["Release"],
662 "with_bl2": [True],
663 "profile": [""],
664 "extra_params": ["EXAMPLE_DMA350_TRIGGER"]
665 },
666 "common_params": _common_tfm_builder_cfg,
667 "invalid": _common_tfm_invalid_configs + []
668 }
669
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300670config_misra = {"seed_params": {
671 "tfm_platform": ["arm/musca_b1"],
672 "compiler": ["GCC_10_3"],
673 "isolation_level": ["1"],
674 "test_regression": ["OFF"],
675 "test_psa_api": ["OFF"],
676 "cmake_build_type": ["Debug"],
677 "with_bl2": [True],
Xinyu Zhange17926f2023-08-14 11:00:43 +0800678 "profile": ["profile_small", "profile_medium_arotless"],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300679 "extra_params": ["PSOFF"]
680 },
681 "common_params": _common_tfm_builder_cfg,
Xinyu Zhange17926f2023-08-14 11:00:43 +0800682 "valid": [
683 # MUSCA_B1_GCC_2_Debug_BL2_MEDIUM_PSOFF
684 ("arm/musca_b1", "GCC_10_3", "2", "OFF",
685 "OFF", "Debug", True, "profile_medium", "PSOFF"),
686 # MUSCA_B1_GCC_3_Debug_BL2_LARGE_PSOFF
687 ("arm/musca_b1", "GCC_10_3", "3", "OFF",
688 "OFF", "Debug", True, "profile_large", "PSOFF"),
689 ],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300690 "invalid": _common_tfm_invalid_configs + []
691 }
692
Paul Sokolovskya526e5d2023-06-15 09:49:13 +0300693config_misra_debug = {"seed_params": {
694 "tfm_platform": ["arm/musca_b1"],
695 "compiler": ["GCC_10_3"],
696 "isolation_level": ["1"],
697 "test_regression": ["OFF"],
698 "test_psa_api": ["OFF"],
699 "cmake_build_type": ["Debug"],
700 "with_bl2": [True],
701 "profile": ["profile_small"],
702 "extra_params": ["PSOFF"]
703 },
704 "common_params": _common_tfm_builder_cfg,
705 "invalid": _common_tfm_invalid_configs + []
706 }
707
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800708# Config groups for code coverage
709config_cov_profile_s = deepcopy(config_profile_s)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800710config_cov_profile_s["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800711config_cov_profile_s["seed_params"]["compiler"] = ["GCC_10_3"]
Xinyu Zhangbdc37e32022-04-06 17:47:44 +0800712
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800713config_cov_profile_m = deepcopy(config_profile_m)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800714config_cov_profile_m["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800715config_cov_profile_m["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800716
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800717config_cov_profile_l = deepcopy(config_profile_l)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800718config_cov_profile_l["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800719config_cov_profile_l["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800720
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800721config_cov_ipc_backend = deepcopy(config_ipc_backend)
722config_cov_ipc_backend["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
723config_cov_ipc_backend["seed_params"]["compiler"] = ["GCC_10_3"]
724
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800725config_cov_nsce = deepcopy(config_nsce)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800726config_cov_nsce["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800727config_cov_nsce["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800728
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800729config_cov_mmio = deepcopy(config_mmio)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800730config_cov_mmio["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800731config_cov_mmio["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800732
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800733config_cov_fp = deepcopy(config_fp)
734config_cov_fp["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang778424e2023-02-27 11:39:57 +0800735config_cov_fp["seed_params"]["compiler"] = ["GCC_10_3"]
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800736
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800737# Config groups for platforms
738config_an519 = {"seed_params": {
Xinyu Zhangf25856a2021-06-17 14:06:46 +0800739 "tfm_platform": ["arm/mps2/an519"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300740 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800741 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800742 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800743 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800744 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800745 "with_bl2": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800746 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800747 "extra_params": ["", "NSOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800748 },
749 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800750 "invalid": _common_tfm_invalid_configs + []
751 }
752
753config_an521 = {"seed_params": {
754 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300755 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800756 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800757 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800758 "test_psa_api": ["OFF"],
759 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800760 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800761 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800762 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800763 },
764 "common_params": _common_tfm_builder_cfg,
765 "invalid": _common_tfm_invalid_configs + []
766 }
767
768config_an524 = {"seed_params": {
769 "tfm_platform": ["arm/mps3/an524"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300770 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800771 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800772 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800773 "test_psa_api": ["OFF"],
774 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800775 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800776 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800777 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800778 },
779 "common_params": _common_tfm_builder_cfg,
780 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800781 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000782
Bence Balogh1aa8d582023-08-29 13:10:02 +0200783config_cs300_an547 = {"seed_params": {
784 "tfm_platform": ["arm/mps3/corstone300/an547"],
785 "compiler": ["GCC_10_3"],
786 "isolation_level": ["1"],
787 "test_regression": ["OFF"],
788 "test_psa_api": ["OFF"],
789 "cmake_build_type": ["Debug"],
790 "with_bl2": [True],
791 "profile": [""],
792 "extra_params": [""]
793 },
794 "common_params": _common_tfm_builder_cfg,
795 "invalid": _common_tfm_invalid_configs + []
796 }
Xinyu Zhang38b76742021-11-11 13:57:56 +0800797
Bence Balogh1aa8d582023-08-29 13:10:02 +0200798config_cs300_an552 = {"seed_params": {
799 "tfm_platform": ["arm/mps3/corstone300/an552"],
800 "compiler": ["GCC_10_3"],
801 "isolation_level": ["1", "2"],
802 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
803 "test_psa_api": ["OFF"],
804 "cmake_build_type": ["Debug", "Release"],
805 "with_bl2": [True],
806 "profile": [""],
807 "extra_params": [""]
808 },
809 "common_params": _common_tfm_builder_cfg,
810 "invalid": _common_tfm_invalid_configs + []
811 }
812
813config_cs300_fvp = {"seed_params": {
814 "tfm_platform": ["arm/mps3/corstone300/fvp"],
815 "compiler": ["GCC_10_3"],
816 "isolation_level": ["1", "2"],
817 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
818 "test_psa_api": ["OFF"],
819 "cmake_build_type": ["Debug", "Release"],
820 "with_bl2": [True],
821 "profile": [""],
822 "extra_params": [""]
823 },
824 "common_params": _common_tfm_builder_cfg,
825 "invalid": _common_tfm_invalid_configs + []
826 }
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800827
828config_musca_b1 = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200829 "tfm_platform": ["arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300830 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800831 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800832 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800833 "test_psa_api": ["OFF"],
834 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800835 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800836 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800837 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800838 },
839 "common_params": _common_tfm_builder_cfg,
840 "invalid": _common_tfm_invalid_configs + []
841 }
842
Bence Balogh8731a092022-05-24 17:24:54 +0200843config_corstone310 = {"seed_params": {
Bence Balogh23d8fa72022-11-08 12:16:23 +0100844 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Bence Balogh176b78f2022-02-22 13:49:34 +0100845 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800846 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800847 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800848 "test_psa_api": ["OFF"],
849 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800850 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800851 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800852 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800853 },
854 "common_params": _common_tfm_builder_cfg,
855 "invalid": _common_tfm_invalid_configs + []
856 }
857
Gergely Korcsákba0c5212024-04-03 18:21:49 +0200858config_corstone315 = {"seed_params": {
859 "tfm_platform": ["arm/mps4/corstone315"],
860 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
861 "isolation_level": ["1"],
862 "test_regression": ["OFF"],
863 "test_psa_api": ["OFF"],
864 "cmake_build_type": ["Debug", "Release"],
865 "with_bl2": [True],
866 "profile": [""],
867 "extra_params": [""]
868 },
869 "common_params": _common_tfm_builder_cfg,
870 "invalid": _common_tfm_invalid_configs + []
871 }
872
Jamie Fox5ae6fa42024-02-19 15:11:00 +0000873config_rse = {"seed_params": {
874 "tfm_platform": ["arm/rse/tc"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100875 "compiler": ["GCC_10_3"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100876 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800877 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100878 "test_psa_api": ["OFF"],
879 "cmake_build_type": ["Debug", "Release"],
880 "with_bl2": [True],
881 "profile": [""],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800882 "extra_params": ["PSOFF"]
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100883 },
884 "common_params": _common_tfm_builder_cfg,
Jamie Fox9e2c2352023-01-13 15:11:23 +0000885 "invalid": _common_tfm_invalid_configs + [
Jamie Fox5ae6fa42024-02-19 15:11:00 +0000886 # BL2 is too large for RSE in Debug builds with tests
887 ("arm/rse/tc", "GCC_10_3", "*", "RegBL2, RegS, RegNS", "*",
Jamie Fox9e2c2352023-01-13 15:11:23 +0000888 "Debug", True, "*", "*"),
889 ]
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100890 }
891
Joel Goddard2dd81a12024-01-23 15:10:08 +0000892config_rse_rdfremont = {"seed_params": {
893 "tfm_platform": ["arm/rse/rdfremont"],
894 "compiler": ["GCC_10_3"],
895 "isolation_level": ["1", "2"],
896 "test_regression": ["OFF"],
897 "test_psa_api": ["OFF"],
898 "cmake_build_type": ["Debug", "Release"],
899 "with_bl2": [True],
900 "profile": [""],
901 "extra_params": ["NSOFF, PSOFF, CFG0"]
902 },
903 "common_params": _common_tfm_builder_cfg,
904 "invalid": _common_tfm_invalid_configs + []
905 }
906
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800907config_psoc64 = {"seed_params": {
908 "tfm_platform": ["cypress/psoc64"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300909 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800910 "isolation_level": ["1", "2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800911 "test_regression": ["RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800912 "test_psa_api": ["OFF"],
913 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800914 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800915 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800916 "extra_params": [""]
917 },
918 "common_params": _common_tfm_builder_cfg,
919 "invalid": _common_tfm_invalid_configs + []
920 }
921
922config_corstone1000 = {"seed_params": {
923 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800924 "compiler": ["GCC_10_3"],
Xinyu Zhang5c4f2182023-10-31 16:26:45 +0800925 "isolation_level": ["1", "2"],
Emekcan Arasf8b39802023-04-24 10:15:22 +0100926 "test_regression": ["RegS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800927 "test_psa_api": ["OFF"],
928 "cmake_build_type": ["Debug"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800929 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800930 "profile": [""],
Xinyu Zhang09acfbf2023-10-30 18:30:48 +0800931 "extra_params": ["NSOFF, CS1K_TEST, FVP", "NSOFF, CS1K_TEST, FPGA"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800932 },
933 "common_params": _common_tfm_builder_cfg,
934 "invalid": _common_tfm_invalid_configs + []
935 }
936
937config_stm32l562e_dk = {"seed_params": {
938 "tfm_platform": ["stm/stm32l562e_dk"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300939 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800940 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800941 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800942 "test_psa_api": ["OFF"],
943 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800944 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800945 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800946 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
947 },
948 "common_params": _common_tfm_builder_cfg,
949 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800950 # Oversize issue on config stm32l562e_dk_ARMCLANG_1_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300951 ("stm/stm32l562e_dk", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800952 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "*"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800953 # all other tests are off when CRYPTO is ON
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800954 ("stm/stm32l562e_dk", "*", "*", "RegBL2, RegS, RegNS", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800955 "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800956 # all other tests are ON when CRYPTO is OFF
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800957 ("stm/stm32l562e_dk", "*", "*", "OFF", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800958 "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800959 ]
960 }
961
962config_b_u585i_iot02a = {"seed_params": {
963 "tfm_platform": ["stm/b_u585i_iot02a"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300964 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Arthur She026ebb62023-02-08 18:47:39 -0800965 "isolation_level": ["1", "2"],
Arthur She96c6f772023-05-09 21:32:50 -0700966 "test_regression": ["OFF", "RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800967 "test_psa_api": ["OFF"],
968 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800969 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800970 "profile": [""],
Arthur She026ebb62023-02-08 18:47:39 -0800971 "extra_params": [""]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800972 },
973 "common_params": _common_tfm_builder_cfg,
974 "invalid": _common_tfm_invalid_configs + []
975 }
976
Anton Komlev4164ab62024-02-23 10:59:56 +0100977config_stm32h573i_dk = {"seed_params": {
978 "tfm_platform": ["stm/stm32h573i_dk"],
979 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
980 "isolation_level": ["1", "2"],
981 "test_regression": ["OFF", "RegS, RegNS"],
982 "test_psa_api": ["OFF"],
983 "cmake_build_type": ["Release"],
984 "with_bl2": [True],
985 "profile": [""],
986 "extra_params": [""]
987 },
988 "common_params": _common_tfm_builder_cfg,
989 "invalid": _common_tfm_invalid_configs + []
990 }
991
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800992config_nucleo_l552ze_q = {"seed_params": {
993 "tfm_platform": ["stm/nucleo_l552ze_q"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800994 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800995 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800996 "test_regression": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800997 "test_psa_api": ["OFF"],
998 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800999 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001000 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001001 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001002 },
1003 "common_params": _common_tfm_builder_cfg,
1004 "invalid": _common_tfm_invalid_configs + []
1005 }
1006
1007config_lpcxpresso55s69 = {"seed_params": {
1008 "tfm_platform": ["nxp/lpcxpresso55s69"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001009 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001010 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001011 "test_regression": ["OFF", "RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001012 "test_psa_api": ["OFF"],
1013 "cmake_build_type": ["Relwithdebinfo"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001014 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001015 "profile": ["profile_medium"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001016 "extra_params": [""]
1017 },
1018 "common_params": _common_tfm_builder_cfg,
1019 "invalid": _common_tfm_invalid_configs + []
1020 }
1021
Xinyu Zhang38b76742021-11-11 13:57:56 +08001022config_nrf5340dk = {"seed_params": {
1023 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001024 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001025 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001026 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001027 "test_psa_api": ["OFF"],
1028 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001029 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001030 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001031 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001032 },
1033 "common_params": _common_tfm_builder_cfg,
1034 "invalid": _common_tfm_invalid_configs + []
1035 }
1036
1037config_nrf9160dk = {"seed_params": {
1038 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001039 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001040 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001041 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001042 "test_psa_api": ["OFF"],
1043 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001044 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001045 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001046 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001047 },
1048 "common_params": _common_tfm_builder_cfg,
1049 "invalid": _common_tfm_invalid_configs + []
1050 }
1051
1052config_m2351 = {"seed_params": {
1053 "tfm_platform": ["nuvoton/m2351"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001054 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001055 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001056 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001057 "test_psa_api": ["OFF"],
1058 "cmake_build_type": ["Release"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001059 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001060 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001061 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001062 },
1063 "common_params": _common_tfm_builder_cfg,
1064 "invalid": _common_tfm_invalid_configs + []
1065 }
1066
1067config_m2354 = {"seed_params": {
1068 "tfm_platform": ["nuvoton/m2354"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001069 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001070 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001071 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001072 "test_psa_api": ["OFF"],
1073 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001074 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001075 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001076 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001077 },
1078 "common_params": _common_tfm_builder_cfg,
1079 "invalid": _common_tfm_invalid_configs + []
1080 }
1081
Dávid Házi32be32d2024-10-24 19:44:31 +00001082config_rp2350 = {"seed_params": {
1083 "tfm_platform": ["rpi/rp2350"],
1084 "compiler": ["GCC_10_3"],
1085 "isolation_level": ["2"],
1086 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
1087 "test_psa_api": ["OFF"],
1088 "cmake_build_type": ["RelWithDebInfo", "Release"],
1089 "with_bl2": [True],
Nicola Mazzucatodbf5d752024-10-28 14:42:17 +00001090 "profile": ["profile_medium"],
Dávid Házi32be32d2024-10-24 19:44:31 +00001091 "extra_params": [""]
1092 },
1093 "common_params": _common_tfm_builder_cfg,
1094 "invalid": _common_tfm_invalid_configs + []
1095 }
1096
Jianliang Shen48704152023-10-17 17:06:00 +08001097config_mem_footprint = {"seed_params": {
1098 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001099 "compiler": ["ARMCLANG_6_21"],
Jianliang Shen48704152023-10-17 17:06:00 +08001100 "isolation_level": ["1"],
1101 "test_regression": ["OFF"],
1102 "test_psa_api": ["OFF"],
1103 "cmake_build_type": ["Minsizerel"],
1104 "with_bl2": [True],
1105 "profile": [""],
1106 "extra_params": [""]
1107 },
1108 "common_params": _common_tfm_builder_cfg,
1109 "valid": [
1110 # AN521_ARMCLANG_1_Minsizerel_BL2_SMALL_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001111 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Jianliang Shen48704152023-10-17 17:06:00 +08001112 "OFF", "OFF", "Minsizerel", True, "profile_small", "PSOFF"),
1113 # AN521_ARMCLANG_2_Minsizerel_BL2_MEDIUM_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001114 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Jianliang Shen48704152023-10-17 17:06:00 +08001115 "OFF", "OFF", "Minsizerel", True, "profile_medium", "PSOFF"),
1116 # AN521_ARMCLANG_3_Minsizerel_BL2_LARGE_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001117 ("arm/mps2/an521", "ARMCLANG_6_21", "3",
Jianliang Shen48704152023-10-17 17:06:00 +08001118 "OFF", "OFF", "Minsizerel", True, "profile_large", "PSOFF"),
1119 ],
1120 "invalid": _common_tfm_invalid_configs + []
1121 }
1122
Jianliang Shen5492f752023-07-27 15:59:01 +08001123config_prof = {"seed_params": {
1124 "tfm_platform": ["arm/mps2/an521"],
1125 "compiler": ["GCC_10_3"],
1126 "isolation_level": ["1"],
1127 "test_regression": ["OFF"],
1128 "test_psa_api": ["OFF"],
1129 "cmake_build_type": ["Release"],
1130 "with_bl2": [True],
1131 "profile": [""],
1132 "extra_params": ["PROF"]
1133 },
1134 "common_params": _common_tfm_builder_cfg,
1135 "valid": [
1136 # AN521_GNUARM_1_Release_BL2_IPC_PROF
1137 ("arm/mps2/an521", "GCC_10_3", "1",
1138 "OFF", "OFF", "Release", True, "", "IPC, PROF"),
1139 # AN521_GNUARM_2_Release_BL2_PROF
1140 ("arm/mps2/an521", "GCC_10_3", "2",
1141 "OFF", "OFF", "Release", True, "", "PROF"),
1142 # AN521_GNUARM_3_Release_BL2_PROF
1143 ("arm/mps2/an521", "GCC_10_3", "3",
1144 "OFF", "OFF", "Release", True, "", "PROF"),
1145 ],
1146 "invalid": _common_tfm_invalid_configs + []
1147 }
1148
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001149# Config groups for debug
1150config_debug = {"seed_params": {
1151 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001152 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001153 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001154 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001155 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001156 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001157 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001158 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001159 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001160 },
1161 "common_params": _common_tfm_builder_cfg,
1162 "invalid": _common_tfm_invalid_configs + []
1163 }
1164
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001165config_debug_regr = deepcopy(config_debug)
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001166config_debug_regr["seed_params"]["test_regression"] = ["RegBL2, RegS, RegNS"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001167
1168config_debug_PSA_API = {"seed_params": {
1169 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001170 "compiler": ["ARMCLANG_6_21"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001171 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001172 "test_regression": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001173 "test_psa_api": ["CRYPTO",
1174 "INITIAL_ATTESTATION",
1175 "STORAGE",
1176 "IPC"],
1177 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001178 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001179 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001180 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001181 },
1182 "common_params": _common_tfm_builder_cfg,
1183 "invalid": _common_tfm_invalid_configs + []
1184 }
1185
Karl Zhangaff558a2020-05-15 14:28:23 +01001186_builtin_configs = {
Xinyu Zhang5c4f2182023-10-31 16:26:45 +08001187 # per-patch test group
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001188 "pp_test": config_pp_test,
Karl Zhang14573bc2020-06-08 09:23:21 +08001189
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001190 # nightly test groups
1191 "nightly_test": config_nightly_test,
1192 "nightly_profile_s": config_profile_s,
1193 "nightly_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +08001194 "nightly_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001195 "nightly_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001196 "nightly_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001197 "nightly_cc_driver_psa": config_cc_driver_psa,
1198 "nightly_fp":config_fp,
1199 "nightly_psa_api": config_psa_api,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001200 "nightly_nsce": config_nsce,
1201 "nightly_mmio": config_mmio,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001202 "nightly_cs300_an547": config_cs300_an547,
1203 "nightly_cs300_an552": config_cs300_an552,
1204 "nightly_cs300_fvp": config_cs300_fvp,
Bence Balogh8731a092022-05-24 17:24:54 +02001205 "nightly_corstone310": config_corstone310,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001206 "nightly_corstone315": config_corstone315,
Antonio de Angelis92ad2442023-08-07 15:00:32 +02001207 "nightly_corstone1000": config_corstone1000,
Jamie Fox5ae6fa42024-02-19 15:11:00 +00001208 "nightly_rse": config_rse,
Joel Goddard2dd81a12024-01-23 15:10:08 +00001209 "nightly_rse_rdfremont": config_rse_rdfremont,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001210 "nightly_psoc64": config_psoc64,
Anton Komlev55c3c022024-03-05 16:24:17 +01001211 "nightly_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -08001212 "nightly_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001213 "nightly_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001214 "nightly_lpcxpresso55s69": config_lpcxpresso55s69,
Dávid Házi32be32d2024-10-24 19:44:31 +00001215 "nightly_rp2350": config_rp2350,
Karl Zhang14573bc2020-06-08 09:23:21 +08001216
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001217 # release test groups
1218 "release_test": config_release_test,
1219 "release_profile_s": config_profile_s,
1220 "release_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +08001221 "release_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001222 "release_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001223 "release_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001224 "release_cc_driver_psa": config_cc_driver_psa,
1225 "release_fp": config_fp,
1226 "release_psa_api": config_psa_api,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001227 "release_nsce": config_nsce,
1228 "release_mmio": config_mmio,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001229 "release_cs300_an547": config_cs300_an547,
1230 "release_cs300_an552": config_cs300_an552,
1231 "release_cs300_fvp": config_cs300_fvp,
Bence Balogh8731a092022-05-24 17:24:54 +02001232 "release_corstone310": config_corstone310,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001233 "release_corstone315": config_corstone315,
Jamie Fox5ae6fa42024-02-19 15:11:00 +00001234 "release_rse": config_rse,
Joel Goddard2dd81a12024-01-23 15:10:08 +00001235 "release_rse_rdfremont": config_rse_rdfremont,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001236 "release_psoc64": config_psoc64,
Anton Komlev55c3c022024-03-05 16:24:17 +01001237 "release_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -08001238 "release_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001239 "release_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001240 "release_lpcxpresso55s69": config_lpcxpresso55s69,
Dávid Házi32be32d2024-10-24 19:44:31 +00001241 "release_rp2350": config_rp2350,
Karl Zhang14573bc2020-06-08 09:23:21 +08001242
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001243 # code coverage test groups
1244 "coverage_profile_s": config_cov_profile_s,
1245 "coverage_profile_m": config_cov_profile_m,
1246 "coverage_profile_l": config_cov_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001247 "coverage_ipc_backend": config_cov_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001248 "coverage_nsce": config_cov_nsce,
1249 "coverage_mmio": config_cov_mmio,
Xinyu Zhang5f725ee2022-12-19 10:29:20 +08001250 "coverage_fp": config_cov_fp,
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001251
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +03001252 # MISRA analysis
1253 "misra": config_misra,
Paul Sokolovskya526e5d2023-06-15 09:49:13 +03001254 "misra_debug": config_misra_debug,
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +03001255
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001256 # platform groups
1257 "an521": config_an521,
1258 "an519": config_an519,
1259 "an524": config_an524,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001260 "cs300_an547": config_cs300_an547,
1261 "cs300_an552": config_cs300_an552,
1262 "cs300_fvp": config_cs300_fvp,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001263 "musca_b1": config_musca_b1,
Bence Balogh8731a092022-05-24 17:24:54 +02001264 "corstone310": config_corstone310,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001265 "corstone315": config_corstone315,
Jamie Fox5ae6fa42024-02-19 15:11:00 +00001266 "rse": config_rse,
Joel Goddard2dd81a12024-01-23 15:10:08 +00001267 "rse_rdfremont": config_rse_rdfremont,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001268 "cypress_psoc64": config_psoc64,
Antonio de Angelis92ad2442023-08-07 15:00:32 +02001269 "corstone1000": config_corstone1000,
Anton Komlev55c3c022024-03-05 16:24:17 +01001270 "stm_stm32l562e_dk": config_stm32l562e_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001271 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001272 "stm_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001273 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1274 "nxp_lpcxpresso55s69": config_lpcxpresso55s69,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001275 "nordic_nrf5340dk": config_nrf5340dk,
1276 "nordic_nrf9160dk": config_nrf9160dk,
1277 "nuvoton_m2351": config_m2351,
1278 "nuvoton_m2354": config_m2354,
Dávid Házi32be32d2024-10-24 19:44:31 +00001279 "rp2350": config_rp2350,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001280
Bence Balogh79fda442022-10-14 18:01:37 +02001281 # config groups for tf-m-extras examples
1282 "example_vad": config_example_vad,
1283 "example_dma350_trigger": config_example_dma350_trigger,
Bence Balogh852f8bd2023-08-07 14:46:54 +02001284 "example_dma350_clcd": config_example_dma350_clcd,
Bence Balogh79fda442022-10-14 18:01:37 +02001285 "example_dma350_s": config_example_dma350_s,
Bence Baloghd23cbda2023-08-07 15:30:58 +02001286 "example_dma350_ns": config_example_dma350_ns,
Bence Balogh79fda442022-10-14 18:01:37 +02001287
Jianliang Shen48704152023-10-17 17:06:00 +08001288 # config groups for tf-m performance monitor
1289 "mem_footprint": config_mem_footprint,
Jianliang Shen5492f752023-07-27 15:59:01 +08001290 "profiling": config_prof,
1291
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001292 # config groups for debug
Dean Birch4c6ad622020-03-13 11:28:03 +00001293 "debug": config_debug,
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001294 "debug_regr": config_debug_regr,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001295 "debug_PSA_API": config_debug_PSA_API,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001296 }
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001297
1298if __name__ == '__main__':
1299 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001300
Minos Galanakisea421232019-06-20 17:11:28 +01001301 # Default behavior is to export refference config when called
1302 _dir = os.getcwd()
1303 from utils import save_json
1304 for _cname, _cfg in _builtin_configs.items():
1305 _fname = os.path.join(_dir, _cname + ".json")
1306 print("Exporting config %s" % _fname)
1307 save_json(_fname, _cfg)