blob: 08f4bf6528efa36d9281795306a634e88361b13b [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/*
Xinyu Zhangeb442a12021-02-01 15:16:19 +080011 * Copyright (c) 2018-2021, 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
Minos Galanakisea421232019-06-20 17:11:28 +010022# common parameters for tf-m build system
23# This configuration template will be passed into the tfm-builder module after
24# the template evaluation is converted to a command
25
26_common_tfm_builder_cfg = {
27 "config_type": "tf-m",
28 "codebase_root_dir": "tf-m",
29 # Order to which the variants are evaluated. This affects the name of
30 # variant configuration and the wildcard replacement logic in invalid
31 # configuration tuples
Xinyu Zhangb708f572020-09-15 11:43:46 +080032 "sort_order": ["tfm_platform",
33 "toolchain_file",
Xinyu Zhang73ed2992021-09-15 11:38:23 +080034 "lib_model",
Xinyu Zhangb708f572020-09-15 11:43:46 +080035 "isolation_level",
36 "test_regression",
37 "test_psa_api",
Minos Galanakisea421232019-06-20 17:11:28 +010038 "cmake_build_type",
Xinyu Zhangb708f572020-09-15 11:43:46 +080039 "with_otp",
40 "with_bl2",
41 "with_ns",
Xinyu Zhang9fd74242020-10-22 11:30:50 +080042 "profile",
43 "partition_ps"],
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 Zhangb708f572020-09-15 11:43:46 +080048 "config_template": "cmake " + \
49 "-DTFM_PLATFORM=%(tfm_platform)s " + \
Fathi Boudra324fee72020-11-20 10:31:12 +010050 "-DTFM_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(toolchain_file)s " + \
Xinyu Zhang73ed2992021-09-15 11:38:23 +080051 "-DTFM_LIB_MODEL=%(lib_model)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080052 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
53 "-DTEST_NS=%(test_regression)s -DTEST_S=%(test_regression)s " + \
54 "-DTEST_PSA_API=%(test_psa_api)s " + \
55 "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \
56 "-DCRYPTO_HW_ACCELERATOR_OTP_STATE=%(with_otp)s " + \
57 "-DBL2=%(with_bl2)s " + \
58 "-DNS=%(with_ns)s " + \
59 "-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 " + \
63 "-DTFM_PROFILE=%(profile)s " + \
Xinyu Zhangb5bbb692020-10-26 10:14:33 +080064 "-DTFM_PARTITION_PROTECTED_STORAGE=%(partition_ps)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080065 "%(codebase_root_dir)s",
Karl Zhangaff558a2020-05-15 14:28:23 +010066
Minos Galanakisea421232019-06-20 17:11:28 +010067 # A small subset of string substitution params is allowed in commands.
68 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
69 # _tbm_target_platform_ with the paths set when building
70
Xinyu Zhangb708f572020-09-15 11:43:46 +080071 "artifact_capture_rex": (r'%(_tbm_build_dir_)s/bin'
Minos Galanakisea421232019-06-20 17:11:28 +010072 r'/(\w+\.(?:axf|bin|hex))$'),
73
74 # ALL commands will be executed for every build.
75 # Other keys will append extra commands when matching target_platform
Fathi Boudra83e4f292020-12-04 22:33:40 +010076 "build_cmds": {"all": ["cmake --build ./ -- install"],
Summer Qin3c2b5722021-05-26 10:43:45 +080077 "arm/musca_b1/sse_200": [("srec_cat "
Mark Horvath8d281cd2020-12-07 15:20:26 +010078 "%(_tbm_build_dir_)s/bin/"
79 "bl2.bin "
80 "-Binary -offset 0xA000000 "
81 "-fill 0xFF 0xA000000 0xA020000 "
82 "%(_tbm_build_dir_)s/bin/"
83 "tfm_s_ns_signed.bin "
84 "-Binary -offset 0xA020000 "
85 "-fill 0xFF 0xA020000 0xA200000 "
86 "-o %(_tbm_build_dir_)s/bin/"
87 "tfm.hex -Intel")],
Summer Qin3c2b5722021-05-26 10:43:45 +080088 "arm/musca_s1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080089 "%(_tbm_build_dir_)s/bin/"
90 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +080091 "-Binary -offset 0xA000000 "
Raef Coles543aab32020-12-03 11:12:02 +000092 "-fill 0xFF 0xA000000 0xA020000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080093 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080094 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +000095 "-Binary -offset 0xA020000 "
96 "-fill 0xFF 0xA020000 0xA200000 "
97 "-o %(_tbm_build_dir_)s/bin/"
Arthur She19c0e1a2021-06-02 11:06:19 -070098 "tfm.hex -Intel")],
99 "stm/stm32l562e_dk": [("echo 'STM32L562E-DK board post process';"
100 "%(_tbm_build_dir_)s/postbuild.sh;"
101 "pushd %(_tbm_build_dir_)s;"
Arthur She07c91b52021-07-15 15:03:10 -0700102 "BIN_FILES=$(grep -o '\/.*\.bin' TFM_UPDATE.sh | sed 's/^/bin/');"
103 "tar jcf ./bin/stm32l562e-dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh ${BIN_FILES};"
104 "popd")]
Minos Galanakisea421232019-06-20 17:11:28 +0100105 },
106
107 # (Optional) If set will fail if those artefacts are missing post build
108 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800109 "%(_tbm_build_dir_)s/bin/"
110 "tfm_s.bin",
111 "%(_tbm_build_dir_)s/bin/"
112 "tfm_ns.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800113 "arm/musca_b1/sse_200": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800114 "%(_tbm_build_dir_)s/bin/"
115 "tfm.hex",
116 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800117 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800118 "%(_tbm_build_dir_)s/bin/"
119 "tfm_sign.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800120 "arm/musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800121 "%(_tbm_build_dir_)s/bin/"
122 "tfm.hex",
123 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800124 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800125 "%(_tbm_build_dir_)s/bin/"
126 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100127 }
128}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100129
Xinyu Zhangb708f572020-09-15 11:43:46 +0800130# List of all build configs that are impossible under all circumstances
131_common_tfm_invalid_configs = [
Xinyu Zhang459a1982021-07-21 22:34:49 +0800132 # LR_CODE size exceeds limit on MUSCA_B1 & MUSCA_S1 with regression tests in Debug mode built with ARMCLANG
133 ("arm/musca_b1/sse_200", "toolchain_ARMCLANG.cmake", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*"),
134 ("arm/musca_s1", "toolchain_ARMCLANG.cmake", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800135 # Load range overlap on Musca for IPC Debug type: T895
Summer Qin3c2b5722021-05-26 10:43:45 +0800136 ("arm/musca_b1/sse_200", "toolchain_ARMCLANG.cmake", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*"),
137 ("arm/musca_s1", "toolchain_ARMCLANG.cmake", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800138 # LVL2 and LVL3 requires IPC model
139 ("*", "*", True, "2", "*", "*", "*", "*", "*", "*", "*", "*"),
140 ("*", "*", True, "3", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800141 # Regression requires NS
142 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800143 # psoc64 requires IPC model
144 ("cypress/psoc64", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800145 # No PSA_ACK with regression
146 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*", "*"),
147 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800148 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang39acb412021-07-09 20:35:19 +0800149 ("*", "*", "*", "*", True, "STORAGE", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800150 # PSA_ACK requires NS
151 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*", "*"),
152 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800153 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*", "*"),
Xinyu Zhang39acb412021-07-09 20:35:19 +0800154 ("*", "*", "*", "*", "*", "STORAGE", "*", "*", "*", False, "*", "*"),
Xinyu Zhang3227da42021-03-19 17:37:17 +0800155 # PSA_ACK does not support LVL3
156 ("*", "*", "*", "3", "*", "IPC", "*", "*", "*", "*", "*", "*"),
157 ("*", "*", "*", "3", "*", "CRYPTO", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang3227da42021-03-19 17:37:17 +0800158 ("*", "*", "*", "3", "*", "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang39acb412021-07-09 20:35:19 +0800159 ("*", "*", "*", "3", "*", "STORAGE", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800160 # Musca requires BL2
Summer Qin3c2b5722021-05-26 10:43:45 +0800161 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
162 ("arm/musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800163 # psoc64 cannot use BL2
164 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800165 # psoc64 does not support Debug build type
166 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800167 # Musca b1 does not support Profile S
Summer Qin3c2b5722021-05-26 10:43:45 +0800168 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800169 # Musca B1 Secure Enclave requires IPC model, BL2, and supports only Isolation Level 1
170 ("arm/musca_b1/secure_enclave", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800171 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
172 ("arm/musca_b1/secure_enclave", "*", "*", "2", "*", "*", "*", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100173 # Musca B1 Secure Enclave does not support tests, profiles, NS side building
Summer Qin3c2b5722021-05-26 10:43:45 +0800174 ("arm/musca_b1/secure_enclave", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*"),
175 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "IPC", "*", "*", "*", "*", "*", "*"),
176 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800177 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang39acb412021-07-09 20:35:19 +0800178 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "STORAGE", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800179 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
180 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
181 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", True, "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800182 # PARTITION_PS could be OFF only for Profile S and M
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800183 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800184 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "OFF"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800185 # PARTITION_PS should be OFF for Profile S
186 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800187 # Proile M only support for IPC model
188 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800189 # Profile M only support for Isolation Level 2
190 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
Xinyu Zhange8de4512020-11-13 10:37:56 +0800191 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800192 # Profile L only support for Isolation Level 3
193 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_large", "*"),
194 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_large", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800195 # Profile S does not support IPC model
196 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800197 # Profile S only supports Isolation Level 2
198 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800199 # Only AN521 and MUSCA_B1 support Isolation Level 3
Summer Qin3c2b5722021-05-26 10:43:45 +0800200 ("arm/mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
201 ("arm/mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
202 ("arm/musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800203 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800204 ("arm/musca_b1/secure_enclave", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700205 # stm/stm32l562e_dk uses BL2
206 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
207 # stm/stm32l562e_dk does not support Debug build type
208 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700209 # nxp/lpcxpresso55s69 only build with GCC
210 ("nxp/lpcxpresso55s69", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
211 # nxp/lpcxpresso55s69 only build Profile M
212 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
213 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*"),
214 # nxp/lpcxpresso55s69 have to turn off BL2 when build regression test
215 ("nxp/lpcxpresso55s69", "*", "*", "*", "True", "*", "*", "*", "True", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800216 ]
217
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100218# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100219config_AN524 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800220 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800221 "toolchain_file": ["toolchain_GNUARM.cmake",
222 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800223 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800224 "isolation_level": ["1", "2"],
225 "test_regression": [True, False],
226 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100227 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800228 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800229 "with_bl2": [True, False],
230 "with_ns": [True, False],
231 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800232 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100233 },
234 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800235 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100236 }
237
Karl Zhangaff558a2020-05-15 14:28:23 +0100238config_AN521 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800239 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800240 "toolchain_file": ["toolchain_GNUARM.cmake",
241 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800242 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800243 "isolation_level": ["1", "2"],
244 "test_regression": [True, False],
245 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100246 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800247 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800248 "with_bl2": [True, False],
249 "with_ns": [True, False],
250 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800251 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100252 },
253 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800254 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100255 }
256
Karl Zhangaff558a2020-05-15 14:28:23 +0100257config_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800258 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
259 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800260 "toolchain_file": ["toolchain_GNUARM.cmake",
261 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800262 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800263 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800264 "test_regression": [False],
265 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800266 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800267 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100268 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800269 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800270 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800271 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800272 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800273 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100274 },
275 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800276 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100277 }
278
Karl Zhangaff558a2020-05-15 14:28:23 +0100279config_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800280 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
281 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800282 "toolchain_file": ["toolchain_GNUARM.cmake",
283 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800284 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800285 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800286 "test_regression": [False],
287 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100288 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800289 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800290 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800291 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800292 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800293 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100294 },
295 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800296 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100297 }
298
Karl Zhangaff558a2020-05-15 14:28:23 +0100299config_PSA_API_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800300 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800301 "toolchain_file": ["toolchain_GNUARM.cmake",
302 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800303 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800304 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800305 "test_regression": [False],
306 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800307 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800308 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100309 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800310 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800311 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800312 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800313 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800314 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100315 },
316 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800317 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100318 }
Minos Galanakisea421232019-06-20 17:11:28 +0100319
Xinyu Zhangb708f572020-09-15 11:43:46 +0800320config_PSA_FF_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800321 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800322 "toolchain_file": ["toolchain_GNUARM.cmake",
323 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800324 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800325 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800326 "test_regression": [False],
327 "test_psa_api": ["IPC"],
328 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800329 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800330 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800331 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800332 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800333 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800334 },
335 "common_params": _common_tfm_builder_cfg,
336 "invalid": _common_tfm_invalid_configs + []
337 }
338
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800339config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800340 "tfm_platform": ["cypress/psoc64"],
341 "toolchain_file": ["toolchain_GNUARM.cmake",
342 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800343 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800344 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800345 "test_regression": [True],
346 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800347 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800348 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800349 "with_bl2": [False],
350 "with_ns": [True, False],
351 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800352 "partition_ps": ["ON"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800353 },
354 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800355 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800356 }
357
Arthur She19c0e1a2021-06-02 11:06:19 -0700358config_STM32L562E_DK = {"seed_params": {
359 "tfm_platform": ["stm/stm32l562e_dk"],
360 "toolchain_file": ["toolchain_GNUARM.cmake",
361 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800362 "lib_model": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700363 "isolation_level": ["1", "2", "3"],
364 "test_regression": [True],
365 "test_psa_api": ["OFF"],
366 "cmake_build_type": ["Release"],
367 "with_otp": ["off"],
368 "with_bl2": [True],
369 "with_ns": [True],
370 "profile": [""],
371 "partition_ps": ["ON"],
372 },
373 "common_params": _common_tfm_builder_cfg,
374 "invalid": _common_tfm_invalid_configs + []
375 }
376
Arthur Shef3657742021-09-07 14:23:18 -0700377config_LPCXPRESSO55S69 = {"seed_params": {
378 "tfm_platform": ["nxp/lpcxpresso55s69"],
379 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800380 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700381 "isolation_level": ["2"],
382 "test_regression": [True, False],
383 "test_psa_api": ["OFF"],
384 "cmake_build_type": ["Relwithdebinfo"],
385 "with_otp": ["off"],
386 "with_bl2": [True, False],
387 "with_ns": [True],
388 "profile": ["profile_medium"],
389 "partition_ps": ["ON"],
390 },
391 "common_params": _common_tfm_builder_cfg,
392 "invalid": _common_tfm_invalid_configs + []
393 }
394
Xinyu Zhang6afdd612021-10-12 17:07:32 +0800395config_corstone1000 = {"seed_params": {
396 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800397 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800398 "lib_model": [False],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800399 "isolation_level": ["1"],
400 "test_regression": [False],
401 "test_psa_api": ["OFF"],
402 "cmake_build_type": ["Debug"],
403 "with_otp": ["off"],
404 "with_bl2": [True],
405 "with_ns": [False],
406 "profile": [""],
407 "partition_ps": ["ON"],
408 },
409 "common_params": _common_tfm_builder_cfg,
410 "invalid": _common_tfm_invalid_configs + []
411 }
412
Minos Galanakisea421232019-06-20 17:11:28 +0100413config_AN519 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800414 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800415 "toolchain_file": ["toolchain_GNUARM.cmake",
416 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800417 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800418 "isolation_level": ["1", "2"],
419 "test_regression": [True, False],
420 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100421 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800422 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800423 "with_bl2": [True, False],
424 "with_ns": [True, False],
425 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800426 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +0100427 },
428 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800429 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100430 }
431
Xinyu Zhangb708f572020-09-15 11:43:46 +0800432config_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800433 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
434 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800435 "toolchain_file": ["toolchain_GNUARM.cmake",
436 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800437 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800438 "isolation_level": ["1", "2"],
439 "test_regression": [True, False],
440 "test_psa_api": ["OFF"],
441 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800442 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800443 "with_bl2": [True, False],
444 "with_ns": [True, False],
445 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800446 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800447 },
Minos Galanakisea421232019-06-20 17:11:28 +0100448 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800449 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100450 }
451
Minos Galanakisea421232019-06-20 17:11:28 +0100452config_full = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800453 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
454 "arm/musca_b1/sse_200",
455 "arm/mps3/an524", "cypress/psoc64",
Arthur She19c0e1a2021-06-02 11:06:19 -0700456 "arm/musca_b1/secure_enclave",
Arthur Shef3657742021-09-07 14:23:18 -0700457 "stm/stm32l562e_dk",
458 "nxp/lpcxpresso55s69"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800459 "toolchain_file": ["toolchain_GNUARM.cmake",
460 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800461 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800462 "isolation_level": ["1", "2"],
463 "test_regression": [True, False],
464 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800465 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800466 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800467 "with_bl2": [True, False],
468 "with_ns": [True, False],
469 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800470 "partition_ps": ["ON"],
Dean Birchd6ce2c82020-05-13 13:16:15 +0100471 },
472 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800473 "invalid": _common_tfm_invalid_configs + [
474 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800475 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800476 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800477 "*", "*", "*", "*", True, True, "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800478 ("arm/mps2/an521", "*", "*", "*",
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800479 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800480 ("arm/mps2/an519", "*", "*", "*",
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800481 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800482 ("arm/musca_b1/sse_200", "*", "*", "*",
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800483 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800484 ("arm/mps3/an524", "*", "*", "*",
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800485 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800486 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800487 }
488
Karl Zhangaff558a2020-05-15 14:28:23 +0100489config_tfm_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800490 "tfm_platform": ["arm/mps2/an521",
491 "arm/musca_b1/sse_200", "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800492 "toolchain_file": ["toolchain_ARMCLANG.cmake",
493 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800494 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800495 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800496 "test_regression": [True, False],
497 "test_psa_api": ["OFF"],
498 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800499 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800500 "with_bl2": [True],
501 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800502 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800503 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800504 },
505 "common_params": _common_tfm_builder_cfg,
506 "invalid": _common_tfm_invalid_configs + []
507 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800508
Karl Zhangaff558a2020-05-15 14:28:23 +0100509config_tfm_test2 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800510 "tfm_platform": ["arm/mps2/an519", "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800511 "toolchain_file": ["toolchain_ARMCLANG.cmake",
512 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800513 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800514 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800515 "test_regression": [True, False],
516 "test_psa_api": ["OFF"],
517 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800518 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800519 "with_bl2": [True],
520 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800521 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800522 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800523 },
524 "common_params": _common_tfm_builder_cfg,
525 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800526 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800527 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800528 ]
529 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100530
Karl Zhang14573bc2020-06-08 09:23:21 +0800531config_tfm_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800532 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
533 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800534 "toolchain_file": ["toolchain_ARMCLANG.cmake",
535 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800536 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800537 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800538 "test_regression": [True, False],
539 "test_psa_api": ["OFF"],
540 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800541 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800542 "with_bl2": [True],
543 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800544 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800545 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800546 },
547 "common_params": _common_tfm_builder_cfg,
548 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800549 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800550 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800551 # Profile Large is only supported by AN521
Summer Qin3c2b5722021-05-26 10:43:45 +0800552 ("arm/mps2/an519", "*", "*",
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800553 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800554 ("arm/musca_b1/sse_200", "*", "*",
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800555 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800556 ]
557 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800558
Karl Zhangaff558a2020-05-15 14:28:23 +0100559config_tfm_test_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800560 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800561 "toolchain_file": ["toolchain_ARMCLANG.cmake",
562 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800563 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800564 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800565 "test_regression": [True, False],
566 "test_psa_api": ["OFF"],
567 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800568 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800569 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800570 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800571 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800572 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800573 },
574 "common_params": _common_tfm_builder_cfg,
575 "invalid": _common_tfm_invalid_configs + []
576 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100577
Minos Galanakisea421232019-06-20 17:11:28 +0100578config_MUSCA_B1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800579 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800580 "toolchain_file": ["toolchain_ARMCLANG.cmake",
581 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800582 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800583 "isolation_level": ["1", "2"],
584 "test_regression": [True, False],
585 "test_psa_api": ["OFF"],
586 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800587 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800588 "with_bl2": [True],
589 "with_ns": [True, False],
590 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800591 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800592 },
593 "common_params": _common_tfm_builder_cfg,
594 "invalid": _common_tfm_invalid_configs + []
595 }
Minos Galanakisea421232019-06-20 17:11:28 +0100596
Mark Horvath8d281cd2020-12-07 15:20:26 +0100597config_MUSCA_B1_SE = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800598 "tfm_platform": ["arm/musca_b1/secure_enclave"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100599 "toolchain_file": ["toolchain_ARMCLANG.cmake",
600 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800601 "lib_model": [False],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100602 "isolation_level": ["1"],
603 "test_regression": [False],
604 "test_psa_api": ["OFF"],
605 "cmake_build_type": ["Debug", "Release"],
606 "with_otp": ["off"],
607 "with_bl2": [True],
608 "with_ns": [False],
609 "profile": [""],
610 "partition_ps": ["ON"],
611 },
612 "common_params": _common_tfm_builder_cfg,
613 "invalid": _common_tfm_invalid_configs + []
614 }
615
Karl Zhangeffed972020-06-30 15:48:01 +0800616config_MUSCA_S1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800617 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800618 "toolchain_file": ["toolchain_ARMCLANG.cmake",
619 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800620 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800621 "isolation_level": ["1", "2"],
622 "test_regression": [True, False],
623 "test_psa_api": ["OFF"],
624 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800625 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800626 "with_bl2": [True],
627 "with_ns": [True, False],
628 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800629 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800630 },
631 "common_params": _common_tfm_builder_cfg,
632 "invalid": _common_tfm_invalid_configs + []
633 }
Karl Zhangeffed972020-06-30 15:48:01 +0800634
Karl Zhangaff558a2020-05-15 14:28:23 +0100635config_release = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800636 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
637 "arm/musca_b1/sse_200", "arm/musca_s1",
638 "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800639 "toolchain_file": ["toolchain_ARMCLANG.cmake",
640 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800641 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800642 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800643 "test_regression": [True, False],
644 "test_psa_api": ["OFF"],
645 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800646 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800647 "with_bl2": [True, False],
648 "with_ns": [True, False],
649 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800650 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800651 },
652 "common_params": _common_tfm_builder_cfg,
653 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800654 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800655 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800656 ]
657 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100658
659# Configure build manager to build several combinations
660config_AN521_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800661 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
662 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800663 "toolchain_file": ["toolchain_GNUARM.cmake",
664 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800665 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800666 "isolation_level": ["1", "2"],
667 "test_regression": [False],
668 "test_psa_api": ["IPC",
669 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800670 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800671 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800672 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800673 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800674 "with_bl2": [True],
675 "with_ns": [True, False],
676 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800677 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100678 },
679 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800680 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800681 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800682 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800683 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100684 }
685
Karl Zhangaff558a2020-05-15 14:28:23 +0100686config_AN521_PSA_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800687 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
688 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800689 "toolchain_file": ["toolchain_GNUARM.cmake",
690 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800691 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800692 "isolation_level": ["1", "2"],
693 "test_regression": [False],
694 "test_psa_api": ["IPC"],
695 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800696 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800697 "with_bl2": [True],
698 "with_ns": [True, False],
699 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800700 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100701 },
702 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800703 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800704 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800705 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800706 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100707 }
708
Karl Zhang14573bc2020-06-08 09:23:21 +0800709config_nightly = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800710 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
711 "arm/musca_b1/sse_200", "arm/musca_s1",
712 "arm/mps3/an524", "cypress/psoc64",
Arthur She19c0e1a2021-06-02 11:06:19 -0700713 "arm/musca_b1/secure_enclave",
714 "stm/stm32l562e_dk"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800715 "toolchain_file": ["toolchain_GNUARM.cmake",
716 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800717 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800718 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800719 "test_regression": [True, False],
720 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800721 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800722 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800723 "with_bl2": [True],
724 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800725 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800726 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800727 },
728 "common_params": _common_tfm_builder_cfg,
729 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800730 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800731 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800732 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800733 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800734 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800735 "*", "*", "*", "*", True, True, "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800736 ("arm/mps2/an521", "*", "*", "*",
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800737 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800738 ("arm/mps2/an519", "*", "*", "*",
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800739 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800740 ("arm/musca_b1/sse_200", "*", "*", "*",
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800741 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800742 ("arm/musca_s1", "*", "*", "*",
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800743 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800744 ("arm/mps3/an524", "*", "*", "*",
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800745 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800746 ]
747 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800748
Karl Zhang14573bc2020-06-08 09:23:21 +0800749config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800750 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
751 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800752 "toolchain_file": ["toolchain_ARMCLANG.cmake",
753 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800754 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800755 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800756 "test_regression": [True, False],
757 "test_psa_api": ["OFF"],
758 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800759 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800760 "with_bl2": [True],
761 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800762 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800763 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800764 },
765 "common_params": _common_tfm_builder_cfg,
766 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800767 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800768 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800769 # Profile Large is only supported by AN521
Summer Qin3c2b5722021-05-26 10:43:45 +0800770 ("arm/mps2/an519", "*", "*",
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800771 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800772 ("arm/musca_b1/sse_200", "*", "*",
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800773 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800774 ]
775 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800776
Karl Zhang14573bc2020-06-08 09:23:21 +0800777config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800778 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
779 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800780 "toolchain_file": ["toolchain_GNUARM.cmake",
781 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800782 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800783 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800784 "test_regression": [False],
785 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800786 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800787 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800788 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800789 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800790 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800791 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800792 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800793 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800794 },
795 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800796 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800797 }
798
Karl Zhang14573bc2020-06-08 09:23:21 +0800799config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800800 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
801 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800802 "toolchain_file": ["toolchain_GNUARM.cmake",
803 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800804 "lib_model": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800805 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800806 "test_regression": [False],
807 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800808 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800809 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800810 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800811 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800812 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800813 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800814 },
815 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800816 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800817 }
818
Karl Zhang14573bc2020-06-08 09:23:21 +0800819config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800820 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800821 "toolchain_file": ["toolchain_GNUARM.cmake",
822 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800823 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800824 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800825 "test_regression": [True],
826 "test_psa_api": ["OFF"],
827 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800828 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800829 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800830 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800831 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800832 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800833 },
834 "common_params": _common_tfm_builder_cfg,
835 "invalid": _common_tfm_invalid_configs + []
836 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800837
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800838config_nightly_STM32L562E_DK = {"seed_params": {
839 "tfm_platform": ["stm/stm32l562e_dk"],
840 "toolchain_file": ["toolchain_GNUARM.cmake",
841 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800842 "lib_model": [True, False],
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800843 "isolation_level": ["1", "2", "3"],
844 "test_regression": [True],
845 "test_psa_api": ["OFF"],
846 "cmake_build_type": ["Release"],
847 "with_otp": ["off"],
848 "with_bl2": [True],
849 "with_ns": [True],
850 "profile": [""],
851 "partition_ps": ["ON"],
852 },
853 "common_params": _common_tfm_builder_cfg,
854 "invalid": _common_tfm_invalid_configs + []
855 }
856
Arthur Shef3657742021-09-07 14:23:18 -0700857config_nightly_LPCXPRESSO55S69 = {"seed_params": {
858 "tfm_platform": ["nxp/lpcxpresso55s69"],
859 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800860 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700861 "isolation_level": ["2"],
862 "test_regression": [True, False],
863 "test_psa_api": ["OFF"],
864 "cmake_build_type": ["Relwithdebinfo"],
865 "with_otp": ["off"],
866 "with_bl2": [True, False],
867 "with_ns": [True],
868 "profile": ["profile_medium"],
869 "partition_ps": ["ON"],
870 },
871 "common_params": _common_tfm_builder_cfg,
872 "invalid": _common_tfm_invalid_configs + []
873 }
874
Karl Zhang14573bc2020-06-08 09:23:21 +0800875config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800876 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +0800877 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800878 "toolchain_file": ["toolchain_GNUARM.cmake",
879 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800880 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +0800881 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800882 "test_regression": [True],
883 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +0800884 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800885 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800886 "with_bl2": [True],
887 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +0800888 "profile": ["", "profile_small", "profile_medium"],
889 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800890 },
891 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +0800892 "valid": [
Summer Qin3c2b5722021-05-26 10:43:45 +0800893 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800894 True, "1", False, "OFF", "Debug",
Xinyu Zhangf86d42b2021-05-17 10:51:35 +0800895 "off", True, True, "", "ON"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800896 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800897 False, "2", False, "OFF", "Debug",
Xinyu Zhangf86d42b2021-05-17 10:51:35 +0800898 "off", True, True, "", "ON"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800899 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800900 False, "3", False, "OFF", "Release",
Xinyu Zhangf86d42b2021-05-17 10:51:35 +0800901 "off", True, True, "", "ON"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800902 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800903 False, "2", False, "OFF", "Debug",
Xinyu Zhangf86d42b2021-05-17 10:51:35 +0800904 "off", True, True, "profile_medium", "ON"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800905 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800906 False, "3", False, "OFF", "Debug",
Xinyu Zhangf86d42b2021-05-17 10:51:35 +0800907 "off", True, True, "profile_large", "ON"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800908 # AN521_GNUARM_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
909 ("arm/mps2/an521", "toolchain_GNUARM.cmake", False,
Xinyu Zhangd1ef9982021-06-24 11:31:11 +0800910 "2", True, "OFF", "Release", "off", True, True, "profile_medium", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800911 # MUSCA_B1_GNUARM_LIB_1_REG_Minsizerel_BL2_NS
912 ("arm/musca_b1/sse_200", "toolchain_GNUARM.cmake", True,
Xinyu Zhangd1ef9982021-06-24 11:31:11 +0800913 "1", True, "OFF", "Minsizerel", "off", True, True, "", "ON"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800914 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
915 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake", False,
Xinyu Zhangd1ef9982021-06-24 11:31:11 +0800916 "1", True, "OFF", "Release", "off", True, True, "", "ON"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800917 # stm32l562e_dk_GNUARM_IPC_2_REG_Release_BL2_NS
918 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake", False,
Xinyu Zhangd1ef9982021-06-24 11:31:11 +0800919 "2", True, "OFF", "Release", "off", True, True, "", "ON"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800920 # stm32l562e_dk_GNUARM_IPC_3_REG_Release_BL2_NS
921 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake", False,
Xinyu Zhangd1ef9982021-06-24 11:31:11 +0800922 "3", True, "OFF", "Release", "off", True, True, "", "ON"),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +0800923 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800924 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +0800925 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +0800926 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhangeb442a12021-02-01 15:16:19 +0800927 "*", "*", "*", "*", "profile_medium", "*"),
928 # valid configs supported by TF-M but not needed in per-patch
929 ("*", "*", "*", "1", "*", "*", "Release",
930 "*", "*", "*", "*", "*"),
931 ("*", "*", "*", "1", "*", "*", "Minsizerel",
932 "*", "*", "*", "*", "*"),
933 ("*", "*", "*", "2", "*", "*", "Debug",
934 "*", "*", "*", "*", "*"),
935 ("*", "*", "*", "2", "*", "*", "Minsizerel",
936 "*", "*", "*", "*", "*"),
937 ("*", "*", "*", "3", "*", "*", "Debug",
938 "*", "*", "*", "*", "*"),
939 ("*", "*", "*", "3", "*", "*", "Release",
940 "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800941 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800942 "*", "*", "*", "*", "profile_small", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800943 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800944 "*", "*", "*", "*", "profile_small", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800945 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhangeb442a12021-02-01 15:16:19 +0800946 "*", "*", "*", "*", "profile_medium", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800947 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Xinyu Zhangeb442a12021-02-01 15:16:19 +0800948 "*", "*", "*", "*", "profile_medium", "*"),
949 ("*", "toolchain_GNUARM.cmake", "*", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800950 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +0800951 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
952 "*", "*", "*", "*", "profile_medium", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800953 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhangeb442a12021-02-01 15:16:19 +0800954 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800955 ]
956 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800957
Karl Zhang14573bc2020-06-08 09:23:21 +0800958config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800959 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800960 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800961 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800962 "isolation_level": ["1", "2"],
963 "test_regression": [True],
964 "test_psa_api": ["OFF"],
965 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800966 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800967 "with_bl2": [True],
968 "with_ns": [True, False],
969 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800970 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800971 },
972 "common_params": _common_tfm_builder_cfg,
973 "invalid": _common_tfm_invalid_configs + []
974 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800975
976# Configure build manager to build several combinations
977config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800978 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800979 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800980 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800981 "isolation_level": ["2"],
982 "test_regression": [False],
983 "test_psa_api": ["IPC",
984 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800985 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800986 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800987 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800988 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800989 "with_bl2": [True],
990 "with_ns": [True, False],
991 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800992 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800993 },
994 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800995 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800996 }
997
Karl Zhang14573bc2020-06-08 09:23:21 +0800998config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800999 "tfm_platform": ["cypress/psoc64"],
1000 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001001 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001002 "isolation_level": ["1", "2"],
1003 "test_regression": [True],
1004 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001005 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001006 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001007 "with_bl2": [False],
1008 "with_ns": [True, False],
1009 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001010 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001011 },
1012 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001013 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001014 }
1015
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001016config_cov_an519 = {"seed_params": {
1017 "tfm_platform": ["arm/mps2/an519"],
1018 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001019 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001020 "isolation_level": ["1", "2", "3"],
1021 "test_regression": [True, False],
1022 "test_psa_api": ["OFF"],
1023 "cmake_build_type": ["Debug", "Release"],
1024 "with_otp": ["off"],
1025 "with_bl2": [True],
1026 "with_ns": [True],
1027 "profile": ["", "profile_small", "profile_medium"],
1028 "partition_ps": ["ON", "OFF"],
1029 },
1030 "common_params": _common_tfm_builder_cfg,
1031 "invalid": _common_tfm_invalid_configs + []
1032 }
1033
1034config_cov_an521 = {"seed_params": {
1035 "tfm_platform": ["arm/mps2/an521"],
1036 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001037 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001038 "isolation_level": ["1", "2", "3"],
1039 "test_regression": [True, False],
1040 "test_psa_api": ["OFF"],
1041 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1042 "with_otp": ["off"],
1043 "with_bl2": [True],
1044 "with_ns": [True],
1045 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1046 "partition_ps": ["ON", "OFF"],
1047 },
1048 "common_params": _common_tfm_builder_cfg,
1049 "invalid": _common_tfm_invalid_configs + []
1050 }
1051
Minos Galanakisea421232019-06-20 17:11:28 +01001052# Configruation used for document building
1053config_doxygen = {"common_params": {
1054 "config_type": "tf-m_documents",
1055 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001056 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001057 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001058 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001059 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001060 "cmake --build ./ -- docs"]},
1061 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1062 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001063 r'/(\w+\.(?:html|md|pdf))$',
1064 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001065 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001066 }
1067
Karl Zhangaff558a2020-05-15 14:28:23 +01001068# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +01001069config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001070 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001071 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001072 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001073 "isolation_level": ["1"],
1074 "test_regression": [False],
1075 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001076 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001077 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001078 "with_bl2": [True],
1079 "with_ns": [True],
1080 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001081 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +01001082 },
1083 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001084 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001085 }
1086
Dean Birch4c6ad622020-03-13 11:28:03 +00001087# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001088config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001089 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001090 "toolchain_file": ["toolchain_ARMCLANG.cmake",
1091 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001092 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001093 "isolation_level": ["1", "2"],
1094 "test_regression": [True, False],
1095 "test_psa_api": ["OFF"],
1096 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001097 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001098 "with_bl2": [True, False],
1099 "with_ns": [True],
1100 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001101 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001102 },
1103 "common_params": _common_tfm_builder_cfg,
1104 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001105 ("*", "toolchain_ARMCLANG.cmake", False, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001106 "*", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001107 ("*", "toolchain_ARMCLANG.cmake", True, "1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001108 "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001109 ]
1110 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001111
Xinyu Zhangb708f572020-09-15 11:43:46 +08001112config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001113 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001114 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001115 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001116 "isolation_level": ["1", "2"],
1117 "test_regression": [True],
1118 "test_psa_api": ["OFF"],
1119 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001120 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001121 "with_bl2": [True, False],
1122 "with_ns": [True, False],
1123 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001124 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001125 },
1126 "common_params": _common_tfm_builder_cfg,
1127 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001128 ("arm/mps2/an521", "toolchain_GNUARM.cmake", False, "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001129 "*", "*", True, "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001130 ]
1131 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001132
Karl Zhangaff558a2020-05-15 14:28:23 +01001133_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001134 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001135 "tfm_test": config_tfm_test,
1136 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001137 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +01001138 "tfm_test_otp": config_tfm_test_OTP,
1139 "psa_api": config_PSA_API,
1140 "psa_api_otp": config_PSA_API_OTP,
1141 "psa_ff": config_PSA_FF,
1142 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001143 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001144 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001145 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Karl Zhang14573bc2020-06-08 09:23:21 +08001146
1147 #nightly test group
1148 "nightly_test": config_nightly,
1149 "nightly_profile": config_nightly_profile,
1150 "nightly_psa_api": config_nightly_PSA_API,
1151 "nightly_ff": config_nightly_PSA_FF,
1152 "nightly_otp": config_nightly_OTP,
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +08001153 "nightly_stm32l562e_dk": config_nightly_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001154 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Karl Zhang14573bc2020-06-08 09:23:21 +08001155
1156 #per patch test group
1157 "pp_test": config_pp_test,
1158 "pp_OTP": config_pp_OTP,
1159 "pp_PSA_API": config_pp_PSA_API,
1160 "pp_psoc64": config_pp_PSoC64,
1161
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001162 #code coverage test group
1163 "coverage_an519": config_cov_an519,
1164 "coverage_an521": config_cov_an521,
1165
Karl Zhang14573bc2020-06-08 09:23:21 +08001166 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001167 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001168
1169 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001170 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001171 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001172 "an521_psa_api": config_AN521_PSA_API,
1173 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001174 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001175 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001176 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001177 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001178 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001179 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001180 "ipc": config_IPC,
1181 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001182 "debug": config_debug,
Karl Zhangaff558a2020-05-15 14:28:23 +01001183 "release": config_release,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001184 "debug": config_debug,
Karl Zhang14573bc2020-06-08 09:23:21 +08001185
1186 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001187 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001188 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001189
1190if __name__ == '__main__':
1191 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001192
Minos Galanakisea421232019-06-20 17:11:28 +01001193 # Default behavior is to export refference config when called
1194 _dir = os.getcwd()
1195 from utils import save_json
1196 for _cname, _cfg in _builtin_configs.items():
1197 _fname = os.path.join(_dir, _cname + ".json")
1198 print("Exporting config %s" % _fname)
1199 save_json(_fname, _cfg)