blob: 00590008918df4fa1505e790a9282c8592e4f274 [file] [log] [blame]
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001#!/usr/bin/env python3
2
3""" builtin_configs.py:
4
5 Default configuration files used as reference """
6
7from __future__ import print_function
8
9__copyright__ = """
10/*
Jamie Fox9e2c2352023-01-13 15:11:23 +000011 * Copyright (c) 2018-2023, Arm Limited. All rights reserved.
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010012 *
13 * SPDX-License-Identifier: BSD-3-Clause
14 *
15 */
16 """
Karl Zhang08681e62020-10-30 13:56:03 +080017
18__author__ = "tf-m@lists.trustedfirmware.org"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010019__project__ = "Trusted Firmware-M Open CI"
Xinyu Zhang06286a92021-07-22 14:00:51 +080020__version__ = "1.4.0"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010021
Paul Sokolovsky3e8fce02022-04-07 01:23:30 +030022from copy import deepcopy
23
24
Minos Galanakisea421232019-06-20 17:11:28 +010025# common parameters for tf-m build system
26# This configuration template will be passed into the tfm-builder module after
27# the template evaluation is converted to a command
28
29_common_tfm_builder_cfg = {
30 "config_type": "tf-m",
31 "codebase_root_dir": "tf-m",
32 # Order to which the variants are evaluated. This affects the name of
33 # variant configuration and the wildcard replacement logic in invalid
34 # configuration tuples
Xinyu Zhangb708f572020-09-15 11:43:46 +080035 "sort_order": ["tfm_platform",
Xinyu Zhang433771e2022-04-01 16:49:17 +080036 "compiler",
Xinyu Zhangb708f572020-09-15 11:43:46 +080037 "isolation_level",
38 "test_regression",
39 "test_psa_api",
Minos Galanakisea421232019-06-20 17:11:28 +010040 "cmake_build_type",
Xinyu Zhangb708f572020-09-15 11:43:46 +080041 "with_bl2",
Xinyu Zhang9fd74242020-10-22 11:30:50 +080042 "profile",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +080043 "extra_params"],
Minos Galanakisea421232019-06-20 17:11:28 +010044
45 # Keys for the templace will come from the combinations of parameters
46 # provided in the seed dictionary.
47
Xinyu Zhangf3e19482022-01-11 15:48:13 +080048 "config_template": "cmake -G Ninja " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080049 "-DTFM_PLATFORM=%(tfm_platform)s " + \
Xinyu Zhang433771e2022-04-01 16:49:17 +080050 "-DTFM_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(compiler)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080051 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
Xinyu Zhangf2623ac2023-01-30 17:11:25 +080052 "-DTEST_NS=%(test_regression)s -DTEST_S=%(test_regression)s -DTEST_NS_FLIH_IRQ=OFF " + \
Raef Coles61b43a42022-01-12 11:42:57 +000053 "-DTEST_BL2=%(test_regression)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080054 "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080055 "-DTEST_PSA_API=%(test_psa_api)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080056 "-DBL2=%(with_bl2)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080057 "-DTFM_PROFILE=%(profile)s " + \
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +080058 "%(extra_params)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080059 "-DTFM_TEST_REPO_PATH=%(codebase_root_dir)s/../tf-m-tests " + \
60 "-DMBEDCRYPTO_PATH=%(codebase_root_dir)s/../mbedtls " + \
61 "-DPSA_ARCH_TESTS_PATH=%(codebase_root_dir)s/../psa-arch-tests " + \
62 "-DMCUBOOT_PATH=%(codebase_root_dir)s/../mcuboot " + \
Xinyu Zhangc7ad0822022-11-23 17:54:26 +080063 "-DQCBOR_PATH=%(codebase_root_dir)s/../QCBOR " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080064 "%(codebase_root_dir)s",
Karl Zhangaff558a2020-05-15 14:28:23 +010065
Xinyu Zhang433771e2022-04-01 16:49:17 +080066 "set_compiler_path": "export PATH=$PATH:$%(compiler)s_PATH",
67
Minos Galanakisea421232019-06-20 17:11:28 +010068 # A small subset of string substitution params is allowed in commands.
69 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
70 # _tbm_target_platform_ with the paths set when building
71
Xinyu Zhangb708f572020-09-15 11:43:46 +080072 "artifact_capture_rex": (r'%(_tbm_build_dir_)s/bin'
Minos Galanakisea421232019-06-20 17:11:28 +010073 r'/(\w+\.(?:axf|bin|hex))$'),
74
75 # ALL commands will be executed for every build.
76 # Other keys will append extra commands when matching target_platform
Fathi Boudra83e4f292020-12-04 22:33:40 +010077 "build_cmds": {"all": ["cmake --build ./ -- install"],
Mark Horvathef57baa2022-09-12 13:36:36 +020078 "arm/musca_b1": [("srec_cat "
79 "%(_tbm_build_dir_)s/bin/"
80 "bl2.bin "
81 "-Binary -offset 0xA000000 "
82 "-fill 0xFF 0xA000000 0xA020000 "
83 "%(_tbm_build_dir_)s/bin/"
84 "tfm_s_ns_signed.bin "
85 "-Binary -offset 0xA020000 "
86 "-fill 0xFF 0xA020000 0xA200000 "
87 "-o %(_tbm_build_dir_)s/bin/"
88 "tfm.hex -Intel")],
Mohamed Omar Asaker74a497d2023-02-23 16:41:21 +000089 "arm/corstone1000": [("%(_tbm_build_dir_)s/../platform/ext/target/arm/corstone1000/create-flash-image.sh %(_tbm_build_dir_)s/bin flash.bin")],
Summer Qin3c2b5722021-05-26 10:43:45 +080090 "arm/musca_s1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080091 "%(_tbm_build_dir_)s/bin/"
92 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +080093 "-Binary -offset 0xA000000 "
Raef Coles543aab32020-12-03 11:12:02 +000094 "-fill 0xFF 0xA000000 0xA020000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080095 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080096 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +000097 "-Binary -offset 0xA020000 "
98 "-fill 0xFF 0xA020000 0xA200000 "
99 "-o %(_tbm_build_dir_)s/bin/"
Arthur She19c0e1a2021-06-02 11:06:19 -0700100 "tfm.hex -Intel")],
101 "stm/stm32l562e_dk": [("echo 'STM32L562E-DK board post process';"
102 "%(_tbm_build_dir_)s/postbuild.sh;"
103 "pushd %(_tbm_build_dir_)s;"
Arthur She07c91b52021-07-15 15:03:10 -0700104 "BIN_FILES=$(grep -o '\/.*\.bin' TFM_UPDATE.sh | sed 's/^/bin/');"
105 "tar jcf ./bin/stm32l562e-dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh ${BIN_FILES};"
Arthur She3c0dadd2021-11-18 21:17:48 -0800106 "popd")],
Arthur She026ebb62023-02-08 18:47:39 -0800107 "stm/b_u585i_iot02a": [("echo 'STM32U5 board post process';"
108 "%(_tbm_build_dir_)s/postbuild.sh;"
109 "pushd %(_tbm_build_dir_)s;"
110 "BIN_FILES=$(grep -o '\/.*\.bin' TFM_UPDATE.sh | sed 's/^/bin/');"
111 "tar jcf ./bin/b_u585i_iot02a-tfm.tar.bz2 regression.sh TFM_UPDATE.sh ${BIN_FILES};"
112 "popd")],
113 "nxp/lpcxpresso55s69": [("echo 'LPCXpresso55S69 board post process\n';"
Arthur She3c0dadd2021-11-18 21:17:48 -0800114 "if [ -f \"%(_tbm_build_dir_)s/bin/bl2.hex\" ]; then FLASH_FILE='flash_bl2_JLink.py'; else FLASH_FILE='flash_JLink.py'; fi;"
115 "pushd %(_tbm_build_dir_)s/../platform/ext/target/nxp/lpcxpresso55s69/scripts;"
116 "LN=$(grep -n 'JLinkExe' ${FLASH_FILE}|awk -F: '{print $1}');"
117 "sed -i \"${LN}s/.*/ print('flash.jlink generated')/\" ${FLASH_FILE};"
118 "python3 ./${FLASH_FILE};"
119 "cd %(_tbm_build_dir_)s/bin;"
120 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"
121 "tar jcf lpcxpresso55s69-tfm.tar.bz2 flash.jlink ${BIN_FILES};"
Arthur She87602dc2022-02-06 14:42:18 -0800122 "popd")],
123 "cypress/psoc64": [("echo 'Sign binaries for Cypress PSoC64 platform';"
124 "pushd %(_tbm_build_dir_)s/..;"
125 "sudo /usr/local/bin/cysecuretools "
126 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
127 "--target cy8ckit-064s0s2-4343w "
128 "sign-image "
129 "--hex %(_tbm_build_dir_)s/bin/tfm_s.hex "
130 "--image-type BOOT --image-id 1;"
131 "sudo /usr/local/bin/cysecuretools "
132 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
133 "--target cy8ckit-064s0s2-4343w "
134 "sign-image "
135 "--hex %(_tbm_build_dir_)s/bin/tfm_ns.hex "
136 "--image-type BOOT --image-id 16;"
137 "mv %(_tbm_build_dir_)s/bin/tfm_s.hex %(_tbm_build_dir_)s/bin/tfm_s_signed.hex;"
138 "mv %(_tbm_build_dir_)s/bin/tfm_ns.hex %(_tbm_build_dir_)s/bin/tfm_ns_signed.hex;"
139 "popd")]
Minos Galanakisea421232019-06-20 17:11:28 +0100140 },
141
142 # (Optional) If set will fail if those artefacts are missing post build
143 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800144 "%(_tbm_build_dir_)s/bin/"
145 "tfm_s.bin",
146 "%(_tbm_build_dir_)s/bin/"
147 "tfm_ns.bin"],
Mark Horvathef57baa2022-09-12 13:36:36 +0200148 "arm/musca_b1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800149 "%(_tbm_build_dir_)s/bin/"
150 "tfm.hex",
151 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800152 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800153 "%(_tbm_build_dir_)s/bin/"
154 "tfm_sign.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800155 "arm/musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800156 "%(_tbm_build_dir_)s/bin/"
157 "tfm.hex",
158 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800159 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800160 "%(_tbm_build_dir_)s/bin/"
161 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100162 }
163}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100164
Xinyu Zhangb708f572020-09-15 11:43:46 +0800165# List of all build configs that are impossible under all circumstances
166_common_tfm_invalid_configs = [
Xinyu Zhang459a1982021-07-21 22:34:49 +0800167 # 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 +0800168 ("arm/musca_b1", "ARMCLANG_6_13", "*", True, "OFF", "Debug", "*", "", "*"),
169 ("arm/musca_s1", "ARMCLANG_6_13", "*", True, "OFF", "Debug", "*", "", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800170 # Load range overlap on Musca for IPC Debug type: T895
Summer Qin379abb62022-10-08 16:41:54 +0800171 ("arm/musca_b1", "ARMCLANG_6_13", "*", "*", "IPC", "Debug", "*", "*", "*"),
172 ("arm/musca_s1", "ARMCLANG_6_13", "*", "*", "IPC", "Debug", "*", "*", "*"),
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300173 # FF does not support L3
Summer Qin379abb62022-10-08 16:41:54 +0800174 ("*", "*", "3", "*", "IPC", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800175 # Musca requires BL2
Summer Qin379abb62022-10-08 16:41:54 +0800176 ("arm/musca_b1", "*", "*", "*", "*", "*", False, "*", "*"),
177 ("arm/musca_s1", "*", "*", "*", "*", "*", False, "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800178 # Only AN521 and MUSCA_B1 support Isolation Level 3
Summer Qin379abb62022-10-08 16:41:54 +0800179 ("arm/mps2/an519", "*", "3", "*", "*", "*", "*", "*", "*"),
180 ("arm/mps3/an524", "*", "3", "*", "*", "*", "*", "*", "*"),
181 ("arm/musca_s1", "*", "3", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800182 ]
183
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100184# Configure build manager to build several combinations
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800185# Config group for per-patch job
186config_pp_test = {"seed_params": {
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800187 # AN519_ARMCLANG_IPC_1_REG_Debug_BL2
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800188 "tfm_platform": ["arm/mps2/an519"],
189 "compiler": ["ARMCLANG_6_13"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800190 "isolation_level": ["1"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800191 "test_regression": [True],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800192 "test_psa_api": ["OFF"],
193 "cmake_build_type": ["Debug"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800194 "with_bl2": [True],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800195 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800196 "extra_params": [""]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800197 },
198 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800199 "valid": [
Summer Qin379abb62022-10-08 16:41:54 +0800200 # AN519_ARMCLANG_2_REG_Release_BL2
201 ("arm/mps2/an519", "ARMCLANG_6_13", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800202 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800203 # AN519_GCC_1_REG_Debug_BL2
204 ("arm/mps2/an519", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800205 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800206 # AN519_GCC_2_REG_Release_BL2
207 ("arm/mps2/an519", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800208 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800209 # AN519_GCC_1_REG_Debug_BL2
210 ("arm/mps2/an519", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800211 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800212 # AN521_ARMCLANG_1_REG_Debug_BL2_SMALL_PSOFF
213 ("arm/mps2/an521", "ARMCLANG_6_13", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800214 True, "OFF", "Debug", True, "profile_small", "PSOFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800215 # AN521_ARMCLANG_1_REG_Debug_BL2
216 ("arm/mps2/an521", "ARMCLANG_6_13", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800217 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800218 # AN521_ARMCLANG_2_REG_Release_BL2
219 ("arm/mps2/an521", "ARMCLANG_6_13", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800220 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800221 # AN521_ARMCLANG_3_REG_Minsizerel_BL2
222 ("arm/mps2/an521", "ARMCLANG_6_13", "3",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800223 True, "OFF", "Minsizerel", True, "", ""),
Xinyu Zhang9ac71532022-11-21 17:42:33 +0800224 # AN521_ARMCLANG_1_REG_Debug_BL2_SMALL_PSOFF
Summer Qin379abb62022-10-08 16:41:54 +0800225 ("arm/mps2/an521", "ARMCLANG_6_13", "1",
Xinyu Zhang9ac71532022-11-21 17:42:33 +0800226 True, "OFF", "Debug", True, "profile_small", "PSOFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800227 # AN521_GCC_1_REG_Debug_BL2
228 ("arm/mps2/an521", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800229 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800230 # AN521_GCC_2_Debug_BL2_MEDIUM
231 ("arm/mps2/an521", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800232 False, "OFF", "Debug", True, "profile_medium", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800233 # AN521_GCC_2_REG_Release_BL2
234 ("arm/mps2/an521", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800235 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800236 # AN521_GCC_3_REG_Minsizerel_BL2
237 ("arm/mps2/an521", "GCC_10_3", "3",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800238 True, "OFF", "Minsizerel", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800239 # AN521_GCC_1_REG_Debug_BL2
240 ("arm/mps2/an521", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800241 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800242 # AN552_GNUARM_1_REG_Debug_BL2
243 ("arm/mps3/an552", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800244 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800245 # AN552_GNUARM_1_REG_Release_BL2
246 ("arm/mps3/an552", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800247 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800248 # MUSCA_B1_GCC_1_REG_Minsizerel_BL2
249 ("arm/musca_b1", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800250 True, "OFF", "Minsizerel", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800251 # MUSCA_S1_ARMCLANG_2_REG_Release_BL2
252 ("arm/musca_s1", "ARMCLANG_6_13", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800253 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800254 # MUSCA_S1_GCC_1_REG_Debug_BL2
255 ("arm/musca_s1", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800256 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800257 # MUSCA_S1_GCC_2_REG_Release_BL2
258 ("arm/musca_s1", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800259 True, "OFF", "Release", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800260 # MUSCA_S1_GCC_1_REG_Debug_BL2
261 ("arm/musca_s1", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800262 True, "OFF", "Debug", True, "", ""),
Summer Qin379abb62022-10-08 16:41:54 +0800263 # MUSCA_S1_GCC_1_REG_Release_BL2_CC_DRIVER_PSA
264 ("arm/musca_s1", "GCC_10_3", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800265 True, "OFF", "Release", True, "", "CC_DRIVER_PSA"),
Jamie Foxd7438d92022-11-21 17:42:01 +0000266 # RSS_TC_GCC_2_Release_BL2_PSOFF
267 ("arm/rss/tc", "GCC_10_3", "2",
268 False, "OFF", "Release", True, "", "PSOFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800269 # stm32l562e_dk_ARMCLANG_1_REG_Release_BL2
270 ("stm/stm32l562e_dk", "ARMCLANG_6_13", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800271 True, "OFF", "Release", True, "", "CRYPTO_OFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800272 # stm32l562e_dk_GCC_2_REG_Release_BL2
273 ("stm/stm32l562e_dk", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800274 False, "OFF", "Release", True, "", "CRYPTO_ON"),
Summer Qin379abb62022-10-08 16:41:54 +0800275 # stm32l562e_dk_GCC_3_REG_Release_BL2
276 ("stm/stm32l562e_dk", "GCC_10_3", "3",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800277 True, "OFF", "Release", True, "", "CRYPTO_OFF"),
Summer Qin379abb62022-10-08 16:41:54 +0800278 # psoc64_GCC_2_REG_Release
279 ("cypress/psoc64", "GCC_10_3", "2",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800280 True, "OFF", "Release", False, "", ""),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800281 ],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800282 "invalid": _common_tfm_invalid_configs + []
283 }
284
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800285# Config group for nightly job
286config_nightly_test = {"seed_params": {
287 "tfm_platform": ["arm/mps2/an519",
288 "arm/mps2/an521",
289 "arm/mps3/an524",
290 "arm/musca_s1",
Mark Horvathef57baa2022-09-12 13:36:36 +0200291 "arm/musca_b1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800292 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800293 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800294 "test_regression": [True, False],
295 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800296 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800297 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800298 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800299 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100300 },
301 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800302 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100303 }
304
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800305# Config group for release job
306config_release_test = {"seed_params": {
307 "tfm_platform": ["arm/mps2/an519",
308 "arm/mps2/an521",
309 "arm/mps3/an524",
Mark Horvathef57baa2022-09-12 13:36:36 +0200310 "arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800311 "arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800312 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800313 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800314 "test_regression": [True, False],
315 "test_psa_api": ["OFF"],
316 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800317 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800318 "profile": [""],
David Vinczed78e2622022-11-24 15:04:00 +0100319 "extra_params": ["TEST_CBOR"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800320 },
321 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800322 "valid": [
323 # sanity test for GCC v11.2
Summer Qin379abb62022-10-08 16:41:54 +0800324 # AN521_GCC_3_REG_Relwithdebinfo_BL2
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800325 ("arm/mps2/an521", "GCC_11_2",
Summer Qin379abb62022-10-08 16:41:54 +0800326 "3", True, "OFF", "Relwithdebinfo",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800327 True, "", ""),
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800328 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800329 "invalid": _common_tfm_invalid_configs + []
330 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800331
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800332# Config groups for TF-M features
333config_profile_s = {"seed_params": {
David Huda27ae72022-03-28 15:32:19 +0800334 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800335 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
David Huda27ae72022-03-28 15:32:19 +0800336 "isolation_level": ["1"],
337 "test_regression": [True, False],
338 "test_psa_api": ["OFF"],
339 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
David Huda27ae72022-03-28 15:32:19 +0800340 "with_bl2": [True],
David Huda27ae72022-03-28 15:32:19 +0800341 "profile": ["profile_small"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800342 "extra_params": ["PSOFF"]
David Huda27ae72022-03-28 15:32:19 +0800343 },
344 "common_params": _common_tfm_builder_cfg,
David Huda27ae72022-03-28 15:32:19 +0800345 "invalid": _common_tfm_invalid_configs + [
Summer Qin379abb62022-10-08 16:41:54 +0800346 ("arm/mps2/an519", "GCC_10_3", "*", "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800347 "*", "Minsizerel", "*", "*", "*")
David Huda27ae72022-03-28 15:32:19 +0800348 ]
349 }
350
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800351config_profile_m = {"seed_params": {
352 "tfm_platform": ["arm/mps2/an519",
353 "arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200354 "arm/musca_b1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800355 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800356 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800357 "test_regression": [True, False],
358 "test_psa_api": ["OFF"],
359 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800360 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800361 "profile": ["profile_medium"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800362 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800363 },
364 "common_params": _common_tfm_builder_cfg,
365 "invalid": _common_tfm_invalid_configs + []
366 }
367
David Hu3d333762022-10-27 18:12:33 +0800368config_profile_m_arotless = {"seed_params": {
369 "tfm_platform": ["arm/musca_b1"],
370 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
371 "isolation_level": ["1"],
372 "test_regression": [True, False],
373 "test_psa_api": ["OFF"],
374 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
375 "with_bl2": [True],
376 "profile": ["profile_medium_arotless"],
377 "extra_params": ["", "PSOFF"]
378 },
379 "common_params": _common_tfm_builder_cfg,
380 "invalid": _common_tfm_invalid_configs + []
381 }
382
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800383config_profile_l = {"seed_params": {
384 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800385 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800386 "isolation_level": ["3"],
387 "test_regression": [True, False],
388 "test_psa_api": ["OFF"],
389 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800390 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800391 "profile": ["profile_large"],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800392 "extra_params": ["", "PSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800393 },
394 "common_params": _common_tfm_builder_cfg,
395 "invalid": _common_tfm_invalid_configs + []
396 }
397
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800398config_ipc_backend = {"seed_params": {
399 "tfm_platform": ["arm/mps2/an519",
400 "arm/mps2/an521",
401 "arm/musca_s1",
402 "arm/musca_b1"],
403 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
404 "isolation_level": ["1"],
405 "test_regression": [True, False],
406 "test_psa_api": ["OFF"],
407 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
408 "with_bl2": [True],
409 "profile": [""],
410 "extra_params": ["IPC"]
411 },
412 "common_params": _common_tfm_builder_cfg,
413 "invalid": _common_tfm_invalid_configs + []
414 }
415
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800416config_cc_driver_psa = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200417 "tfm_platform": ["arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800418 "arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800419 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800420 "isolation_level": ["1"],
421 "test_regression": [True],
422 "test_psa_api": ["OFF"],
423 "cmake_build_type": ["Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800424 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800425 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800426 "extra_params": ["CC_DRIVER_PSA"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800427 },
428 "common_params": _common_tfm_builder_cfg,
429 "invalid": _common_tfm_invalid_configs + []
430 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100431
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800432config_fp = {"seed_params": {
Jianliang Shen9798e552022-11-21 12:55:42 +0800433 "tfm_platform": ["arm/mps2/an521",
434 "arm/mps3/an552"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800435 "compiler": ["GCC_10_3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800436 "isolation_level": ["1", "2"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800437 "test_regression": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800438 "test_psa_api": ["OFF"],
439 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800440 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800441 "profile": [""],
Mark Horvath93cb5fb2022-09-06 17:51:24 +0200442 "extra_params": ["FPOFF", "FPON", "FPON, LZOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800443 },
444 "common_params": _common_tfm_builder_cfg,
445 "invalid": _common_tfm_invalid_configs + []
446 }
Karl Zhangeffed972020-06-30 15:48:01 +0800447
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800448config_psa_api = {"seed_params": {
449 "tfm_platform": ["arm/mps2/an521",
Mark Horvathef57baa2022-09-12 13:36:36 +0200450 "arm/musca_b1",
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800451 "arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800452 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800453 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800454 "test_regression": [False],
455 "test_psa_api": ["IPC",
456 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800457 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800458 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800459 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800460 "with_bl2": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800461 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800462 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800463 },
464 "common_params": _common_tfm_builder_cfg,
Paul Sokolovsky75f67e82022-05-02 15:39:41 +0300465 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800466 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800467
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800468config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800469 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800470 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800471 "isolation_level": ["1", "2", "3"],
472 "test_regression": [True],
473 "test_psa_api": ["OFF"],
474 "cmake_build_type": ["Debug"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800475 "with_bl2": [True],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800476 "profile": [""],
Xinyu Zhang67612992021-12-20 14:11:27 +0800477 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800478 },
479 "common_params": _common_tfm_builder_cfg,
480 "invalid": _common_tfm_invalid_configs + []
481 }
482
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800483config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800484 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800485 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800486 "isolation_level": ["1"],
487 "test_regression": [True],
488 "test_psa_api": ["OFF"],
489 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800490 "with_bl2": [True],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800491 "profile": [""],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800492 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800493 },
494 "common_params": _common_tfm_builder_cfg,
495 "invalid": _common_tfm_invalid_configs + []
496 }
497
Bence Balogh79fda442022-10-14 18:01:37 +0200498# Config groups for TF-M examples
499config_example_vad = {"seed_params": {
500 "tfm_platform": ["arm/mps3/an552"],
501 "compiler": ["GCC_10_3"],
502 "isolation_level": ["2"],
503 "test_regression": [False],
504 "test_psa_api": ["OFF"],
505 "cmake_build_type": ["Release"],
506 "with_bl2": [True],
507 "profile": [""],
508 "extra_params": ["EXAMPLE_VAD"]
509 },
510 "common_params": _common_tfm_builder_cfg,
511 "invalid": _common_tfm_invalid_configs + []
512 }
513
514config_example_dma350_ns = {"seed_params": {
515 "tfm_platform": ["arm/mps3/corstone310/fvp"],
516 "compiler": ["GCC_10_3"],
517 "isolation_level": ["2"],
518 "test_regression": [False],
519 "test_psa_api": ["OFF"],
520 "cmake_build_type": ["Release"],
521 "with_bl2": [True],
522 "profile": [""],
523 "extra_params": ["EXAMPLE_DMA350_NS"]
524 },
525 "common_params": _common_tfm_builder_cfg,
526 "invalid": _common_tfm_invalid_configs + []
527 }
528
529config_example_dma350_s = {"seed_params": {
530 "tfm_platform": ["arm/mps3/corstone310/fvp"],
531 "compiler": ["GCC_10_3"],
532 "isolation_level": ["1"],
533 "test_regression": [False],
534 "test_psa_api": ["OFF"],
535 "cmake_build_type": ["Release"],
536 "with_bl2": [True],
537 "profile": [""],
538 "extra_params": ["EXAMPLE_DMA350_S"]
539 },
540 "common_params": _common_tfm_builder_cfg,
541 "invalid": _common_tfm_invalid_configs + []
542 }
543
544config_example_dma350_trigger = {"seed_params": {
545 "tfm_platform": ["arm/mps3/corstone310/fvp"],
546 "compiler": ["GCC_10_3"],
547 "isolation_level": ["2"],
548 "test_regression": [False],
549 "test_psa_api": ["OFF"],
550 "cmake_build_type": ["Release"],
551 "with_bl2": [True],
552 "profile": [""],
553 "extra_params": ["EXAMPLE_DMA350_TRIGGER"]
554 },
555 "common_params": _common_tfm_builder_cfg,
556 "invalid": _common_tfm_invalid_configs + []
557 }
558
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800559# Config groups for code coverage
560config_cov_profile_s = deepcopy(config_profile_s)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800561config_cov_profile_s["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800562config_cov_profile_s["seed_params"]["compiler"] = ["GCC_10_3"]
Xinyu Zhangbdc37e32022-04-06 17:47:44 +0800563
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800564config_cov_profile_m = deepcopy(config_profile_m)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800565config_cov_profile_m["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800566config_cov_profile_m["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800567
David Hu3d333762022-10-27 18:12:33 +0800568config_cov_profile_m_arotless = deepcopy(config_profile_m_arotless)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800569config_cov_profile_m_arotless["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
David Hu3d333762022-10-27 18:12:33 +0800570config_cov_profile_m_arotless["seed_params"]["compiler"] = ["GCC_10_3"]
571
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800572config_cov_profile_l = deepcopy(config_profile_l)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800573config_cov_profile_l["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800574config_cov_profile_l["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800575
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800576config_cov_ipc_backend = deepcopy(config_ipc_backend)
577config_cov_ipc_backend["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
578config_cov_ipc_backend["seed_params"]["compiler"] = ["GCC_10_3"]
579
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800580config_cov_nsce = deepcopy(config_nsce)
Xinyu Zhang778424e2023-02-27 11:39:57 +0800581config_cov_nsce["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
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 Zhang778424e2023-02-27 11:39:57 +0800585config_cov_mmio["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800586config_cov_mmio["seed_params"]["compiler"] = ["GCC_10_3"]
Karl Zhang14573bc2020-06-08 09:23:21 +0800587
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800588config_cov_fp = deepcopy(config_fp)
589config_cov_fp["seed_params"]["tfm_platform"] = ["arm/mps2/an521"]
Xinyu Zhang778424e2023-02-27 11:39:57 +0800590config_cov_fp["seed_params"]["compiler"] = ["GCC_10_3"]
Xinyu Zhang5f725ee2022-12-19 10:29:20 +0800591
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800592# Config groups for platforms
593config_an519 = {"seed_params": {
Xinyu Zhangf25856a2021-06-17 14:06:46 +0800594 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800595 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800596 "isolation_level": ["1", "2"],
597 "test_regression": [True, False],
598 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800599 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800600 "with_bl2": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800601 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800602 "extra_params": ["", "NSOFF"]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800603 },
604 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800605 "invalid": _common_tfm_invalid_configs + []
606 }
607
608config_an521 = {"seed_params": {
609 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800610 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800611 "isolation_level": ["1", "2", "3"],
612 "test_regression": [True, False],
613 "test_psa_api": ["OFF"],
614 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800615 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800616 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800617 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800618 },
619 "common_params": _common_tfm_builder_cfg,
620 "invalid": _common_tfm_invalid_configs + []
621 }
622
623config_an524 = {"seed_params": {
624 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800625 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800626 "isolation_level": ["1", "2"],
627 "test_regression": [True, False],
628 "test_psa_api": ["OFF"],
629 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800630 "with_bl2": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800631 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800632 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800633 },
634 "common_params": _common_tfm_builder_cfg,
635 "invalid": _common_tfm_invalid_configs + []
Xinyu Zhangb708f572020-09-15 11:43:46 +0800636 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000637
Xinyu Zhang38b76742021-11-11 13:57:56 +0800638config_an547 = {"seed_params": {
639 "tfm_platform": ["arm/mps3/an547"],
Bence Balogh176b78f2022-02-22 13:49:34 +0100640 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800641 "isolation_level": ["1"],
642 "test_regression": [False],
643 "test_psa_api": ["OFF"],
644 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800645 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800646 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800647 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800648 },
649 "common_params": _common_tfm_builder_cfg,
650 "invalid": _common_tfm_invalid_configs + []
651 }
652
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800653config_an552 = {"seed_params": {
654 "tfm_platform": ["arm/mps3/an552"],
655 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800656 "isolation_level": ["1", "2"],
657 "test_regression": [True, False],
658 "test_psa_api": ["OFF"],
659 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800660 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800661 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800662 "extra_params": [""]
663 },
664 "common_params": _common_tfm_builder_cfg,
665 "invalid": _common_tfm_invalid_configs + []
666 }
667
668config_musca_b1 = {"seed_params": {
Mark Horvathef57baa2022-09-12 13:36:36 +0200669 "tfm_platform": ["arm/musca_b1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800670 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800671 "isolation_level": ["1", "2", "3"],
672 "test_regression": [True, False],
673 "test_psa_api": ["OFF"],
674 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800675 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800676 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800677 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800678 },
679 "common_params": _common_tfm_builder_cfg,
680 "invalid": _common_tfm_invalid_configs + []
681 }
682
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800683config_musca_s1 = {"seed_params": {
684 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800685 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800686 "isolation_level": ["1", "2"],
687 "test_regression": [True, False],
688 "test_psa_api": ["OFF"],
689 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800690 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800691 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800692 "extra_params": ["", "NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800693 },
694 "common_params": _common_tfm_builder_cfg,
695 "invalid": _common_tfm_invalid_configs + []
696 }
697
Bence Balogh8731a092022-05-24 17:24:54 +0200698config_corstone310 = {"seed_params": {
Bence Balogh23d8fa72022-11-08 12:16:23 +0100699 "tfm_platform": ["arm/mps3/corstone310/fvp"],
Bence Balogh176b78f2022-02-22 13:49:34 +0100700 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800701 "isolation_level": ["1"],
702 "test_regression": [False],
703 "test_psa_api": ["OFF"],
704 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800705 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800706 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800707 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800708 },
709 "common_params": _common_tfm_builder_cfg,
710 "invalid": _common_tfm_invalid_configs + []
711 }
712
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100713config_rss = {"seed_params": {
Raef Coles0d405852022-10-21 10:52:50 +0100714 "tfm_platform": ["arm/rss/tc"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100715 "compiler": ["GCC_10_3"],
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100716 "isolation_level": ["1", "2"],
717 "test_regression": [True, False],
718 "test_psa_api": ["OFF"],
719 "cmake_build_type": ["Debug", "Release"],
720 "with_bl2": [True],
721 "profile": [""],
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800722 "extra_params": ["PSOFF"]
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100723 },
724 "common_params": _common_tfm_builder_cfg,
Jamie Fox9e2c2352023-01-13 15:11:23 +0000725 "invalid": _common_tfm_invalid_configs + [
726 # BL2 is too large for RSS in Debug builds with tests
727 ("arm/rss/tc", "GCC_10_3", "*", True, "*",
728 "Debug", True, "*", "*"),
729 ]
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100730 }
731
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800732config_psoc64 = {"seed_params": {
733 "tfm_platform": ["cypress/psoc64"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800734 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800735 "isolation_level": ["1", "2"],
736 "test_regression": [True],
737 "test_psa_api": ["OFF"],
738 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800739 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800740 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800741 "extra_params": [""]
742 },
743 "common_params": _common_tfm_builder_cfg,
744 "invalid": _common_tfm_invalid_configs + []
745 }
746
747config_corstone1000 = {"seed_params": {
748 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800749 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800750 "isolation_level": ["1"],
Satish Kumar1cfdd912022-08-01 09:24:07 +0100751 "test_regression": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800752 "test_psa_api": ["OFF"],
753 "cmake_build_type": ["Debug"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800754 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800755 "profile": [""],
Xinyu Zhangfc061dd2022-07-26 14:52:56 +0800756 "extra_params": ["S_PS_OFF, FVP", "FPGA"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800757 },
758 "common_params": _common_tfm_builder_cfg,
759 "invalid": _common_tfm_invalid_configs + []
760 }
761
762config_stm32l562e_dk = {"seed_params": {
763 "tfm_platform": ["stm/stm32l562e_dk"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800764 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800765 "isolation_level": ["1", "2", "3"],
766 "test_regression": [True, False],
767 "test_psa_api": ["OFF"],
768 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800769 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800770 "profile": [""],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800771 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
772 },
773 "common_params": _common_tfm_builder_cfg,
774 "invalid": _common_tfm_invalid_configs + [
Summer Qin379abb62022-10-08 16:41:54 +0800775 # Oversize issue on config stm32l562e_dk_ARMCLANG_1_REG_Release_BL2
776 ("stm/stm32l562e_dk", "ARMCLANG_6_13", "1",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800777 True, "OFF", "Release", True, "", "*"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800778 # all other tests are off when CRYPTO is ON
Summer Qin379abb62022-10-08 16:41:54 +0800779 ("stm/stm32l562e_dk", "*", "*", True, "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800780 "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800781 # all other tests are ON when CRYPTO is OFF
Summer Qin379abb62022-10-08 16:41:54 +0800782 ("stm/stm32l562e_dk", "*", "*", False, "*",
Xinyu Zhangdf88e302022-09-19 11:27:57 +0800783 "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800784 ]
785 }
786
787config_b_u585i_iot02a = {"seed_params": {
788 "tfm_platform": ["stm/b_u585i_iot02a"],
Arthur She026ebb62023-02-08 18:47:39 -0800789 "compiler": ["GCC_10_3", "ARMCLANG_6_13"],
790 "isolation_level": ["1", "2"],
791 "test_regression": [True, False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800792 "test_psa_api": ["OFF"],
793 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800794 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800795 "profile": [""],
Arthur She026ebb62023-02-08 18:47:39 -0800796 "extra_params": [""]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800797 },
798 "common_params": _common_tfm_builder_cfg,
799 "invalid": _common_tfm_invalid_configs + []
800 }
801
802config_nucleo_l552ze_q = {"seed_params": {
803 "tfm_platform": ["stm/nucleo_l552ze_q"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800804 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800805 "isolation_level": ["1"],
806 "test_regression": [False],
807 "test_psa_api": ["OFF"],
808 "cmake_build_type": ["Release"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800809 "with_bl2": [True],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800810 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800811 "extra_params": ["NSOFF"]
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800812 },
813 "common_params": _common_tfm_builder_cfg,
814 "invalid": _common_tfm_invalid_configs + []
815 }
816
817config_lpcxpresso55s69 = {"seed_params": {
818 "tfm_platform": ["nxp/lpcxpresso55s69"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800819 "compiler": ["GCC_10_3"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800820 "isolation_level": ["2"],
821 "test_regression": [True, False],
822 "test_psa_api": ["OFF"],
823 "cmake_build_type": ["Relwithdebinfo"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800824 "with_bl2": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800825 "profile": ["profile_medium"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800826 "extra_params": [""]
827 },
828 "common_params": _common_tfm_builder_cfg,
829 "invalid": _common_tfm_invalid_configs + []
830 }
831
Xinyu Zhang38b76742021-11-11 13:57:56 +0800832config_bl5340 = {"seed_params": {
833 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800834 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800835 "isolation_level": ["1"],
836 "test_regression": [False],
837 "test_psa_api": ["OFF"],
838 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800839 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800840 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800841 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800842 },
843 "common_params": _common_tfm_builder_cfg,
844 "invalid": _common_tfm_invalid_configs + []
845 }
846
847config_nrf5340dk = {"seed_params": {
848 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800849 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800850 "isolation_level": ["1"],
851 "test_regression": [False],
852 "test_psa_api": ["OFF"],
853 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800854 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800855 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800856 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800857 },
858 "common_params": _common_tfm_builder_cfg,
859 "invalid": _common_tfm_invalid_configs + []
860 }
861
862config_nrf9160dk = {"seed_params": {
863 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800864 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800865 "isolation_level": ["1"],
866 "test_regression": [False],
867 "test_psa_api": ["OFF"],
868 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800869 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800870 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800871 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800872 },
873 "common_params": _common_tfm_builder_cfg,
874 "invalid": _common_tfm_invalid_configs + []
875 }
876
877config_m2351 = {"seed_params": {
878 "tfm_platform": ["nuvoton/m2351"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800879 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800880 "isolation_level": ["1"],
881 "test_regression": [False],
882 "test_psa_api": ["OFF"],
883 "cmake_build_type": ["Release"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800884 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800885 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800886 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800887 },
888 "common_params": _common_tfm_builder_cfg,
889 "invalid": _common_tfm_invalid_configs + []
890 }
891
892config_m2354 = {"seed_params": {
893 "tfm_platform": ["nuvoton/m2354"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800894 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800895 "isolation_level": ["1"],
896 "test_regression": [False],
897 "test_psa_api": ["OFF"],
898 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800899 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800900 "profile": [""],
Xinyu Zhangfb80b5d2022-07-26 15:42:26 +0800901 "extra_params": ["NSOFF"]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800902 },
903 "common_params": _common_tfm_builder_cfg,
904 "invalid": _common_tfm_invalid_configs + []
905 }
906
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800907# Config groups for debug
908config_debug = {"seed_params": {
909 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang16a218e2022-10-11 17:21:39 +0800910 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800911 "isolation_level": ["1"],
912 "test_regression": [False],
913 "test_psa_api": ["OFF"],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800914 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800915 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800916 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800917 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800918 },
919 "common_params": _common_tfm_builder_cfg,
920 "invalid": _common_tfm_invalid_configs + []
921 }
922
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800923config_debug_regr = deepcopy(config_debug)
924config_debug_regr["seed_params"]["test_regression"] = [True]
925
926config_debug_PSA_API = {"seed_params": {
927 "tfm_platform": ["arm/mps2/an521"],
928 "compiler": ["ARMCLANG_6_13"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800929 "isolation_level": ["1"],
930 "test_regression": [False],
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800931 "test_psa_api": ["CRYPTO",
932 "INITIAL_ATTESTATION",
933 "STORAGE",
934 "IPC"],
935 "cmake_build_type": ["Debug"],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800936 "with_bl2": [True],
Xinyu Zhang38b76742021-11-11 13:57:56 +0800937 "profile": [""],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800938 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +0800939 },
940 "common_params": _common_tfm_builder_cfg,
941 "invalid": _common_tfm_invalid_configs + []
942 }
943
Karl Zhangaff558a2020-05-15 14:28:23 +0100944_builtin_configs = {
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800945 # per-patch test groups
946 "pp_test": config_pp_test,
947 "pp_corstone1000": config_corstone1000,
Karl Zhang14573bc2020-06-08 09:23:21 +0800948
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800949 # nightly test groups
950 "nightly_test": config_nightly_test,
951 "nightly_profile_s": config_profile_s,
952 "nightly_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +0800953 "nightly_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800954 "nightly_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800955 "nightly_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800956 "nightly_cc_driver_psa": config_cc_driver_psa,
957 "nightly_fp":config_fp,
958 "nightly_psa_api": config_psa_api,
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800959 "nightly_nsce": config_nsce,
960 "nightly_mmio": config_mmio,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800961 "nightly_an547": config_an547,
962 "nightly_an552": config_an552,
Bence Balogh8731a092022-05-24 17:24:54 +0200963 "nightly_corstone310": config_corstone310,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800964 "nightly_corstone1000": config_corstone1000,
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100965 "nightly_rss": config_rss,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800966 "nightly_psoc64": config_psoc64,
967 "nightly_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -0800968 "nightly_b_u585i_iot02a": config_b_u585i_iot02a,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800969 "nightly_lpcxpresso55s69": config_lpcxpresso55s69,
Karl Zhang14573bc2020-06-08 09:23:21 +0800970
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800971 # release test groups
972 "release_test": config_release_test,
973 "release_profile_s": config_profile_s,
974 "release_profile_m": config_profile_m,
David Hu3d333762022-10-27 18:12:33 +0800975 "release_profile_m_arotless": config_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800976 "release_profile_l": config_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800977 "release_ipc_backend": config_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800978 "release_cc_driver_psa": config_cc_driver_psa,
979 "release_fp": config_fp,
980 "release_psa_api": config_psa_api,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800981 "release_nsce": config_nsce,
982 "release_mmio": config_mmio,
983 "release_an547": config_an547,
984 "release_an552": config_an552,
Bence Balogh8731a092022-05-24 17:24:54 +0200985 "release_corstone310": config_corstone310,
Jamie Foxf3b8aa82022-09-08 11:52:01 +0100986 "release_rss": config_rss,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800987 "release_psoc64": config_psoc64,
988 "release_stm32l562e_dk": config_stm32l562e_dk,
Arthur She026ebb62023-02-08 18:47:39 -0800989 "release_b_u585i_iot02a": config_b_u585i_iot02a,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800990 "release_lpcxpresso55s69": config_lpcxpresso55s69,
Karl Zhang14573bc2020-06-08 09:23:21 +0800991
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800992 # code coverage test groups
993 "coverage_profile_s": config_cov_profile_s,
994 "coverage_profile_m": config_cov_profile_m,
David Hu3d333762022-10-27 18:12:33 +0800995 "coverage_profile_m_arotless": config_cov_profile_m_arotless,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800996 "coverage_profile_l": config_cov_profile_l,
Xinyu Zhang88b965c2022-11-21 17:50:33 +0800997 "coverage_ipc_backend": config_cov_ipc_backend,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +0800998 "coverage_nsce": config_cov_nsce,
999 "coverage_mmio": config_cov_mmio,
Xinyu Zhang5f725ee2022-12-19 10:29:20 +08001000 "coverage_fp": config_cov_fp,
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001001
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001002 # platform groups
1003 "an521": config_an521,
1004 "an519": config_an519,
1005 "an524": config_an524,
1006 "an547": config_an547,
1007 "an552": config_an552,
1008 "musca_b1": config_musca_b1,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001009 "musca_s1": config_musca_s1,
Bence Balogh8731a092022-05-24 17:24:54 +02001010 "corstone310": config_corstone310,
Jamie Foxf3b8aa82022-09-08 11:52:01 +01001011 "rss": config_rss,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001012 "cypress_psoc64": config_psoc64,
1013 "corstone1000": config_corstone1000,
1014 "stm_stm32l562e_dk": config_stm32l562e_dk,
1015 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1016 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1017 "nxp_lpcxpresso55s69": config_lpcxpresso55s69,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001018 "laird_bl5340": config_bl5340,
1019 "nordic_nrf5340dk": config_nrf5340dk,
1020 "nordic_nrf9160dk": config_nrf9160dk,
1021 "nuvoton_m2351": config_m2351,
1022 "nuvoton_m2354": config_m2354,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001023
Bence Balogh79fda442022-10-14 18:01:37 +02001024 # config groups for tf-m-extras examples
1025 "example_vad": config_example_vad,
1026 "example_dma350_trigger": config_example_dma350_trigger,
1027 "example_dma350_ns": config_example_dma350_ns,
1028 "example_dma350_s": config_example_dma350_s,
1029
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001030 # config groups for debug
Dean Birch4c6ad622020-03-13 11:28:03 +00001031 "debug": config_debug,
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001032 "debug_regr": config_debug_regr,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001033 "debug_PSA_API": config_debug_PSA_API,
Xinyu Zhang0aebb3d2022-04-11 18:27:12 +08001034 }
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001035
1036if __name__ == '__main__':
1037 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001038
Minos Galanakisea421232019-06-20 17:11:28 +01001039 # Default behavior is to export refference config when called
1040 _dir = os.getcwd()
1041 from utils import save_json
1042 for _cname, _cfg in _builtin_configs.items():
1043 _fname = os.path.join(_dir, _cname + ".json")
1044 print("Exporting config %s" % _fname)
1045 save_json(_fname, _cfg)