blob: 1a07825d19a9ddb537902c8ed534258c418e3dd1 [file] [log] [blame]
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001#!/usr/bin/env python3
2
3""" builtin_configs.py:
4
5 Default configuration files used as reference """
6
7from __future__ import print_function
8
9__copyright__ = """
10/*
Raef Coles61b43a42022-01-12 11:42:57 +000011 * Copyright (c) 2018-2022, 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 Zhangf3e19482022-01-11 15:48:13 +080048 "config_template": "cmake -G Ninja " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080049 "-DTFM_PLATFORM=%(tfm_platform)s " + \
Xinyu Zhang433771e2022-04-01 16:49:17 +080050 "-DTFM_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(compiler)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080051 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
52 "-DTEST_NS=%(test_regression)s -DTEST_S=%(test_regression)s " + \
Raef Coles61b43a42022-01-12 11:42:57 +000053 "-DTEST_BL2=%(test_regression)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080054 "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080055 "-DTEST_PSA_API=%(test_psa_api)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080056 "-DBL2=%(with_bl2)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080057 "-DTFM_PROFILE=%(profile)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080058 "%(extra_params)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080059 "-DTFM_TEST_REPO_PATH=%(codebase_root_dir)s/../tf-m-tests " + \
60 "-DMBEDCRYPTO_PATH=%(codebase_root_dir)s/../mbedtls " + \
61 "-DPSA_ARCH_TESTS_PATH=%(codebase_root_dir)s/../psa-arch-tests " + \
62 "-DMCUBOOT_PATH=%(codebase_root_dir)s/../mcuboot " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080063 "%(codebase_root_dir)s",
Karl Zhangaff558a2020-05-15 14:28:23 +010064
Xinyu Zhang433771e2022-04-01 16:49:17 +080065 "set_compiler_path": "export PATH=$PATH:$%(compiler)s_PATH",
66
Minos Galanakisea421232019-06-20 17:11:28 +010067 # A small subset of string substitution params is allowed in commands.
68 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
69 # _tbm_target_platform_ with the paths set when building
70
Xinyu Zhangb708f572020-09-15 11:43:46 +080071 "artifact_capture_rex": (r'%(_tbm_build_dir_)s/bin'
Minos Galanakisea421232019-06-20 17:11:28 +010072 r'/(\w+\.(?:axf|bin|hex))$'),
73
74 # ALL commands will be executed for every build.
75 # Other keys will append extra commands when matching target_platform
Fathi Boudra83e4f292020-12-04 22:33:40 +010076 "build_cmds": {"all": ["cmake --build ./ -- install"],
Mark Horvathef57baa2022-09-12 13:36:36 +020077 "arm/musca_b1": [("srec_cat "
78 "%(_tbm_build_dir_)s/bin/"
79 "bl2.bin "
80 "-Binary -offset 0xA000000 "
81 "-fill 0xFF 0xA000000 0xA020000 "
82 "%(_tbm_build_dir_)s/bin/"
83 "tfm_s_ns_signed.bin "
84 "-Binary -offset 0xA020000 "
85 "-fill 0xFF 0xA020000 0xA200000 "
86 "-o %(_tbm_build_dir_)s/bin/"
87 "tfm.hex -Intel")],
Satish Kumar1cfdd912022-08-01 09:24:07 +010088 "arm/corstone1000": [("cat "
89 "%(_tbm_build_dir_)s/bin/"
90 "bl2_signed.bin "
91 "%(_tbm_build_dir_)s/bin/"
92 "bl2_signed.bin "
93 "%(_tbm_build_dir_)s/bin/"
94 "tfm_s_signed.bin "
95 "%(_tbm_build_dir_)s/bin/"
96 "tfm_s_signed.bin "
97 "> "
98 "%(_tbm_build_dir_)s/bin/"
99 "flash.bin")],
Summer Qin3c2b5722021-05-26 10:43:45 +0800100 "arm/musca_s1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +0800101 "%(_tbm_build_dir_)s/bin/"
102 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +0800103 "-Binary -offset 0xA000000 "
Raef Coles543aab32020-12-03 11:12:02 +0000104 "-fill 0xFF 0xA000000 0xA020000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +0800105 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800106 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +0000107 "-Binary -offset 0xA020000 "
108 "-fill 0xFF 0xA020000 0xA200000 "
109 "-o %(_tbm_build_dir_)s/bin/"
Arthur She19c0e1a2021-06-02 11:06:19 -0700110 "tfm.hex -Intel")],
111 "stm/stm32l562e_dk": [("echo 'STM32L562E-DK board post process';"
112 "%(_tbm_build_dir_)s/postbuild.sh;"
113 "pushd %(_tbm_build_dir_)s;"
Arthur She07c91b52021-07-15 15:03:10 -0700114 "BIN_FILES=$(grep -o '\/.*\.bin' TFM_UPDATE.sh | sed 's/^/bin/');"
115 "tar jcf ./bin/stm32l562e-dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh ${BIN_FILES};"
Arthur She3c0dadd2021-11-18 21:17:48 -0800116 "popd")],
117 "nxp/lpcxpresso55s69": [("echo 'LPCXpresso55S69 board post process\n';"
118 "if [ -f \"%(_tbm_build_dir_)s/bin/bl2.hex\" ]; then FLASH_FILE='flash_bl2_JLink.py'; else FLASH_FILE='flash_JLink.py'; fi;"
119 "pushd %(_tbm_build_dir_)s/../platform/ext/target/nxp/lpcxpresso55s69/scripts;"
120 "LN=$(grep -n 'JLinkExe' ${FLASH_FILE}|awk -F: '{print $1}');"
121 "sed -i \"${LN}s/.*/ print('flash.jlink generated')/\" ${FLASH_FILE};"
122 "python3 ./${FLASH_FILE};"
123 "cd %(_tbm_build_dir_)s/bin;"
124 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"
125 "tar jcf lpcxpresso55s69-tfm.tar.bz2 flash.jlink ${BIN_FILES};"
Arthur She87602dc2022-02-06 14:42:18 -0800126 "popd")],
127 "cypress/psoc64": [("echo 'Sign binaries for Cypress PSoC64 platform';"
128 "pushd %(_tbm_build_dir_)s/..;"
129 "sudo /usr/local/bin/cysecuretools "
130 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
131 "--target cy8ckit-064s0s2-4343w "
132 "sign-image "
133 "--hex %(_tbm_build_dir_)s/bin/tfm_s.hex "
134 "--image-type BOOT --image-id 1;"
135 "sudo /usr/local/bin/cysecuretools "
136 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
137 "--target cy8ckit-064s0s2-4343w "
138 "sign-image "
139 "--hex %(_tbm_build_dir_)s/bin/tfm_ns.hex "
140 "--image-type BOOT --image-id 16;"
141 "mv %(_tbm_build_dir_)s/bin/tfm_s.hex %(_tbm_build_dir_)s/bin/tfm_s_signed.hex;"
142 "mv %(_tbm_build_dir_)s/bin/tfm_ns.hex %(_tbm_build_dir_)s/bin/tfm_ns_signed.hex;"
143 "popd")]
Minos Galanakisea421232019-06-20 17:11:28 +0100144 },
145
146 # (Optional) If set will fail if those artefacts are missing post build
147 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800148 "%(_tbm_build_dir_)s/bin/"
149 "tfm_s.bin",
150 "%(_tbm_build_dir_)s/bin/"
151 "tfm_ns.bin"],
Mark Horvathef57baa2022-09-12 13:36:36 +0200152 "arm/musca_b1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800153 "%(_tbm_build_dir_)s/bin/"
154 "tfm.hex",
155 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800156 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800157 "%(_tbm_build_dir_)s/bin/"
158 "tfm_sign.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800159 "arm/musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800160 "%(_tbm_build_dir_)s/bin/"
161 "tfm.hex",
162 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800163 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800164 "%(_tbm_build_dir_)s/bin/"
165 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100166 }
167}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100168
Xinyu Zhangb708f572020-09-15 11:43:46 +0800169# List of all build configs that are impossible under all circumstances
170_common_tfm_invalid_configs = [
Xinyu Zhang459a1982021-07-21 22:34:49 +0800171 # LR_CODE size exceeds limit on MUSCA_B1 & MUSCA_S1 with regression tests in Debug mode built with ARMCLANG
Summer Qin379abb62022-10-08 16:41:54 +0800172 ("arm/musca_b1", "ARMCLANG_6_13", "*", True, "OFF", "Debug", "*", "", "*"),
173 ("arm/musca_s1", "ARMCLANG_6_13", "*", True, "OFF", "Debug", "*", "", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800174 # Load range overlap on Musca for IPC Debug type: T895
Summer Qin379abb62022-10-08 16:41:54 +0800175 ("arm/musca_b1", "ARMCLANG_6_13", "*", "*", "IPC", "Debug", "*", "*", "*"),
176 ("arm/musca_s1", "ARMCLANG_6_13", "*", "*", "IPC", "Debug", "*", "*", "*"),
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300177 # FF does not support L3
Summer Qin379abb62022-10-08 16:41:54 +0800178 ("*", "*", "3", "*", "IPC", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800179 # Musca requires BL2
Summer Qin379abb62022-10-08 16:41:54 +0800180 ("arm/musca_b1", "*", "*", "*", "*", "*", False, "*", "*"),
181 ("arm/musca_s1", "*", "*", "*", "*", "*", False, "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800182 # Only AN521 and MUSCA_B1 support Isolation Level 3
Summer Qin379abb62022-10-08 16:41:54 +0800183 ("arm/mps2/an519", "*", "3", "*", "*", "*", "*", "*", "*"),
184 ("arm/mps3/an524", "*", "3", "*", "*", "*", "*", "*", "*"),
185 ("arm/musca_s1", "*", "3", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800186 ]
187
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100188# Configure build manager to build several combinations
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800189# Config group for per-patch job
190config_pp_test = {"seed_params": {
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800191 # AN519_ARMCLANG_IPC_1_REG_Debug_BL2
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800192 "tfm_platform": ["arm/mps2/an519"],
193 "compiler": ["ARMCLANG_6_13"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800194 "isolation_level": ["1"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800195 "test_regression": [True],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800196 "test_psa_api": ["OFF"],
197 "cmake_build_type": ["Debug"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800198 "with_bl2": [True],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800199 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800200 "extra_params": [""]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800201 },
202 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800203 "valid": [
Summer Qin379abb62022-10-08 16:41:54 +0800204 # AN519_ARMCLANG_2_REG_Release_BL2
205 ("arm/mps2/an519", "ARMCLANG_6_13", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800206 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800207 # AN519_GCC_1_REG_Debug_BL2
208 ("arm/mps2/an519", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800209 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800210 # AN519_GCC_2_REG_Release_BL2
211 ("arm/mps2/an519", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800212 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800213 # AN519_GCC_1_REG_Debug_BL2
214 ("arm/mps2/an519", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800215 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800216 # AN521_ARMCLANG_1_REG_Debug_BL2_SMALL_PSOFF
217 ("arm/mps2/an521", "ARMCLANG_6_13", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800218 True, "OFF", "Debug", True, "profile_small", "PSOFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800219 # AN521_ARMCLANG_1_REG_Debug_BL2
220 ("arm/mps2/an521", "ARMCLANG_6_13", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800221 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800222 # AN521_ARMCLANG_2_REG_Release_BL2
223 ("arm/mps2/an521", "ARMCLANG_6_13", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800224 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800225 # AN521_ARMCLANG_3_REG_Minsizerel_BL2
226 ("arm/mps2/an521", "ARMCLANG_6_13", "3",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800227 True, "OFF", "Minsizerel", True, "", ""),
Xinyu Zhang9ac71532022-11-21 17:42:33 +0800228 # AN521_ARMCLANG_1_REG_Debug_BL2_SMALL_PSOFF
Summer Qin379abb62022-10-08 16:41:54 +0800229 ("arm/mps2/an521", "ARMCLANG_6_13", "1",
Xinyu Zhang9ac71532022-11-21 17:42:33 +0800230 True, "OFF", "Debug", True, "profile_small", "PSOFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800231 # AN521_GCC_1_REG_Debug_BL2
232 ("arm/mps2/an521", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800233 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800234 # AN521_GCC_2_Debug_BL2_MEDIUM
235 ("arm/mps2/an521", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800236 False, "OFF", "Debug", True, "profile_medium", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800237 # AN521_GCC_2_REG_Release_BL2
238 ("arm/mps2/an521", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800239 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800240 # AN521_GCC_3_REG_Minsizerel_BL2
241 ("arm/mps2/an521", "GCC_10_3", "3",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800242 True, "OFF", "Minsizerel", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800243 # AN521_GCC_1_REG_Debug_BL2
244 ("arm/mps2/an521", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800245 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800246 # AN552_GNUARM_1_REG_Debug_BL2
247 ("arm/mps3/an552", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800248 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800249 # AN552_GNUARM_1_REG_Release_BL2
250 ("arm/mps3/an552", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800251 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800252 # MUSCA_B1_GCC_1_REG_Minsizerel_BL2
253 ("arm/musca_b1", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800254 True, "OFF", "Minsizerel", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800255 # MUSCA_S1_ARMCLANG_2_REG_Release_BL2
256 ("arm/musca_s1", "ARMCLANG_6_13", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800257 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800258 # MUSCA_S1_GCC_1_REG_Debug_BL2
259 ("arm/musca_s1", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800260 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800261 # MUSCA_S1_GCC_2_REG_Release_BL2
262 ("arm/musca_s1", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800263 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800264 # MUSCA_S1_GCC_1_REG_Debug_BL2
265 ("arm/musca_s1", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800266 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800267 # MUSCA_S1_GCC_2_REG_Release_BL2_FPON
268 ("arm/musca_s1", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800269 True, "OFF", "Release", True, "", "FPON"),
Summer Qin379abb62022-10-08 16:41:54 +0800270 # MUSCA_S1_GCC_1_REG_Release_BL2_CC_DRIVER_PSA
271 ("arm/musca_s1", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800272 True, "OFF", "Release", True, "", "CC_DRIVER_PSA"),
Jamie Foxd7438d92022-11-21 17:42:01 +0000273 # RSS_TC_GCC_2_Release_BL2_PSOFF
274 ("arm/rss/tc", "GCC_10_3", "2",
275 False, "OFF", "Release", True, "", "PSOFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800276 # stm32l562e_dk_ARMCLANG_1_REG_Release_BL2
277 ("stm/stm32l562e_dk", "ARMCLANG_6_13", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800278 True, "OFF", "Release", True, "", "CRYPTO_OFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800279 # stm32l562e_dk_GCC_2_REG_Release_BL2
280 ("stm/stm32l562e_dk", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800281 False, "OFF", "Release", True, "", "CRYPTO_ON"),
Summer Qin379abb62022-10-08 16:41:54 +0800282 # stm32l562e_dk_GCC_3_REG_Release_BL2
283 ("stm/stm32l562e_dk", "GCC_10_3", "3",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800284 True, "OFF", "Release", True, "", "CRYPTO_OFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800285 # psoc64_GCC_2_REG_Release
286 ("cypress/psoc64", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800287 True, "OFF", "Release", False, "", ""),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800288 ],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800289 "invalid": _common_tfm_invalid_configs + []
290 }
291
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800292# Config group for nightly job
293config_nightly_test = {"seed_params": {
294 "tfm_platform": ["arm/mps2/an519",
295 "arm/mps2/an521",
296 "arm/mps3/an524",
297 "arm/musca_s1",
Mark Horvathef57baa2022-09-12 13:36:36 +0200298 "arm/musca_b1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800299 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800300 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800301 "test_regression": [True, False],
302 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800303 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800304 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800305 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800306 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100307 },
308 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800309 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100310 }
311
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800312# Config group for release job
313config_release_test = {"seed_params": {
314 "tfm_platform": ["arm/mps2/an519",
315 "arm/mps2/an521",
316 "arm/mps3/an524",
Mark Horvathef57baa2022-09-12 13:36:36 +0200317 "arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800318 "arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800319 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800320 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800321 "test_regression": [True, False],
322 "test_psa_api": ["OFF"],
323 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800324 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800325 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800326 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800327 },
328 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800329 "valid": [
330 # sanity test for GCC v11.2
Summer Qin379abb62022-10-08 16:41:54 +0800331 # AN521_GCC_3_REG_Relwithdebinfo_BL2
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800332 ("arm/mps2/an521", "GCC_11_2",
Summer Qin379abb62022-10-08 16:41:54 +0800333 "3", True, "OFF", "Relwithdebinfo",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800334 True, "", ""),
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800335 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800336 "invalid": _common_tfm_invalid_configs + []
337 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800338
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800339# Config groups for TF-M features
340config_profile_s = {"seed_params": {
David Huda27ae72022-03-28 15:32:19 +0800341 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800342 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
David Huda27ae72022-03-28 15:32:19 +0800343 "isolation_level": ["1"],
344 "test_regression": [True, False],
345 "test_psa_api": ["OFF"],
346 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
David Huda27ae72022-03-28 15:32:19 +0800347 "with_bl2": [True],
David Huda27ae72022-03-28 15:32:19 +0800348 "profile": ["profile_small"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800349 "extra_params": ["PSOFF"]
David Huda27ae72022-03-28 15:32:19 +0800350 },
351 "common_params": _common_tfm_builder_cfg,
David Huda27ae72022-03-28 15:32:19 +0800352 "invalid": _common_tfm_invalid_configs + [
Summer Qin379abb62022-10-08 16:41:54 +0800353 ("arm/mps2/an519", "GCC_10_3", "*", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800354 "*", "Minsizerel", "*", "*", "*")
David Huda27ae72022-03-28 15:32:19 +0800355 ]
356 }
357
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800358config_profile_m = {"seed_params": {
359 "tfm_platform": ["arm/mps2/an519",
360 "arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200361 "arm/musca_b1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800362 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800363 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800364 "test_regression": [True, False],
365 "test_psa_api": ["OFF"],
366 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800367 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800368 "profile": ["profile_medium"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800369 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800370 },
371 "common_params": _common_tfm_builder_cfg,
372 "invalid": _common_tfm_invalid_configs + []
373 }
374
David Hu3d333762022-10-27 18:12:33 +0800375config_profile_m_arotless = {"seed_params": {
376 "tfm_platform": ["arm/musca_b1"],
377 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
378 "isolation_level": ["1"],
379 "test_regression": [True, False],
380 "test_psa_api": ["OFF"],
381 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
382 "with_bl2": [True],
383 "profile": ["profile_medium_arotless"],
384 "extra_params": ["", "PSOFF"]
385 },
386 "common_params": _common_tfm_builder_cfg,
387 "invalid": _common_tfm_invalid_configs + []
388 }
389
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800390config_profile_l = {"seed_params": {
391 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800392 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800393 "isolation_level": ["3"],
394 "test_regression": [True, False],
395 "test_psa_api": ["OFF"],
396 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800397 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800398 "profile": ["profile_large"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800399 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800400 },
401 "common_params": _common_tfm_builder_cfg,
402 "invalid": _common_tfm_invalid_configs + []
403 }
404
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800405config_ipc_backend = {"seed_params": {
406 "tfm_platform": ["arm/mps2/an519",
407 "arm/mps2/an521",
408 "arm/musca_s1",
409 "arm/musca_b1"],
410 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
411 "isolation_level": ["1"],
412 "test_regression": [True, False],
413 "test_psa_api": ["OFF"],
414 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
415 "with_bl2": [True],
416 "profile": [""],
417 "extra_params": ["IPC"]
418 },
419 "common_params": _common_tfm_builder_cfg,
420 "invalid": _common_tfm_invalid_configs + []
421 }
422
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800423config_cc_driver_psa = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200424 "tfm_platform": ["arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800425 "arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800426 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800427 "isolation_level": ["1"],
428 "test_regression": [True],
429 "test_psa_api": ["OFF"],
430 "cmake_build_type": ["Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800431 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800432 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800433 "extra_params": ["CC_DRIVER_PSA"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800434 },
435 "common_params": _common_tfm_builder_cfg,
436 "invalid": _common_tfm_invalid_configs + []
437 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100438
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800439config_fp = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800440 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800441 "compiler": ["GCC_10_3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800442 "isolation_level": ["1", "2"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800443 "test_regression": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800444 "test_psa_api": ["OFF"],
445 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800446 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800447 "profile": [""],
Mark Horvath93cb5fb2022-09-06 17:51:24 +0200448 "extra_params": ["FPOFF", "FPON", "FPON, LZOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800449 },
450 "common_params": _common_tfm_builder_cfg,
451 "invalid": _common_tfm_invalid_configs + []
452 }
Karl Zhangeffed972020-06-30 15:48:01 +0800453
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800454config_psa_api = {"seed_params": {
455 "tfm_platform": ["arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200456 "arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800457 "arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800458 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800459 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800460 "test_regression": [False],
461 "test_psa_api": ["IPC",
462 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800463 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800464 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800465 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800466 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800467 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800468 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800469 },
470 "common_params": _common_tfm_builder_cfg,
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300471 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800472 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800473
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800474config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800475 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800476 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800477 "isolation_level": ["1", "2", "3"],
478 "test_regression": [True],
479 "test_psa_api": ["OFF"],
480 "cmake_build_type": ["Debug"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800481 "with_bl2": [True],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800482 "profile": [""],
Xinyu Zhang67612992021-12-20 14:11:27 +0800483 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800484 },
485 "common_params": _common_tfm_builder_cfg,
486 "invalid": _common_tfm_invalid_configs + []
487 }
488
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800489config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800490 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800491 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800492 "isolation_level": ["1"],
493 "test_regression": [True],
494 "test_psa_api": ["OFF"],
495 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800496 "with_bl2": [True],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800497 "profile": [""],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800498 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800499 },
500 "common_params": _common_tfm_builder_cfg,
501 "invalid": _common_tfm_invalid_configs + []
502 }
503
Bence Balogh79fda442022-10-14 18:01:37 +0200504# Config groups for TF-M examples
505config_example_vad = {"seed_params": {
506 "tfm_platform": ["arm/mps3/an552"],
507 "compiler": ["GCC_10_3"],
508 "isolation_level": ["2"],
509 "test_regression": [False],
510 "test_psa_api": ["OFF"],
511 "cmake_build_type": ["Release"],
512 "with_bl2": [True],
513 "profile": [""],
514 "extra_params": ["EXAMPLE_VAD"]
515 },
516 "common_params": _common_tfm_builder_cfg,
517 "invalid": _common_tfm_invalid_configs + []
518 }
519
520config_example_dma350_ns = {"seed_params": {
521 "tfm_platform": ["arm/mps3/corstone310/fvp"],
522 "compiler": ["GCC_10_3"],
523 "isolation_level": ["2"],
524 "test_regression": [False],
525 "test_psa_api": ["OFF"],
526 "cmake_build_type": ["Release"],
527 "with_bl2": [True],
528 "profile": [""],
529 "extra_params": ["EXAMPLE_DMA350_NS"]
530 },
531 "common_params": _common_tfm_builder_cfg,
532 "invalid": _common_tfm_invalid_configs + []
533 }
534
535config_example_dma350_s = {"seed_params": {
536 "tfm_platform": ["arm/mps3/corstone310/fvp"],
537 "compiler": ["GCC_10_3"],
538 "isolation_level": ["1"],
539 "test_regression": [False],
540 "test_psa_api": ["OFF"],
541 "cmake_build_type": ["Release"],
542 "with_bl2": [True],
543 "profile": [""],
544 "extra_params": ["EXAMPLE_DMA350_S"]
545 },
546 "common_params": _common_tfm_builder_cfg,
547 "invalid": _common_tfm_invalid_configs + []
548 }
549
550config_example_dma350_trigger = {"seed_params": {
551 "tfm_platform": ["arm/mps3/corstone310/fvp"],
552 "compiler": ["GCC_10_3"],
553 "isolation_level": ["2"],
554 "test_regression": [False],
555 "test_psa_api": ["OFF"],
556 "cmake_build_type": ["Release"],
557 "with_bl2": [True],
558 "profile": [""],
559 "extra_params": ["EXAMPLE_DMA350_TRIGGER"]
560 },
561 "common_params": _common_tfm_builder_cfg,
562 "invalid": _common_tfm_invalid_configs + []
563 }
564
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800565# Config groups for code coverage
566config_cov_profile_s = deepcopy(config_profile_s)
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800567config_cov_profile_s["seed_params"]["compiler"] = ["GCC_10_3"]
Xinyu Zhangbdc37e32022-04-06 17:47:44 +0800568
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800569config_cov_profile_m = deepcopy(config_profile_m)
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800570config_cov_profile_m["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800571
David Hu3d333762022-10-27 18:12:33 +0800572config_cov_profile_m_arotless = deepcopy(config_profile_m_arotless)
573config_cov_profile_m_arotless["seed_params"]["compiler"] = ["GCC_10_3"]
574
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800575config_cov_profile_l = deepcopy(config_profile_l)
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800576config_cov_profile_l["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800577
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800578config_cov_ipc_backend = deepcopy(config_ipc_backend)
579config_cov_ipc_backend["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
580config_cov_ipc_backend["seed_params"]["compiler"] = ["GCC_10_3"]
581
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800582config_cov_nsce = deepcopy(config_nsce)
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800583config_cov_nsce["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800584
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800585config_cov_mmio = deepcopy(config_mmio)
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800586config_cov_mmio["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800587
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800588# Config groups for platforms
589config_an519 = {"seed_params": {
Xinyu Zhangf25856a2021-06-17 14:06:46 +0800590 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800591 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800592 "isolation_level": ["1", "2"],
593 "test_regression": [True, False],
594 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800595 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800596 "with_bl2": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800597 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800598 "extra_params": ["", "NSOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800599 },
600 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800601 "invalid": _common_tfm_invalid_configs + []
602 }
603
604config_an521 = {"seed_params": {
605 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800606 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800607 "isolation_level": ["1", "2", "3"],
608 "test_regression": [True, False],
609 "test_psa_api": ["OFF"],
610 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800611 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800612 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800613 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800614 },
615 "common_params": _common_tfm_builder_cfg,
616 "invalid": _common_tfm_invalid_configs + []
617 }
618
619config_an524 = {"seed_params": {
620 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800621 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800622 "isolation_level": ["1", "2"],
623 "test_regression": [True, False],
624 "test_psa_api": ["OFF"],
625 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800626 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800627 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800628 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800629 },
630 "common_params": _common_tfm_builder_cfg,
631 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800632 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000633
Xinyu Zhang38b76742021-11-11 13:57:56 +0800634config_an547 = {"seed_params": {
635 "tfm_platform": ["arm/mps3/an547"],
Bence Balogh176b78f2022-02-22 13:49:34 +0100636 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800637 "isolation_level": ["1"],
638 "test_regression": [False],
639 "test_psa_api": ["OFF"],
640 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800641 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800642 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800643 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800644 },
645 "common_params": _common_tfm_builder_cfg,
646 "invalid": _common_tfm_invalid_configs + []
647 }
648
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800649config_an552 = {"seed_params": {
650 "tfm_platform": ["arm/mps3/an552"],
651 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800652 "isolation_level": ["1", "2"],
653 "test_regression": [True, False],
654 "test_psa_api": ["OFF"],
655 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800656 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800657 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800658 "extra_params": [""]
659 },
660 "common_params": _common_tfm_builder_cfg,
661 "invalid": _common_tfm_invalid_configs + []
662 }
663
664config_musca_b1 = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200665 "tfm_platform": ["arm/musca_b1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800666 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800667 "isolation_level": ["1", "2", "3"],
668 "test_regression": [True, False],
669 "test_psa_api": ["OFF"],
670 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800671 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800672 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800673 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800674 },
675 "common_params": _common_tfm_builder_cfg,
676 "invalid": _common_tfm_invalid_configs + []
677 }
678
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800679config_musca_s1 = {"seed_params": {
680 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800681 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800682 "isolation_level": ["1", "2"],
683 "test_regression": [True, False],
684 "test_psa_api": ["OFF"],
685 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800686 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800687 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800688 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800689 },
690 "common_params": _common_tfm_builder_cfg,
691 "invalid": _common_tfm_invalid_configs + []
692 }
693
Bence Balogh8731a092022-05-24 17:24:54 +0200694config_corstone310 = {"seed_params": {
Bence Balogh23d8fa72022-11-08 12:16:23 +0100695 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Bence Balogh176b78f2022-02-22 13:49:34 +0100696 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800697 "isolation_level": ["1"],
698 "test_regression": [False],
699 "test_psa_api": ["OFF"],
700 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800701 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800702 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800703 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800704 },
705 "common_params": _common_tfm_builder_cfg,
706 "invalid": _common_tfm_invalid_configs + []
707 }
708
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100709config_rss = {"seed_params": {
Raef Coles0d405852022-10-21 10:52:50 +0100710 "tfm_platform": ["arm/rss/tc"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100711 "compiler": ["GCC_10_3"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100712 "isolation_level": ["1", "2"],
713 "test_regression": [True, False],
714 "test_psa_api": ["OFF"],
715 "cmake_build_type": ["Debug", "Release"],
716 "with_bl2": [True],
717 "profile": [""],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800718 "extra_params": ["PSOFF"]
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100719 },
720 "common_params": _common_tfm_builder_cfg,
721 "invalid": _common_tfm_invalid_configs + []
722 }
723
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800724config_psoc64 = {"seed_params": {
725 "tfm_platform": ["cypress/psoc64"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800726 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800727 "isolation_level": ["1", "2"],
728 "test_regression": [True],
729 "test_psa_api": ["OFF"],
730 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800731 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800732 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800733 "extra_params": [""]
734 },
735 "common_params": _common_tfm_builder_cfg,
736 "invalid": _common_tfm_invalid_configs + []
737 }
738
739config_corstone1000 = {"seed_params": {
740 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800741 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800742 "isolation_level": ["1"],
Satish Kumar1cfdd912022-08-01 09:24:07 +0100743 "test_regression": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800744 "test_psa_api": ["OFF"],
745 "cmake_build_type": ["Debug"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800746 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800747 "profile": [""],
Xinyu Zhangfc061dd2022-07-26 14:52:56 +0800748 "extra_params": ["S_PS_OFF, FVP", "FPGA"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800749 },
750 "common_params": _common_tfm_builder_cfg,
751 "invalid": _common_tfm_invalid_configs + []
752 }
753
754config_stm32l562e_dk = {"seed_params": {
755 "tfm_platform": ["stm/stm32l562e_dk"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800756 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800757 "isolation_level": ["1", "2", "3"],
758 "test_regression": [True, False],
759 "test_psa_api": ["OFF"],
760 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800761 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800762 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800763 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
764 },
765 "common_params": _common_tfm_builder_cfg,
766 "invalid": _common_tfm_invalid_configs + [
Summer Qin379abb62022-10-08 16:41:54 +0800767 # Oversize issue on config stm32l562e_dk_ARMCLANG_1_REG_Release_BL2
768 ("stm/stm32l562e_dk", "ARMCLANG_6_13", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800769 True, "OFF", "Release", True, "", "*"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800770 # all other tests are off when CRYPTO is ON
Summer Qin379abb62022-10-08 16:41:54 +0800771 ("stm/stm32l562e_dk", "*", "*", True, "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800772 "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800773 # all other tests are ON when CRYPTO is OFF
Summer Qin379abb62022-10-08 16:41:54 +0800774 ("stm/stm32l562e_dk", "*", "*", False, "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800775 "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800776 ]
777 }
778
779config_b_u585i_iot02a = {"seed_params": {
780 "tfm_platform": ["stm/b_u585i_iot02a"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800781 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800782 "isolation_level": ["1"],
783 "test_regression": [False],
784 "test_psa_api": ["OFF"],
785 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800786 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800787 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800788 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800789 },
790 "common_params": _common_tfm_builder_cfg,
791 "invalid": _common_tfm_invalid_configs + []
792 }
793
794config_nucleo_l552ze_q = {"seed_params": {
795 "tfm_platform": ["stm/nucleo_l552ze_q"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800796 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800797 "isolation_level": ["1"],
798 "test_regression": [False],
799 "test_psa_api": ["OFF"],
800 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800801 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800802 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800803 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800804 },
805 "common_params": _common_tfm_builder_cfg,
806 "invalid": _common_tfm_invalid_configs + []
807 }
808
809config_lpcxpresso55s69 = {"seed_params": {
810 "tfm_platform": ["nxp/lpcxpresso55s69"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800811 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800812 "isolation_level": ["2"],
813 "test_regression": [True, False],
814 "test_psa_api": ["OFF"],
815 "cmake_build_type": ["Relwithdebinfo"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800816 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800817 "profile": ["profile_medium"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800818 "extra_params": [""]
819 },
820 "common_params": _common_tfm_builder_cfg,
821 "invalid": _common_tfm_invalid_configs + []
822 }
823
Xinyu Zhang38b76742021-11-11 13:57:56 +0800824config_bl5340 = {"seed_params": {
825 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800826 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800827 "isolation_level": ["1"],
828 "test_regression": [False],
829 "test_psa_api": ["OFF"],
830 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800831 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800832 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800833 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800834 },
835 "common_params": _common_tfm_builder_cfg,
836 "invalid": _common_tfm_invalid_configs + []
837 }
838
839config_nrf5340dk = {"seed_params": {
840 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800841 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800842 "isolation_level": ["1"],
843 "test_regression": [False],
844 "test_psa_api": ["OFF"],
845 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800846 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800847 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800848 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800849 },
850 "common_params": _common_tfm_builder_cfg,
851 "invalid": _common_tfm_invalid_configs + []
852 }
853
854config_nrf9160dk = {"seed_params": {
855 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800856 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800857 "isolation_level": ["1"],
858 "test_regression": [False],
859 "test_psa_api": ["OFF"],
860 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800861 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800862 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800863 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800864 },
865 "common_params": _common_tfm_builder_cfg,
866 "invalid": _common_tfm_invalid_configs + []
867 }
868
869config_m2351 = {"seed_params": {
870 "tfm_platform": ["nuvoton/m2351"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800871 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800872 "isolation_level": ["1"],
873 "test_regression": [False],
874 "test_psa_api": ["OFF"],
875 "cmake_build_type": ["Release"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800876 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800877 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800878 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800879 },
880 "common_params": _common_tfm_builder_cfg,
881 "invalid": _common_tfm_invalid_configs + []
882 }
883
884config_m2354 = {"seed_params": {
885 "tfm_platform": ["nuvoton/m2354"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800886 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800887 "isolation_level": ["1"],
888 "test_regression": [False],
889 "test_psa_api": ["OFF"],
890 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800891 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800892 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800893 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800894 },
895 "common_params": _common_tfm_builder_cfg,
896 "invalid": _common_tfm_invalid_configs + []
897 }
898
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800899# Config groups for debug
900config_debug = {"seed_params": {
901 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800902 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800903 "isolation_level": ["1"],
904 "test_regression": [False],
905 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800906 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800907 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800908 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800909 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800910 },
911 "common_params": _common_tfm_builder_cfg,
912 "invalid": _common_tfm_invalid_configs + []
913 }
914
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800915config_debug_regr = deepcopy(config_debug)
916config_debug_regr["seed_params"]["test_regression"] = [True]
917
918config_debug_PSA_API = {"seed_params": {
919 "tfm_platform": ["arm/mps2/an521"],
920 "compiler": ["ARMCLANG_6_13"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800921 "isolation_level": ["1"],
922 "test_regression": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800923 "test_psa_api": ["CRYPTO",
924 "INITIAL_ATTESTATION",
925 "STORAGE",
926 "IPC"],
927 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800928 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800929 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800930 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800931 },
932 "common_params": _common_tfm_builder_cfg,
933 "invalid": _common_tfm_invalid_configs + []
934 }
935
Karl Zhangaff558a2020-05-15 14:28:23 +0100936_builtin_configs = {
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800937 # per-patch test groups
938 "pp_test": config_pp_test,
939 "pp_corstone1000": config_corstone1000,
Karl Zhang14573bc2020-06-08 09:23:21 +0800940
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800941 # nightly test groups
942 "nightly_test": config_nightly_test,
943 "nightly_profile_s": config_profile_s,
944 "nightly_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +0800945 "nightly_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800946 "nightly_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800947 "nightly_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800948 "nightly_cc_driver_psa": config_cc_driver_psa,
949 "nightly_fp":config_fp,
950 "nightly_psa_api": config_psa_api,
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800951 "nightly_nsce": config_nsce,
952 "nightly_mmio": config_mmio,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800953 "nightly_an547": config_an547,
954 "nightly_an552": config_an552,
Bence Balogh8731a092022-05-24 17:24:54 +0200955 "nightly_corstone310": config_corstone310,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800956 "nightly_corstone1000": config_corstone1000,
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100957 "nightly_rss": config_rss,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800958 "nightly_psoc64": config_psoc64,
959 "nightly_stm32l562e_dk": config_stm32l562e_dk,
960 "nightly_lpcxpresso55s69": config_lpcxpresso55s69,
Karl Zhang14573bc2020-06-08 09:23:21 +0800961
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800962 # release test groups
963 "release_test": config_release_test,
964 "release_profile_s": config_profile_s,
965 "release_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +0800966 "release_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800967 "release_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800968 "release_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800969 "release_cc_driver_psa": config_cc_driver_psa,
970 "release_fp": config_fp,
971 "release_psa_api": config_psa_api,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800972 "release_nsce": config_nsce,
973 "release_mmio": config_mmio,
974 "release_an547": config_an547,
975 "release_an552": config_an552,
Bence Balogh8731a092022-05-24 17:24:54 +0200976 "release_corstone310": config_corstone310,
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100977 "release_rss": config_rss,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800978 "release_psoc64": config_psoc64,
979 "release_stm32l562e_dk": config_stm32l562e_dk,
980 "release_lpcxpresso55s69": config_lpcxpresso55s69,
Karl Zhang14573bc2020-06-08 09:23:21 +0800981
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800982 # code coverage test groups
983 "coverage_profile_s": config_cov_profile_s,
984 "coverage_profile_m": config_cov_profile_m,
David Hu3d333762022-10-27 18:12:33 +0800985 "coverage_profile_m_arotless": config_cov_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800986 "coverage_profile_l": config_cov_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800987 "coverage_ipc_backend": config_cov_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800988 "coverage_nsce": config_cov_nsce,
989 "coverage_mmio": config_cov_mmio,
990 "coverage_fp": config_fp,
Xinyu Zhangf25856a2021-06-17 14:06:46 +0800991
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800992 # platform groups
993 "an521": config_an521,
994 "an519": config_an519,
995 "an524": config_an524,
996 "an547": config_an547,
997 "an552": config_an552,
998 "musca_b1": config_musca_b1,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800999 "musca_s1": config_musca_s1,
Bence Balogh8731a092022-05-24 17:24:54 +02001000 "corstone310": config_corstone310,
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001001 "rss": config_rss,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001002 "cypress_psoc64": config_psoc64,
1003 "corstone1000": config_corstone1000,
1004 "stm_stm32l562e_dk": config_stm32l562e_dk,
1005 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1006 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1007 "nxp_lpcxpresso55s69": config_lpcxpresso55s69,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001008 "laird_bl5340": config_bl5340,
1009 "nordic_nrf5340dk": config_nrf5340dk,
1010 "nordic_nrf9160dk": config_nrf9160dk,
1011 "nuvoton_m2351": config_m2351,
1012 "nuvoton_m2354": config_m2354,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001013
Bence Balogh79fda442022-10-14 18:01:37 +02001014 # config groups for tf-m-extras examples
1015 "example_vad": config_example_vad,
1016 "example_dma350_trigger": config_example_dma350_trigger,
1017 "example_dma350_ns": config_example_dma350_ns,
1018 "example_dma350_s": config_example_dma350_s,
1019
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001020 # config groups for debug
Dean Birch4c6ad622020-03-13 11:28:03 +00001021 "debug": config_debug,
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001022 "debug_regr": config_debug_regr,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001023 "debug_PSA_API": config_debug_PSA_API,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001024 }
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001025
1026if __name__ == '__main__':
1027 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001028
Minos Galanakisea421232019-06-20 17:11:28 +01001029 # Default behavior is to export refference config when called
1030 _dir = os.getcwd()
1031 from utils import save_json
1032 for _cname, _cfg in _builtin_configs.items():
1033 _fname = os.path.join(_dir, _cname + ".json")
1034 print("Exporting config %s" % _fname)
1035 save_json(_fname, _cfg)