blob: 281463bc8ce4fdb2f7a6100246081445e4139489 [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 Zhangf2623ac2023-01-30 17:11:25 +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")],
Satish Kumar1cfdd912022-08-01 09:24:07 +010089 "arm/corstone1000": [("cat "
90 "%(_tbm_build_dir_)s/bin/"
91 "bl2_signed.bin "
92 "%(_tbm_build_dir_)s/bin/"
93 "bl2_signed.bin "
94 "%(_tbm_build_dir_)s/bin/"
95 "tfm_s_signed.bin "
96 "%(_tbm_build_dir_)s/bin/"
97 "tfm_s_signed.bin "
98 "> "
99 "%(_tbm_build_dir_)s/bin/"
100 "flash.bin")],
Summer Qin3c2b5722021-05-26 10:43:45 +0800101 "arm/musca_s1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +0800102 "%(_tbm_build_dir_)s/bin/"
103 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +0800104 "-Binary -offset 0xA000000 "
Raef Coles543aab32020-12-03 11:12:02 +0000105 "-fill 0xFF 0xA000000 0xA020000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +0800106 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800107 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +0000108 "-Binary -offset 0xA020000 "
109 "-fill 0xFF 0xA020000 0xA200000 "
110 "-o %(_tbm_build_dir_)s/bin/"
Arthur She19c0e1a2021-06-02 11:06:19 -0700111 "tfm.hex -Intel")],
112 "stm/stm32l562e_dk": [("echo 'STM32L562E-DK board post process';"
113 "%(_tbm_build_dir_)s/postbuild.sh;"
114 "pushd %(_tbm_build_dir_)s;"
Arthur She07c91b52021-07-15 15:03:10 -0700115 "BIN_FILES=$(grep -o '\/.*\.bin' TFM_UPDATE.sh | sed 's/^/bin/');"
116 "tar jcf ./bin/stm32l562e-dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh ${BIN_FILES};"
Arthur She3c0dadd2021-11-18 21:17:48 -0800117 "popd")],
Arthur She026ebb62023-02-08 18:47:39 -0800118 "stm/b_u585i_iot02a": [("echo 'STM32U5 board post process';"
119 "%(_tbm_build_dir_)s/postbuild.sh;"
120 "pushd %(_tbm_build_dir_)s;"
121 "BIN_FILES=$(grep -o '\/.*\.bin' TFM_UPDATE.sh | sed 's/^/bin/');"
122 "tar jcf ./bin/b_u585i_iot02a-tfm.tar.bz2 regression.sh TFM_UPDATE.sh ${BIN_FILES};"
123 "popd")],
124 "nxp/lpcxpresso55s69": [("echo 'LPCXpresso55S69 board post process\n';"
Arthur She3c0dadd2021-11-18 21:17:48 -0800125 "if [ -f \"%(_tbm_build_dir_)s/bin/bl2.hex\" ]; then FLASH_FILE='flash_bl2_JLink.py'; else FLASH_FILE='flash_JLink.py'; fi;"
126 "pushd %(_tbm_build_dir_)s/../platform/ext/target/nxp/lpcxpresso55s69/scripts;"
127 "LN=$(grep -n 'JLinkExe' ${FLASH_FILE}|awk -F: '{print $1}');"
128 "sed -i \"${LN}s/.*/ print('flash.jlink generated')/\" ${FLASH_FILE};"
129 "python3 ./${FLASH_FILE};"
130 "cd %(_tbm_build_dir_)s/bin;"
131 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"
132 "tar jcf lpcxpresso55s69-tfm.tar.bz2 flash.jlink ${BIN_FILES};"
Arthur She87602dc2022-02-06 14:42:18 -0800133 "popd")],
134 "cypress/psoc64": [("echo 'Sign binaries for Cypress PSoC64 platform';"
135 "pushd %(_tbm_build_dir_)s/..;"
136 "sudo /usr/local/bin/cysecuretools "
137 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
138 "--target cy8ckit-064s0s2-4343w "
139 "sign-image "
140 "--hex %(_tbm_build_dir_)s/bin/tfm_s.hex "
141 "--image-type BOOT --image-id 1;"
142 "sudo /usr/local/bin/cysecuretools "
143 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
144 "--target cy8ckit-064s0s2-4343w "
145 "sign-image "
146 "--hex %(_tbm_build_dir_)s/bin/tfm_ns.hex "
147 "--image-type BOOT --image-id 16;"
148 "mv %(_tbm_build_dir_)s/bin/tfm_s.hex %(_tbm_build_dir_)s/bin/tfm_s_signed.hex;"
149 "mv %(_tbm_build_dir_)s/bin/tfm_ns.hex %(_tbm_build_dir_)s/bin/tfm_ns_signed.hex;"
150 "popd")]
Minos Galanakisea421232019-06-20 17:11:28 +0100151 },
152
153 # (Optional) If set will fail if those artefacts are missing post build
154 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800155 "%(_tbm_build_dir_)s/bin/"
156 "tfm_s.bin",
157 "%(_tbm_build_dir_)s/bin/"
158 "tfm_ns.bin"],
Mark Horvathef57baa2022-09-12 13:36:36 +0200159 "arm/musca_b1": [
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"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800166 "arm/musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800167 "%(_tbm_build_dir_)s/bin/"
168 "tfm.hex",
169 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800170 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800171 "%(_tbm_build_dir_)s/bin/"
172 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100173 }
174}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100175
Xinyu Zhangb708f572020-09-15 11:43:46 +0800176# List of all build configs that are impossible under all circumstances
177_common_tfm_invalid_configs = [
Xinyu Zhang459a1982021-07-21 22:34:49 +0800178 # 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 +0800179 ("arm/musca_b1", "ARMCLANG_6_13", "*", True, "OFF", "Debug", "*", "", "*"),
180 ("arm/musca_s1", "ARMCLANG_6_13", "*", True, "OFF", "Debug", "*", "", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800181 # Load range overlap on Musca for IPC Debug type: T895
Summer Qin379abb62022-10-08 16:41:54 +0800182 ("arm/musca_b1", "ARMCLANG_6_13", "*", "*", "IPC", "Debug", "*", "*", "*"),
183 ("arm/musca_s1", "ARMCLANG_6_13", "*", "*", "IPC", "Debug", "*", "*", "*"),
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300184 # FF does not support L3
Summer Qin379abb62022-10-08 16:41:54 +0800185 ("*", "*", "3", "*", "IPC", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800186 # Musca requires BL2
Summer Qin379abb62022-10-08 16:41:54 +0800187 ("arm/musca_b1", "*", "*", "*", "*", "*", False, "*", "*"),
188 ("arm/musca_s1", "*", "*", "*", "*", "*", False, "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800189 # Only AN521 and MUSCA_B1 support Isolation Level 3
Summer Qin379abb62022-10-08 16:41:54 +0800190 ("arm/mps2/an519", "*", "3", "*", "*", "*", "*", "*", "*"),
191 ("arm/mps3/an524", "*", "3", "*", "*", "*", "*", "*", "*"),
192 ("arm/musca_s1", "*", "3", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800193 ]
194
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100195# Configure build manager to build several combinations
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800196# Config group for per-patch job
197config_pp_test = {"seed_params": {
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800198 # AN519_ARMCLANG_IPC_1_REG_Debug_BL2
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800199 "tfm_platform": ["arm/mps2/an519"],
200 "compiler": ["ARMCLANG_6_13"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800201 "isolation_level": ["1"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800202 "test_regression": [True],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800203 "test_psa_api": ["OFF"],
204 "cmake_build_type": ["Debug"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800205 "with_bl2": [True],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800206 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800207 "extra_params": [""]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800208 },
209 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800210 "valid": [
Summer Qin379abb62022-10-08 16:41:54 +0800211 # AN519_ARMCLANG_2_REG_Release_BL2
212 ("arm/mps2/an519", "ARMCLANG_6_13", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800213 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800214 # AN519_GCC_1_REG_Debug_BL2
215 ("arm/mps2/an519", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800216 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800217 # AN519_GCC_2_REG_Release_BL2
218 ("arm/mps2/an519", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800219 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800220 # AN519_GCC_1_REG_Debug_BL2
221 ("arm/mps2/an519", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800222 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800223 # AN521_ARMCLANG_1_REG_Debug_BL2_SMALL_PSOFF
224 ("arm/mps2/an521", "ARMCLANG_6_13", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800225 True, "OFF", "Debug", True, "profile_small", "PSOFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800226 # AN521_ARMCLANG_1_REG_Debug_BL2
227 ("arm/mps2/an521", "ARMCLANG_6_13", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800228 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800229 # AN521_ARMCLANG_2_REG_Release_BL2
230 ("arm/mps2/an521", "ARMCLANG_6_13", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800231 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800232 # AN521_ARMCLANG_3_REG_Minsizerel_BL2
233 ("arm/mps2/an521", "ARMCLANG_6_13", "3",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800234 True, "OFF", "Minsizerel", True, "", ""),
Xinyu Zhang9ac71532022-11-21 17:42:33 +0800235 # AN521_ARMCLANG_1_REG_Debug_BL2_SMALL_PSOFF
Summer Qin379abb62022-10-08 16:41:54 +0800236 ("arm/mps2/an521", "ARMCLANG_6_13", "1",
Xinyu Zhang9ac71532022-11-21 17:42:33 +0800237 True, "OFF", "Debug", True, "profile_small", "PSOFF"),
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 # AN521_GCC_2_Debug_BL2_MEDIUM
242 ("arm/mps2/an521", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800243 False, "OFF", "Debug", True, "profile_medium", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800244 # AN521_GCC_2_REG_Release_BL2
245 ("arm/mps2/an521", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800246 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800247 # AN521_GCC_3_REG_Minsizerel_BL2
248 ("arm/mps2/an521", "GCC_10_3", "3",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800249 True, "OFF", "Minsizerel", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800250 # AN521_GCC_1_REG_Debug_BL2
251 ("arm/mps2/an521", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800252 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800253 # AN552_GNUARM_1_REG_Debug_BL2
254 ("arm/mps3/an552", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800255 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800256 # AN552_GNUARM_1_REG_Release_BL2
257 ("arm/mps3/an552", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800258 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800259 # MUSCA_B1_GCC_1_REG_Minsizerel_BL2
260 ("arm/musca_b1", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800261 True, "OFF", "Minsizerel", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800262 # MUSCA_S1_ARMCLANG_2_REG_Release_BL2
263 ("arm/musca_s1", "ARMCLANG_6_13", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800264 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800265 # MUSCA_S1_GCC_1_REG_Debug_BL2
266 ("arm/musca_s1", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800267 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800268 # MUSCA_S1_GCC_2_REG_Release_BL2
269 ("arm/musca_s1", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800270 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800271 # MUSCA_S1_GCC_1_REG_Debug_BL2
272 ("arm/musca_s1", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800273 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800274 # MUSCA_S1_GCC_1_REG_Release_BL2_CC_DRIVER_PSA
275 ("arm/musca_s1", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800276 True, "OFF", "Release", True, "", "CC_DRIVER_PSA"),
Jamie Foxd7438d92022-11-21 17:42:01 +0000277 # RSS_TC_GCC_2_Release_BL2_PSOFF
278 ("arm/rss/tc", "GCC_10_3", "2",
279 False, "OFF", "Release", True, "", "PSOFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800280 # stm32l562e_dk_ARMCLANG_1_REG_Release_BL2
281 ("stm/stm32l562e_dk", "ARMCLANG_6_13", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800282 True, "OFF", "Release", True, "", "CRYPTO_OFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800283 # stm32l562e_dk_GCC_2_REG_Release_BL2
284 ("stm/stm32l562e_dk", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800285 False, "OFF", "Release", True, "", "CRYPTO_ON"),
Summer Qin379abb62022-10-08 16:41:54 +0800286 # stm32l562e_dk_GCC_3_REG_Release_BL2
287 ("stm/stm32l562e_dk", "GCC_10_3", "3",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800288 True, "OFF", "Release", True, "", "CRYPTO_OFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800289 # psoc64_GCC_2_REG_Release
290 ("cypress/psoc64", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800291 True, "OFF", "Release", False, "", ""),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800292 ],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800293 "invalid": _common_tfm_invalid_configs + []
294 }
295
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800296# Config group for nightly job
297config_nightly_test = {"seed_params": {
298 "tfm_platform": ["arm/mps2/an519",
299 "arm/mps2/an521",
300 "arm/mps3/an524",
301 "arm/musca_s1",
Mark Horvathef57baa2022-09-12 13:36:36 +0200302 "arm/musca_b1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800303 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800304 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800305 "test_regression": [True, False],
306 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800307 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800308 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800309 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800310 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100311 },
312 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800313 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100314 }
315
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800316# Config group for release job
317config_release_test = {"seed_params": {
318 "tfm_platform": ["arm/mps2/an519",
319 "arm/mps2/an521",
320 "arm/mps3/an524",
Mark Horvathef57baa2022-09-12 13:36:36 +0200321 "arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800322 "arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800323 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800324 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800325 "test_regression": [True, False],
326 "test_psa_api": ["OFF"],
327 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800328 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800329 "profile": [""],
David Vinczed78e2622022-11-24 15:04:00 +0100330 "extra_params": ["TEST_CBOR"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800331 },
332 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800333 "valid": [
334 # sanity test for GCC v11.2
Summer Qin379abb62022-10-08 16:41:54 +0800335 # AN521_GCC_3_REG_Relwithdebinfo_BL2
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800336 ("arm/mps2/an521", "GCC_11_2",
Summer Qin379abb62022-10-08 16:41:54 +0800337 "3", True, "OFF", "Relwithdebinfo",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800338 True, "", ""),
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800339 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800340 "invalid": _common_tfm_invalid_configs + []
341 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800342
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800343# Config groups for TF-M features
344config_profile_s = {"seed_params": {
David Huda27ae72022-03-28 15:32:19 +0800345 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800346 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
David Huda27ae72022-03-28 15:32:19 +0800347 "isolation_level": ["1"],
348 "test_regression": [True, False],
349 "test_psa_api": ["OFF"],
350 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
David Huda27ae72022-03-28 15:32:19 +0800351 "with_bl2": [True],
David Huda27ae72022-03-28 15:32:19 +0800352 "profile": ["profile_small"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800353 "extra_params": ["PSOFF"]
David Huda27ae72022-03-28 15:32:19 +0800354 },
355 "common_params": _common_tfm_builder_cfg,
David Huda27ae72022-03-28 15:32:19 +0800356 "invalid": _common_tfm_invalid_configs + [
Summer Qin379abb62022-10-08 16:41:54 +0800357 ("arm/mps2/an519", "GCC_10_3", "*", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800358 "*", "Minsizerel", "*", "*", "*")
David Huda27ae72022-03-28 15:32:19 +0800359 ]
360 }
361
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800362config_profile_m = {"seed_params": {
363 "tfm_platform": ["arm/mps2/an519",
364 "arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200365 "arm/musca_b1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800366 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800367 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800368 "test_regression": [True, False],
369 "test_psa_api": ["OFF"],
370 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800371 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800372 "profile": ["profile_medium"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800373 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800374 },
375 "common_params": _common_tfm_builder_cfg,
376 "invalid": _common_tfm_invalid_configs + []
377 }
378
David Hu3d333762022-10-27 18:12:33 +0800379config_profile_m_arotless = {"seed_params": {
380 "tfm_platform": ["arm/musca_b1"],
381 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
382 "isolation_level": ["1"],
383 "test_regression": [True, False],
384 "test_psa_api": ["OFF"],
385 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
386 "with_bl2": [True],
387 "profile": ["profile_medium_arotless"],
388 "extra_params": ["", "PSOFF"]
389 },
390 "common_params": _common_tfm_builder_cfg,
391 "invalid": _common_tfm_invalid_configs + []
392 }
393
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800394config_profile_l = {"seed_params": {
395 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800396 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800397 "isolation_level": ["3"],
398 "test_regression": [True, False],
399 "test_psa_api": ["OFF"],
400 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800401 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800402 "profile": ["profile_large"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800403 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800404 },
405 "common_params": _common_tfm_builder_cfg,
406 "invalid": _common_tfm_invalid_configs + []
407 }
408
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800409config_ipc_backend = {"seed_params": {
410 "tfm_platform": ["arm/mps2/an519",
411 "arm/mps2/an521",
412 "arm/musca_s1",
413 "arm/musca_b1"],
414 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
415 "isolation_level": ["1"],
416 "test_regression": [True, False],
417 "test_psa_api": ["OFF"],
418 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
419 "with_bl2": [True],
420 "profile": [""],
421 "extra_params": ["IPC"]
422 },
423 "common_params": _common_tfm_builder_cfg,
424 "invalid": _common_tfm_invalid_configs + []
425 }
426
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800427config_cc_driver_psa = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200428 "tfm_platform": ["arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800429 "arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800430 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800431 "isolation_level": ["1"],
432 "test_regression": [True],
433 "test_psa_api": ["OFF"],
434 "cmake_build_type": ["Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800435 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800436 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800437 "extra_params": ["CC_DRIVER_PSA"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800438 },
439 "common_params": _common_tfm_builder_cfg,
440 "invalid": _common_tfm_invalid_configs + []
441 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100442
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800443config_fp = {"seed_params": {
Jianliang Shen9798e552022-11-21 12:55:42 +0800444 "tfm_platform": ["arm/mps2/an521",
445 "arm/mps3/an552"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800446 "compiler": ["GCC_10_3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800447 "isolation_level": ["1", "2"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800448 "test_regression": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800449 "test_psa_api": ["OFF"],
450 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800451 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800452 "profile": [""],
Mark Horvath93cb5fb2022-09-06 17:51:24 +0200453 "extra_params": ["FPOFF", "FPON", "FPON, LZOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800454 },
455 "common_params": _common_tfm_builder_cfg,
456 "invalid": _common_tfm_invalid_configs + []
457 }
Karl Zhangeffed972020-06-30 15:48:01 +0800458
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800459config_psa_api = {"seed_params": {
460 "tfm_platform": ["arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200461 "arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800462 "arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800463 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800464 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800465 "test_regression": [False],
466 "test_psa_api": ["IPC",
467 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800468 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800469 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800470 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800471 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800472 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800473 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800474 },
475 "common_params": _common_tfm_builder_cfg,
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300476 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800477 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800478
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800479config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800480 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800481 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800482 "isolation_level": ["1", "2", "3"],
483 "test_regression": [True],
484 "test_psa_api": ["OFF"],
485 "cmake_build_type": ["Debug"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800486 "with_bl2": [True],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800487 "profile": [""],
Xinyu Zhang67612992021-12-20 14:11:27 +0800488 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800489 },
490 "common_params": _common_tfm_builder_cfg,
491 "invalid": _common_tfm_invalid_configs + []
492 }
493
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800494config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800495 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800496 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800497 "isolation_level": ["1"],
498 "test_regression": [True],
499 "test_psa_api": ["OFF"],
500 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800501 "with_bl2": [True],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800502 "profile": [""],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800503 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800504 },
505 "common_params": _common_tfm_builder_cfg,
506 "invalid": _common_tfm_invalid_configs + []
507 }
508
Bence Balogh79fda442022-10-14 18:01:37 +0200509# Config groups for TF-M examples
510config_example_vad = {"seed_params": {
511 "tfm_platform": ["arm/mps3/an552"],
512 "compiler": ["GCC_10_3"],
513 "isolation_level": ["2"],
514 "test_regression": [False],
515 "test_psa_api": ["OFF"],
516 "cmake_build_type": ["Release"],
517 "with_bl2": [True],
518 "profile": [""],
519 "extra_params": ["EXAMPLE_VAD"]
520 },
521 "common_params": _common_tfm_builder_cfg,
522 "invalid": _common_tfm_invalid_configs + []
523 }
524
525config_example_dma350_ns = {"seed_params": {
526 "tfm_platform": ["arm/mps3/corstone310/fvp"],
527 "compiler": ["GCC_10_3"],
528 "isolation_level": ["2"],
529 "test_regression": [False],
530 "test_psa_api": ["OFF"],
531 "cmake_build_type": ["Release"],
532 "with_bl2": [True],
533 "profile": [""],
534 "extra_params": ["EXAMPLE_DMA350_NS"]
535 },
536 "common_params": _common_tfm_builder_cfg,
537 "invalid": _common_tfm_invalid_configs + []
538 }
539
540config_example_dma350_s = {"seed_params": {
541 "tfm_platform": ["arm/mps3/corstone310/fvp"],
542 "compiler": ["GCC_10_3"],
543 "isolation_level": ["1"],
544 "test_regression": [False],
545 "test_psa_api": ["OFF"],
546 "cmake_build_type": ["Release"],
547 "with_bl2": [True],
548 "profile": [""],
549 "extra_params": ["EXAMPLE_DMA350_S"]
550 },
551 "common_params": _common_tfm_builder_cfg,
552 "invalid": _common_tfm_invalid_configs + []
553 }
554
555config_example_dma350_trigger = {"seed_params": {
556 "tfm_platform": ["arm/mps3/corstone310/fvp"],
557 "compiler": ["GCC_10_3"],
558 "isolation_level": ["2"],
559 "test_regression": [False],
560 "test_psa_api": ["OFF"],
561 "cmake_build_type": ["Release"],
562 "with_bl2": [True],
563 "profile": [""],
564 "extra_params": ["EXAMPLE_DMA350_TRIGGER"]
565 },
566 "common_params": _common_tfm_builder_cfg,
567 "invalid": _common_tfm_invalid_configs + []
568 }
569
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800570# Config groups for code coverage
571config_cov_profile_s = deepcopy(config_profile_s)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800572config_cov_profile_s["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800573config_cov_profile_s["seed_params"]["compiler"] = ["GCC_10_3"]
Xinyu Zhangbdc37e32022-04-06 17:47:44 +0800574
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800575config_cov_profile_m = deepcopy(config_profile_m)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800576config_cov_profile_m["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800577config_cov_profile_m["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800578
David Hu3d333762022-10-27 18:12:33 +0800579config_cov_profile_m_arotless = deepcopy(config_profile_m_arotless)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800580config_cov_profile_m_arotless["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
David Hu3d333762022-10-27 18:12:33 +0800581config_cov_profile_m_arotless["seed_params"]["compiler"] = ["GCC_10_3"]
582
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800583config_cov_profile_l = deepcopy(config_profile_l)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800584config_cov_profile_l["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800585config_cov_profile_l["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800586
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800587config_cov_ipc_backend = deepcopy(config_ipc_backend)
588config_cov_ipc_backend["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
589config_cov_ipc_backend["seed_params"]["compiler"] = ["GCC_10_3"]
590
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800591config_cov_nsce = deepcopy(config_nsce)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800592config_cov_nsce["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800593config_cov_nsce["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800594
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800595config_cov_mmio = deepcopy(config_mmio)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800596config_cov_mmio["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800597config_cov_mmio["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800598
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800599config_cov_fp = deepcopy(config_fp)
600config_cov_fp["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang778424e2023-02-27 11:39:57 +0800601config_cov_fp["seed_params"]["compiler"] = ["GCC_10_3"]
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800602
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800603# Config groups for platforms
604config_an519 = {"seed_params": {
Xinyu Zhangf25856a2021-06-17 14:06:46 +0800605 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800606 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800607 "isolation_level": ["1", "2"],
608 "test_regression": [True, False],
609 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800610 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800611 "with_bl2": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800612 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800613 "extra_params": ["", "NSOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800614 },
615 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800616 "invalid": _common_tfm_invalid_configs + []
617 }
618
619config_an521 = {"seed_params": {
620 "tfm_platform": ["arm/mps2/an521"],
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", "3"],
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 + []
632 }
633
634config_an524 = {"seed_params": {
635 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800636 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800637 "isolation_level": ["1", "2"],
638 "test_regression": [True, False],
639 "test_psa_api": ["OFF"],
640 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800641 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800642 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800643 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800644 },
645 "common_params": _common_tfm_builder_cfg,
646 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800647 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000648
Xinyu Zhang38b76742021-11-11 13:57:56 +0800649config_an547 = {"seed_params": {
650 "tfm_platform": ["arm/mps3/an547"],
Bence Balogh176b78f2022-02-22 13:49:34 +0100651 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800652 "isolation_level": ["1"],
653 "test_regression": [False],
654 "test_psa_api": ["OFF"],
655 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800656 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800657 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800658 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800659 },
660 "common_params": _common_tfm_builder_cfg,
661 "invalid": _common_tfm_invalid_configs + []
662 }
663
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800664config_an552 = {"seed_params": {
665 "tfm_platform": ["arm/mps3/an552"],
666 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800667 "isolation_level": ["1", "2"],
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 Zhang0aebb3d2022-04-11 18:27:12 +0800673 "extra_params": [""]
674 },
675 "common_params": _common_tfm_builder_cfg,
676 "invalid": _common_tfm_invalid_configs + []
677 }
678
679config_musca_b1 = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200680 "tfm_platform": ["arm/musca_b1"],
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", "3"],
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
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800694config_musca_s1 = {"seed_params": {
695 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800696 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800697 "isolation_level": ["1", "2"],
698 "test_regression": [True, False],
699 "test_psa_api": ["OFF"],
700 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800701 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800702 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800703 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800704 },
705 "common_params": _common_tfm_builder_cfg,
706 "invalid": _common_tfm_invalid_configs + []
707 }
708
Bence Balogh8731a092022-05-24 17:24:54 +0200709config_corstone310 = {"seed_params": {
Bence Balogh23d8fa72022-11-08 12:16:23 +0100710 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Bence Balogh176b78f2022-02-22 13:49:34 +0100711 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800712 "isolation_level": ["1"],
713 "test_regression": [False],
714 "test_psa_api": ["OFF"],
715 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800716 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800717 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800718 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800719 },
720 "common_params": _common_tfm_builder_cfg,
721 "invalid": _common_tfm_invalid_configs + []
722 }
723
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100724config_rss = {"seed_params": {
Raef Coles0d405852022-10-21 10:52:50 +0100725 "tfm_platform": ["arm/rss/tc"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100726 "compiler": ["GCC_10_3"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100727 "isolation_level": ["1", "2"],
728 "test_regression": [True, False],
729 "test_psa_api": ["OFF"],
730 "cmake_build_type": ["Debug", "Release"],
731 "with_bl2": [True],
732 "profile": [""],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800733 "extra_params": ["PSOFF"]
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100734 },
735 "common_params": _common_tfm_builder_cfg,
Jamie Fox9e2c2352023-01-13 15:11:23 +0000736 "invalid": _common_tfm_invalid_configs + [
737 # BL2 is too large for RSS in Debug builds with tests
738 ("arm/rss/tc", "GCC_10_3", "*", True, "*",
739 "Debug", True, "*", "*"),
740 ]
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100741 }
742
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800743config_psoc64 = {"seed_params": {
744 "tfm_platform": ["cypress/psoc64"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800745 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800746 "isolation_level": ["1", "2"],
747 "test_regression": [True],
748 "test_psa_api": ["OFF"],
749 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800750 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800751 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800752 "extra_params": [""]
753 },
754 "common_params": _common_tfm_builder_cfg,
755 "invalid": _common_tfm_invalid_configs + []
756 }
757
758config_corstone1000 = {"seed_params": {
759 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800760 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800761 "isolation_level": ["1"],
Satish Kumar1cfdd912022-08-01 09:24:07 +0100762 "test_regression": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800763 "test_psa_api": ["OFF"],
764 "cmake_build_type": ["Debug"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800765 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800766 "profile": [""],
Xinyu Zhangfc061dd2022-07-26 14:52:56 +0800767 "extra_params": ["S_PS_OFF, FVP", "FPGA"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800768 },
769 "common_params": _common_tfm_builder_cfg,
770 "invalid": _common_tfm_invalid_configs + []
771 }
772
773config_stm32l562e_dk = {"seed_params": {
774 "tfm_platform": ["stm/stm32l562e_dk"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800775 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800776 "isolation_level": ["1", "2", "3"],
777 "test_regression": [True, False],
778 "test_psa_api": ["OFF"],
779 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800780 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800781 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800782 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
783 },
784 "common_params": _common_tfm_builder_cfg,
785 "invalid": _common_tfm_invalid_configs + [
Summer Qin379abb62022-10-08 16:41:54 +0800786 # Oversize issue on config stm32l562e_dk_ARMCLANG_1_REG_Release_BL2
787 ("stm/stm32l562e_dk", "ARMCLANG_6_13", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800788 True, "OFF", "Release", True, "", "*"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800789 # all other tests are off when CRYPTO is ON
Summer Qin379abb62022-10-08 16:41:54 +0800790 ("stm/stm32l562e_dk", "*", "*", True, "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800791 "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800792 # all other tests are ON when CRYPTO is OFF
Summer Qin379abb62022-10-08 16:41:54 +0800793 ("stm/stm32l562e_dk", "*", "*", False, "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800794 "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800795 ]
796 }
797
798config_b_u585i_iot02a = {"seed_params": {
799 "tfm_platform": ["stm/b_u585i_iot02a"],
Arthur She026ebb62023-02-08 18:47:39 -0800800 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
801 "isolation_level": ["1", "2"],
802 "test_regression": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800803 "test_psa_api": ["OFF"],
804 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800805 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800806 "profile": [""],
Arthur She026ebb62023-02-08 18:47:39 -0800807 "extra_params": [""]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800808 },
809 "common_params": _common_tfm_builder_cfg,
810 "invalid": _common_tfm_invalid_configs + []
811 }
812
813config_nucleo_l552ze_q = {"seed_params": {
814 "tfm_platform": ["stm/nucleo_l552ze_q"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800815 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800816 "isolation_level": ["1"],
817 "test_regression": [False],
818 "test_psa_api": ["OFF"],
819 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800820 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800821 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800822 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800823 },
824 "common_params": _common_tfm_builder_cfg,
825 "invalid": _common_tfm_invalid_configs + []
826 }
827
828config_lpcxpresso55s69 = {"seed_params": {
829 "tfm_platform": ["nxp/lpcxpresso55s69"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800830 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800831 "isolation_level": ["2"],
832 "test_regression": [True, False],
833 "test_psa_api": ["OFF"],
834 "cmake_build_type": ["Relwithdebinfo"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800835 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800836 "profile": ["profile_medium"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800837 "extra_params": [""]
838 },
839 "common_params": _common_tfm_builder_cfg,
840 "invalid": _common_tfm_invalid_configs + []
841 }
842
Xinyu Zhang38b76742021-11-11 13:57:56 +0800843config_bl5340 = {"seed_params": {
844 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800845 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800846 "isolation_level": ["1"],
847 "test_regression": [False],
848 "test_psa_api": ["OFF"],
849 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800850 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800851 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800852 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800853 },
854 "common_params": _common_tfm_builder_cfg,
855 "invalid": _common_tfm_invalid_configs + []
856 }
857
858config_nrf5340dk = {"seed_params": {
859 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800860 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800861 "isolation_level": ["1"],
862 "test_regression": [False],
863 "test_psa_api": ["OFF"],
864 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800865 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800866 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800867 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800868 },
869 "common_params": _common_tfm_builder_cfg,
870 "invalid": _common_tfm_invalid_configs + []
871 }
872
873config_nrf9160dk = {"seed_params": {
874 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800875 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800876 "isolation_level": ["1"],
877 "test_regression": [False],
878 "test_psa_api": ["OFF"],
879 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800880 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800881 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800882 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800883 },
884 "common_params": _common_tfm_builder_cfg,
885 "invalid": _common_tfm_invalid_configs + []
886 }
887
888config_m2351 = {"seed_params": {
889 "tfm_platform": ["nuvoton/m2351"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800890 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800891 "isolation_level": ["1"],
892 "test_regression": [False],
893 "test_psa_api": ["OFF"],
894 "cmake_build_type": ["Release"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800895 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800896 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800897 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800898 },
899 "common_params": _common_tfm_builder_cfg,
900 "invalid": _common_tfm_invalid_configs + []
901 }
902
903config_m2354 = {"seed_params": {
904 "tfm_platform": ["nuvoton/m2354"],
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"],
909 "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 Zhangfb80b5d2022-07-26 15:42:26 +0800912 "extra_params": ["NSOFF"]
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 +0800918# Config groups for debug
919config_debug = {"seed_params": {
920 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800921 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800922 "isolation_level": ["1"],
923 "test_regression": [False],
924 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800925 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800926 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800927 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800928 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800929 },
930 "common_params": _common_tfm_builder_cfg,
931 "invalid": _common_tfm_invalid_configs + []
932 }
933
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800934config_debug_regr = deepcopy(config_debug)
935config_debug_regr["seed_params"]["test_regression"] = [True]
936
937config_debug_PSA_API = {"seed_params": {
938 "tfm_platform": ["arm/mps2/an521"],
939 "compiler": ["ARMCLANG_6_13"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800940 "isolation_level": ["1"],
941 "test_regression": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800942 "test_psa_api": ["CRYPTO",
943 "INITIAL_ATTESTATION",
944 "STORAGE",
945 "IPC"],
946 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800947 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800948 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800949 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800950 },
951 "common_params": _common_tfm_builder_cfg,
952 "invalid": _common_tfm_invalid_configs + []
953 }
954
Karl Zhangaff558a2020-05-15 14:28:23 +0100955_builtin_configs = {
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800956 # per-patch test groups
957 "pp_test": config_pp_test,
958 "pp_corstone1000": config_corstone1000,
Karl Zhang14573bc2020-06-08 09:23:21 +0800959
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800960 # nightly test groups
961 "nightly_test": config_nightly_test,
962 "nightly_profile_s": config_profile_s,
963 "nightly_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +0800964 "nightly_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800965 "nightly_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800966 "nightly_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800967 "nightly_cc_driver_psa": config_cc_driver_psa,
968 "nightly_fp":config_fp,
969 "nightly_psa_api": config_psa_api,
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800970 "nightly_nsce": config_nsce,
971 "nightly_mmio": config_mmio,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800972 "nightly_an547": config_an547,
973 "nightly_an552": config_an552,
Bence Balogh8731a092022-05-24 17:24:54 +0200974 "nightly_corstone310": config_corstone310,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800975 "nightly_corstone1000": config_corstone1000,
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100976 "nightly_rss": config_rss,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800977 "nightly_psoc64": config_psoc64,
978 "nightly_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -0800979 "nightly_b_u585i_iot02a": config_b_u585i_iot02a,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800980 "nightly_lpcxpresso55s69": config_lpcxpresso55s69,
Karl Zhang14573bc2020-06-08 09:23:21 +0800981
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800982 # release test groups
983 "release_test": config_release_test,
984 "release_profile_s": config_profile_s,
985 "release_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +0800986 "release_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800987 "release_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800988 "release_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800989 "release_cc_driver_psa": config_cc_driver_psa,
990 "release_fp": config_fp,
991 "release_psa_api": config_psa_api,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800992 "release_nsce": config_nsce,
993 "release_mmio": config_mmio,
994 "release_an547": config_an547,
995 "release_an552": config_an552,
Bence Balogh8731a092022-05-24 17:24:54 +0200996 "release_corstone310": config_corstone310,
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100997 "release_rss": config_rss,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800998 "release_psoc64": config_psoc64,
999 "release_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -08001000 "release_b_u585i_iot02a": config_b_u585i_iot02a,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001001 "release_lpcxpresso55s69": config_lpcxpresso55s69,
Karl Zhang14573bc2020-06-08 09:23:21 +08001002
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001003 # code coverage test groups
1004 "coverage_profile_s": config_cov_profile_s,
1005 "coverage_profile_m": config_cov_profile_m,
David Hu3d333762022-10-27 18:12:33 +08001006 "coverage_profile_m_arotless": config_cov_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001007 "coverage_profile_l": config_cov_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +08001008 "coverage_ipc_backend": config_cov_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001009 "coverage_nsce": config_cov_nsce,
1010 "coverage_mmio": config_cov_mmio,
Xinyu Zhang5f725ee2022-12-19 10:29:20 +08001011 "coverage_fp": config_cov_fp,
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001012
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001013 # platform groups
1014 "an521": config_an521,
1015 "an519": config_an519,
1016 "an524": config_an524,
1017 "an547": config_an547,
1018 "an552": config_an552,
1019 "musca_b1": config_musca_b1,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001020 "musca_s1": config_musca_s1,
Bence Balogh8731a092022-05-24 17:24:54 +02001021 "corstone310": config_corstone310,
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001022 "rss": config_rss,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001023 "cypress_psoc64": config_psoc64,
1024 "corstone1000": config_corstone1000,
1025 "stm_stm32l562e_dk": config_stm32l562e_dk,
1026 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1027 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1028 "nxp_lpcxpresso55s69": config_lpcxpresso55s69,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001029 "laird_bl5340": config_bl5340,
1030 "nordic_nrf5340dk": config_nrf5340dk,
1031 "nordic_nrf9160dk": config_nrf9160dk,
1032 "nuvoton_m2351": config_m2351,
1033 "nuvoton_m2354": config_m2354,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001034
Bence Balogh79fda442022-10-14 18:01:37 +02001035 # config groups for tf-m-extras examples
1036 "example_vad": config_example_vad,
1037 "example_dma350_trigger": config_example_dma350_trigger,
1038 "example_dma350_ns": config_example_dma350_ns,
1039 "example_dma350_s": config_example_dma350_s,
1040
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001041 # config groups for debug
Dean Birch4c6ad622020-03-13 11:28:03 +00001042 "debug": config_debug,
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001043 "debug_regr": config_debug_regr,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001044 "debug_PSA_API": config_debug_PSA_API,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001045 }
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001046
1047if __name__ == '__main__':
1048 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001049
Minos Galanakisea421232019-06-20 17:11:28 +01001050 # Default behavior is to export refference config when called
1051 _dir = os.getcwd()
1052 from utils import save_json
1053 for _cname, _cfg in _builtin_configs.items():
1054 _fname = os.path.join(_dir, _cname + ".json")
1055 print("Exporting config %s" % _fname)
1056 save_json(_fname, _cfg)