blob: 8409ca7c83d3b43fe6e67f885c3c79dfc512a142 [file] [log] [blame]
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001#!/usr/bin/env python3
2
3""" builtin_configs.py:
4
5 Default configuration files used as reference """
6
7from __future__ import print_function
8
9__copyright__ = """
10/*
Raef Coles61b43a42022-01-12 11:42:57 +000011 * Copyright (c) 2018-2022, Arm Limited. All rights reserved.
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010012 *
13 * SPDX-License-Identifier: BSD-3-Clause
14 *
15 */
16 """
Karl Zhang08681e62020-10-30 13:56:03 +080017
18__author__ = "tf-m@lists.trustedfirmware.org"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010019__project__ = "Trusted Firmware-M Open CI"
Xinyu Zhang06286a92021-07-22 14:00:51 +080020__version__ = "1.4.0"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010021
Paul Sokolovsky3e8fce02022-04-07 01:23:30 +030022from copy import deepcopy
23
24
Minos Galanakisea421232019-06-20 17:11:28 +010025# common parameters for tf-m build system
26# This configuration template will be passed into the tfm-builder module after
27# the template evaluation is converted to a command
28
29_common_tfm_builder_cfg = {
30 "config_type": "tf-m",
31 "codebase_root_dir": "tf-m",
32 # Order to which the variants are evaluated. This affects the name of
33 # variant configuration and the wildcard replacement logic in invalid
34 # configuration tuples
Xinyu Zhangb708f572020-09-15 11:43:46 +080035 "sort_order": ["tfm_platform",
Xinyu Zhang433771e2022-04-01 16:49:17 +080036 "compiler",
Xinyu Zhangb708f572020-09-15 11:43:46 +080037 "isolation_level",
38 "test_regression",
39 "test_psa_api",
Minos Galanakisea421232019-06-20 17:11:28 +010040 "cmake_build_type",
Xinyu Zhangb708f572020-09-15 11:43:46 +080041 "with_bl2",
Xinyu Zhang9fd74242020-10-22 11:30:50 +080042 "profile",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +080043 "extra_params"],
Minos Galanakisea421232019-06-20 17:11:28 +010044
45 # Keys for the templace will come from the combinations of parameters
46 # provided in the seed dictionary.
47
Xinyu Zhangf3e19482022-01-11 15:48:13 +080048 "config_template": "cmake -G Ninja " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080049 "-DTFM_PLATFORM=%(tfm_platform)s " + \
Xinyu Zhang433771e2022-04-01 16:49:17 +080050 "-DTFM_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(compiler)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080051 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
52 "-DTEST_NS=%(test_regression)s -DTEST_S=%(test_regression)s " + \
Raef Coles61b43a42022-01-12 11:42:57 +000053 "-DTEST_BL2=%(test_regression)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080054 "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080055 "-DTEST_PSA_API=%(test_psa_api)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080056 "-DBL2=%(with_bl2)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080057 "-DTFM_PROFILE=%(profile)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080058 "%(extra_params)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080059 "-DTFM_TEST_REPO_PATH=%(codebase_root_dir)s/../tf-m-tests " + \
60 "-DMBEDCRYPTO_PATH=%(codebase_root_dir)s/../mbedtls " + \
61 "-DPSA_ARCH_TESTS_PATH=%(codebase_root_dir)s/../psa-arch-tests " + \
62 "-DMCUBOOT_PATH=%(codebase_root_dir)s/../mcuboot " + \
Xinyu 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_2_REG_Release_BL2_FPON
269 ("arm/musca_s1", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800270 True, "OFF", "Release", True, "", "FPON"),
Summer Qin379abb62022-10-08 16:41:54 +0800271 # MUSCA_S1_GCC_1_REG_Release_BL2_CC_DRIVER_PSA
272 ("arm/musca_s1", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800273 True, "OFF", "Release", True, "", "CC_DRIVER_PSA"),
Jamie Foxd7438d92022-11-21 17:42:01 +0000274 # RSS_TC_GCC_2_Release_BL2_PSOFF
275 ("arm/rss/tc", "GCC_10_3", "2",
276 False, "OFF", "Release", True, "", "PSOFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800277 # stm32l562e_dk_ARMCLANG_1_REG_Release_BL2
278 ("stm/stm32l562e_dk", "ARMCLANG_6_13", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800279 True, "OFF", "Release", True, "", "CRYPTO_OFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800280 # stm32l562e_dk_GCC_2_REG_Release_BL2
281 ("stm/stm32l562e_dk", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800282 False, "OFF", "Release", True, "", "CRYPTO_ON"),
Summer Qin379abb62022-10-08 16:41:54 +0800283 # stm32l562e_dk_GCC_3_REG_Release_BL2
284 ("stm/stm32l562e_dk", "GCC_10_3", "3",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800285 True, "OFF", "Release", True, "", "CRYPTO_OFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800286 # psoc64_GCC_2_REG_Release
287 ("cypress/psoc64", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800288 True, "OFF", "Release", False, "", ""),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800289 ],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800290 "invalid": _common_tfm_invalid_configs + []
291 }
292
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800293# Config group for nightly job
294config_nightly_test = {"seed_params": {
295 "tfm_platform": ["arm/mps2/an519",
296 "arm/mps2/an521",
297 "arm/mps3/an524",
298 "arm/musca_s1",
Mark Horvathef57baa2022-09-12 13:36:36 +0200299 "arm/musca_b1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800300 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800301 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800302 "test_regression": [True, False],
303 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800304 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800305 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800306 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800307 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100308 },
309 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800310 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100311 }
312
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800313# Config group for release job
314config_release_test = {"seed_params": {
315 "tfm_platform": ["arm/mps2/an519",
316 "arm/mps2/an521",
317 "arm/mps3/an524",
Mark Horvathef57baa2022-09-12 13:36:36 +0200318 "arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800319 "arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800320 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800321 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800322 "test_regression": [True, False],
323 "test_psa_api": ["OFF"],
324 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800325 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800326 "profile": [""],
David Vinczed78e2622022-11-24 15:04:00 +0100327 "extra_params": ["TEST_CBOR"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800328 },
329 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800330 "valid": [
331 # sanity test for GCC v11.2
Summer Qin379abb62022-10-08 16:41:54 +0800332 # AN521_GCC_3_REG_Relwithdebinfo_BL2
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800333 ("arm/mps2/an521", "GCC_11_2",
Summer Qin379abb62022-10-08 16:41:54 +0800334 "3", True, "OFF", "Relwithdebinfo",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800335 True, "", ""),
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800336 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800337 "invalid": _common_tfm_invalid_configs + []
338 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800339
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800340# Config groups for TF-M features
341config_profile_s = {"seed_params": {
David Huda27ae72022-03-28 15:32:19 +0800342 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800343 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
David Huda27ae72022-03-28 15:32:19 +0800344 "isolation_level": ["1"],
345 "test_regression": [True, False],
346 "test_psa_api": ["OFF"],
347 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
David Huda27ae72022-03-28 15:32:19 +0800348 "with_bl2": [True],
David Huda27ae72022-03-28 15:32:19 +0800349 "profile": ["profile_small"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800350 "extra_params": ["PSOFF"]
David Huda27ae72022-03-28 15:32:19 +0800351 },
352 "common_params": _common_tfm_builder_cfg,
David Huda27ae72022-03-28 15:32:19 +0800353 "invalid": _common_tfm_invalid_configs + [
Summer Qin379abb62022-10-08 16:41:54 +0800354 ("arm/mps2/an519", "GCC_10_3", "*", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800355 "*", "Minsizerel", "*", "*", "*")
David Huda27ae72022-03-28 15:32:19 +0800356 ]
357 }
358
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800359config_profile_m = {"seed_params": {
360 "tfm_platform": ["arm/mps2/an519",
361 "arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200362 "arm/musca_b1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800363 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800364 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800365 "test_regression": [True, False],
366 "test_psa_api": ["OFF"],
367 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800368 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800369 "profile": ["profile_medium"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800370 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800371 },
372 "common_params": _common_tfm_builder_cfg,
373 "invalid": _common_tfm_invalid_configs + []
374 }
375
David Hu3d333762022-10-27 18:12:33 +0800376config_profile_m_arotless = {"seed_params": {
377 "tfm_platform": ["arm/musca_b1"],
378 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
379 "isolation_level": ["1"],
380 "test_regression": [True, False],
381 "test_psa_api": ["OFF"],
382 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
383 "with_bl2": [True],
384 "profile": ["profile_medium_arotless"],
385 "extra_params": ["", "PSOFF"]
386 },
387 "common_params": _common_tfm_builder_cfg,
388 "invalid": _common_tfm_invalid_configs + []
389 }
390
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800391config_profile_l = {"seed_params": {
392 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800393 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800394 "isolation_level": ["3"],
395 "test_regression": [True, False],
396 "test_psa_api": ["OFF"],
397 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800398 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800399 "profile": ["profile_large"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800400 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800401 },
402 "common_params": _common_tfm_builder_cfg,
403 "invalid": _common_tfm_invalid_configs + []
404 }
405
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800406config_ipc_backend = {"seed_params": {
407 "tfm_platform": ["arm/mps2/an519",
408 "arm/mps2/an521",
409 "arm/musca_s1",
410 "arm/musca_b1"],
411 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
412 "isolation_level": ["1"],
413 "test_regression": [True, False],
414 "test_psa_api": ["OFF"],
415 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
416 "with_bl2": [True],
417 "profile": [""],
418 "extra_params": ["IPC"]
419 },
420 "common_params": _common_tfm_builder_cfg,
421 "invalid": _common_tfm_invalid_configs + []
422 }
423
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800424config_cc_driver_psa = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200425 "tfm_platform": ["arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800426 "arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800427 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800428 "isolation_level": ["1"],
429 "test_regression": [True],
430 "test_psa_api": ["OFF"],
431 "cmake_build_type": ["Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800432 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800433 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800434 "extra_params": ["CC_DRIVER_PSA"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800435 },
436 "common_params": _common_tfm_builder_cfg,
437 "invalid": _common_tfm_invalid_configs + []
438 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100439
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800440config_fp = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800441 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800442 "compiler": ["GCC_10_3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800443 "isolation_level": ["1", "2"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800444 "test_regression": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800445 "test_psa_api": ["OFF"],
446 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800447 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800448 "profile": [""],
Mark Horvath93cb5fb2022-09-06 17:51:24 +0200449 "extra_params": ["FPOFF", "FPON", "FPON, LZOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800450 },
451 "common_params": _common_tfm_builder_cfg,
452 "invalid": _common_tfm_invalid_configs + []
453 }
Karl Zhangeffed972020-06-30 15:48:01 +0800454
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800455config_psa_api = {"seed_params": {
456 "tfm_platform": ["arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200457 "arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800458 "arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800459 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800460 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800461 "test_regression": [False],
462 "test_psa_api": ["IPC",
463 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800464 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800465 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800466 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800467 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800468 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800469 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800470 },
471 "common_params": _common_tfm_builder_cfg,
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300472 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800473 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800474
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800475config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800476 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800477 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800478 "isolation_level": ["1", "2", "3"],
479 "test_regression": [True],
480 "test_psa_api": ["OFF"],
481 "cmake_build_type": ["Debug"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800482 "with_bl2": [True],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800483 "profile": [""],
Xinyu Zhang67612992021-12-20 14:11:27 +0800484 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800485 },
486 "common_params": _common_tfm_builder_cfg,
487 "invalid": _common_tfm_invalid_configs + []
488 }
489
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800490config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800491 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800492 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800493 "isolation_level": ["1"],
494 "test_regression": [True],
495 "test_psa_api": ["OFF"],
496 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800497 "with_bl2": [True],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800498 "profile": [""],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800499 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800500 },
501 "common_params": _common_tfm_builder_cfg,
502 "invalid": _common_tfm_invalid_configs + []
503 }
504
Bence Balogh79fda442022-10-14 18:01:37 +0200505# Config groups for TF-M examples
506config_example_vad = {"seed_params": {
507 "tfm_platform": ["arm/mps3/an552"],
508 "compiler": ["GCC_10_3"],
509 "isolation_level": ["2"],
510 "test_regression": [False],
511 "test_psa_api": ["OFF"],
512 "cmake_build_type": ["Release"],
513 "with_bl2": [True],
514 "profile": [""],
515 "extra_params": ["EXAMPLE_VAD"]
516 },
517 "common_params": _common_tfm_builder_cfg,
518 "invalid": _common_tfm_invalid_configs + []
519 }
520
521config_example_dma350_ns = {"seed_params": {
522 "tfm_platform": ["arm/mps3/corstone310/fvp"],
523 "compiler": ["GCC_10_3"],
524 "isolation_level": ["2"],
525 "test_regression": [False],
526 "test_psa_api": ["OFF"],
527 "cmake_build_type": ["Release"],
528 "with_bl2": [True],
529 "profile": [""],
530 "extra_params": ["EXAMPLE_DMA350_NS"]
531 },
532 "common_params": _common_tfm_builder_cfg,
533 "invalid": _common_tfm_invalid_configs + []
534 }
535
536config_example_dma350_s = {"seed_params": {
537 "tfm_platform": ["arm/mps3/corstone310/fvp"],
538 "compiler": ["GCC_10_3"],
539 "isolation_level": ["1"],
540 "test_regression": [False],
541 "test_psa_api": ["OFF"],
542 "cmake_build_type": ["Release"],
543 "with_bl2": [True],
544 "profile": [""],
545 "extra_params": ["EXAMPLE_DMA350_S"]
546 },
547 "common_params": _common_tfm_builder_cfg,
548 "invalid": _common_tfm_invalid_configs + []
549 }
550
551config_example_dma350_trigger = {"seed_params": {
552 "tfm_platform": ["arm/mps3/corstone310/fvp"],
553 "compiler": ["GCC_10_3"],
554 "isolation_level": ["2"],
555 "test_regression": [False],
556 "test_psa_api": ["OFF"],
557 "cmake_build_type": ["Release"],
558 "with_bl2": [True],
559 "profile": [""],
560 "extra_params": ["EXAMPLE_DMA350_TRIGGER"]
561 },
562 "common_params": _common_tfm_builder_cfg,
563 "invalid": _common_tfm_invalid_configs + []
564 }
565
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800566# Config groups for code coverage
567config_cov_profile_s = deepcopy(config_profile_s)
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800568config_cov_profile_s["seed_params"]["compiler"] = ["GCC_10_3"]
Xinyu Zhangbdc37e32022-04-06 17:47:44 +0800569
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800570config_cov_profile_m = deepcopy(config_profile_m)
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800571config_cov_profile_m["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800572
David Hu3d333762022-10-27 18:12:33 +0800573config_cov_profile_m_arotless = deepcopy(config_profile_m_arotless)
574config_cov_profile_m_arotless["seed_params"]["compiler"] = ["GCC_10_3"]
575
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800576config_cov_profile_l = deepcopy(config_profile_l)
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800577config_cov_profile_l["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800578
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800579config_cov_ipc_backend = deepcopy(config_ipc_backend)
580config_cov_ipc_backend["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
581config_cov_ipc_backend["seed_params"]["compiler"] = ["GCC_10_3"]
582
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800583config_cov_nsce = deepcopy(config_nsce)
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800584config_cov_nsce["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800585
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800586config_cov_mmio = deepcopy(config_mmio)
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800587config_cov_mmio["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800588
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800589# Config groups for platforms
590config_an519 = {"seed_params": {
Xinyu Zhangf25856a2021-06-17 14:06:46 +0800591 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800592 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800593 "isolation_level": ["1", "2"],
594 "test_regression": [True, False],
595 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800596 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800597 "with_bl2": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800598 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800599 "extra_params": ["", "NSOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800600 },
601 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800602 "invalid": _common_tfm_invalid_configs + []
603 }
604
605config_an521 = {"seed_params": {
606 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800607 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800608 "isolation_level": ["1", "2", "3"],
609 "test_regression": [True, False],
610 "test_psa_api": ["OFF"],
611 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800612 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800613 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800614 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800615 },
616 "common_params": _common_tfm_builder_cfg,
617 "invalid": _common_tfm_invalid_configs + []
618 }
619
620config_an524 = {"seed_params": {
621 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800622 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800623 "isolation_level": ["1", "2"],
624 "test_regression": [True, False],
625 "test_psa_api": ["OFF"],
626 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800627 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800628 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800629 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800630 },
631 "common_params": _common_tfm_builder_cfg,
632 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800633 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000634
Xinyu Zhang38b76742021-11-11 13:57:56 +0800635config_an547 = {"seed_params": {
636 "tfm_platform": ["arm/mps3/an547"],
Bence Balogh176b78f2022-02-22 13:49:34 +0100637 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800638 "isolation_level": ["1"],
639 "test_regression": [False],
640 "test_psa_api": ["OFF"],
641 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800642 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800643 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800644 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800645 },
646 "common_params": _common_tfm_builder_cfg,
647 "invalid": _common_tfm_invalid_configs + []
648 }
649
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800650config_an552 = {"seed_params": {
651 "tfm_platform": ["arm/mps3/an552"],
652 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800653 "isolation_level": ["1", "2"],
654 "test_regression": [True, False],
655 "test_psa_api": ["OFF"],
656 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800657 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800658 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800659 "extra_params": [""]
660 },
661 "common_params": _common_tfm_builder_cfg,
662 "invalid": _common_tfm_invalid_configs + []
663 }
664
665config_musca_b1 = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200666 "tfm_platform": ["arm/musca_b1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800667 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800668 "isolation_level": ["1", "2", "3"],
669 "test_regression": [True, False],
670 "test_psa_api": ["OFF"],
671 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800672 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800673 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800674 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800675 },
676 "common_params": _common_tfm_builder_cfg,
677 "invalid": _common_tfm_invalid_configs + []
678 }
679
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800680config_musca_s1 = {"seed_params": {
681 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800682 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800683 "isolation_level": ["1", "2"],
684 "test_regression": [True, False],
685 "test_psa_api": ["OFF"],
686 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800687 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800688 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800689 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800690 },
691 "common_params": _common_tfm_builder_cfg,
692 "invalid": _common_tfm_invalid_configs + []
693 }
694
Bence Balogh8731a092022-05-24 17:24:54 +0200695config_corstone310 = {"seed_params": {
Bence Balogh23d8fa72022-11-08 12:16:23 +0100696 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Bence Balogh176b78f2022-02-22 13:49:34 +0100697 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800698 "isolation_level": ["1"],
699 "test_regression": [False],
700 "test_psa_api": ["OFF"],
701 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800702 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800703 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800704 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800705 },
706 "common_params": _common_tfm_builder_cfg,
707 "invalid": _common_tfm_invalid_configs + []
708 }
709
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100710config_rss = {"seed_params": {
Raef Coles0d405852022-10-21 10:52:50 +0100711 "tfm_platform": ["arm/rss/tc"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100712 "compiler": ["GCC_10_3"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100713 "isolation_level": ["1", "2"],
714 "test_regression": [True, False],
715 "test_psa_api": ["OFF"],
716 "cmake_build_type": ["Debug", "Release"],
717 "with_bl2": [True],
718 "profile": [""],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800719 "extra_params": ["PSOFF"]
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100720 },
721 "common_params": _common_tfm_builder_cfg,
722 "invalid": _common_tfm_invalid_configs + []
723 }
724
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800725config_psoc64 = {"seed_params": {
726 "tfm_platform": ["cypress/psoc64"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800727 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800728 "isolation_level": ["1", "2"],
729 "test_regression": [True],
730 "test_psa_api": ["OFF"],
731 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800732 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800733 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800734 "extra_params": [""]
735 },
736 "common_params": _common_tfm_builder_cfg,
737 "invalid": _common_tfm_invalid_configs + []
738 }
739
740config_corstone1000 = {"seed_params": {
741 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800742 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800743 "isolation_level": ["1"],
Satish Kumar1cfdd912022-08-01 09:24:07 +0100744 "test_regression": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800745 "test_psa_api": ["OFF"],
746 "cmake_build_type": ["Debug"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800747 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800748 "profile": [""],
Xinyu Zhangfc061dd2022-07-26 14:52:56 +0800749 "extra_params": ["S_PS_OFF, FVP", "FPGA"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800750 },
751 "common_params": _common_tfm_builder_cfg,
752 "invalid": _common_tfm_invalid_configs + []
753 }
754
755config_stm32l562e_dk = {"seed_params": {
756 "tfm_platform": ["stm/stm32l562e_dk"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800757 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800758 "isolation_level": ["1", "2", "3"],
759 "test_regression": [True, False],
760 "test_psa_api": ["OFF"],
761 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800762 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800763 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800764 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
765 },
766 "common_params": _common_tfm_builder_cfg,
767 "invalid": _common_tfm_invalid_configs + [
Summer Qin379abb62022-10-08 16:41:54 +0800768 # Oversize issue on config stm32l562e_dk_ARMCLANG_1_REG_Release_BL2
769 ("stm/stm32l562e_dk", "ARMCLANG_6_13", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800770 True, "OFF", "Release", True, "", "*"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800771 # all other tests are off when CRYPTO is ON
Summer Qin379abb62022-10-08 16:41:54 +0800772 ("stm/stm32l562e_dk", "*", "*", True, "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800773 "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800774 # all other tests are ON when CRYPTO is OFF
Summer Qin379abb62022-10-08 16:41:54 +0800775 ("stm/stm32l562e_dk", "*", "*", False, "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800776 "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800777 ]
778 }
779
780config_b_u585i_iot02a = {"seed_params": {
781 "tfm_platform": ["stm/b_u585i_iot02a"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800782 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800783 "isolation_level": ["1"],
784 "test_regression": [False],
785 "test_psa_api": ["OFF"],
786 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800787 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800788 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800789 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800790 },
791 "common_params": _common_tfm_builder_cfg,
792 "invalid": _common_tfm_invalid_configs + []
793 }
794
795config_nucleo_l552ze_q = {"seed_params": {
796 "tfm_platform": ["stm/nucleo_l552ze_q"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800797 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800798 "isolation_level": ["1"],
799 "test_regression": [False],
800 "test_psa_api": ["OFF"],
801 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800802 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800803 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800804 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800805 },
806 "common_params": _common_tfm_builder_cfg,
807 "invalid": _common_tfm_invalid_configs + []
808 }
809
810config_lpcxpresso55s69 = {"seed_params": {
811 "tfm_platform": ["nxp/lpcxpresso55s69"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800812 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800813 "isolation_level": ["2"],
814 "test_regression": [True, False],
815 "test_psa_api": ["OFF"],
816 "cmake_build_type": ["Relwithdebinfo"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800817 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800818 "profile": ["profile_medium"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800819 "extra_params": [""]
820 },
821 "common_params": _common_tfm_builder_cfg,
822 "invalid": _common_tfm_invalid_configs + []
823 }
824
Xinyu Zhang38b76742021-11-11 13:57:56 +0800825config_bl5340 = {"seed_params": {
826 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800827 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800828 "isolation_level": ["1"],
829 "test_regression": [False],
830 "test_psa_api": ["OFF"],
831 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800832 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800833 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800834 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800835 },
836 "common_params": _common_tfm_builder_cfg,
837 "invalid": _common_tfm_invalid_configs + []
838 }
839
840config_nrf5340dk = {"seed_params": {
841 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800842 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800843 "isolation_level": ["1"],
844 "test_regression": [False],
845 "test_psa_api": ["OFF"],
846 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800847 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800848 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800849 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800850 },
851 "common_params": _common_tfm_builder_cfg,
852 "invalid": _common_tfm_invalid_configs + []
853 }
854
855config_nrf9160dk = {"seed_params": {
856 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800857 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800858 "isolation_level": ["1"],
859 "test_regression": [False],
860 "test_psa_api": ["OFF"],
861 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800862 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800863 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800864 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800865 },
866 "common_params": _common_tfm_builder_cfg,
867 "invalid": _common_tfm_invalid_configs + []
868 }
869
870config_m2351 = {"seed_params": {
871 "tfm_platform": ["nuvoton/m2351"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800872 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800873 "isolation_level": ["1"],
874 "test_regression": [False],
875 "test_psa_api": ["OFF"],
876 "cmake_build_type": ["Release"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800877 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800878 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800879 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800880 },
881 "common_params": _common_tfm_builder_cfg,
882 "invalid": _common_tfm_invalid_configs + []
883 }
884
885config_m2354 = {"seed_params": {
886 "tfm_platform": ["nuvoton/m2354"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800887 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800888 "isolation_level": ["1"],
889 "test_regression": [False],
890 "test_psa_api": ["OFF"],
891 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800892 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800893 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800894 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800895 },
896 "common_params": _common_tfm_builder_cfg,
897 "invalid": _common_tfm_invalid_configs + []
898 }
899
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800900# Config groups for debug
901config_debug = {"seed_params": {
902 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800903 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800904 "isolation_level": ["1"],
905 "test_regression": [False],
906 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800907 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800908 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800909 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800910 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800911 },
912 "common_params": _common_tfm_builder_cfg,
913 "invalid": _common_tfm_invalid_configs + []
914 }
915
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800916config_debug_regr = deepcopy(config_debug)
917config_debug_regr["seed_params"]["test_regression"] = [True]
918
919config_debug_PSA_API = {"seed_params": {
920 "tfm_platform": ["arm/mps2/an521"],
921 "compiler": ["ARMCLANG_6_13"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800922 "isolation_level": ["1"],
923 "test_regression": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800924 "test_psa_api": ["CRYPTO",
925 "INITIAL_ATTESTATION",
926 "STORAGE",
927 "IPC"],
928 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800929 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800930 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800931 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800932 },
933 "common_params": _common_tfm_builder_cfg,
934 "invalid": _common_tfm_invalid_configs + []
935 }
936
Karl Zhangaff558a2020-05-15 14:28:23 +0100937_builtin_configs = {
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800938 # per-patch test groups
939 "pp_test": config_pp_test,
940 "pp_corstone1000": config_corstone1000,
Karl Zhang14573bc2020-06-08 09:23:21 +0800941
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800942 # nightly test groups
943 "nightly_test": config_nightly_test,
944 "nightly_profile_s": config_profile_s,
945 "nightly_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +0800946 "nightly_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800947 "nightly_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800948 "nightly_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800949 "nightly_cc_driver_psa": config_cc_driver_psa,
950 "nightly_fp":config_fp,
951 "nightly_psa_api": config_psa_api,
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800952 "nightly_nsce": config_nsce,
953 "nightly_mmio": config_mmio,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800954 "nightly_an547": config_an547,
955 "nightly_an552": config_an552,
Bence Balogh8731a092022-05-24 17:24:54 +0200956 "nightly_corstone310": config_corstone310,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800957 "nightly_corstone1000": config_corstone1000,
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100958 "nightly_rss": config_rss,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800959 "nightly_psoc64": config_psoc64,
960 "nightly_stm32l562e_dk": config_stm32l562e_dk,
961 "nightly_lpcxpresso55s69": config_lpcxpresso55s69,
Karl Zhang14573bc2020-06-08 09:23:21 +0800962
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800963 # release test groups
964 "release_test": config_release_test,
965 "release_profile_s": config_profile_s,
966 "release_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +0800967 "release_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800968 "release_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800969 "release_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800970 "release_cc_driver_psa": config_cc_driver_psa,
971 "release_fp": config_fp,
972 "release_psa_api": config_psa_api,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800973 "release_nsce": config_nsce,
974 "release_mmio": config_mmio,
975 "release_an547": config_an547,
976 "release_an552": config_an552,
Bence Balogh8731a092022-05-24 17:24:54 +0200977 "release_corstone310": config_corstone310,
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100978 "release_rss": config_rss,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800979 "release_psoc64": config_psoc64,
980 "release_stm32l562e_dk": config_stm32l562e_dk,
981 "release_lpcxpresso55s69": config_lpcxpresso55s69,
Karl Zhang14573bc2020-06-08 09:23:21 +0800982
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800983 # code coverage test groups
984 "coverage_profile_s": config_cov_profile_s,
985 "coverage_profile_m": config_cov_profile_m,
David Hu3d333762022-10-27 18:12:33 +0800986 "coverage_profile_m_arotless": config_cov_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800987 "coverage_profile_l": config_cov_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800988 "coverage_ipc_backend": config_cov_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800989 "coverage_nsce": config_cov_nsce,
990 "coverage_mmio": config_cov_mmio,
991 "coverage_fp": config_fp,
Xinyu Zhangf25856a2021-06-17 14:06:46 +0800992
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800993 # platform groups
994 "an521": config_an521,
995 "an519": config_an519,
996 "an524": config_an524,
997 "an547": config_an547,
998 "an552": config_an552,
999 "musca_b1": config_musca_b1,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001000 "musca_s1": config_musca_s1,
Bence Balogh8731a092022-05-24 17:24:54 +02001001 "corstone310": config_corstone310,
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001002 "rss": config_rss,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001003 "cypress_psoc64": config_psoc64,
1004 "corstone1000": config_corstone1000,
1005 "stm_stm32l562e_dk": config_stm32l562e_dk,
1006 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1007 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1008 "nxp_lpcxpresso55s69": config_lpcxpresso55s69,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001009 "laird_bl5340": config_bl5340,
1010 "nordic_nrf5340dk": config_nrf5340dk,
1011 "nordic_nrf9160dk": config_nrf9160dk,
1012 "nuvoton_m2351": config_m2351,
1013 "nuvoton_m2354": config_m2354,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001014
Bence Balogh79fda442022-10-14 18:01:37 +02001015 # config groups for tf-m-extras examples
1016 "example_vad": config_example_vad,
1017 "example_dma350_trigger": config_example_dma350_trigger,
1018 "example_dma350_ns": config_example_dma350_ns,
1019 "example_dma350_s": config_example_dma350_s,
1020
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001021 # config groups for debug
Dean Birch4c6ad622020-03-13 11:28:03 +00001022 "debug": config_debug,
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001023 "debug_regr": config_debug_regr,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001024 "debug_PSA_API": config_debug_PSA_API,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001025 }
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001026
1027if __name__ == '__main__':
1028 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001029
Minos Galanakisea421232019-06-20 17:11:28 +01001030 # Default behavior is to export refference config when called
1031 _dir = os.getcwd()
1032 from utils import save_json
1033 for _cname, _cfg in _builtin_configs.items():
1034 _fname = os.path.join(_dir, _cname + ".json")
1035 print("Exporting config %s" % _fname)
1036 save_json(_fname, _cfg)