blob: cc6bf0e9ab3b4494d087c1674572001d56688658 [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/"
David Vincze1beb43d2025-07-28 14:53:12 +0000102 "spe/bin/tfm.hex -Intel"),
Antonio de Angelised5a22d2025-07-06 21:38:15 +0100103 "arm/rse/tc/tc3": ("if [ -f \"%(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin\" ]; then "
104 "srec_cat "
105 "%(ci_build_root_dir)s/spe/bin/bl1_1.bin -Binary -offset 0x0 "
106 "%(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin -Binary -offset 0x10000 "
107 "%(ci_build_root_dir)s/spe/bin/rom_dma_ics.bin -Binary -offset 0x1F000 "
108 "-o %(ci_build_root_dir)s/spe/bin/rom.bin -Binary;"
109 "else "
110 "srec_cat "
111 "%(ci_build_root_dir)s/spe/bin/bl1_1.bin -Binary -offset 0x0 "
112 "%(ci_build_root_dir)s/spe/bin/rom_dma_ics.bin -Binary -offset 0x1F000 "
113 "-o %(ci_build_root_dir)s/spe/bin/rom.bin -Binary;"
114 "fi;"
115 "curl --fail --no-progress-meter --connect-timeout 10 --retry 6 -LS -o fiptool https://downloads.trustedfirmware.org/tf-m/rse/tc/tc3/fiptool;"
116 "chmod 755 fiptool;"
117 "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;"
118 "./fiptool update "
119 "--align 8192 --rse-bl2 %(ci_build_root_dir)s/spe/bin/bl2_signed.bin "
120 "--align 8192 --rse-s %(ci_build_root_dir)s/spe/bin/tfm_s_encrypted.bin "
121 "--align 8192 --rse-ns %(ci_build_root_dir)s/nspe/bin/tfm_ns_encrypted.bin "
122 "--align 8192 --rse-sic-tables-s %(ci_build_root_dir)s/spe/bin/tfm_s_sic_tables_signed.bin "
123 "--align 8192 --rse-sic-tables-ns %(ci_build_root_dir)s/nspe/bin/tfm_ns_sic_tables_signed.bin "
124 "--out %(ci_build_root_dir)s/spe/bin/host_flash.bin "
125 "fip.bin"),
126 "arm/rse/tc/tc4": ("if [ -f \"%(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin\" ]; then "
127 "srec_cat "
128 "%(ci_build_root_dir)s/spe/bin/bl1_1.bin -Binary -offset 0x0 "
129 "%(ci_build_root_dir)s/spe/bin/rse_bl1_tests.bin -Binary -offset 0x18000 "
130 "%(ci_build_root_dir)s/spe/bin/rom_dma_ics.bin -Binary -offset 0x1F000 "
131 "-o %(ci_build_root_dir)s/spe/bin/rom.bin -Binary;"
132 "else "
133 "srec_cat "
134 "%(ci_build_root_dir)s/spe/bin/bl1_1.bin -Binary -offset 0x0 "
135 "%(ci_build_root_dir)s/spe/bin/rom_dma_ics.bin -Binary -offset 0x1F000 "
136 "-o %(ci_build_root_dir)s/spe/bin/rom.bin -Binary;"
137 "fi;"
138 # 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 Dalzella4595bb2024-04-17 18:13:31 +0100180 "nxp/lpcxpresso55s69": ("echo 'LPCXpresso55S69 bo.ard post process\n';"
181 "mkdir -p %(codebase_root_dir)s/build/bin ;"
182 # Workaround for flash_JLink.py
183 "cp %(ci_build_root_dir)s/spe/bin/tfm_s.hex %(codebase_root_dir)s/build/bin ;"
184 "cp %(ci_build_root_dir)s/nspe/bin/tfm_ns.hex %(codebase_root_dir)s/build/bin ;"
185 "cd %(codebase_root_dir)s/build/bin; "
186 "rm -f flash.jlink; "
187 "if [ -f \"%(ci_build_root_dir)s/spe/bin/bl2.hex\" ]; then "
188 "echo r >> flash.jlink; "
189 "echo erase >> flash.jlink; "
190 "echo loadfile bl2.hex >> flash.jlink; "
191 "echo loadfile tfm_s_ns_signed.bin -0x8000 >> flash.jlink; "
192 "echo r >> flash.jlink; "
193 "echo go >> flash.jlink; "
194 "echo exit >> flash.jlink; "
195 "else "
196 "echo r >> flash.jlink; "
197 "echo erase >> flash.jlink; "
198 "echo loadfile tfm_s.hex >> flash.jlink; "
199 "echo loadfile tfm_ns.hex >> flash.jlink; "
200 "echo r >> flash.jlink; "
201 "echo go >> flash.jlink; "
202 "echo exit >> flash.jlink; "
203 "fi;"
204 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"
205 "tar jcf lpcxpresso55s69-tfm.tar.bz2 flash.jlink ${BIN_FILES};"
206 "mv lpcxpresso55s69-tfm.tar.bz2 %(ci_build_root_dir)s/nspe/bin ;"
207 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"),
Xinyu Zhang46b37182023-06-30 15:36:44 +0800208 "cypress/psoc64": ("echo 'Sign binaries for Cypress PSoC64 platform';"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800209 "pushd %(codebase_root_dir)s/;"
Arthur She87602dc2022-02-06 14:42:18 -0800210 "sudo /usr/local/bin/cysecuretools "
211 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
212 "--target cy8ckit-064s0s2-4343w "
213 "sign-image "
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800214 "--hex %(ci_build_root_dir)s/spe/bin/tfm_s.hex "
Arthur She87602dc2022-02-06 14:42:18 -0800215 "--image-type BOOT --image-id 1;"
216 "sudo /usr/local/bin/cysecuretools "
217 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
218 "--target cy8ckit-064s0s2-4343w "
219 "sign-image "
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800220 "--hex %(ci_build_root_dir)s/nspe/bin/tfm_ns.hex "
Arthur She87602dc2022-02-06 14:42:18 -0800221 "--image-type BOOT --image-id 16;"
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800222 "mv %(ci_build_root_dir)s/spe/bin/tfm_s.hex %(ci_build_root_dir)s/spe/bin/tfm_s_signed.hex;"
223 "mv %(ci_build_root_dir)s/nspe/bin/tfm_ns.hex %(ci_build_root_dir)s/nspe/bin/tfm_ns_signed.hex;"
Xinyu Zhang46b37182023-06-30 15:36:44 +0800224 "popd")
Minos Galanakisea421232019-06-20 17:11:28 +0100225 },
226
227 # (Optional) If set will fail if those artefacts are missing post build
228 "required_artefacts": {"all": [
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800229 "%(ci_build_root_dir)s/spe/bin/"
Xinyu Zhangb708f572020-09-15 11:43:46 +0800230 "tfm_s.bin",
Xinyu Zhanga88a2eb2023-08-15 17:43:51 +0800231 "%(ci_build_root_dir)s/nspe/"
Xinyu Zhangb708f572020-09-15 11:43:46 +0800232 "tfm_ns.bin"],
Mark Horvathef57baa2022-09-12 13:36:36 +0200233 "arm/musca_b1": [
Antonio de Angelised5a22d2025-07-06 21:38:15 +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"],
239 "arm/rse/tc/tc3": [
240 "%(ci_build_root_dir)s/spe/bin/rom.bin",
241 "%(ci_build_root_dir)s/spe/bin/provisioning/combined_provisioning_message.bin",
242 "%(ci_build_root_dir)s/spe/bin/host_flash.bin"],
243 "arm/rse/tc/tc4": [
244 "%(ci_build_root_dir)s/spe/bin/rom.bin",
245 "%(ci_build_root_dir)s/spe/bin/provisioning/combined_provisioning_message.bin",
246 "%(ci_build_root_dir)s/spe/bin/host_flash.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100247 }
248}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100249
Xinyu Zhangb708f572020-09-15 11:43:46 +0800250# List of all build configs that are impossible under all circumstances
251_common_tfm_invalid_configs = [
Antonio de Angelised5a22d2025-07-06 21:38:15 +0100252 # LR_CODE size exceeds limit on MUSCA_B1 with regression tests in Debug mode built with ARMCLANG
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300253 ("arm/musca_b1", "ARMCLANG_6_21", "*", "RegBL2, RegS, RegNS", "OFF", "Debug", "*", "", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800254 # Load range overlap on Musca for IPC Debug type: T895
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300255 ("arm/musca_b1", "ARMCLANG_6_21", "*", "*", "IPC", "Debug", "*", "*", "*"),
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300256 # FF does not support L3
Summer Qin379abb62022-10-08 16:41:54 +0800257 ("*", "*", "3", "*", "IPC", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800258 # Musca requires BL2
Summer Qin379abb62022-10-08 16:41:54 +0800259 ("arm/musca_b1", "*", "*", "*", "*", "*", False, "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800260 # Only AN521 and MUSCA_B1 support Isolation Level 3
Summer Qin379abb62022-10-08 16:41:54 +0800261 ("arm/mps2/an519", "*", "3", "*", "*", "*", "*", "*", "*"),
262 ("arm/mps3/an524", "*", "3", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800263 ]
264
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100265# Configure build manager to build several combinations
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800266# Config group for per-patch job
267config_pp_test = {"seed_params": {
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800268 # AN519_ARMCLANG_IPC_1_RegBL2_RegS_RegNS_Debug_BL2
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800269 "tfm_platform": ["arm/mps2/an519"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300270 "compiler": ["ARMCLANG_6_21"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800271 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800272 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800273 "test_psa_api": ["OFF"],
274 "cmake_build_type": ["Debug"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800275 "with_bl2": [True],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800276 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800277 "extra_params": [""]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800278 },
279 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800280 "valid": [
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800281 # AN519_ARMCLANG_2_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300282 ("arm/mps2/an519", "ARMCLANG_6_21", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800283 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
284 # AN519_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800285 ("arm/mps2/an519", "GCC_10_3", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800286 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
287 # AN519_GCC_2_RegBL2_RegS_RegNS_Release_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800288 ("arm/mps2/an519", "GCC_10_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800289 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
290 # AN519_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800291 ("arm/mps2/an519", "GCC_10_3", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800292 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
293 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_SMALL_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300294 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800295 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "profile_small", "PSOFF"),
296 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300297 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800298 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Jianliang Shen6984bef2023-07-25 10:36:56 +0800299 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_IPC
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300300 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Jianliang Shen6984bef2023-07-25 10:36:56 +0800301 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", "IPC"),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800302 # AN521_ARMCLANG_2_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300303 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800304 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
305 # AN521_ARMCLANG_3_RegBL2_RegS_RegNS_Minsizerel_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300306 ("arm/mps2/an521", "ARMCLANG_6_21", "3",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800307 "RegBL2, RegS, RegNS", "OFF", "Minsizerel", True, "", ""),
308 # AN521_ARMCLANG_1_RegBL2_RegS_RegNS_Debug_BL2_SMALL_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300309 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800310 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "profile_small", "PSOFF"),
311 # AN521_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800312 ("arm/mps2/an521", "GCC_10_3", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800313 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800314 # AN521_GCC_2_Debug_BL2_MEDIUM
315 ("arm/mps2/an521", "GCC_10_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800316 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "profile_medium", ""),
317 # AN521_GCC_2_RegBL2_RegS_RegNS_Release_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800318 ("arm/mps2/an521", "GCC_10_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800319 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
320 # AN521_GCC_3_RegBL2_RegS_RegNS_Minsizerel_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800321 ("arm/mps2/an521", "GCC_10_3", "3",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800322 "RegBL2, RegS, RegNS", "OFF", "Minsizerel", True, "", ""),
323 # AN521_GCC_1_RegBL2_RegS_RegNS_Debug_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800324 ("arm/mps2/an521", "GCC_10_3", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800325 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Xinyu Zhang280f5ab2023-10-31 16:17:21 +0800326 # AN521_GCC_1_FF_Release_BL2
327 ("arm/mps2/an521", "GCC_10_3", "1",
328 "OFF", "IPC", "Release", True, "", ""),
329 # AN521_ARMCLANG_2_STORAGE_Debug_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300330 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Xinyu Zhang280f5ab2023-10-31 16:17:21 +0800331 "OFF", "STORAGE", "Debug", True, "", ""),
Bence Balogh1aa8d582023-08-29 13:10:02 +0200332 # CS300_FVP_GNUARM_2_RegBL2_RegS_RegNS_Debug_BL2
333 ("arm/mps3/corstone300/fvp", "GCC_10_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800334 "RegBL2, RegS, RegNS", "OFF", "Debug", True, "", ""),
Bence Balogh1aa8d582023-08-29 13:10:02 +0200335 # CS300_FVP_GNUARM_2_RegBL2_RegS_RegNS_Release_BL2
336 ("arm/mps3/corstone300/fvp", "GCC_10_3", "2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800337 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", ""),
Xinyu Zhang5c4f2182023-10-31 16:26:45 +0800338 # corstone1000_GCC_2_RegS_Debug_BL2_NSOFF_CS1K_TEST_FVP
339 ("arm/corstone1000", "GCC_10_3", "2",
340 "RegS", "OFF", "Debug", True, "", "NSOFF, CS1K_TEST, FVP"),
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800341 # MUSCA_B1_GCC_1_RegBL2_RegS_RegNS_Minsizerel_BL2
Summer Qin379abb62022-10-08 16:41:54 +0800342 ("arm/musca_b1", "GCC_10_3", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800343 "RegBL2, RegS, RegNS", "OFF", "Minsizerel", True, "", ""),
Antonio de Angelised5a22d2025-07-06 21:38:15 +0100344 # MUSCA_B1_GCC_1_RegBL2_RegS_RegNS_Release_BL2_CC_DRIVER_PSA
345 ("arm/musca_b1", "GCC_13_2", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800346 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "CC_DRIVER_PSA"),
Jamie Fox5ae6fa42024-02-19 15:11:00 +0000347 # RSE_TC_GCC_2_Release_BL2_PSOFF
348 ("arm/rse/tc", "GCC_10_3", "2",
Xinyu Zhangeddc68a2023-11-07 12:08:26 +0800349 "RegS, RegNS", "OFF", "Release", True, "", "PSOFF"),
Joel Goddard2dd81a12024-01-23 15:10:08 +0000350 # RSE_RDFremont_GCC_2_Release_BL2_NSOFF_PSOFF_CFG0
351 ("arm/rse/rdfremont", "GCC_10_3", "2",
352 "OFF", "OFF", "Release", True, "", "NSOFF, PSOFF, CFG0"),
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800353 # stm32l562e_dk_ARMCLANG_1_RegS_RegNS_Release_BL2_CRYPTO_OFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300354 ("stm/stm32l562e_dk", "ARMCLANG_6_21", "1",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800355 "RegS, RegNS", "OFF", "Release", True, "", "CRYPTO_OFF"),
356 # stm32l562e_dk_GCC_2_Release_BL2_CRYPTO_ON
Summer Qin379abb62022-10-08 16:41:54 +0800357 ("stm/stm32l562e_dk", "GCC_10_3", "2",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800358 "OFF", "OFF", "Release", True, "", "CRYPTO_ON"),
359 # stm32l562e_dk_GCC_3_RegS_RegNS_Release_BL2_CRYPTO_OFF
Summer Qin379abb62022-10-08 16:41:54 +0800360 ("stm/stm32l562e_dk", "GCC_10_3", "3",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800361 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "CRYPTO_OFF"),
Arthur She4f08c152023-05-15 15:29:14 -0700362 # b_u585i_iot02a_GCC_1_RegS_RegNS_Release_BL2
363 ("stm/b_u585i_iot02a", "GCC_10_3", "1",
364 "RegS, RegNS", "OFF", "Release", True, "", ""),
365 # b_u585i_iot02a_ARMCLANG_2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300366 ("stm/b_u585i_iot02a", "ARMCLANG_6_21", "2",
Arthur She4f08c152023-05-15 15:29:14 -0700367 "RegS, RegNS", "OFF", "Release", True, "", ""),
Anton Komlev4164ab62024-02-23 10:59:56 +0100368 # stm32h573i_dk_GCC_1_RegS_RegNS_Release_BL2
369 ("stm/stm32h573i_dk", "GCC_10_3", "1",
370 "RegS, RegNS", "OFF", "Release", True, "", ""),
371 # stm32h573i_dk_ARMCLANG_2_RegS_RegNS_Release_BL2
372 ("stm/stm32h573i_dk", "ARMCLANG_6_21", "2",
373 "RegS, RegNS", "OFF", "Release", True, "", ""),
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800374 # psoc64_GCC_2_RegS_RegNS_Release
Summer Qin379abb62022-10-08 16:41:54 +0800375 ("cypress/psoc64", "GCC_10_3", "2",
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800376 "RegS, RegNS", "OFF", "Release", False, "", ""),
Nicola Mazzucatodbf5d752024-10-28 14:42:17 +0000377 # rp2350_GCC_2_RegBL2_RegS_RegNS_Release_BL2_MEDIUM
Dávid Házi32be32d2024-10-24 19:44:31 +0000378 ("rpi/rp2350", "GCC_10_3", "2",
Nicola Mazzucatodbf5d752024-10-28 14:42:17 +0000379 "RegBL2, RegS, RegNS", "OFF", "Release", True, "profile_medium", ""),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800380 ],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800381 "invalid": _common_tfm_invalid_configs + []
382 }
383
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800384# Config group for nightly job
385config_nightly_test = {"seed_params": {
386 "tfm_platform": ["arm/mps2/an519",
387 "arm/mps2/an521",
388 "arm/mps3/an524",
Mark Horvathef57baa2022-09-12 13:36:36 +0200389 "arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300390 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800391 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800392 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800393 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800394 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800395 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800396 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800397 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100398 },
399 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800400 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100401 }
402
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800403# Config group for release job
404config_release_test = {"seed_params": {
405 "tfm_platform": ["arm/mps2/an519",
406 "arm/mps2/an521",
407 "arm/mps3/an524",
Antonio de Angelised5a22d2025-07-06 21:38:15 +0100408 "arm/musca_b1"],
409 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800410 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800411 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800412 "test_psa_api": ["OFF"],
413 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800414 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800415 "profile": [""],
David Vinczed78e2622022-11-24 15:04:00 +0100416 "extra_params": ["TEST_CBOR"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800417 },
418 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800419 "valid": [
420 # sanity test for GCC v11.2
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800421 # AN521_GCC_3_RegBL2_RegS_RegNS_Relwithdebinfo_BL2
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800422 ("arm/mps2/an521", "GCC_11_2",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800423 "3", "RegBL2, RegS, RegNS", "OFF", "Relwithdebinfo",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800424 True, "", ""),
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800425 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800426 "invalid": _common_tfm_invalid_configs + []
427 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800428
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800429# Config groups for TF-M features
430config_profile_s = {"seed_params": {
David Huda27ae72022-03-28 15:32:19 +0800431 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300432 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
David Huda27ae72022-03-28 15:32:19 +0800433 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800434 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
David Huda27ae72022-03-28 15:32:19 +0800435 "test_psa_api": ["OFF"],
436 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
David Huda27ae72022-03-28 15:32:19 +0800437 "with_bl2": [True],
David Huda27ae72022-03-28 15:32:19 +0800438 "profile": ["profile_small"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800439 "extra_params": ["PSOFF"]
David Huda27ae72022-03-28 15:32:19 +0800440 },
441 "common_params": _common_tfm_builder_cfg,
David Huda27ae72022-03-28 15:32:19 +0800442 "invalid": _common_tfm_invalid_configs + [
Summer Qin379abb62022-10-08 16:41:54 +0800443 ("arm/mps2/an519", "GCC_10_3", "*", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800444 "*", "Minsizerel", "*", "*", "*")
David Huda27ae72022-03-28 15:32:19 +0800445 ]
446 }
447
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800448config_profile_m = {"seed_params": {
449 "tfm_platform": ["arm/mps2/an519",
450 "arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200451 "arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300452 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800453 "isolation_level": ["2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800454 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800455 "test_psa_api": ["OFF"],
456 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800457 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800458 "profile": ["profile_medium"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800459 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800460 },
461 "common_params": _common_tfm_builder_cfg,
462 "invalid": _common_tfm_invalid_configs + []
463 }
464
David Hu3d333762022-10-27 18:12:33 +0800465config_profile_m_arotless = {"seed_params": {
466 "tfm_platform": ["arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300467 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
David Hu3d333762022-10-27 18:12:33 +0800468 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800469 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
David Hu3d333762022-10-27 18:12:33 +0800470 "test_psa_api": ["OFF"],
471 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
472 "with_bl2": [True],
473 "profile": ["profile_medium_arotless"],
474 "extra_params": ["", "PSOFF"]
475 },
476 "common_params": _common_tfm_builder_cfg,
477 "invalid": _common_tfm_invalid_configs + []
478 }
479
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800480config_profile_l = {"seed_params": {
481 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300482 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800483 "isolation_level": ["3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800484 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800485 "test_psa_api": ["OFF"],
486 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800487 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800488 "profile": ["profile_large"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800489 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800490 },
491 "common_params": _common_tfm_builder_cfg,
492 "invalid": _common_tfm_invalid_configs + []
493 }
494
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800495config_ipc_backend = {"seed_params": {
496 "tfm_platform": ["arm/mps2/an519",
497 "arm/mps2/an521",
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800498 "arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300499 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800500 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800501 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800502 "test_psa_api": ["OFF"],
503 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
504 "with_bl2": [True],
505 "profile": [""],
506 "extra_params": ["IPC"]
507 },
508 "common_params": _common_tfm_builder_cfg,
509 "invalid": _common_tfm_invalid_configs + []
510 }
511
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800512config_cc_driver_psa = {"seed_params": {
Antonio de Angelised5a22d2025-07-06 21:38:15 +0100513 "tfm_platform": ["arm/musca_b1"],
514 "compiler": ["GCC_13_2"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800515 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800516 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800517 "test_psa_api": ["OFF"],
518 "cmake_build_type": ["Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800519 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800520 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800521 "extra_params": ["CC_DRIVER_PSA"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800522 },
523 "common_params": _common_tfm_builder_cfg,
524 "invalid": _common_tfm_invalid_configs + []
525 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100526
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800527config_fp = {"seed_params": {
Xinyu Zhange91567c2023-09-13 14:10:11 +0800528 "tfm_platform": ["arm/mps2/an521",
529 "arm/mps3/corstone300/an552",
530 "arm/mps3/corstone300/fvp"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800531 "compiler": ["GCC_10_3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800532 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800533 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800534 "test_psa_api": ["OFF"],
535 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800536 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800537 "profile": [""],
Mark Horvath93cb5fb2022-09-06 17:51:24 +0200538 "extra_params": ["FPOFF", "FPON", "FPON, LZOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800539 },
540 "common_params": _common_tfm_builder_cfg,
541 "invalid": _common_tfm_invalid_configs + []
542 }
Karl Zhangeffed972020-06-30 15:48:01 +0800543
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800544config_psa_api = {"seed_params": {
545 "tfm_platform": ["arm/mps2/an521",
Antonio de Angelised5a22d2025-07-06 21:38:15 +0100546 "arm/musca_b1"],
547 "compiler": ["GCC_13_2", "ARMCLANG_6_21"],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800548 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800549 "test_regression": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800550 "test_psa_api": ["IPC",
551 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800552 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800553 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800554 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800555 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800556 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800557 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800558 },
559 "common_params": _common_tfm_builder_cfg,
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300560 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800561 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800562
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800563config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800564 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300565 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800566 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800567 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800568 "test_psa_api": ["OFF"],
569 "cmake_build_type": ["Debug"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800570 "with_bl2": [True],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800571 "profile": [""],
Xinyu Zhang67612992021-12-20 14:11:27 +0800572 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800573 },
574 "common_params": _common_tfm_builder_cfg,
575 "invalid": _common_tfm_invalid_configs + []
576 }
577
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800578config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800579 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300580 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800581 "isolation_level": ["1"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800582 "test_regression": ["RegBL2, RegS, RegNS"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800583 "test_psa_api": ["OFF"],
584 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800585 "with_bl2": [True],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800586 "profile": [""],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800587 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800588 },
589 "common_params": _common_tfm_builder_cfg,
590 "invalid": _common_tfm_invalid_configs + []
591 }
592
Bence Balogh79fda442022-10-14 18:01:37 +0200593# Config groups for TF-M examples
594config_example_vad = {"seed_params": {
Bence Balogh1aa8d582023-08-29 13:10:02 +0200595 "tfm_platform": ["arm/mps3/corstone300/an552"],
Bence Balogh79fda442022-10-14 18:01:37 +0200596 "compiler": ["GCC_10_3"],
597 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800598 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200599 "test_psa_api": ["OFF"],
600 "cmake_build_type": ["Release"],
601 "with_bl2": [True],
602 "profile": [""],
603 "extra_params": ["EXAMPLE_VAD"]
604 },
605 "common_params": _common_tfm_builder_cfg,
606 "invalid": _common_tfm_invalid_configs + []
607 }
608
Bence Balogh852f8bd2023-08-07 14:46:54 +0200609config_example_dma350_clcd = {"seed_params": {
Bence Balogh79fda442022-10-14 18:01:37 +0200610 "tfm_platform": ["arm/mps3/corstone310/fvp"],
611 "compiler": ["GCC_10_3"],
612 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800613 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200614 "test_psa_api": ["OFF"],
615 "cmake_build_type": ["Release"],
616 "with_bl2": [True],
617 "profile": [""],
Bence Balogh852f8bd2023-08-07 14:46:54 +0200618 "extra_params": ["EXAMPLE_DMA350_CLCD"]
Bence Balogh79fda442022-10-14 18:01:37 +0200619 },
620 "common_params": _common_tfm_builder_cfg,
621 "invalid": _common_tfm_invalid_configs + []
622 }
623
624config_example_dma350_s = {"seed_params": {
625 "tfm_platform": ["arm/mps3/corstone310/fvp"],
626 "compiler": ["GCC_10_3"],
627 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800628 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200629 "test_psa_api": ["OFF"],
630 "cmake_build_type": ["Release"],
631 "with_bl2": [True],
632 "profile": [""],
633 "extra_params": ["EXAMPLE_DMA350_S"]
634 },
635 "common_params": _common_tfm_builder_cfg,
636 "invalid": _common_tfm_invalid_configs + []
637 }
638
Bence Baloghd23cbda2023-08-07 15:30:58 +0200639config_example_dma350_ns = {"seed_params": {
640 "tfm_platform": ["arm/mps3/corstone310/fvp"],
641 "compiler": ["GCC_10_3"],
642 "isolation_level": ["1"],
643 "test_regression": ["OFF"],
644 "test_psa_api": ["OFF"],
645 "cmake_build_type": ["Release"],
646 "with_bl2": [True],
647 "profile": [""],
648 "extra_params": ["EXAMPLE_DMA350_NS"]
649 },
650 "common_params": _common_tfm_builder_cfg,
651 "invalid": _common_tfm_invalid_configs + []
652 }
653
Bence Balogh79fda442022-10-14 18:01:37 +0200654config_example_dma350_trigger = {"seed_params": {
655 "tfm_platform": ["arm/mps3/corstone310/fvp"],
656 "compiler": ["GCC_10_3"],
657 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800658 "test_regression": ["OFF"],
Bence Balogh79fda442022-10-14 18:01:37 +0200659 "test_psa_api": ["OFF"],
660 "cmake_build_type": ["Release"],
661 "with_bl2": [True],
662 "profile": [""],
663 "extra_params": ["EXAMPLE_DMA350_TRIGGER"]
664 },
665 "common_params": _common_tfm_builder_cfg,
666 "invalid": _common_tfm_invalid_configs + []
667 }
668
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300669config_misra = {"seed_params": {
670 "tfm_platform": ["arm/musca_b1"],
671 "compiler": ["GCC_10_3"],
672 "isolation_level": ["1"],
673 "test_regression": ["OFF"],
674 "test_psa_api": ["OFF"],
675 "cmake_build_type": ["Debug"],
676 "with_bl2": [True],
Xinyu Zhange17926f2023-08-14 11:00:43 +0800677 "profile": ["profile_small", "profile_medium_arotless"],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300678 "extra_params": ["PSOFF"]
679 },
680 "common_params": _common_tfm_builder_cfg,
Xinyu Zhange17926f2023-08-14 11:00:43 +0800681 "valid": [
682 # MUSCA_B1_GCC_2_Debug_BL2_MEDIUM_PSOFF
683 ("arm/musca_b1", "GCC_10_3", "2", "OFF",
684 "OFF", "Debug", True, "profile_medium", "PSOFF"),
685 # MUSCA_B1_GCC_3_Debug_BL2_LARGE_PSOFF
686 ("arm/musca_b1", "GCC_10_3", "3", "OFF",
687 "OFF", "Debug", True, "profile_large", "PSOFF"),
688 ],
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +0300689 "invalid": _common_tfm_invalid_configs + []
690 }
691
Paul Sokolovskya526e5d2023-06-15 09:49:13 +0300692config_misra_debug = {"seed_params": {
693 "tfm_platform": ["arm/musca_b1"],
694 "compiler": ["GCC_10_3"],
695 "isolation_level": ["1"],
696 "test_regression": ["OFF"],
697 "test_psa_api": ["OFF"],
698 "cmake_build_type": ["Debug"],
699 "with_bl2": [True],
700 "profile": ["profile_small"],
701 "extra_params": ["PSOFF"]
702 },
703 "common_params": _common_tfm_builder_cfg,
704 "invalid": _common_tfm_invalid_configs + []
705 }
706
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800707# Config groups for code coverage
708config_cov_profile_s = deepcopy(config_profile_s)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800709config_cov_profile_s["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800710config_cov_profile_s["seed_params"]["compiler"] = ["GCC_10_3"]
Xinyu Zhangbdc37e32022-04-06 17:47:44 +0800711
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800712config_cov_profile_m = deepcopy(config_profile_m)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800713config_cov_profile_m["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800714config_cov_profile_m["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800715
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800716config_cov_profile_l = deepcopy(config_profile_l)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800717config_cov_profile_l["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800718config_cov_profile_l["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800719
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800720config_cov_ipc_backend = deepcopy(config_ipc_backend)
721config_cov_ipc_backend["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
722config_cov_ipc_backend["seed_params"]["compiler"] = ["GCC_10_3"]
723
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800724config_cov_nsce = deepcopy(config_nsce)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800725config_cov_nsce["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800726config_cov_nsce["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800727
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800728config_cov_mmio = deepcopy(config_mmio)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800729config_cov_mmio["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800730config_cov_mmio["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800731
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800732config_cov_fp = deepcopy(config_fp)
733config_cov_fp["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang778424e2023-02-27 11:39:57 +0800734config_cov_fp["seed_params"]["compiler"] = ["GCC_10_3"]
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800735
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800736# Config groups for platforms
737config_an519 = {"seed_params": {
Xinyu Zhangf25856a2021-06-17 14:06:46 +0800738 "tfm_platform": ["arm/mps2/an519"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300739 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800740 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800741 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800742 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800743 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800744 "with_bl2": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800745 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800746 "extra_params": ["", "NSOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800747 },
748 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800749 "invalid": _common_tfm_invalid_configs + []
750 }
751
752config_an521 = {"seed_params": {
753 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300754 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800755 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800756 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800757 "test_psa_api": ["OFF"],
758 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800759 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800760 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800761 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800762 },
763 "common_params": _common_tfm_builder_cfg,
764 "invalid": _common_tfm_invalid_configs + []
765 }
766
767config_an524 = {"seed_params": {
768 "tfm_platform": ["arm/mps3/an524"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300769 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800770 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800771 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800772 "test_psa_api": ["OFF"],
773 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800774 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800775 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800776 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800777 },
778 "common_params": _common_tfm_builder_cfg,
779 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800780 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000781
Bence Balogh1aa8d582023-08-29 13:10:02 +0200782config_cs300_an547 = {"seed_params": {
783 "tfm_platform": ["arm/mps3/corstone300/an547"],
784 "compiler": ["GCC_10_3"],
785 "isolation_level": ["1"],
786 "test_regression": ["OFF"],
787 "test_psa_api": ["OFF"],
788 "cmake_build_type": ["Debug"],
789 "with_bl2": [True],
790 "profile": [""],
791 "extra_params": [""]
792 },
793 "common_params": _common_tfm_builder_cfg,
794 "invalid": _common_tfm_invalid_configs + []
795 }
Xinyu Zhang38b76742021-11-11 13:57:56 +0800796
Bence Balogh1aa8d582023-08-29 13:10:02 +0200797config_cs300_an552 = {"seed_params": {
798 "tfm_platform": ["arm/mps3/corstone300/an552"],
799 "compiler": ["GCC_10_3"],
800 "isolation_level": ["1", "2"],
801 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
802 "test_psa_api": ["OFF"],
803 "cmake_build_type": ["Debug", "Release"],
804 "with_bl2": [True],
805 "profile": [""],
806 "extra_params": [""]
807 },
808 "common_params": _common_tfm_builder_cfg,
809 "invalid": _common_tfm_invalid_configs + []
810 }
811
812config_cs300_fvp = {"seed_params": {
813 "tfm_platform": ["arm/mps3/corstone300/fvp"],
814 "compiler": ["GCC_10_3"],
815 "isolation_level": ["1", "2"],
816 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
817 "test_psa_api": ["OFF"],
818 "cmake_build_type": ["Debug", "Release"],
819 "with_bl2": [True],
820 "profile": [""],
821 "extra_params": [""]
822 },
823 "common_params": _common_tfm_builder_cfg,
824 "invalid": _common_tfm_invalid_configs + []
825 }
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800826
827config_musca_b1 = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200828 "tfm_platform": ["arm/musca_b1"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300829 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800830 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800831 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800832 "test_psa_api": ["OFF"],
833 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800834 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800835 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800836 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800837 },
838 "common_params": _common_tfm_builder_cfg,
839 "invalid": _common_tfm_invalid_configs + []
840 }
841
Bence Balogh8731a092022-05-24 17:24:54 +0200842config_corstone310 = {"seed_params": {
Bence Balogh23d8fa72022-11-08 12:16:23 +0100843 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Bence Balogh176b78f2022-02-22 13:49:34 +0100844 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800845 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800846 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800847 "test_psa_api": ["OFF"],
848 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800849 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800850 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800851 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800852 },
853 "common_params": _common_tfm_builder_cfg,
854 "invalid": _common_tfm_invalid_configs + []
855 }
856
Gergely Korcsákba0c5212024-04-03 18:21:49 +0200857config_corstone315 = {"seed_params": {
858 "tfm_platform": ["arm/mps4/corstone315"],
859 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
860 "isolation_level": ["1"],
861 "test_regression": ["OFF"],
862 "test_psa_api": ["OFF"],
863 "cmake_build_type": ["Debug", "Release"],
864 "with_bl2": [True],
865 "profile": [""],
866 "extra_params": [""]
867 },
868 "common_params": _common_tfm_builder_cfg,
869 "invalid": _common_tfm_invalid_configs + []
870 }
871
Jamie Fox5ae6fa42024-02-19 15:11:00 +0000872config_rse = {"seed_params": {
873 "tfm_platform": ["arm/rse/tc"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100874 "compiler": ["GCC_10_3"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100875 "isolation_level": ["1", "2"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800876 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100877 "test_psa_api": ["OFF"],
878 "cmake_build_type": ["Debug", "Release"],
879 "with_bl2": [True],
880 "profile": [""],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800881 "extra_params": ["PSOFF"]
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100882 },
883 "common_params": _common_tfm_builder_cfg,
Jamie Fox9e2c2352023-01-13 15:11:23 +0000884 "invalid": _common_tfm_invalid_configs + [
Jamie Fox5ae6fa42024-02-19 15:11:00 +0000885 # BL2 is too large for RSE in Debug builds with tests
886 ("arm/rse/tc", "GCC_10_3", "*", "RegBL2, RegS, RegNS", "*",
Jamie Fox9e2c2352023-01-13 15:11:23 +0000887 "Debug", True, "*", "*"),
888 ]
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100889 }
890
Joel Goddard2dd81a12024-01-23 15:10:08 +0000891config_rse_rdfremont = {"seed_params": {
892 "tfm_platform": ["arm/rse/rdfremont"],
893 "compiler": ["GCC_10_3"],
894 "isolation_level": ["1", "2"],
895 "test_regression": ["OFF"],
896 "test_psa_api": ["OFF"],
897 "cmake_build_type": ["Debug", "Release"],
898 "with_bl2": [True],
899 "profile": [""],
900 "extra_params": ["NSOFF, PSOFF, CFG0"]
901 },
902 "common_params": _common_tfm_builder_cfg,
903 "invalid": _common_tfm_invalid_configs + []
904 }
905
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800906config_psoc64 = {"seed_params": {
907 "tfm_platform": ["cypress/psoc64"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300908 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800909 "isolation_level": ["1", "2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800910 "test_regression": ["RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800911 "test_psa_api": ["OFF"],
912 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800913 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800914 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800915 "extra_params": [""]
916 },
917 "common_params": _common_tfm_builder_cfg,
918 "invalid": _common_tfm_invalid_configs + []
919 }
920
921config_corstone1000 = {"seed_params": {
922 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800923 "compiler": ["GCC_10_3"],
Xinyu Zhang5c4f2182023-10-31 16:26:45 +0800924 "isolation_level": ["1", "2"],
Emekcan Arasf8b39802023-04-24 10:15:22 +0100925 "test_regression": ["RegS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800926 "test_psa_api": ["OFF"],
927 "cmake_build_type": ["Debug"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800928 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800929 "profile": [""],
Xinyu Zhang09acfbf2023-10-30 18:30:48 +0800930 "extra_params": ["NSOFF, CS1K_TEST, FVP", "NSOFF, CS1K_TEST, FPGA"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800931 },
932 "common_params": _common_tfm_builder_cfg,
933 "invalid": _common_tfm_invalid_configs + []
934 }
935
936config_stm32l562e_dk = {"seed_params": {
937 "tfm_platform": ["stm/stm32l562e_dk"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300938 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800939 "isolation_level": ["1", "2", "3"],
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800940 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800941 "test_psa_api": ["OFF"],
942 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800943 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800944 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800945 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
946 },
947 "common_params": _common_tfm_builder_cfg,
948 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800949 # Oversize issue on config stm32l562e_dk_ARMCLANG_1_RegBL2_RegS_RegNS_Release_BL2
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300950 ("stm/stm32l562e_dk", "ARMCLANG_6_21", "1",
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800951 "RegBL2, RegS, RegNS", "OFF", "Release", True, "", "*"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800952 # all other tests are off when CRYPTO is ON
Xinyu Zhang66e22ff2023-04-25 15:56:29 +0800953 ("stm/stm32l562e_dk", "*", "*", "RegBL2, RegS, RegNS", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800954 "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800955 # all other tests are ON when CRYPTO is OFF
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800956 ("stm/stm32l562e_dk", "*", "*", "OFF", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800957 "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800958 ]
959 }
960
961config_b_u585i_iot02a = {"seed_params": {
962 "tfm_platform": ["stm/b_u585i_iot02a"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +0300963 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
Arthur She026ebb62023-02-08 18:47:39 -0800964 "isolation_level": ["1", "2"],
Arthur She96c6f772023-05-09 21:32:50 -0700965 "test_regression": ["OFF", "RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800966 "test_psa_api": ["OFF"],
967 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800968 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800969 "profile": [""],
Arthur She026ebb62023-02-08 18:47:39 -0800970 "extra_params": [""]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800971 },
972 "common_params": _common_tfm_builder_cfg,
973 "invalid": _common_tfm_invalid_configs + []
974 }
975
Anton Komlev4164ab62024-02-23 10:59:56 +0100976config_stm32h573i_dk = {"seed_params": {
977 "tfm_platform": ["stm/stm32h573i_dk"],
978 "compiler": ["GCC_10_3", "ARMCLANG_6_21"],
979 "isolation_level": ["1", "2"],
980 "test_regression": ["OFF", "RegS, RegNS"],
981 "test_psa_api": ["OFF"],
982 "cmake_build_type": ["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
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800991config_nucleo_l552ze_q = {"seed_params": {
992 "tfm_platform": ["stm/nucleo_l552ze_q"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800993 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800994 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +0800995 "test_regression": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800996 "test_psa_api": ["OFF"],
997 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800998 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800999 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001000 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001001 },
1002 "common_params": _common_tfm_builder_cfg,
1003 "invalid": _common_tfm_invalid_configs + []
1004 }
1005
1006config_lpcxpresso55s69 = {"seed_params": {
1007 "tfm_platform": ["nxp/lpcxpresso55s69"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001008 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001009 "isolation_level": ["2"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001010 "test_regression": ["OFF", "RegS, RegNS"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001011 "test_psa_api": ["OFF"],
1012 "cmake_build_type": ["Relwithdebinfo"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001013 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001014 "profile": ["profile_medium"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001015 "extra_params": [""]
1016 },
1017 "common_params": _common_tfm_builder_cfg,
1018 "invalid": _common_tfm_invalid_configs + []
1019 }
1020
Xinyu Zhang38b76742021-11-11 13:57:56 +08001021config_nrf5340dk = {"seed_params": {
1022 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001023 "compiler": ["GCC_10_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": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001030 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001031 },
1032 "common_params": _common_tfm_builder_cfg,
1033 "invalid": _common_tfm_invalid_configs + []
1034 }
1035
1036config_nrf9160dk = {"seed_params": {
1037 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001038 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001039 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001040 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001041 "test_psa_api": ["OFF"],
1042 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001043 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001044 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001045 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001046 },
1047 "common_params": _common_tfm_builder_cfg,
1048 "invalid": _common_tfm_invalid_configs + []
1049 }
1050
1051config_m2351 = {"seed_params": {
1052 "tfm_platform": ["nuvoton/m2351"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001053 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001054 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001055 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001056 "test_psa_api": ["OFF"],
1057 "cmake_build_type": ["Release"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001058 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001059 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001060 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001061 },
1062 "common_params": _common_tfm_builder_cfg,
1063 "invalid": _common_tfm_invalid_configs + []
1064 }
1065
1066config_m2354 = {"seed_params": {
1067 "tfm_platform": ["nuvoton/m2354"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001068 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001069 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001070 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001071 "test_psa_api": ["OFF"],
1072 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001073 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001074 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +08001075 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001076 },
1077 "common_params": _common_tfm_builder_cfg,
1078 "invalid": _common_tfm_invalid_configs + []
1079 }
1080
Dávid Házi32be32d2024-10-24 19:44:31 +00001081config_rp2350 = {"seed_params": {
1082 "tfm_platform": ["rpi/rp2350"],
1083 "compiler": ["GCC_10_3"],
1084 "isolation_level": ["2"],
1085 "test_regression": ["OFF", "RegBL2, RegS, RegNS"],
1086 "test_psa_api": ["OFF"],
1087 "cmake_build_type": ["RelWithDebInfo", "Release"],
1088 "with_bl2": [True],
Nicola Mazzucatodbf5d752024-10-28 14:42:17 +00001089 "profile": ["profile_medium"],
Dávid Házi32be32d2024-10-24 19:44:31 +00001090 "extra_params": [""]
1091 },
1092 "common_params": _common_tfm_builder_cfg,
1093 "invalid": _common_tfm_invalid_configs + []
1094 }
1095
Jianliang Shen48704152023-10-17 17:06:00 +08001096config_mem_footprint = {"seed_params": {
1097 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001098 "compiler": ["ARMCLANG_6_21"],
Jianliang Shen48704152023-10-17 17:06:00 +08001099 "isolation_level": ["1"],
1100 "test_regression": ["OFF"],
1101 "test_psa_api": ["OFF"],
1102 "cmake_build_type": ["Minsizerel"],
1103 "with_bl2": [True],
1104 "profile": [""],
1105 "extra_params": [""]
1106 },
1107 "common_params": _common_tfm_builder_cfg,
1108 "valid": [
1109 # AN521_ARMCLANG_1_Minsizerel_BL2_SMALL_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001110 ("arm/mps2/an521", "ARMCLANG_6_21", "1",
Jianliang Shen48704152023-10-17 17:06:00 +08001111 "OFF", "OFF", "Minsizerel", True, "profile_small", "PSOFF"),
1112 # AN521_ARMCLANG_2_Minsizerel_BL2_MEDIUM_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001113 ("arm/mps2/an521", "ARMCLANG_6_21", "2",
Jianliang Shen48704152023-10-17 17:06:00 +08001114 "OFF", "OFF", "Minsizerel", True, "profile_medium", "PSOFF"),
1115 # AN521_ARMCLANG_3_Minsizerel_BL2_LARGE_PSOFF
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001116 ("arm/mps2/an521", "ARMCLANG_6_21", "3",
Jianliang Shen48704152023-10-17 17:06:00 +08001117 "OFF", "OFF", "Minsizerel", True, "profile_large", "PSOFF"),
1118 ],
1119 "invalid": _common_tfm_invalid_configs + []
1120 }
1121
Jianliang Shen5492f752023-07-27 15:59:01 +08001122config_prof = {"seed_params": {
1123 "tfm_platform": ["arm/mps2/an521"],
1124 "compiler": ["GCC_10_3"],
1125 "isolation_level": ["1"],
1126 "test_regression": ["OFF"],
1127 "test_psa_api": ["OFF"],
1128 "cmake_build_type": ["Release"],
1129 "with_bl2": [True],
1130 "profile": [""],
1131 "extra_params": ["PROF"]
1132 },
1133 "common_params": _common_tfm_builder_cfg,
1134 "valid": [
1135 # AN521_GNUARM_1_Release_BL2_IPC_PROF
1136 ("arm/mps2/an521", "GCC_10_3", "1",
1137 "OFF", "OFF", "Release", True, "", "IPC, PROF"),
1138 # AN521_GNUARM_2_Release_BL2_PROF
1139 ("arm/mps2/an521", "GCC_10_3", "2",
1140 "OFF", "OFF", "Release", True, "", "PROF"),
1141 # AN521_GNUARM_3_Release_BL2_PROF
1142 ("arm/mps2/an521", "GCC_10_3", "3",
1143 "OFF", "OFF", "Release", True, "", "PROF"),
1144 ],
1145 "invalid": _common_tfm_invalid_configs + []
1146 }
1147
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001148# Config groups for debug
1149config_debug = {"seed_params": {
1150 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +08001151 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001152 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001153 "test_regression": ["OFF"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001154 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001155 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001156 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001157 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001158 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001159 },
1160 "common_params": _common_tfm_builder_cfg,
1161 "invalid": _common_tfm_invalid_configs + []
1162 }
1163
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001164config_debug_regr = deepcopy(config_debug)
Xinyu Zhang66e22ff2023-04-25 15:56:29 +08001165config_debug_regr["seed_params"]["test_regression"] = ["RegBL2, RegS, RegNS"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001166
1167config_debug_PSA_API = {"seed_params": {
1168 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovsky253ed722023-11-07 11:08:46 +03001169 "compiler": ["ARMCLANG_6_21"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001170 "isolation_level": ["1"],
Xinyu Zhangb18ae742023-04-25 14:33:27 +08001171 "test_regression": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001172 "test_psa_api": ["CRYPTO",
1173 "INITIAL_ATTESTATION",
1174 "STORAGE",
1175 "IPC"],
1176 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001177 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001178 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001179 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001180 },
1181 "common_params": _common_tfm_builder_cfg,
1182 "invalid": _common_tfm_invalid_configs + []
1183 }
1184
Karl Zhangaff558a2020-05-15 14:28:23 +01001185_builtin_configs = {
Xinyu Zhang5c4f2182023-10-31 16:26:45 +08001186 # per-patch test group
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001187 "pp_test": config_pp_test,
Karl Zhang14573bc2020-06-08 09:23:21 +08001188
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001189 # nightly test groups
1190 "nightly_test": config_nightly_test,
1191 "nightly_profile_s": config_profile_s,
1192 "nightly_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +08001193 "nightly_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001194 "nightly_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001195 "nightly_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001196 "nightly_cc_driver_psa": config_cc_driver_psa,
1197 "nightly_fp":config_fp,
1198 "nightly_psa_api": config_psa_api,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001199 "nightly_nsce": config_nsce,
1200 "nightly_mmio": config_mmio,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001201 "nightly_cs300_an547": config_cs300_an547,
1202 "nightly_cs300_an552": config_cs300_an552,
1203 "nightly_cs300_fvp": config_cs300_fvp,
Bence Balogh8731a092022-05-24 17:24:54 +02001204 "nightly_corstone310": config_corstone310,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001205 "nightly_corstone315": config_corstone315,
Antonio de Angelis92ad2442023-08-07 15:00:32 +02001206 "nightly_corstone1000": config_corstone1000,
Jamie Fox5ae6fa42024-02-19 15:11:00 +00001207 "nightly_rse": config_rse,
Joel Goddard2dd81a12024-01-23 15:10:08 +00001208 "nightly_rse_rdfremont": config_rse_rdfremont,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001209 "nightly_psoc64": config_psoc64,
Anton Komlev55c3c022024-03-05 16:24:17 +01001210 "nightly_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -08001211 "nightly_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001212 "nightly_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001213 "nightly_lpcxpresso55s69": config_lpcxpresso55s69,
Dávid Házi32be32d2024-10-24 19:44:31 +00001214 "nightly_rp2350": config_rp2350,
Karl Zhang14573bc2020-06-08 09:23:21 +08001215
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001216 # release test groups
1217 "release_test": config_release_test,
1218 "release_profile_s": config_profile_s,
1219 "release_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +08001220 "release_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001221 "release_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001222 "release_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001223 "release_cc_driver_psa": config_cc_driver_psa,
1224 "release_fp": config_fp,
1225 "release_psa_api": config_psa_api,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001226 "release_nsce": config_nsce,
1227 "release_mmio": config_mmio,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001228 "release_cs300_an547": config_cs300_an547,
1229 "release_cs300_an552": config_cs300_an552,
1230 "release_cs300_fvp": config_cs300_fvp,
Bence Balogh8731a092022-05-24 17:24:54 +02001231 "release_corstone310": config_corstone310,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001232 "release_corstone315": config_corstone315,
Jamie Fox5ae6fa42024-02-19 15:11:00 +00001233 "release_rse": config_rse,
Joel Goddard2dd81a12024-01-23 15:10:08 +00001234 "release_rse_rdfremont": config_rse_rdfremont,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001235 "release_psoc64": config_psoc64,
Anton Komlev55c3c022024-03-05 16:24:17 +01001236 "release_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -08001237 "release_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001238 "release_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001239 "release_lpcxpresso55s69": config_lpcxpresso55s69,
Dávid Házi32be32d2024-10-24 19:44:31 +00001240 "release_rp2350": config_rp2350,
Karl Zhang14573bc2020-06-08 09:23:21 +08001241
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001242 # code coverage test groups
1243 "coverage_profile_s": config_cov_profile_s,
1244 "coverage_profile_m": config_cov_profile_m,
1245 "coverage_profile_l": config_cov_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001246 "coverage_ipc_backend": config_cov_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001247 "coverage_nsce": config_cov_nsce,
1248 "coverage_mmio": config_cov_mmio,
Xinyu Zhang5f725ee2022-12-19 10:29:20 +08001249 "coverage_fp": config_cov_fp,
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001250
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +03001251 # MISRA analysis
1252 "misra": config_misra,
Paul Sokolovskya526e5d2023-06-15 09:49:13 +03001253 "misra_debug": config_misra_debug,
Paul Sokolovsky4fe40b12023-04-21 02:17:57 +03001254
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001255 # platform groups
1256 "an521": config_an521,
1257 "an519": config_an519,
1258 "an524": config_an524,
Bence Balogh1aa8d582023-08-29 13:10:02 +02001259 "cs300_an547": config_cs300_an547,
1260 "cs300_an552": config_cs300_an552,
1261 "cs300_fvp": config_cs300_fvp,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001262 "musca_b1": config_musca_b1,
Bence Balogh8731a092022-05-24 17:24:54 +02001263 "corstone310": config_corstone310,
Gergely Korcsákba0c5212024-04-03 18:21:49 +02001264 "corstone315": config_corstone315,
Jamie Fox5ae6fa42024-02-19 15:11:00 +00001265 "rse": config_rse,
Joel Goddard2dd81a12024-01-23 15:10:08 +00001266 "rse_rdfremont": config_rse_rdfremont,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001267 "cypress_psoc64": config_psoc64,
Antonio de Angelis92ad2442023-08-07 15:00:32 +02001268 "corstone1000": config_corstone1000,
Anton Komlev55c3c022024-03-05 16:24:17 +01001269 "stm_stm32l562e_dk": config_stm32l562e_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001270 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
Anton Komlev4164ab62024-02-23 10:59:56 +01001271 "stm_stm32h573i_dk": config_stm32h573i_dk,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001272 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1273 "nxp_lpcxpresso55s69": config_lpcxpresso55s69,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001274 "nordic_nrf5340dk": config_nrf5340dk,
1275 "nordic_nrf9160dk": config_nrf9160dk,
1276 "nuvoton_m2351": config_m2351,
1277 "nuvoton_m2354": config_m2354,
Dávid Házi32be32d2024-10-24 19:44:31 +00001278 "rp2350": config_rp2350,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001279
Bence Balogh79fda442022-10-14 18:01:37 +02001280 # config groups for tf-m-extras examples
1281 "example_vad": config_example_vad,
1282 "example_dma350_trigger": config_example_dma350_trigger,
Bence Balogh852f8bd2023-08-07 14:46:54 +02001283 "example_dma350_clcd": config_example_dma350_clcd,
Bence Balogh79fda442022-10-14 18:01:37 +02001284 "example_dma350_s": config_example_dma350_s,
Bence Baloghd23cbda2023-08-07 15:30:58 +02001285 "example_dma350_ns": config_example_dma350_ns,
Bence Balogh79fda442022-10-14 18:01:37 +02001286
Jianliang Shen48704152023-10-17 17:06:00 +08001287 # config groups for tf-m performance monitor
1288 "mem_footprint": config_mem_footprint,
Jianliang Shen5492f752023-07-27 15:59:01 +08001289 "profiling": config_prof,
1290
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001291 # config groups for debug
Dean Birch4c6ad622020-03-13 11:28:03 +00001292 "debug": config_debug,
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001293 "debug_regr": config_debug_regr,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001294 "debug_PSA_API": config_debug_PSA_API,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001295 }
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001296
1297if __name__ == '__main__':
1298 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001299
Minos Galanakisea421232019-06-20 17:11:28 +01001300 # Default behavior is to export refference config when called
1301 _dir = os.getcwd()
1302 from utils import save_json
1303 for _cname, _cfg in _builtin_configs.items():
1304 _fname = os.path.join(_dir, _cname + ".json")
1305 print("Exporting config %s" % _fname)
1306 save_json(_fname, _cfg)