blob: af42b87d589af45db5b7798175a3b39ee0c7a528 [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_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 Zhang0aebb3d2022-04-11 18:27:12 +0800587# Config groups for platforms
588config_an519 = {"seed_params": {
Xinyu Zhangf25856a2021-06-17 14:06:46 +0800589 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800590 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800591 "isolation_level": ["1", "2"],
592 "test_regression": [True, False],
593 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800594 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800595 "with_bl2": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800596 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800597 "extra_params": ["", "NSOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800598 },
599 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800600 "invalid": _common_tfm_invalid_configs + []
601 }
602
603config_an521 = {"seed_params": {
604 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800605 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800606 "isolation_level": ["1", "2", "3"],
607 "test_regression": [True, False],
608 "test_psa_api": ["OFF"],
609 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800610 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800611 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800612 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800613 },
614 "common_params": _common_tfm_builder_cfg,
615 "invalid": _common_tfm_invalid_configs + []
616 }
617
618config_an524 = {"seed_params": {
619 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800620 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800621 "isolation_level": ["1", "2"],
622 "test_regression": [True, False],
623 "test_psa_api": ["OFF"],
624 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800625 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800626 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800627 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800628 },
629 "common_params": _common_tfm_builder_cfg,
630 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800631 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000632
Xinyu Zhang38b76742021-11-11 13:57:56 +0800633config_an547 = {"seed_params": {
634 "tfm_platform": ["arm/mps3/an547"],
Bence Balogh176b78f2022-02-22 13:49:34 +0100635 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800636 "isolation_level": ["1"],
637 "test_regression": [False],
638 "test_psa_api": ["OFF"],
639 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800640 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800641 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800642 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800643 },
644 "common_params": _common_tfm_builder_cfg,
645 "invalid": _common_tfm_invalid_configs + []
646 }
647
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800648config_an552 = {"seed_params": {
649 "tfm_platform": ["arm/mps3/an552"],
650 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800651 "isolation_level": ["1", "2"],
652 "test_regression": [True, False],
653 "test_psa_api": ["OFF"],
654 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800655 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800656 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800657 "extra_params": [""]
658 },
659 "common_params": _common_tfm_builder_cfg,
660 "invalid": _common_tfm_invalid_configs + []
661 }
662
663config_musca_b1 = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200664 "tfm_platform": ["arm/musca_b1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800665 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800666 "isolation_level": ["1", "2", "3"],
667 "test_regression": [True, False],
668 "test_psa_api": ["OFF"],
669 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800670 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800671 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800672 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800673 },
674 "common_params": _common_tfm_builder_cfg,
675 "invalid": _common_tfm_invalid_configs + []
676 }
677
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800678config_musca_s1 = {"seed_params": {
679 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800680 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800681 "isolation_level": ["1", "2"],
682 "test_regression": [True, False],
683 "test_psa_api": ["OFF"],
684 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800685 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800686 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800687 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800688 },
689 "common_params": _common_tfm_builder_cfg,
690 "invalid": _common_tfm_invalid_configs + []
691 }
692
Bence Balogh8731a092022-05-24 17:24:54 +0200693config_corstone310 = {"seed_params": {
Bence Balogh23d8fa72022-11-08 12:16:23 +0100694 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Bence Balogh176b78f2022-02-22 13:49:34 +0100695 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800696 "isolation_level": ["1"],
697 "test_regression": [False],
698 "test_psa_api": ["OFF"],
699 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800700 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800701 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800702 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800703 },
704 "common_params": _common_tfm_builder_cfg,
705 "invalid": _common_tfm_invalid_configs + []
706 }
707
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100708config_rss = {"seed_params": {
Raef Coles0d405852022-10-21 10:52:50 +0100709 "tfm_platform": ["arm/rss/tc"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100710 "compiler": ["GCC_10_3"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100711 "isolation_level": ["1", "2"],
712 "test_regression": [True, False],
713 "test_psa_api": ["OFF"],
714 "cmake_build_type": ["Debug", "Release"],
715 "with_bl2": [True],
716 "profile": [""],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800717 "extra_params": ["PSOFF"]
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100718 },
719 "common_params": _common_tfm_builder_cfg,
720 "invalid": _common_tfm_invalid_configs + []
721 }
722
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800723config_psoc64 = {"seed_params": {
724 "tfm_platform": ["cypress/psoc64"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800725 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800726 "isolation_level": ["1", "2"],
727 "test_regression": [True],
728 "test_psa_api": ["OFF"],
729 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800730 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800731 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800732 "extra_params": [""]
733 },
734 "common_params": _common_tfm_builder_cfg,
735 "invalid": _common_tfm_invalid_configs + []
736 }
737
738config_corstone1000 = {"seed_params": {
739 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800740 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800741 "isolation_level": ["1"],
Satish Kumar1cfdd912022-08-01 09:24:07 +0100742 "test_regression": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800743 "test_psa_api": ["OFF"],
744 "cmake_build_type": ["Debug"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800745 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800746 "profile": [""],
Xinyu Zhangfc061dd2022-07-26 14:52:56 +0800747 "extra_params": ["S_PS_OFF, FVP", "FPGA"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800748 },
749 "common_params": _common_tfm_builder_cfg,
750 "invalid": _common_tfm_invalid_configs + []
751 }
752
753config_stm32l562e_dk = {"seed_params": {
754 "tfm_platform": ["stm/stm32l562e_dk"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800755 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800756 "isolation_level": ["1", "2", "3"],
757 "test_regression": [True, False],
758 "test_psa_api": ["OFF"],
759 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800760 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800761 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800762 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
763 },
764 "common_params": _common_tfm_builder_cfg,
765 "invalid": _common_tfm_invalid_configs + [
Summer Qin379abb62022-10-08 16:41:54 +0800766 # Oversize issue on config stm32l562e_dk_ARMCLANG_1_REG_Release_BL2
767 ("stm/stm32l562e_dk", "ARMCLANG_6_13", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800768 True, "OFF", "Release", True, "", "*"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800769 # all other tests are off when CRYPTO is ON
Summer Qin379abb62022-10-08 16:41:54 +0800770 ("stm/stm32l562e_dk", "*", "*", True, "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800771 "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800772 # all other tests are ON when CRYPTO is OFF
Summer Qin379abb62022-10-08 16:41:54 +0800773 ("stm/stm32l562e_dk", "*", "*", False, "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800774 "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800775 ]
776 }
777
778config_b_u585i_iot02a = {"seed_params": {
779 "tfm_platform": ["stm/b_u585i_iot02a"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800780 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800781 "isolation_level": ["1"],
782 "test_regression": [False],
783 "test_psa_api": ["OFF"],
784 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800785 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800786 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800787 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800788 },
789 "common_params": _common_tfm_builder_cfg,
790 "invalid": _common_tfm_invalid_configs + []
791 }
792
793config_nucleo_l552ze_q = {"seed_params": {
794 "tfm_platform": ["stm/nucleo_l552ze_q"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800795 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800796 "isolation_level": ["1"],
797 "test_regression": [False],
798 "test_psa_api": ["OFF"],
799 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800800 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800801 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800802 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800803 },
804 "common_params": _common_tfm_builder_cfg,
805 "invalid": _common_tfm_invalid_configs + []
806 }
807
808config_lpcxpresso55s69 = {"seed_params": {
809 "tfm_platform": ["nxp/lpcxpresso55s69"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800810 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800811 "isolation_level": ["2"],
812 "test_regression": [True, False],
813 "test_psa_api": ["OFF"],
814 "cmake_build_type": ["Relwithdebinfo"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800815 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800816 "profile": ["profile_medium"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800817 "extra_params": [""]
818 },
819 "common_params": _common_tfm_builder_cfg,
820 "invalid": _common_tfm_invalid_configs + []
821 }
822
Xinyu Zhang38b76742021-11-11 13:57:56 +0800823config_bl5340 = {"seed_params": {
824 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800825 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800826 "isolation_level": ["1"],
827 "test_regression": [False],
828 "test_psa_api": ["OFF"],
829 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800830 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800831 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800832 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800833 },
834 "common_params": _common_tfm_builder_cfg,
835 "invalid": _common_tfm_invalid_configs + []
836 }
837
838config_nrf5340dk = {"seed_params": {
839 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800840 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800841 "isolation_level": ["1"],
842 "test_regression": [False],
843 "test_psa_api": ["OFF"],
844 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800845 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800846 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800847 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800848 },
849 "common_params": _common_tfm_builder_cfg,
850 "invalid": _common_tfm_invalid_configs + []
851 }
852
853config_nrf9160dk = {"seed_params": {
854 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800855 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800856 "isolation_level": ["1"],
857 "test_regression": [False],
858 "test_psa_api": ["OFF"],
859 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800860 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800861 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800862 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800863 },
864 "common_params": _common_tfm_builder_cfg,
865 "invalid": _common_tfm_invalid_configs + []
866 }
867
868config_m2351 = {"seed_params": {
869 "tfm_platform": ["nuvoton/m2351"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800870 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800871 "isolation_level": ["1"],
872 "test_regression": [False],
873 "test_psa_api": ["OFF"],
874 "cmake_build_type": ["Release"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800875 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800876 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800877 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800878 },
879 "common_params": _common_tfm_builder_cfg,
880 "invalid": _common_tfm_invalid_configs + []
881 }
882
883config_m2354 = {"seed_params": {
884 "tfm_platform": ["nuvoton/m2354"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800885 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800886 "isolation_level": ["1"],
887 "test_regression": [False],
888 "test_psa_api": ["OFF"],
889 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800890 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800891 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800892 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800893 },
894 "common_params": _common_tfm_builder_cfg,
895 "invalid": _common_tfm_invalid_configs + []
896 }
897
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800898# Config groups for debug
899config_debug = {"seed_params": {
900 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800901 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800902 "isolation_level": ["1"],
903 "test_regression": [False],
904 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800905 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800906 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800907 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800908 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800909 },
910 "common_params": _common_tfm_builder_cfg,
911 "invalid": _common_tfm_invalid_configs + []
912 }
913
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800914config_debug_regr = deepcopy(config_debug)
915config_debug_regr["seed_params"]["test_regression"] = [True]
916
917config_debug_PSA_API = {"seed_params": {
918 "tfm_platform": ["arm/mps2/an521"],
919 "compiler": ["ARMCLANG_6_13"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800920 "isolation_level": ["1"],
921 "test_regression": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800922 "test_psa_api": ["CRYPTO",
923 "INITIAL_ATTESTATION",
924 "STORAGE",
925 "IPC"],
926 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800927 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800928 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800929 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800930 },
931 "common_params": _common_tfm_builder_cfg,
932 "invalid": _common_tfm_invalid_configs + []
933 }
934
Karl Zhangaff558a2020-05-15 14:28:23 +0100935_builtin_configs = {
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800936 # per-patch test groups
937 "pp_test": config_pp_test,
938 "pp_corstone1000": config_corstone1000,
Karl Zhang14573bc2020-06-08 09:23:21 +0800939
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800940 # nightly test groups
941 "nightly_test": config_nightly_test,
942 "nightly_profile_s": config_profile_s,
943 "nightly_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +0800944 "nightly_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800945 "nightly_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800946 "nightly_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800947 "nightly_cc_driver_psa": config_cc_driver_psa,
948 "nightly_fp":config_fp,
949 "nightly_psa_api": config_psa_api,
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800950 "nightly_nsce": config_nsce,
951 "nightly_mmio": config_mmio,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800952 "nightly_an547": config_an547,
953 "nightly_an552": config_an552,
Bence Balogh8731a092022-05-24 17:24:54 +0200954 "nightly_corstone310": config_corstone310,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800955 "nightly_corstone1000": config_corstone1000,
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100956 "nightly_rss": config_rss,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800957 "nightly_psoc64": config_psoc64,
958 "nightly_stm32l562e_dk": config_stm32l562e_dk,
959 "nightly_lpcxpresso55s69": config_lpcxpresso55s69,
Karl Zhang14573bc2020-06-08 09:23:21 +0800960
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800961 # release test groups
962 "release_test": config_release_test,
963 "release_profile_s": config_profile_s,
964 "release_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +0800965 "release_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800966 "release_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800967 "release_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800968 "release_cc_driver_psa": config_cc_driver_psa,
969 "release_fp": config_fp,
970 "release_psa_api": config_psa_api,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800971 "release_nsce": config_nsce,
972 "release_mmio": config_mmio,
973 "release_an547": config_an547,
974 "release_an552": config_an552,
Bence Balogh8731a092022-05-24 17:24:54 +0200975 "release_corstone310": config_corstone310,
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100976 "release_rss": config_rss,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800977 "release_psoc64": config_psoc64,
978 "release_stm32l562e_dk": config_stm32l562e_dk,
979 "release_lpcxpresso55s69": config_lpcxpresso55s69,
Karl Zhang14573bc2020-06-08 09:23:21 +0800980
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800981 # code coverage test groups
982 "coverage_profile_s": config_cov_profile_s,
983 "coverage_profile_m": config_cov_profile_m,
David Hu3d333762022-10-27 18:12:33 +0800984 "coverage_profile_m_arotless": config_cov_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800985 "coverage_profile_l": config_cov_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800986 "coverage_ipc_backend": config_cov_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800987 "coverage_nsce": config_cov_nsce,
988 "coverage_mmio": config_cov_mmio,
989 "coverage_fp": config_fp,
Xinyu Zhangf25856a2021-06-17 14:06:46 +0800990
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800991 # platform groups
992 "an521": config_an521,
993 "an519": config_an519,
994 "an524": config_an524,
995 "an547": config_an547,
996 "an552": config_an552,
997 "musca_b1": config_musca_b1,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800998 "musca_s1": config_musca_s1,
Bence Balogh8731a092022-05-24 17:24:54 +0200999 "corstone310": config_corstone310,
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001000 "rss": config_rss,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001001 "cypress_psoc64": config_psoc64,
1002 "corstone1000": config_corstone1000,
1003 "stm_stm32l562e_dk": config_stm32l562e_dk,
1004 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1005 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1006 "nxp_lpcxpresso55s69": config_lpcxpresso55s69,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001007 "laird_bl5340": config_bl5340,
1008 "nordic_nrf5340dk": config_nrf5340dk,
1009 "nordic_nrf9160dk": config_nrf9160dk,
1010 "nuvoton_m2351": config_m2351,
1011 "nuvoton_m2354": config_m2354,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001012
Bence Balogh79fda442022-10-14 18:01:37 +02001013 # config groups for tf-m-extras examples
1014 "example_vad": config_example_vad,
1015 "example_dma350_trigger": config_example_dma350_trigger,
1016 "example_dma350_ns": config_example_dma350_ns,
1017 "example_dma350_s": config_example_dma350_s,
1018
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001019 # config groups for debug
Dean Birch4c6ad622020-03-13 11:28:03 +00001020 "debug": config_debug,
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001021 "debug_regr": config_debug_regr,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001022 "debug_PSA_API": config_debug_PSA_API,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001023 }
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001024
1025if __name__ == '__main__':
1026 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001027
Minos Galanakisea421232019-06-20 17:11:28 +01001028 # Default behavior is to export refference config when called
1029 _dir = os.getcwd()
1030 from utils import save_json
1031 for _cname, _cfg in _builtin_configs.items():
1032 _fname = os.path.join(_dir, _cname + ".json")
1033 print("Exporting config %s" % _fname)
1034 save_json(_fname, _cfg)