blob: 04e27f5fae678211eb1eb71f4a625c600bde18f5 [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 " + \
52 "-DTEST_NS=%(test_regression)s -DTEST_S=%(test_regression)s " + \
Raef Coles61b43a42022-01-12 11:42:57 +000053 "-DTEST_BL2=%(test_regression)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080054 "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080055 "-DTEST_PSA_API=%(test_psa_api)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080056 "-DBL2=%(with_bl2)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080057 "-DTFM_PROFILE=%(profile)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080058 "%(extra_params)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080059 "-DTFM_TEST_REPO_PATH=%(codebase_root_dir)s/../tf-m-tests " + \
60 "-DMBEDCRYPTO_PATH=%(codebase_root_dir)s/../mbedtls " + \
61 "-DPSA_ARCH_TESTS_PATH=%(codebase_root_dir)s/../psa-arch-tests " + \
62 "-DMCUBOOT_PATH=%(codebase_root_dir)s/../mcuboot " + \
Xinyu 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")],
118 "nxp/lpcxpresso55s69": [("echo 'LPCXpresso55S69 board post process\n';"
119 "if [ -f \"%(_tbm_build_dir_)s/bin/bl2.hex\" ]; then FLASH_FILE='flash_bl2_JLink.py'; else FLASH_FILE='flash_JLink.py'; fi;"
120 "pushd %(_tbm_build_dir_)s/../platform/ext/target/nxp/lpcxpresso55s69/scripts;"
121 "LN=$(grep -n 'JLinkExe' ${FLASH_FILE}|awk -F: '{print $1}');"
122 "sed -i \"${LN}s/.*/ print('flash.jlink generated')/\" ${FLASH_FILE};"
123 "python3 ./${FLASH_FILE};"
124 "cd %(_tbm_build_dir_)s/bin;"
125 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"
126 "tar jcf lpcxpresso55s69-tfm.tar.bz2 flash.jlink ${BIN_FILES};"
Arthur She87602dc2022-02-06 14:42:18 -0800127 "popd")],
128 "cypress/psoc64": [("echo 'Sign binaries for Cypress PSoC64 platform';"
129 "pushd %(_tbm_build_dir_)s/..;"
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_s.hex "
135 "--image-type BOOT --image-id 1;"
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_ns.hex "
141 "--image-type BOOT --image-id 16;"
142 "mv %(_tbm_build_dir_)s/bin/tfm_s.hex %(_tbm_build_dir_)s/bin/tfm_s_signed.hex;"
143 "mv %(_tbm_build_dir_)s/bin/tfm_ns.hex %(_tbm_build_dir_)s/bin/tfm_ns_signed.hex;"
144 "popd")]
Minos Galanakisea421232019-06-20 17:11:28 +0100145 },
146
147 # (Optional) If set will fail if those artefacts are missing post build
148 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800149 "%(_tbm_build_dir_)s/bin/"
150 "tfm_s.bin",
151 "%(_tbm_build_dir_)s/bin/"
152 "tfm_ns.bin"],
Mark Horvathef57baa2022-09-12 13:36:36 +0200153 "arm/musca_b1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800154 "%(_tbm_build_dir_)s/bin/"
155 "tfm.hex",
156 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800157 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800158 "%(_tbm_build_dir_)s/bin/"
159 "tfm_sign.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800160 "arm/musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800161 "%(_tbm_build_dir_)s/bin/"
162 "tfm.hex",
163 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800164 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800165 "%(_tbm_build_dir_)s/bin/"
166 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100167 }
168}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100169
Xinyu Zhangb708f572020-09-15 11:43:46 +0800170# List of all build configs that are impossible under all circumstances
171_common_tfm_invalid_configs = [
Xinyu Zhang459a1982021-07-21 22:34:49 +0800172 # 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 +0800173 ("arm/musca_b1", "ARMCLANG_6_13", "*", True, "OFF", "Debug", "*", "", "*"),
174 ("arm/musca_s1", "ARMCLANG_6_13", "*", True, "OFF", "Debug", "*", "", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800175 # Load range overlap on Musca for IPC Debug type: T895
Summer Qin379abb62022-10-08 16:41:54 +0800176 ("arm/musca_b1", "ARMCLANG_6_13", "*", "*", "IPC", "Debug", "*", "*", "*"),
177 ("arm/musca_s1", "ARMCLANG_6_13", "*", "*", "IPC", "Debug", "*", "*", "*"),
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300178 # FF does not support L3
Summer Qin379abb62022-10-08 16:41:54 +0800179 ("*", "*", "3", "*", "IPC", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800180 # Musca requires BL2
Summer Qin379abb62022-10-08 16:41:54 +0800181 ("arm/musca_b1", "*", "*", "*", "*", "*", False, "*", "*"),
182 ("arm/musca_s1", "*", "*", "*", "*", "*", False, "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800183 # Only AN521 and MUSCA_B1 support Isolation Level 3
Summer Qin379abb62022-10-08 16:41:54 +0800184 ("arm/mps2/an519", "*", "3", "*", "*", "*", "*", "*", "*"),
185 ("arm/mps3/an524", "*", "3", "*", "*", "*", "*", "*", "*"),
186 ("arm/musca_s1", "*", "3", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800187 ]
188
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100189# Configure build manager to build several combinations
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800190# Config group for per-patch job
191config_pp_test = {"seed_params": {
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800192 # AN519_ARMCLANG_IPC_1_REG_Debug_BL2
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800193 "tfm_platform": ["arm/mps2/an519"],
194 "compiler": ["ARMCLANG_6_13"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800195 "isolation_level": ["1"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800196 "test_regression": [True],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800197 "test_psa_api": ["OFF"],
198 "cmake_build_type": ["Debug"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800199 "with_bl2": [True],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800200 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800201 "extra_params": [""]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800202 },
203 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800204 "valid": [
Summer Qin379abb62022-10-08 16:41:54 +0800205 # AN519_ARMCLANG_2_REG_Release_BL2
206 ("arm/mps2/an519", "ARMCLANG_6_13", "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 # AN519_GCC_2_REG_Release_BL2
212 ("arm/mps2/an519", "GCC_10_3", "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 # AN521_ARMCLANG_1_REG_Debug_BL2_SMALL_PSOFF
218 ("arm/mps2/an521", "ARMCLANG_6_13", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800219 True, "OFF", "Debug", True, "profile_small", "PSOFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800220 # AN521_ARMCLANG_1_REG_Debug_BL2
221 ("arm/mps2/an521", "ARMCLANG_6_13", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800222 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800223 # AN521_ARMCLANG_2_REG_Release_BL2
224 ("arm/mps2/an521", "ARMCLANG_6_13", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800225 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800226 # AN521_ARMCLANG_3_REG_Minsizerel_BL2
227 ("arm/mps2/an521", "ARMCLANG_6_13", "3",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800228 True, "OFF", "Minsizerel", True, "", ""),
Xinyu Zhang9ac71532022-11-21 17:42:33 +0800229 # AN521_ARMCLANG_1_REG_Debug_BL2_SMALL_PSOFF
Summer Qin379abb62022-10-08 16:41:54 +0800230 ("arm/mps2/an521", "ARMCLANG_6_13", "1",
Xinyu Zhang9ac71532022-11-21 17:42:33 +0800231 True, "OFF", "Debug", True, "profile_small", "PSOFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800232 # AN521_GCC_1_REG_Debug_BL2
233 ("arm/mps2/an521", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800234 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800235 # AN521_GCC_2_Debug_BL2_MEDIUM
236 ("arm/mps2/an521", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800237 False, "OFF", "Debug", True, "profile_medium", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800238 # AN521_GCC_2_REG_Release_BL2
239 ("arm/mps2/an521", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800240 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800241 # AN521_GCC_3_REG_Minsizerel_BL2
242 ("arm/mps2/an521", "GCC_10_3", "3",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800243 True, "OFF", "Minsizerel", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800244 # AN521_GCC_1_REG_Debug_BL2
245 ("arm/mps2/an521", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800246 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800247 # AN552_GNUARM_1_REG_Debug_BL2
248 ("arm/mps3/an552", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800249 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800250 # AN552_GNUARM_1_REG_Release_BL2
251 ("arm/mps3/an552", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800252 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800253 # MUSCA_B1_GCC_1_REG_Minsizerel_BL2
254 ("arm/musca_b1", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800255 True, "OFF", "Minsizerel", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800256 # MUSCA_S1_ARMCLANG_2_REG_Release_BL2
257 ("arm/musca_s1", "ARMCLANG_6_13", "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_2_REG_Release_BL2
263 ("arm/musca_s1", "GCC_10_3", "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_1_REG_Release_BL2_CC_DRIVER_PSA
269 ("arm/musca_s1", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800270 True, "OFF", "Release", True, "", "CC_DRIVER_PSA"),
Jamie Foxd7438d92022-11-21 17:42:01 +0000271 # RSS_TC_GCC_2_Release_BL2_PSOFF
272 ("arm/rss/tc", "GCC_10_3", "2",
273 False, "OFF", "Release", True, "", "PSOFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800274 # stm32l562e_dk_ARMCLANG_1_REG_Release_BL2
275 ("stm/stm32l562e_dk", "ARMCLANG_6_13", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800276 True, "OFF", "Release", True, "", "CRYPTO_OFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800277 # stm32l562e_dk_GCC_2_REG_Release_BL2
278 ("stm/stm32l562e_dk", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800279 False, "OFF", "Release", True, "", "CRYPTO_ON"),
Summer Qin379abb62022-10-08 16:41:54 +0800280 # stm32l562e_dk_GCC_3_REG_Release_BL2
281 ("stm/stm32l562e_dk", "GCC_10_3", "3",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800282 True, "OFF", "Release", True, "", "CRYPTO_OFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800283 # psoc64_GCC_2_REG_Release
284 ("cypress/psoc64", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800285 True, "OFF", "Release", False, "", ""),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800286 ],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800287 "invalid": _common_tfm_invalid_configs + []
288 }
289
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800290# Config group for nightly job
291config_nightly_test = {"seed_params": {
292 "tfm_platform": ["arm/mps2/an519",
293 "arm/mps2/an521",
294 "arm/mps3/an524",
295 "arm/musca_s1",
Mark Horvathef57baa2022-09-12 13:36:36 +0200296 "arm/musca_b1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800297 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800298 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800299 "test_regression": [True, False],
300 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800301 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800302 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800303 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800304 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100305 },
306 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800307 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100308 }
309
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800310# Config group for release job
311config_release_test = {"seed_params": {
312 "tfm_platform": ["arm/mps2/an519",
313 "arm/mps2/an521",
314 "arm/mps3/an524",
Mark Horvathef57baa2022-09-12 13:36:36 +0200315 "arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800316 "arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800317 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800318 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800319 "test_regression": [True, False],
320 "test_psa_api": ["OFF"],
321 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800322 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800323 "profile": [""],
David Vinczed78e2622022-11-24 15:04:00 +0100324 "extra_params": ["TEST_CBOR"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800325 },
326 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800327 "valid": [
328 # sanity test for GCC v11.2
Summer Qin379abb62022-10-08 16:41:54 +0800329 # AN521_GCC_3_REG_Relwithdebinfo_BL2
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800330 ("arm/mps2/an521", "GCC_11_2",
Summer Qin379abb62022-10-08 16:41:54 +0800331 "3", True, "OFF", "Relwithdebinfo",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800332 True, "", ""),
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800333 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800334 "invalid": _common_tfm_invalid_configs + []
335 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800336
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800337# Config groups for TF-M features
338config_profile_s = {"seed_params": {
David Huda27ae72022-03-28 15:32:19 +0800339 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800340 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
David Huda27ae72022-03-28 15:32:19 +0800341 "isolation_level": ["1"],
342 "test_regression": [True, False],
343 "test_psa_api": ["OFF"],
344 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
David Huda27ae72022-03-28 15:32:19 +0800345 "with_bl2": [True],
David Huda27ae72022-03-28 15:32:19 +0800346 "profile": ["profile_small"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800347 "extra_params": ["PSOFF"]
David Huda27ae72022-03-28 15:32:19 +0800348 },
349 "common_params": _common_tfm_builder_cfg,
David Huda27ae72022-03-28 15:32:19 +0800350 "invalid": _common_tfm_invalid_configs + [
Summer Qin379abb62022-10-08 16:41:54 +0800351 ("arm/mps2/an519", "GCC_10_3", "*", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800352 "*", "Minsizerel", "*", "*", "*")
David Huda27ae72022-03-28 15:32:19 +0800353 ]
354 }
355
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800356config_profile_m = {"seed_params": {
357 "tfm_platform": ["arm/mps2/an519",
358 "arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200359 "arm/musca_b1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800360 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800361 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800362 "test_regression": [True, False],
363 "test_psa_api": ["OFF"],
364 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800365 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800366 "profile": ["profile_medium"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800367 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800368 },
369 "common_params": _common_tfm_builder_cfg,
370 "invalid": _common_tfm_invalid_configs + []
371 }
372
David Hu3d333762022-10-27 18:12:33 +0800373config_profile_m_arotless = {"seed_params": {
374 "tfm_platform": ["arm/musca_b1"],
375 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
376 "isolation_level": ["1"],
377 "test_regression": [True, False],
378 "test_psa_api": ["OFF"],
379 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
380 "with_bl2": [True],
381 "profile": ["profile_medium_arotless"],
382 "extra_params": ["", "PSOFF"]
383 },
384 "common_params": _common_tfm_builder_cfg,
385 "invalid": _common_tfm_invalid_configs + []
386 }
387
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800388config_profile_l = {"seed_params": {
389 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800390 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800391 "isolation_level": ["3"],
392 "test_regression": [True, False],
393 "test_psa_api": ["OFF"],
394 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800395 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800396 "profile": ["profile_large"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800397 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800398 },
399 "common_params": _common_tfm_builder_cfg,
400 "invalid": _common_tfm_invalid_configs + []
401 }
402
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800403config_ipc_backend = {"seed_params": {
404 "tfm_platform": ["arm/mps2/an519",
405 "arm/mps2/an521",
406 "arm/musca_s1",
407 "arm/musca_b1"],
408 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
409 "isolation_level": ["1"],
410 "test_regression": [True, False],
411 "test_psa_api": ["OFF"],
412 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
413 "with_bl2": [True],
414 "profile": [""],
415 "extra_params": ["IPC"]
416 },
417 "common_params": _common_tfm_builder_cfg,
418 "invalid": _common_tfm_invalid_configs + []
419 }
420
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800421config_cc_driver_psa = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200422 "tfm_platform": ["arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800423 "arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800424 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800425 "isolation_level": ["1"],
426 "test_regression": [True],
427 "test_psa_api": ["OFF"],
428 "cmake_build_type": ["Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800429 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800430 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800431 "extra_params": ["CC_DRIVER_PSA"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800432 },
433 "common_params": _common_tfm_builder_cfg,
434 "invalid": _common_tfm_invalid_configs + []
435 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100436
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800437config_fp = {"seed_params": {
Jianliang Shen9798e552022-11-21 12:55:42 +0800438 "tfm_platform": ["arm/mps2/an521",
439 "arm/mps3/an552"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800440 "compiler": ["GCC_10_3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800441 "isolation_level": ["1", "2"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800442 "test_regression": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800443 "test_psa_api": ["OFF"],
444 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800445 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800446 "profile": [""],
Mark Horvath93cb5fb2022-09-06 17:51:24 +0200447 "extra_params": ["FPOFF", "FPON", "FPON, LZOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800448 },
449 "common_params": _common_tfm_builder_cfg,
450 "invalid": _common_tfm_invalid_configs + []
451 }
Karl Zhangeffed972020-06-30 15:48:01 +0800452
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800453config_psa_api = {"seed_params": {
454 "tfm_platform": ["arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200455 "arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800456 "arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800457 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800458 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800459 "test_regression": [False],
460 "test_psa_api": ["IPC",
461 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800462 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800463 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800464 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800465 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800466 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800467 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800468 },
469 "common_params": _common_tfm_builder_cfg,
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300470 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800471 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800472
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800473config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800474 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800475 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800476 "isolation_level": ["1", "2", "3"],
477 "test_regression": [True],
478 "test_psa_api": ["OFF"],
479 "cmake_build_type": ["Debug"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800480 "with_bl2": [True],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800481 "profile": [""],
Xinyu Zhang67612992021-12-20 14:11:27 +0800482 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800483 },
484 "common_params": _common_tfm_builder_cfg,
485 "invalid": _common_tfm_invalid_configs + []
486 }
487
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800488config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800489 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800490 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800491 "isolation_level": ["1"],
492 "test_regression": [True],
493 "test_psa_api": ["OFF"],
494 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800495 "with_bl2": [True],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800496 "profile": [""],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800497 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800498 },
499 "common_params": _common_tfm_builder_cfg,
500 "invalid": _common_tfm_invalid_configs + []
501 }
502
Bence Balogh79fda442022-10-14 18:01:37 +0200503# Config groups for TF-M examples
504config_example_vad = {"seed_params": {
505 "tfm_platform": ["arm/mps3/an552"],
506 "compiler": ["GCC_10_3"],
507 "isolation_level": ["2"],
508 "test_regression": [False],
509 "test_psa_api": ["OFF"],
510 "cmake_build_type": ["Release"],
511 "with_bl2": [True],
512 "profile": [""],
513 "extra_params": ["EXAMPLE_VAD"]
514 },
515 "common_params": _common_tfm_builder_cfg,
516 "invalid": _common_tfm_invalid_configs + []
517 }
518
519config_example_dma350_ns = {"seed_params": {
520 "tfm_platform": ["arm/mps3/corstone310/fvp"],
521 "compiler": ["GCC_10_3"],
522 "isolation_level": ["2"],
523 "test_regression": [False],
524 "test_psa_api": ["OFF"],
525 "cmake_build_type": ["Release"],
526 "with_bl2": [True],
527 "profile": [""],
528 "extra_params": ["EXAMPLE_DMA350_NS"]
529 },
530 "common_params": _common_tfm_builder_cfg,
531 "invalid": _common_tfm_invalid_configs + []
532 }
533
534config_example_dma350_s = {"seed_params": {
535 "tfm_platform": ["arm/mps3/corstone310/fvp"],
536 "compiler": ["GCC_10_3"],
537 "isolation_level": ["1"],
538 "test_regression": [False],
539 "test_psa_api": ["OFF"],
540 "cmake_build_type": ["Release"],
541 "with_bl2": [True],
542 "profile": [""],
543 "extra_params": ["EXAMPLE_DMA350_S"]
544 },
545 "common_params": _common_tfm_builder_cfg,
546 "invalid": _common_tfm_invalid_configs + []
547 }
548
549config_example_dma350_trigger = {"seed_params": {
550 "tfm_platform": ["arm/mps3/corstone310/fvp"],
551 "compiler": ["GCC_10_3"],
552 "isolation_level": ["2"],
553 "test_regression": [False],
554 "test_psa_api": ["OFF"],
555 "cmake_build_type": ["Release"],
556 "with_bl2": [True],
557 "profile": [""],
558 "extra_params": ["EXAMPLE_DMA350_TRIGGER"]
559 },
560 "common_params": _common_tfm_builder_cfg,
561 "invalid": _common_tfm_invalid_configs + []
562 }
563
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800564# Config groups for code coverage
565config_cov_profile_s = deepcopy(config_profile_s)
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800566config_cov_profile_s["seed_params"]["compiler"] = ["GCC_10_3"]
Xinyu Zhangbdc37e32022-04-06 17:47:44 +0800567
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800568config_cov_profile_m = deepcopy(config_profile_m)
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800569config_cov_profile_m["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800570
David Hu3d333762022-10-27 18:12:33 +0800571config_cov_profile_m_arotless = deepcopy(config_profile_m_arotless)
572config_cov_profile_m_arotless["seed_params"]["compiler"] = ["GCC_10_3"]
573
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800574config_cov_profile_l = deepcopy(config_profile_l)
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800575config_cov_profile_l["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800576
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800577config_cov_ipc_backend = deepcopy(config_ipc_backend)
578config_cov_ipc_backend["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
579config_cov_ipc_backend["seed_params"]["compiler"] = ["GCC_10_3"]
580
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800581config_cov_nsce = deepcopy(config_nsce)
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800582config_cov_nsce["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800583
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800584config_cov_mmio = deepcopy(config_mmio)
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800585config_cov_mmio["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800586
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800587config_cov_fp = deepcopy(config_fp)
588config_cov_fp["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
589
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800590# Config groups for platforms
591config_an519 = {"seed_params": {
Xinyu Zhangf25856a2021-06-17 14:06:46 +0800592 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800593 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800594 "isolation_level": ["1", "2"],
595 "test_regression": [True, False],
596 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800597 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800598 "with_bl2": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800599 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800600 "extra_params": ["", "NSOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800601 },
602 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800603 "invalid": _common_tfm_invalid_configs + []
604 }
605
606config_an521 = {"seed_params": {
607 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800608 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800609 "isolation_level": ["1", "2", "3"],
610 "test_regression": [True, False],
611 "test_psa_api": ["OFF"],
612 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800613 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800614 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800615 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800616 },
617 "common_params": _common_tfm_builder_cfg,
618 "invalid": _common_tfm_invalid_configs + []
619 }
620
621config_an524 = {"seed_params": {
622 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800623 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800624 "isolation_level": ["1", "2"],
625 "test_regression": [True, False],
626 "test_psa_api": ["OFF"],
627 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800628 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800629 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800630 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800631 },
632 "common_params": _common_tfm_builder_cfg,
633 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800634 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000635
Xinyu Zhang38b76742021-11-11 13:57:56 +0800636config_an547 = {"seed_params": {
637 "tfm_platform": ["arm/mps3/an547"],
Bence Balogh176b78f2022-02-22 13:49:34 +0100638 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800639 "isolation_level": ["1"],
640 "test_regression": [False],
641 "test_psa_api": ["OFF"],
642 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800643 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800644 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800645 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800646 },
647 "common_params": _common_tfm_builder_cfg,
648 "invalid": _common_tfm_invalid_configs + []
649 }
650
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800651config_an552 = {"seed_params": {
652 "tfm_platform": ["arm/mps3/an552"],
653 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800654 "isolation_level": ["1", "2"],
655 "test_regression": [True, False],
656 "test_psa_api": ["OFF"],
657 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800658 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800659 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800660 "extra_params": [""]
661 },
662 "common_params": _common_tfm_builder_cfg,
663 "invalid": _common_tfm_invalid_configs + []
664 }
665
666config_musca_b1 = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200667 "tfm_platform": ["arm/musca_b1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800668 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800669 "isolation_level": ["1", "2", "3"],
670 "test_regression": [True, False],
671 "test_psa_api": ["OFF"],
672 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800673 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800674 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800675 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800676 },
677 "common_params": _common_tfm_builder_cfg,
678 "invalid": _common_tfm_invalid_configs + []
679 }
680
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800681config_musca_s1 = {"seed_params": {
682 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800683 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800684 "isolation_level": ["1", "2"],
685 "test_regression": [True, False],
686 "test_psa_api": ["OFF"],
687 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800688 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800689 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800690 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800691 },
692 "common_params": _common_tfm_builder_cfg,
693 "invalid": _common_tfm_invalid_configs + []
694 }
695
Bence Balogh8731a092022-05-24 17:24:54 +0200696config_corstone310 = {"seed_params": {
Bence Balogh23d8fa72022-11-08 12:16:23 +0100697 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Bence Balogh176b78f2022-02-22 13:49:34 +0100698 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800699 "isolation_level": ["1"],
700 "test_regression": [False],
701 "test_psa_api": ["OFF"],
702 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800703 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800704 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800705 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800706 },
707 "common_params": _common_tfm_builder_cfg,
708 "invalid": _common_tfm_invalid_configs + []
709 }
710
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100711config_rss = {"seed_params": {
Raef Coles0d405852022-10-21 10:52:50 +0100712 "tfm_platform": ["arm/rss/tc"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100713 "compiler": ["GCC_10_3"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100714 "isolation_level": ["1", "2"],
715 "test_regression": [True, False],
716 "test_psa_api": ["OFF"],
717 "cmake_build_type": ["Debug", "Release"],
718 "with_bl2": [True],
719 "profile": [""],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800720 "extra_params": ["PSOFF"]
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100721 },
722 "common_params": _common_tfm_builder_cfg,
Jamie Fox9e2c2352023-01-13 15:11:23 +0000723 "invalid": _common_tfm_invalid_configs + [
724 # BL2 is too large for RSS in Debug builds with tests
725 ("arm/rss/tc", "GCC_10_3", "*", True, "*",
726 "Debug", True, "*", "*"),
727 ]
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100728 }
729
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800730config_psoc64 = {"seed_params": {
731 "tfm_platform": ["cypress/psoc64"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800732 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800733 "isolation_level": ["1", "2"],
734 "test_regression": [True],
735 "test_psa_api": ["OFF"],
736 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800737 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800738 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800739 "extra_params": [""]
740 },
741 "common_params": _common_tfm_builder_cfg,
742 "invalid": _common_tfm_invalid_configs + []
743 }
744
745config_corstone1000 = {"seed_params": {
746 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800747 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800748 "isolation_level": ["1"],
Satish Kumar1cfdd912022-08-01 09:24:07 +0100749 "test_regression": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800750 "test_psa_api": ["OFF"],
751 "cmake_build_type": ["Debug"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800752 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800753 "profile": [""],
Xinyu Zhangfc061dd2022-07-26 14:52:56 +0800754 "extra_params": ["S_PS_OFF, FVP", "FPGA"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800755 },
756 "common_params": _common_tfm_builder_cfg,
757 "invalid": _common_tfm_invalid_configs + []
758 }
759
760config_stm32l562e_dk = {"seed_params": {
761 "tfm_platform": ["stm/stm32l562e_dk"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800762 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800763 "isolation_level": ["1", "2", "3"],
764 "test_regression": [True, False],
765 "test_psa_api": ["OFF"],
766 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800767 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800768 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800769 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
770 },
771 "common_params": _common_tfm_builder_cfg,
772 "invalid": _common_tfm_invalid_configs + [
Summer Qin379abb62022-10-08 16:41:54 +0800773 # Oversize issue on config stm32l562e_dk_ARMCLANG_1_REG_Release_BL2
774 ("stm/stm32l562e_dk", "ARMCLANG_6_13", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800775 True, "OFF", "Release", True, "", "*"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800776 # all other tests are off when CRYPTO is ON
Summer Qin379abb62022-10-08 16:41:54 +0800777 ("stm/stm32l562e_dk", "*", "*", True, "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800778 "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800779 # all other tests are ON when CRYPTO is OFF
Summer Qin379abb62022-10-08 16:41:54 +0800780 ("stm/stm32l562e_dk", "*", "*", False, "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800781 "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800782 ]
783 }
784
785config_b_u585i_iot02a = {"seed_params": {
786 "tfm_platform": ["stm/b_u585i_iot02a"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800787 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800788 "isolation_level": ["1"],
789 "test_regression": [False],
790 "test_psa_api": ["OFF"],
791 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800792 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800793 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800794 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800795 },
796 "common_params": _common_tfm_builder_cfg,
797 "invalid": _common_tfm_invalid_configs + []
798 }
799
800config_nucleo_l552ze_q = {"seed_params": {
801 "tfm_platform": ["stm/nucleo_l552ze_q"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800802 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800803 "isolation_level": ["1"],
804 "test_regression": [False],
805 "test_psa_api": ["OFF"],
806 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800807 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800808 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800809 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800810 },
811 "common_params": _common_tfm_builder_cfg,
812 "invalid": _common_tfm_invalid_configs + []
813 }
814
815config_lpcxpresso55s69 = {"seed_params": {
816 "tfm_platform": ["nxp/lpcxpresso55s69"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800817 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800818 "isolation_level": ["2"],
819 "test_regression": [True, False],
820 "test_psa_api": ["OFF"],
821 "cmake_build_type": ["Relwithdebinfo"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800822 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800823 "profile": ["profile_medium"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800824 "extra_params": [""]
825 },
826 "common_params": _common_tfm_builder_cfg,
827 "invalid": _common_tfm_invalid_configs + []
828 }
829
Xinyu Zhang38b76742021-11-11 13:57:56 +0800830config_bl5340 = {"seed_params": {
831 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800832 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800833 "isolation_level": ["1"],
834 "test_regression": [False],
835 "test_psa_api": ["OFF"],
836 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800837 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800838 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800839 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800840 },
841 "common_params": _common_tfm_builder_cfg,
842 "invalid": _common_tfm_invalid_configs + []
843 }
844
845config_nrf5340dk = {"seed_params": {
846 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800847 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800848 "isolation_level": ["1"],
849 "test_regression": [False],
850 "test_psa_api": ["OFF"],
851 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800852 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800853 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800854 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800855 },
856 "common_params": _common_tfm_builder_cfg,
857 "invalid": _common_tfm_invalid_configs + []
858 }
859
860config_nrf9160dk = {"seed_params": {
861 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800862 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800863 "isolation_level": ["1"],
864 "test_regression": [False],
865 "test_psa_api": ["OFF"],
866 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800867 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800868 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800869 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800870 },
871 "common_params": _common_tfm_builder_cfg,
872 "invalid": _common_tfm_invalid_configs + []
873 }
874
875config_m2351 = {"seed_params": {
876 "tfm_platform": ["nuvoton/m2351"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800877 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800878 "isolation_level": ["1"],
879 "test_regression": [False],
880 "test_psa_api": ["OFF"],
881 "cmake_build_type": ["Release"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800882 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800883 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800884 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800885 },
886 "common_params": _common_tfm_builder_cfg,
887 "invalid": _common_tfm_invalid_configs + []
888 }
889
890config_m2354 = {"seed_params": {
891 "tfm_platform": ["nuvoton/m2354"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800892 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800893 "isolation_level": ["1"],
894 "test_regression": [False],
895 "test_psa_api": ["OFF"],
896 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800897 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800898 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800899 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800900 },
901 "common_params": _common_tfm_builder_cfg,
902 "invalid": _common_tfm_invalid_configs + []
903 }
904
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800905# Config groups for debug
906config_debug = {"seed_params": {
907 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800908 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800909 "isolation_level": ["1"],
910 "test_regression": [False],
911 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800912 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800913 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800914 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800915 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800916 },
917 "common_params": _common_tfm_builder_cfg,
918 "invalid": _common_tfm_invalid_configs + []
919 }
920
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800921config_debug_regr = deepcopy(config_debug)
922config_debug_regr["seed_params"]["test_regression"] = [True]
923
924config_debug_PSA_API = {"seed_params": {
925 "tfm_platform": ["arm/mps2/an521"],
926 "compiler": ["ARMCLANG_6_13"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800927 "isolation_level": ["1"],
928 "test_regression": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800929 "test_psa_api": ["CRYPTO",
930 "INITIAL_ATTESTATION",
931 "STORAGE",
932 "IPC"],
933 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800934 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800935 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800936 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800937 },
938 "common_params": _common_tfm_builder_cfg,
939 "invalid": _common_tfm_invalid_configs + []
940 }
941
Karl Zhangaff558a2020-05-15 14:28:23 +0100942_builtin_configs = {
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800943 # per-patch test groups
944 "pp_test": config_pp_test,
945 "pp_corstone1000": config_corstone1000,
Karl Zhang14573bc2020-06-08 09:23:21 +0800946
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800947 # nightly test groups
948 "nightly_test": config_nightly_test,
949 "nightly_profile_s": config_profile_s,
950 "nightly_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +0800951 "nightly_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800952 "nightly_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800953 "nightly_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800954 "nightly_cc_driver_psa": config_cc_driver_psa,
955 "nightly_fp":config_fp,
956 "nightly_psa_api": config_psa_api,
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800957 "nightly_nsce": config_nsce,
958 "nightly_mmio": config_mmio,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800959 "nightly_an547": config_an547,
960 "nightly_an552": config_an552,
Bence Balogh8731a092022-05-24 17:24:54 +0200961 "nightly_corstone310": config_corstone310,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800962 "nightly_corstone1000": config_corstone1000,
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100963 "nightly_rss": config_rss,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800964 "nightly_psoc64": config_psoc64,
965 "nightly_stm32l562e_dk": config_stm32l562e_dk,
966 "nightly_lpcxpresso55s69": config_lpcxpresso55s69,
Karl Zhang14573bc2020-06-08 09:23:21 +0800967
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800968 # release test groups
969 "release_test": config_release_test,
970 "release_profile_s": config_profile_s,
971 "release_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +0800972 "release_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800973 "release_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800974 "release_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800975 "release_cc_driver_psa": config_cc_driver_psa,
976 "release_fp": config_fp,
977 "release_psa_api": config_psa_api,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800978 "release_nsce": config_nsce,
979 "release_mmio": config_mmio,
980 "release_an547": config_an547,
981 "release_an552": config_an552,
Bence Balogh8731a092022-05-24 17:24:54 +0200982 "release_corstone310": config_corstone310,
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100983 "release_rss": config_rss,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800984 "release_psoc64": config_psoc64,
985 "release_stm32l562e_dk": config_stm32l562e_dk,
986 "release_lpcxpresso55s69": config_lpcxpresso55s69,
Karl Zhang14573bc2020-06-08 09:23:21 +0800987
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800988 # code coverage test groups
989 "coverage_profile_s": config_cov_profile_s,
990 "coverage_profile_m": config_cov_profile_m,
David Hu3d333762022-10-27 18:12:33 +0800991 "coverage_profile_m_arotless": config_cov_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800992 "coverage_profile_l": config_cov_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800993 "coverage_ipc_backend": config_cov_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800994 "coverage_nsce": config_cov_nsce,
995 "coverage_mmio": config_cov_mmio,
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800996 "coverage_fp": config_cov_fp,
Xinyu Zhangf25856a2021-06-17 14:06:46 +0800997
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800998 # platform groups
999 "an521": config_an521,
1000 "an519": config_an519,
1001 "an524": config_an524,
1002 "an547": config_an547,
1003 "an552": config_an552,
1004 "musca_b1": config_musca_b1,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001005 "musca_s1": config_musca_s1,
Bence Balogh8731a092022-05-24 17:24:54 +02001006 "corstone310": config_corstone310,
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001007 "rss": config_rss,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001008 "cypress_psoc64": config_psoc64,
1009 "corstone1000": config_corstone1000,
1010 "stm_stm32l562e_dk": config_stm32l562e_dk,
1011 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1012 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1013 "nxp_lpcxpresso55s69": config_lpcxpresso55s69,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001014 "laird_bl5340": config_bl5340,
1015 "nordic_nrf5340dk": config_nrf5340dk,
1016 "nordic_nrf9160dk": config_nrf9160dk,
1017 "nuvoton_m2351": config_m2351,
1018 "nuvoton_m2354": config_m2354,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001019
Bence Balogh79fda442022-10-14 18:01:37 +02001020 # config groups for tf-m-extras examples
1021 "example_vad": config_example_vad,
1022 "example_dma350_trigger": config_example_dma350_trigger,
1023 "example_dma350_ns": config_example_dma350_ns,
1024 "example_dma350_s": config_example_dma350_s,
1025
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001026 # config groups for debug
Dean Birch4c6ad622020-03-13 11:28:03 +00001027 "debug": config_debug,
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001028 "debug_regr": config_debug_regr,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001029 "debug_PSA_API": config_debug_PSA_API,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001030 }
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001031
1032if __name__ == '__main__':
1033 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001034
Minos Galanakisea421232019-06-20 17:11:28 +01001035 # Default behavior is to export refference config when called
1036 _dir = os.getcwd()
1037 from utils import save_json
1038 for _cname, _cfg in _builtin_configs.items():
1039 _fname = os.path.join(_dir, _cname + ".json")
1040 print("Exporting config %s" % _fname)
1041 save_json(_fname, _cfg)