blob: 5eb20ede13da7f83a2274575076b51ee3d08e7be [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/*
Jamie Fox9e2c2352023-01-13 15:11:23 +000011 * Copyright (c) 2018-2023, 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 " + \
Xinyu Zhang6f465642023-04-03 10:28:21 +080052 "-DTEST_NS=%(test_regression)s -DTEST_S=%(test_regression)s -DTEST_NS_FLIH_IRQ=OFF " + \
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 Zhangc7ad0822022-11-23 17:54:26 +080063 "-DQCBOR_PATH=%(codebase_root_dir)s/../QCBOR " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080064 "%(codebase_root_dir)s",
Karl Zhangaff558a2020-05-15 14:28:23 +010065
Xinyu Zhang433771e2022-04-01 16:49:17 +080066 "set_compiler_path": "export PATH=$PATH:$%(compiler)s_PATH",
67
Minos Galanakisea421232019-06-20 17:11:28 +010068 # A small subset of string substitution params is allowed in commands.
69 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
70 # _tbm_target_platform_ with the paths set when building
71
Xinyu Zhangb708f572020-09-15 11:43:46 +080072 "artifact_capture_rex": (r'%(_tbm_build_dir_)s/bin'
Minos Galanakisea421232019-06-20 17:11:28 +010073 r'/(\w+\.(?:axf|bin|hex))$'),
74
75 # ALL commands will be executed for every build.
76 # Other keys will append extra commands when matching target_platform
Fathi Boudra83e4f292020-12-04 22:33:40 +010077 "build_cmds": {"all": ["cmake --build ./ -- install"],
Mark Horvathef57baa2022-09-12 13:36:36 +020078 "arm/musca_b1": [("srec_cat "
79 "%(_tbm_build_dir_)s/bin/"
80 "bl2.bin "
81 "-Binary -offset 0xA000000 "
82 "-fill 0xFF 0xA000000 0xA020000 "
83 "%(_tbm_build_dir_)s/bin/"
84 "tfm_s_ns_signed.bin "
85 "-Binary -offset 0xA020000 "
86 "-fill 0xFF 0xA020000 0xA200000 "
87 "-o %(_tbm_build_dir_)s/bin/"
88 "tfm.hex -Intel")],
Summer Qin3c2b5722021-05-26 10:43:45 +080089 "arm/musca_s1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080090 "%(_tbm_build_dir_)s/bin/"
91 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +080092 "-Binary -offset 0xA000000 "
Raef Coles543aab32020-12-03 11:12:02 +000093 "-fill 0xFF 0xA000000 0xA020000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080094 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080095 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +000096 "-Binary -offset 0xA020000 "
97 "-fill 0xFF 0xA020000 0xA200000 "
98 "-o %(_tbm_build_dir_)s/bin/"
Arthur She19c0e1a2021-06-02 11:06:19 -070099 "tfm.hex -Intel")],
100 "stm/stm32l562e_dk": [("echo 'STM32L562E-DK board post process';"
101 "%(_tbm_build_dir_)s/postbuild.sh;"
102 "pushd %(_tbm_build_dir_)s;"
Arthur She07c91b52021-07-15 15:03:10 -0700103 "BIN_FILES=$(grep -o '\/.*\.bin' TFM_UPDATE.sh | sed 's/^/bin/');"
104 "tar jcf ./bin/stm32l562e-dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh ${BIN_FILES};"
Arthur She3c0dadd2021-11-18 21:17:48 -0800105 "popd")],
Arthur She026ebb62023-02-08 18:47:39 -0800106 "stm/b_u585i_iot02a": [("echo 'STM32U5 board post process';"
107 "%(_tbm_build_dir_)s/postbuild.sh;"
108 "pushd %(_tbm_build_dir_)s;"
109 "BIN_FILES=$(grep -o '\/.*\.bin' TFM_UPDATE.sh | sed 's/^/bin/');"
110 "tar jcf ./bin/b_u585i_iot02a-tfm.tar.bz2 regression.sh TFM_UPDATE.sh ${BIN_FILES};"
111 "popd")],
112 "nxp/lpcxpresso55s69": [("echo 'LPCXpresso55S69 board post process\n';"
Arthur She3c0dadd2021-11-18 21:17:48 -0800113 "if [ -f \"%(_tbm_build_dir_)s/bin/bl2.hex\" ]; then FLASH_FILE='flash_bl2_JLink.py'; else FLASH_FILE='flash_JLink.py'; fi;"
114 "pushd %(_tbm_build_dir_)s/../platform/ext/target/nxp/lpcxpresso55s69/scripts;"
115 "LN=$(grep -n 'JLinkExe' ${FLASH_FILE}|awk -F: '{print $1}');"
116 "sed -i \"${LN}s/.*/ print('flash.jlink generated')/\" ${FLASH_FILE};"
117 "python3 ./${FLASH_FILE};"
118 "cd %(_tbm_build_dir_)s/bin;"
119 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"
120 "tar jcf lpcxpresso55s69-tfm.tar.bz2 flash.jlink ${BIN_FILES};"
Arthur She87602dc2022-02-06 14:42:18 -0800121 "popd")],
122 "cypress/psoc64": [("echo 'Sign binaries for Cypress PSoC64 platform';"
123 "pushd %(_tbm_build_dir_)s/..;"
124 "sudo /usr/local/bin/cysecuretools "
125 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
126 "--target cy8ckit-064s0s2-4343w "
127 "sign-image "
128 "--hex %(_tbm_build_dir_)s/bin/tfm_s.hex "
129 "--image-type BOOT --image-id 1;"
130 "sudo /usr/local/bin/cysecuretools "
131 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
132 "--target cy8ckit-064s0s2-4343w "
133 "sign-image "
134 "--hex %(_tbm_build_dir_)s/bin/tfm_ns.hex "
135 "--image-type BOOT --image-id 16;"
136 "mv %(_tbm_build_dir_)s/bin/tfm_s.hex %(_tbm_build_dir_)s/bin/tfm_s_signed.hex;"
137 "mv %(_tbm_build_dir_)s/bin/tfm_ns.hex %(_tbm_build_dir_)s/bin/tfm_ns_signed.hex;"
138 "popd")]
Minos Galanakisea421232019-06-20 17:11:28 +0100139 },
140
141 # (Optional) If set will fail if those artefacts are missing post build
142 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800143 "%(_tbm_build_dir_)s/bin/"
144 "tfm_s.bin",
145 "%(_tbm_build_dir_)s/bin/"
146 "tfm_ns.bin"],
Mark Horvathef57baa2022-09-12 13:36:36 +0200147 "arm/musca_b1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800148 "%(_tbm_build_dir_)s/bin/"
149 "tfm.hex",
150 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800151 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800152 "%(_tbm_build_dir_)s/bin/"
153 "tfm_sign.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800154 "arm/musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800155 "%(_tbm_build_dir_)s/bin/"
156 "tfm.hex",
157 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800158 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800159 "%(_tbm_build_dir_)s/bin/"
160 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100161 }
162}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100163
Xinyu Zhangb708f572020-09-15 11:43:46 +0800164# List of all build configs that are impossible under all circumstances
165_common_tfm_invalid_configs = [
Xinyu Zhang459a1982021-07-21 22:34:49 +0800166 # 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 +0800167 ("arm/musca_b1", "ARMCLANG_6_13", "*", True, "OFF", "Debug", "*", "", "*"),
168 ("arm/musca_s1", "ARMCLANG_6_13", "*", True, "OFF", "Debug", "*", "", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800169 # Load range overlap on Musca for IPC Debug type: T895
Summer Qin379abb62022-10-08 16:41:54 +0800170 ("arm/musca_b1", "ARMCLANG_6_13", "*", "*", "IPC", "Debug", "*", "*", "*"),
171 ("arm/musca_s1", "ARMCLANG_6_13", "*", "*", "IPC", "Debug", "*", "*", "*"),
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300172 # FF does not support L3
Summer Qin379abb62022-10-08 16:41:54 +0800173 ("*", "*", "3", "*", "IPC", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800174 # Musca requires BL2
Summer Qin379abb62022-10-08 16:41:54 +0800175 ("arm/musca_b1", "*", "*", "*", "*", "*", False, "*", "*"),
176 ("arm/musca_s1", "*", "*", "*", "*", "*", False, "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800177 # Only AN521 and MUSCA_B1 support Isolation Level 3
Summer Qin379abb62022-10-08 16:41:54 +0800178 ("arm/mps2/an519", "*", "3", "*", "*", "*", "*", "*", "*"),
179 ("arm/mps3/an524", "*", "3", "*", "*", "*", "*", "*", "*"),
180 ("arm/musca_s1", "*", "3", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800181 ]
182
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100183# Configure build manager to build several combinations
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800184# Config group for per-patch job
185config_pp_test = {"seed_params": {
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800186 # AN519_ARMCLANG_IPC_1_REG_Debug_BL2
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800187 "tfm_platform": ["arm/mps2/an519"],
188 "compiler": ["ARMCLANG_6_13"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800189 "isolation_level": ["1"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800190 "test_regression": [True],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800191 "test_psa_api": ["OFF"],
192 "cmake_build_type": ["Debug"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800193 "with_bl2": [True],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800194 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800195 "extra_params": [""]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800196 },
197 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800198 "valid": [
Summer Qin379abb62022-10-08 16:41:54 +0800199 # AN519_ARMCLANG_2_REG_Release_BL2
200 ("arm/mps2/an519", "ARMCLANG_6_13", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800201 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800202 # AN519_GCC_1_REG_Debug_BL2
203 ("arm/mps2/an519", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800204 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800205 # AN519_GCC_2_REG_Release_BL2
206 ("arm/mps2/an519", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800207 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800208 # AN519_GCC_1_REG_Debug_BL2
209 ("arm/mps2/an519", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800210 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800211 # AN521_ARMCLANG_1_REG_Debug_BL2_SMALL_PSOFF
212 ("arm/mps2/an521", "ARMCLANG_6_13", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800213 True, "OFF", "Debug", True, "profile_small", "PSOFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800214 # AN521_ARMCLANG_1_REG_Debug_BL2
215 ("arm/mps2/an521", "ARMCLANG_6_13", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800216 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800217 # AN521_ARMCLANG_2_REG_Release_BL2
218 ("arm/mps2/an521", "ARMCLANG_6_13", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800219 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800220 # AN521_ARMCLANG_3_REG_Minsizerel_BL2
221 ("arm/mps2/an521", "ARMCLANG_6_13", "3",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800222 True, "OFF", "Minsizerel", True, "", ""),
Xinyu Zhang9ac71532022-11-21 17:42:33 +0800223 # AN521_ARMCLANG_1_REG_Debug_BL2_SMALL_PSOFF
Summer Qin379abb62022-10-08 16:41:54 +0800224 ("arm/mps2/an521", "ARMCLANG_6_13", "1",
Xinyu Zhang9ac71532022-11-21 17:42:33 +0800225 True, "OFF", "Debug", True, "profile_small", "PSOFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800226 # AN521_GCC_1_REG_Debug_BL2
227 ("arm/mps2/an521", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800228 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800229 # AN521_GCC_2_Debug_BL2_MEDIUM
230 ("arm/mps2/an521", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800231 False, "OFF", "Debug", True, "profile_medium", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800232 # AN521_GCC_2_REG_Release_BL2
233 ("arm/mps2/an521", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800234 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800235 # AN521_GCC_3_REG_Minsizerel_BL2
236 ("arm/mps2/an521", "GCC_10_3", "3",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800237 True, "OFF", "Minsizerel", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800238 # AN521_GCC_1_REG_Debug_BL2
239 ("arm/mps2/an521", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800240 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800241 # AN552_GNUARM_1_REG_Debug_BL2
242 ("arm/mps3/an552", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800243 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800244 # AN552_GNUARM_1_REG_Release_BL2
245 ("arm/mps3/an552", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800246 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800247 # MUSCA_B1_GCC_1_REG_Minsizerel_BL2
248 ("arm/musca_b1", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800249 True, "OFF", "Minsizerel", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800250 # MUSCA_S1_ARMCLANG_2_REG_Release_BL2
251 ("arm/musca_s1", "ARMCLANG_6_13", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800252 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800253 # MUSCA_S1_GCC_1_REG_Debug_BL2
254 ("arm/musca_s1", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800255 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800256 # MUSCA_S1_GCC_2_REG_Release_BL2
257 ("arm/musca_s1", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800258 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800259 # MUSCA_S1_GCC_1_REG_Debug_BL2
260 ("arm/musca_s1", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800261 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800262 # MUSCA_S1_GCC_1_REG_Release_BL2_CC_DRIVER_PSA
263 ("arm/musca_s1", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800264 True, "OFF", "Release", True, "", "CC_DRIVER_PSA"),
Jamie Foxd7438d92022-11-21 17:42:01 +0000265 # RSS_TC_GCC_2_Release_BL2_PSOFF
266 ("arm/rss/tc", "GCC_10_3", "2",
267 False, "OFF", "Release", True, "", "PSOFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800268 # stm32l562e_dk_ARMCLANG_1_REG_Release_BL2
269 ("stm/stm32l562e_dk", "ARMCLANG_6_13", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800270 True, "OFF", "Release", True, "", "CRYPTO_OFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800271 # stm32l562e_dk_GCC_2_REG_Release_BL2
272 ("stm/stm32l562e_dk", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800273 False, "OFF", "Release", True, "", "CRYPTO_ON"),
Summer Qin379abb62022-10-08 16:41:54 +0800274 # stm32l562e_dk_GCC_3_REG_Release_BL2
275 ("stm/stm32l562e_dk", "GCC_10_3", "3",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800276 True, "OFF", "Release", True, "", "CRYPTO_OFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800277 # psoc64_GCC_2_REG_Release
278 ("cypress/psoc64", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800279 True, "OFF", "Release", False, "", ""),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800280 ],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800281 "invalid": _common_tfm_invalid_configs + []
282 }
283
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800284# Config group for nightly job
285config_nightly_test = {"seed_params": {
286 "tfm_platform": ["arm/mps2/an519",
287 "arm/mps2/an521",
288 "arm/mps3/an524",
289 "arm/musca_s1",
Mark Horvathef57baa2022-09-12 13:36:36 +0200290 "arm/musca_b1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800291 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800292 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800293 "test_regression": [True, False],
294 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800295 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800296 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800297 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800298 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100299 },
300 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800301 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100302 }
303
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800304# Config group for release job
305config_release_test = {"seed_params": {
306 "tfm_platform": ["arm/mps2/an519",
307 "arm/mps2/an521",
308 "arm/mps3/an524",
Mark Horvathef57baa2022-09-12 13:36:36 +0200309 "arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800310 "arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800311 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800312 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800313 "test_regression": [True, False],
314 "test_psa_api": ["OFF"],
315 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800316 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800317 "profile": [""],
David Vinczed78e2622022-11-24 15:04:00 +0100318 "extra_params": ["TEST_CBOR"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800319 },
320 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800321 "valid": [
322 # sanity test for GCC v11.2
Summer Qin379abb62022-10-08 16:41:54 +0800323 # AN521_GCC_3_REG_Relwithdebinfo_BL2
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800324 ("arm/mps2/an521", "GCC_11_2",
Summer Qin379abb62022-10-08 16:41:54 +0800325 "3", True, "OFF", "Relwithdebinfo",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800326 True, "", ""),
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800327 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800328 "invalid": _common_tfm_invalid_configs + []
329 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800330
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800331# Config groups for TF-M features
332config_profile_s = {"seed_params": {
David Huda27ae72022-03-28 15:32:19 +0800333 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800334 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
David Huda27ae72022-03-28 15:32:19 +0800335 "isolation_level": ["1"],
336 "test_regression": [True, False],
337 "test_psa_api": ["OFF"],
338 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
David Huda27ae72022-03-28 15:32:19 +0800339 "with_bl2": [True],
David Huda27ae72022-03-28 15:32:19 +0800340 "profile": ["profile_small"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800341 "extra_params": ["PSOFF"]
David Huda27ae72022-03-28 15:32:19 +0800342 },
343 "common_params": _common_tfm_builder_cfg,
David Huda27ae72022-03-28 15:32:19 +0800344 "invalid": _common_tfm_invalid_configs + [
Summer Qin379abb62022-10-08 16:41:54 +0800345 ("arm/mps2/an519", "GCC_10_3", "*", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800346 "*", "Minsizerel", "*", "*", "*")
David Huda27ae72022-03-28 15:32:19 +0800347 ]
348 }
349
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800350config_profile_m = {"seed_params": {
351 "tfm_platform": ["arm/mps2/an519",
352 "arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200353 "arm/musca_b1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800354 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800355 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800356 "test_regression": [True, False],
357 "test_psa_api": ["OFF"],
358 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800359 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800360 "profile": ["profile_medium"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800361 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800362 },
363 "common_params": _common_tfm_builder_cfg,
364 "invalid": _common_tfm_invalid_configs + []
365 }
366
David Hu3d333762022-10-27 18:12:33 +0800367config_profile_m_arotless = {"seed_params": {
368 "tfm_platform": ["arm/musca_b1"],
369 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
370 "isolation_level": ["1"],
371 "test_regression": [True, False],
372 "test_psa_api": ["OFF"],
373 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
374 "with_bl2": [True],
375 "profile": ["profile_medium_arotless"],
376 "extra_params": ["", "PSOFF"]
377 },
378 "common_params": _common_tfm_builder_cfg,
379 "invalid": _common_tfm_invalid_configs + []
380 }
381
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800382config_profile_l = {"seed_params": {
383 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800384 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800385 "isolation_level": ["3"],
386 "test_regression": [True, False],
387 "test_psa_api": ["OFF"],
388 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800389 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800390 "profile": ["profile_large"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800391 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800392 },
393 "common_params": _common_tfm_builder_cfg,
394 "invalid": _common_tfm_invalid_configs + []
395 }
396
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800397config_ipc_backend = {"seed_params": {
398 "tfm_platform": ["arm/mps2/an519",
399 "arm/mps2/an521",
400 "arm/musca_s1",
401 "arm/musca_b1"],
402 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
403 "isolation_level": ["1"],
404 "test_regression": [True, False],
405 "test_psa_api": ["OFF"],
406 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
407 "with_bl2": [True],
408 "profile": [""],
409 "extra_params": ["IPC"]
410 },
411 "common_params": _common_tfm_builder_cfg,
412 "invalid": _common_tfm_invalid_configs + []
413 }
414
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800415config_cc_driver_psa = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200416 "tfm_platform": ["arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800417 "arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800418 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800419 "isolation_level": ["1"],
420 "test_regression": [True],
421 "test_psa_api": ["OFF"],
422 "cmake_build_type": ["Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800423 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800424 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800425 "extra_params": ["CC_DRIVER_PSA"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800426 },
427 "common_params": _common_tfm_builder_cfg,
428 "invalid": _common_tfm_invalid_configs + []
429 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100430
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800431config_fp = {"seed_params": {
Jianliang Shen9798e552022-11-21 12:55:42 +0800432 "tfm_platform": ["arm/mps2/an521",
433 "arm/mps3/an552"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800434 "compiler": ["GCC_10_3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800435 "isolation_level": ["1", "2"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800436 "test_regression": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800437 "test_psa_api": ["OFF"],
438 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800439 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800440 "profile": [""],
Mark Horvath93cb5fb2022-09-06 17:51:24 +0200441 "extra_params": ["FPOFF", "FPON", "FPON, LZOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800442 },
443 "common_params": _common_tfm_builder_cfg,
444 "invalid": _common_tfm_invalid_configs + []
445 }
Karl Zhangeffed972020-06-30 15:48:01 +0800446
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800447config_psa_api = {"seed_params": {
448 "tfm_platform": ["arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200449 "arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800450 "arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800451 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800452 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800453 "test_regression": [False],
454 "test_psa_api": ["IPC",
455 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800456 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800457 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800458 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800459 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800460 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800461 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800462 },
463 "common_params": _common_tfm_builder_cfg,
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300464 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800465 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800466
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800467config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800468 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800469 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800470 "isolation_level": ["1", "2", "3"],
471 "test_regression": [True],
472 "test_psa_api": ["OFF"],
473 "cmake_build_type": ["Debug"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800474 "with_bl2": [True],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800475 "profile": [""],
Xinyu Zhang67612992021-12-20 14:11:27 +0800476 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800477 },
478 "common_params": _common_tfm_builder_cfg,
479 "invalid": _common_tfm_invalid_configs + []
480 }
481
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800482config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800483 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800484 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800485 "isolation_level": ["1"],
486 "test_regression": [True],
487 "test_psa_api": ["OFF"],
488 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800489 "with_bl2": [True],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800490 "profile": [""],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800491 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800492 },
493 "common_params": _common_tfm_builder_cfg,
494 "invalid": _common_tfm_invalid_configs + []
495 }
496
Bence Balogh79fda442022-10-14 18:01:37 +0200497# Config groups for TF-M examples
498config_example_vad = {"seed_params": {
499 "tfm_platform": ["arm/mps3/an552"],
500 "compiler": ["GCC_10_3"],
501 "isolation_level": ["2"],
502 "test_regression": [False],
503 "test_psa_api": ["OFF"],
504 "cmake_build_type": ["Release"],
505 "with_bl2": [True],
506 "profile": [""],
507 "extra_params": ["EXAMPLE_VAD"]
508 },
509 "common_params": _common_tfm_builder_cfg,
510 "invalid": _common_tfm_invalid_configs + []
511 }
512
513config_example_dma350_ns = {"seed_params": {
514 "tfm_platform": ["arm/mps3/corstone310/fvp"],
515 "compiler": ["GCC_10_3"],
516 "isolation_level": ["2"],
517 "test_regression": [False],
518 "test_psa_api": ["OFF"],
519 "cmake_build_type": ["Release"],
520 "with_bl2": [True],
521 "profile": [""],
522 "extra_params": ["EXAMPLE_DMA350_NS"]
523 },
524 "common_params": _common_tfm_builder_cfg,
525 "invalid": _common_tfm_invalid_configs + []
526 }
527
528config_example_dma350_s = {"seed_params": {
529 "tfm_platform": ["arm/mps3/corstone310/fvp"],
530 "compiler": ["GCC_10_3"],
531 "isolation_level": ["1"],
532 "test_regression": [False],
533 "test_psa_api": ["OFF"],
534 "cmake_build_type": ["Release"],
535 "with_bl2": [True],
536 "profile": [""],
537 "extra_params": ["EXAMPLE_DMA350_S"]
538 },
539 "common_params": _common_tfm_builder_cfg,
540 "invalid": _common_tfm_invalid_configs + []
541 }
542
543config_example_dma350_trigger = {"seed_params": {
544 "tfm_platform": ["arm/mps3/corstone310/fvp"],
545 "compiler": ["GCC_10_3"],
546 "isolation_level": ["2"],
547 "test_regression": [False],
548 "test_psa_api": ["OFF"],
549 "cmake_build_type": ["Release"],
550 "with_bl2": [True],
551 "profile": [""],
552 "extra_params": ["EXAMPLE_DMA350_TRIGGER"]
553 },
554 "common_params": _common_tfm_builder_cfg,
555 "invalid": _common_tfm_invalid_configs + []
556 }
557
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800558# Config groups for code coverage
559config_cov_profile_s = deepcopy(config_profile_s)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800560config_cov_profile_s["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800561config_cov_profile_s["seed_params"]["compiler"] = ["GCC_10_3"]
Xinyu Zhangbdc37e32022-04-06 17:47:44 +0800562
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800563config_cov_profile_m = deepcopy(config_profile_m)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800564config_cov_profile_m["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800565config_cov_profile_m["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800566
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800567config_cov_profile_l = deepcopy(config_profile_l)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800568config_cov_profile_l["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800569config_cov_profile_l["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800570
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800571config_cov_ipc_backend = deepcopy(config_ipc_backend)
572config_cov_ipc_backend["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
573config_cov_ipc_backend["seed_params"]["compiler"] = ["GCC_10_3"]
574
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800575config_cov_nsce = deepcopy(config_nsce)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800576config_cov_nsce["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800577config_cov_nsce["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800578
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800579config_cov_mmio = deepcopy(config_mmio)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800580config_cov_mmio["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800581config_cov_mmio["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800582
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800583config_cov_fp = deepcopy(config_fp)
584config_cov_fp["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang778424e2023-02-27 11:39:57 +0800585config_cov_fp["seed_params"]["compiler"] = ["GCC_10_3"]
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800586
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800587# Config groups for platforms
588config_an519 = {"seed_params": {
Xinyu Zhangf25856a2021-06-17 14:06:46 +0800589 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800590 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800591 "isolation_level": ["1", "2"],
592 "test_regression": [True, False],
593 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800594 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800595 "with_bl2": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800596 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800597 "extra_params": ["", "NSOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800598 },
599 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800600 "invalid": _common_tfm_invalid_configs + []
601 }
602
603config_an521 = {"seed_params": {
604 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800605 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800606 "isolation_level": ["1", "2", "3"],
607 "test_regression": [True, False],
608 "test_psa_api": ["OFF"],
609 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800610 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800611 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800612 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800613 },
614 "common_params": _common_tfm_builder_cfg,
615 "invalid": _common_tfm_invalid_configs + []
616 }
617
618config_an524 = {"seed_params": {
619 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800620 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800621 "isolation_level": ["1", "2"],
622 "test_regression": [True, False],
623 "test_psa_api": ["OFF"],
624 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800625 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800626 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800627 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800628 },
629 "common_params": _common_tfm_builder_cfg,
630 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800631 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000632
Xinyu Zhang38b76742021-11-11 13:57:56 +0800633config_an547 = {"seed_params": {
634 "tfm_platform": ["arm/mps3/an547"],
Bence Balogh176b78f2022-02-22 13:49:34 +0100635 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800636 "isolation_level": ["1"],
637 "test_regression": [False],
638 "test_psa_api": ["OFF"],
639 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800640 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800641 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800642 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800643 },
644 "common_params": _common_tfm_builder_cfg,
645 "invalid": _common_tfm_invalid_configs + []
646 }
647
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800648config_an552 = {"seed_params": {
649 "tfm_platform": ["arm/mps3/an552"],
650 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800651 "isolation_level": ["1", "2"],
652 "test_regression": [True, False],
653 "test_psa_api": ["OFF"],
654 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800655 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800656 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800657 "extra_params": [""]
658 },
659 "common_params": _common_tfm_builder_cfg,
660 "invalid": _common_tfm_invalid_configs + []
661 }
662
663config_musca_b1 = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200664 "tfm_platform": ["arm/musca_b1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800665 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800666 "isolation_level": ["1", "2", "3"],
667 "test_regression": [True, False],
668 "test_psa_api": ["OFF"],
669 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800670 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800671 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800672 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800673 },
674 "common_params": _common_tfm_builder_cfg,
675 "invalid": _common_tfm_invalid_configs + []
676 }
677
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800678config_musca_s1 = {"seed_params": {
679 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800680 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800681 "isolation_level": ["1", "2"],
682 "test_regression": [True, False],
683 "test_psa_api": ["OFF"],
684 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800685 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800686 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800687 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800688 },
689 "common_params": _common_tfm_builder_cfg,
690 "invalid": _common_tfm_invalid_configs + []
691 }
692
Bence Balogh8731a092022-05-24 17:24:54 +0200693config_corstone310 = {"seed_params": {
Bence Balogh23d8fa72022-11-08 12:16:23 +0100694 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Bence Balogh176b78f2022-02-22 13:49:34 +0100695 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800696 "isolation_level": ["1"],
697 "test_regression": [False],
698 "test_psa_api": ["OFF"],
699 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800700 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800701 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800702 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800703 },
704 "common_params": _common_tfm_builder_cfg,
705 "invalid": _common_tfm_invalid_configs + []
706 }
707
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100708config_rss = {"seed_params": {
Raef Coles0d405852022-10-21 10:52:50 +0100709 "tfm_platform": ["arm/rss/tc"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100710 "compiler": ["GCC_10_3"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100711 "isolation_level": ["1", "2"],
712 "test_regression": [True, False],
713 "test_psa_api": ["OFF"],
714 "cmake_build_type": ["Debug", "Release"],
715 "with_bl2": [True],
716 "profile": [""],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800717 "extra_params": ["PSOFF"]
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100718 },
719 "common_params": _common_tfm_builder_cfg,
Jamie Fox9e2c2352023-01-13 15:11:23 +0000720 "invalid": _common_tfm_invalid_configs + [
721 # BL2 is too large for RSS in Debug builds with tests
722 ("arm/rss/tc", "GCC_10_3", "*", True, "*",
723 "Debug", True, "*", "*"),
724 ]
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100725 }
726
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800727config_psoc64 = {"seed_params": {
728 "tfm_platform": ["cypress/psoc64"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800729 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800730 "isolation_level": ["1", "2"],
731 "test_regression": [True],
732 "test_psa_api": ["OFF"],
733 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800734 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800735 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800736 "extra_params": [""]
737 },
738 "common_params": _common_tfm_builder_cfg,
739 "invalid": _common_tfm_invalid_configs + []
740 }
741
742config_corstone1000 = {"seed_params": {
743 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800744 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800745 "isolation_level": ["1"],
Satish Kumar1cfdd912022-08-01 09:24:07 +0100746 "test_regression": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800747 "test_psa_api": ["OFF"],
748 "cmake_build_type": ["Debug"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800749 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800750 "profile": [""],
Xinyu Zhangfc061dd2022-07-26 14:52:56 +0800751 "extra_params": ["S_PS_OFF, FVP", "FPGA"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800752 },
753 "common_params": _common_tfm_builder_cfg,
754 "invalid": _common_tfm_invalid_configs + []
755 }
756
757config_stm32l562e_dk = {"seed_params": {
758 "tfm_platform": ["stm/stm32l562e_dk"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800759 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800760 "isolation_level": ["1", "2", "3"],
761 "test_regression": [True, False],
762 "test_psa_api": ["OFF"],
763 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800764 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800765 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800766 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
767 },
768 "common_params": _common_tfm_builder_cfg,
769 "invalid": _common_tfm_invalid_configs + [
Summer Qin379abb62022-10-08 16:41:54 +0800770 # Oversize issue on config stm32l562e_dk_ARMCLANG_1_REG_Release_BL2
771 ("stm/stm32l562e_dk", "ARMCLANG_6_13", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800772 True, "OFF", "Release", True, "", "*"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800773 # all other tests are off when CRYPTO is ON
Summer Qin379abb62022-10-08 16:41:54 +0800774 ("stm/stm32l562e_dk", "*", "*", True, "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800775 "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800776 # all other tests are ON when CRYPTO is OFF
Summer Qin379abb62022-10-08 16:41:54 +0800777 ("stm/stm32l562e_dk", "*", "*", False, "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800778 "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800779 ]
780 }
781
782config_b_u585i_iot02a = {"seed_params": {
783 "tfm_platform": ["stm/b_u585i_iot02a"],
Arthur She026ebb62023-02-08 18:47:39 -0800784 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
785 "isolation_level": ["1", "2"],
786 "test_regression": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800787 "test_psa_api": ["OFF"],
788 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800789 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800790 "profile": [""],
Arthur She026ebb62023-02-08 18:47:39 -0800791 "extra_params": [""]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800792 },
793 "common_params": _common_tfm_builder_cfg,
794 "invalid": _common_tfm_invalid_configs + []
795 }
796
797config_nucleo_l552ze_q = {"seed_params": {
798 "tfm_platform": ["stm/nucleo_l552ze_q"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800799 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800800 "isolation_level": ["1"],
801 "test_regression": [False],
802 "test_psa_api": ["OFF"],
803 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800804 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800805 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800806 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800807 },
808 "common_params": _common_tfm_builder_cfg,
809 "invalid": _common_tfm_invalid_configs + []
810 }
811
812config_lpcxpresso55s69 = {"seed_params": {
813 "tfm_platform": ["nxp/lpcxpresso55s69"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800814 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800815 "isolation_level": ["2"],
816 "test_regression": [True, False],
817 "test_psa_api": ["OFF"],
818 "cmake_build_type": ["Relwithdebinfo"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800819 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800820 "profile": ["profile_medium"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800821 "extra_params": [""]
822 },
823 "common_params": _common_tfm_builder_cfg,
824 "invalid": _common_tfm_invalid_configs + []
825 }
826
Xinyu Zhang38b76742021-11-11 13:57:56 +0800827config_bl5340 = {"seed_params": {
828 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800829 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800830 "isolation_level": ["1"],
831 "test_regression": [False],
832 "test_psa_api": ["OFF"],
833 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800834 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800835 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800836 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800837 },
838 "common_params": _common_tfm_builder_cfg,
839 "invalid": _common_tfm_invalid_configs + []
840 }
841
842config_nrf5340dk = {"seed_params": {
843 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800844 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800845 "isolation_level": ["1"],
846 "test_regression": [False],
847 "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
857config_nrf9160dk = {"seed_params": {
858 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800859 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800860 "isolation_level": ["1"],
861 "test_regression": [False],
862 "test_psa_api": ["OFF"],
863 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800864 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800865 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800866 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800867 },
868 "common_params": _common_tfm_builder_cfg,
869 "invalid": _common_tfm_invalid_configs + []
870 }
871
872config_m2351 = {"seed_params": {
873 "tfm_platform": ["nuvoton/m2351"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800874 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800875 "isolation_level": ["1"],
876 "test_regression": [False],
877 "test_psa_api": ["OFF"],
878 "cmake_build_type": ["Release"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800879 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800880 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800881 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800882 },
883 "common_params": _common_tfm_builder_cfg,
884 "invalid": _common_tfm_invalid_configs + []
885 }
886
887config_m2354 = {"seed_params": {
888 "tfm_platform": ["nuvoton/m2354"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800889 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800890 "isolation_level": ["1"],
891 "test_regression": [False],
892 "test_psa_api": ["OFF"],
893 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800894 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800895 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800896 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800897 },
898 "common_params": _common_tfm_builder_cfg,
899 "invalid": _common_tfm_invalid_configs + []
900 }
901
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800902# Config groups for debug
903config_debug = {"seed_params": {
904 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800905 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800906 "isolation_level": ["1"],
907 "test_regression": [False],
908 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800909 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800910 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800911 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800912 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800913 },
914 "common_params": _common_tfm_builder_cfg,
915 "invalid": _common_tfm_invalid_configs + []
916 }
917
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800918config_debug_regr = deepcopy(config_debug)
919config_debug_regr["seed_params"]["test_regression"] = [True]
920
921config_debug_PSA_API = {"seed_params": {
922 "tfm_platform": ["arm/mps2/an521"],
923 "compiler": ["ARMCLANG_6_13"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800924 "isolation_level": ["1"],
925 "test_regression": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800926 "test_psa_api": ["CRYPTO",
927 "INITIAL_ATTESTATION",
928 "STORAGE",
929 "IPC"],
930 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800931 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800932 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800933 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800934 },
935 "common_params": _common_tfm_builder_cfg,
936 "invalid": _common_tfm_invalid_configs + []
937 }
938
Karl Zhangaff558a2020-05-15 14:28:23 +0100939_builtin_configs = {
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800940 # per-patch test groups
941 "pp_test": config_pp_test,
942 "pp_corstone1000": config_corstone1000,
Karl Zhang14573bc2020-06-08 09:23:21 +0800943
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800944 # nightly test groups
945 "nightly_test": config_nightly_test,
946 "nightly_profile_s": config_profile_s,
947 "nightly_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +0800948 "nightly_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800949 "nightly_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800950 "nightly_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800951 "nightly_cc_driver_psa": config_cc_driver_psa,
952 "nightly_fp":config_fp,
953 "nightly_psa_api": config_psa_api,
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800954 "nightly_nsce": config_nsce,
955 "nightly_mmio": config_mmio,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800956 "nightly_an547": config_an547,
957 "nightly_an552": config_an552,
Bence Balogh8731a092022-05-24 17:24:54 +0200958 "nightly_corstone310": config_corstone310,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800959 "nightly_corstone1000": config_corstone1000,
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100960 "nightly_rss": config_rss,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800961 "nightly_psoc64": config_psoc64,
962 "nightly_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -0800963 "nightly_b_u585i_iot02a": config_b_u585i_iot02a,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800964 "nightly_lpcxpresso55s69": config_lpcxpresso55s69,
Karl Zhang14573bc2020-06-08 09:23:21 +0800965
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800966 # release test groups
967 "release_test": config_release_test,
968 "release_profile_s": config_profile_s,
969 "release_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +0800970 "release_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800971 "release_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800972 "release_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800973 "release_cc_driver_psa": config_cc_driver_psa,
974 "release_fp": config_fp,
975 "release_psa_api": config_psa_api,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800976 "release_nsce": config_nsce,
977 "release_mmio": config_mmio,
978 "release_an547": config_an547,
979 "release_an552": config_an552,
Bence Balogh8731a092022-05-24 17:24:54 +0200980 "release_corstone310": config_corstone310,
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100981 "release_rss": config_rss,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800982 "release_psoc64": config_psoc64,
983 "release_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -0800984 "release_b_u585i_iot02a": config_b_u585i_iot02a,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800985 "release_lpcxpresso55s69": config_lpcxpresso55s69,
Karl Zhang14573bc2020-06-08 09:23:21 +0800986
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800987 # code coverage test groups
988 "coverage_profile_s": config_cov_profile_s,
989 "coverage_profile_m": config_cov_profile_m,
990 "coverage_profile_l": config_cov_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800991 "coverage_ipc_backend": config_cov_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800992 "coverage_nsce": config_cov_nsce,
993 "coverage_mmio": config_cov_mmio,
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800994 "coverage_fp": config_cov_fp,
Xinyu Zhangf25856a2021-06-17 14:06:46 +0800995
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800996 # platform groups
997 "an521": config_an521,
998 "an519": config_an519,
999 "an524": config_an524,
1000 "an547": config_an547,
1001 "an552": config_an552,
1002 "musca_b1": config_musca_b1,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001003 "musca_s1": config_musca_s1,
Bence Balogh8731a092022-05-24 17:24:54 +02001004 "corstone310": config_corstone310,
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001005 "rss": config_rss,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001006 "cypress_psoc64": config_psoc64,
1007 "corstone1000": config_corstone1000,
1008 "stm_stm32l562e_dk": config_stm32l562e_dk,
1009 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1010 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1011 "nxp_lpcxpresso55s69": config_lpcxpresso55s69,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001012 "laird_bl5340": config_bl5340,
1013 "nordic_nrf5340dk": config_nrf5340dk,
1014 "nordic_nrf9160dk": config_nrf9160dk,
1015 "nuvoton_m2351": config_m2351,
1016 "nuvoton_m2354": config_m2354,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001017
Bence Balogh79fda442022-10-14 18:01:37 +02001018 # config groups for tf-m-extras examples
1019 "example_vad": config_example_vad,
1020 "example_dma350_trigger": config_example_dma350_trigger,
1021 "example_dma350_ns": config_example_dma350_ns,
1022 "example_dma350_s": config_example_dma350_s,
1023
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001024 # config groups for debug
Dean Birch4c6ad622020-03-13 11:28:03 +00001025 "debug": config_debug,
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001026 "debug_regr": config_debug_regr,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001027 "debug_PSA_API": config_debug_PSA_API,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001028 }
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001029
1030if __name__ == '__main__':
1031 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001032
Minos Galanakisea421232019-06-20 17:11:28 +01001033 # Default behavior is to export refference config when called
1034 _dir = os.getcwd()
1035 from utils import save_json
1036 for _cname, _cfg in _builtin_configs.items():
1037 _fname = os.path.join(_dir, _cname + ".json")
1038 print("Exporting config %s" % _fname)
1039 save_json(_fname, _cfg)