blob: 47c9e57334100fdc6ce6165588100cb3835b9148 [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/*
Karl Zhangaff558a2020-05-15 14:28:23 +010011 * Copyright (c) 2018-2020, 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"
Karl Zhang08681e62020-10-30 13:56:03 +080020__version__ = "1.2.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",
34 "psa_api",
35 "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 Zhangb708f572020-09-15 11:43:46 +080051 "-DTFM_PSA_API=%(psa_api)s " + \
52 "-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"],
Xinyu Zhang694eb492020-11-04 18:29:08 +080077 "musca_a": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080078 "%(_tbm_build_dir_)s/bin/"
79 "bl2.bin "
Minos Galanakisea421232019-06-20 17:11:28 +010080 "-Binary -offset 0x200000 "
Raef Coles543aab32020-12-03 11:12:02 +000081 "-fill 0xFF 0x200000 0x220000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080082 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080083 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +000084 "-Binary -offset 0x220000 "
85 "-fill 0xFF 0x220000 0xA00000 "
86 "-o %(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080087 "tfm.hex -Intel")],
Mark Horvath8d281cd2020-12-07 15:20:26 +010088 "musca_b1/sse_200": [("srec_cat "
89 "%(_tbm_build_dir_)s/bin/"
90 "bl2.bin "
91 "-Binary -offset 0xA000000 "
92 "-fill 0xFF 0xA000000 0xA020000 "
93 "%(_tbm_build_dir_)s/bin/"
94 "tfm_s_ns_signed.bin "
95 "-Binary -offset 0xA020000 "
96 "-fill 0xFF 0xA020000 0xA200000 "
97 "-o %(_tbm_build_dir_)s/bin/"
98 "tfm.hex -Intel")],
Xinyu Zhang694eb492020-11-04 18:29:08 +080099 "musca_s1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +0800100 "%(_tbm_build_dir_)s/bin/"
101 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +0800102 "-Binary -offset 0xA000000 "
Raef Coles543aab32020-12-03 11:12:02 +0000103 "-fill 0xFF 0xA000000 0xA020000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +0800104 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800105 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +0000106 "-Binary -offset 0xA020000 "
107 "-fill 0xFF 0xA020000 0xA200000 "
108 "-o %(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800109 "tfm.hex -Intel")]
Minos Galanakisea421232019-06-20 17:11:28 +0100110 },
111
112 # (Optional) If set will fail if those artefacts are missing post build
113 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800114 "%(_tbm_build_dir_)s/bin/"
115 "tfm_s.bin",
116 "%(_tbm_build_dir_)s/bin/"
117 "tfm_ns.bin"],
Xinyu Zhang694eb492020-11-04 18:29:08 +0800118 "musca_a": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800119 "%(_tbm_build_dir_)s/bin/"
120 "tfm.hex",
121 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800122 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800123 "%(_tbm_build_dir_)s/bin/"
124 "tfm_sign.bin"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100125 "musca_b1/sse_200": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800126 "%(_tbm_build_dir_)s/bin/"
127 "tfm.hex",
128 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800129 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800130 "%(_tbm_build_dir_)s/bin/"
131 "tfm_sign.bin"],
Xinyu Zhang694eb492020-11-04 18:29:08 +0800132 "musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800133 "%(_tbm_build_dir_)s/bin/"
134 "tfm.hex",
135 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800136 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800137 "%(_tbm_build_dir_)s/bin/"
138 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100139 }
140}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100141
Xinyu Zhangb708f572020-09-15 11:43:46 +0800142# List of all build configs that are impossible under all circumstances
143_common_tfm_invalid_configs = [
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800144 # LVL2 and LVL3 requires PSA api
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800145 ("*", "*", False, "2", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800146 ("*", "*", False, "3", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800147 # Regression requires NS
148 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*", "*"),
Xinyu Zhang11d66112020-11-04 15:38:29 +0800149 # psoc64 requires PSA api
150 ("cypress/psoc64", "*", False, "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800151 # No PSA_ACK with regression
152 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*", "*"),
153 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*", "*"),
154 ("*", "*", "*", "*", True, "PROTECTED_STORAGE", "*", "*", "*", "*", "*", "*"),
155 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*"),
156 ("*", "*", "*", "*", True, "INTERNAL_TRUSTED_STORAGE", "*", "*", "*", "*", "*", "*"),
157 # PSA_ACK requires NS
158 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*", "*"),
159 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*", "*"),
160 ("*", "*", "*", "*", "*", "PROTECTED_STORAGE", "*", "*", "*", False, "*", "*"),
161 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*", "*"),
162 ("*", "*", "*", "*", "*", "INTERNAL_TRUSTED_STORAGE", "*", "*", "*", False, "*", "*"),
163 # Musca requires BL2
164 ("musca_a", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100165 ("musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800166 ("musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
167 # psoc64 cannot use BL2
168 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800169 # psoc64 does not support Debug build type
170 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800171 # Musca b1 does not support Profile S
Mark Horvath8d281cd2020-12-07 15:20:26 +0100172 ("musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
173 # Musca B1 Secure Enclave requires PSA api, BL2, and supports only Isolation Level 1
174 ("musca_b1/secure_enclave", "*", False, "*", "*", "*", "*", "*", "*", "*", "*", "*"),
175 ("musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
176 ("musca_b1/secure_enclave", "*", "*", "2", "*", "*", "*", "*", "*", "*", "*", "*"),
177 # Musca B1 Secure Enclave does not support tests, profiles, NS side building
178 ("musca_b1/secure_enclave", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*"),
179 ("musca_b1/secure_enclave", "*", "*", "*", "*", "IPC", "*", "*", "*", "*", "*", "*"),
180 ("musca_b1/secure_enclave", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", "*", "*", "*"),
181 ("musca_b1/secure_enclave", "*", "*", "*", "*", "PROTECTED_STORAGE", "*", "*", "*", "*", "*", "*"),
182 ("musca_b1/secure_enclave", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*"),
183 ("musca_b1/secure_enclave", "*", "*", "*", "*", "INTERNAL_TRUSTED_STORAGE", "*", "*", "*", "*", "*", "*"),
184 ("musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
185 ("musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
186 ("musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", True, "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800187 # PARTITION_PS could be OFF only for Profile S and M
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800188 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800189 # PARTITION_PS should be OFF for Profile S
190 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800191 # Proile M only support for PSA_API
192 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
193 # Profile M only support for Isolation Level 2
194 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
Xinyu Zhange8de4512020-11-13 10:37:56 +0800195 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800196 # Profile S does not support PSA_API
197 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
198 # Profile S only supports Isolation Level 2
199 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800200 # Only AN521 and MUSCA_B1 support Isolation Level 3
201 ("mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800202 ("mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800203 ("musca_a", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
204 ("musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
205 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100206 ("musca_b1/secure_enclave", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800207 ]
208
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100209# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100210config_AN539 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800211 "tfm_platform": ["mps2/an539"],
212 "toolchain_file": ["toolchain_GNUARM.cmake",
213 "toolchain_ARMCLANG.cmake"],
214 "psa_api": [True, False],
215 "isolation_level": ["1", "2"],
216 "test_regression": [True, False],
217 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100218 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800219 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800220 "with_bl2": [True, False],
221 "with_ns": [True, False],
222 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800223 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +0100224 },
225 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800226 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100227 }
228
Karl Zhangaff558a2020-05-15 14:28:23 +0100229config_AN524 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800230 "tfm_platform": ["mps3/an524"],
231 "toolchain_file": ["toolchain_GNUARM.cmake",
232 "toolchain_ARMCLANG.cmake"],
233 "psa_api": [True, False],
234 "isolation_level": ["1", "2"],
235 "test_regression": [True, False],
236 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100237 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800238 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800239 "with_bl2": [True, False],
240 "with_ns": [True, False],
241 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800242 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100243 },
244 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800245 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100246 }
247
Karl Zhangaff558a2020-05-15 14:28:23 +0100248config_AN521 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800249 "tfm_platform": ["mps2/an521"],
250 "toolchain_file": ["toolchain_GNUARM.cmake",
251 "toolchain_ARMCLANG.cmake"],
252 "psa_api": [True, False],
253 "isolation_level": ["1", "2"],
254 "test_regression": [True, False],
255 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100256 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800257 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800258 "with_bl2": [True, False],
259 "with_ns": [True, False],
260 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800261 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100262 },
263 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800264 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100265 }
266
Karl Zhangaff558a2020-05-15 14:28:23 +0100267config_PSA_API = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100268 "tfm_platform": ["mps2/an521", "musca_b1/sse_200", "musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800269 "toolchain_file": ["toolchain_GNUARM.cmake",
270 "toolchain_ARMCLANG.cmake"],
271 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800272 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800273 "test_regression": [False],
274 "test_psa_api": ["CRYPTO",
275 "PROTECTED_STORAGE",
276 "INITIAL_ATTESTATION",
277 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100278 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800279 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800280 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800281 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800282 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800283 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100284 },
285 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800286 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100287 }
288
Karl Zhangaff558a2020-05-15 14:28:23 +0100289config_PSA_FF = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100290 "tfm_platform": ["mps2/an521", "musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800291 "toolchain_file": ["toolchain_GNUARM.cmake",
292 "toolchain_ARMCLANG.cmake"],
293 "psa_api": [True],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800294 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800295 "test_regression": [False],
296 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100297 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800298 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800299 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800300 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800301 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800302 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100303 },
304 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800305 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100306 }
307
Karl Zhangaff558a2020-05-15 14:28:23 +0100308config_PSA_API_OTP = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100309 "tfm_platform": ["musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800310 "toolchain_file": ["toolchain_GNUARM.cmake",
311 "toolchain_ARMCLANG.cmake"],
312 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800313 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800314 "test_regression": [False],
315 "test_psa_api": ["CRYPTO",
316 "PROTECTED_STORAGE",
317 "INITIAL_ATTESTATION",
318 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100319 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800320 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800321 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800322 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800323 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800324 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100325 },
326 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800327 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100328 }
Minos Galanakisea421232019-06-20 17:11:28 +0100329
Xinyu Zhangb708f572020-09-15 11:43:46 +0800330config_PSA_FF_OTP = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100331 "tfm_platform": ["musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800332 "toolchain_file": ["toolchain_GNUARM.cmake",
333 "toolchain_ARMCLANG.cmake"],
334 "psa_api": [True],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800335 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800336 "test_regression": [False],
337 "test_psa_api": ["IPC"],
338 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800339 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800340 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800341 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800342 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800343 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800344 },
345 "common_params": _common_tfm_builder_cfg,
346 "invalid": _common_tfm_invalid_configs + []
347 }
348
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800349config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800350 "tfm_platform": ["cypress/psoc64"],
351 "toolchain_file": ["toolchain_GNUARM.cmake",
352 "toolchain_ARMCLANG.cmake"],
353 "psa_api": [True],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800354 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800355 "test_regression": [True],
356 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800357 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800358 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800359 "with_bl2": [False],
360 "with_ns": [True, False],
361 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800362 "partition_ps": ["ON"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800363 },
364 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800365 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800366 }
367
Minos Galanakisea421232019-06-20 17:11:28 +0100368config_AN519 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800369 "tfm_platform": ["mps2/an519"],
370 "toolchain_file": ["toolchain_GNUARM.cmake",
371 "toolchain_ARMCLANG.cmake"],
372 "psa_api": [True, False],
373 "isolation_level": ["1", "2"],
374 "test_regression": [True, False],
375 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100376 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800377 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800378 "with_bl2": [True, False],
379 "with_ns": [True, False],
380 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800381 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +0100382 },
383 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800384 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100385 }
386
Xinyu Zhangb708f572020-09-15 11:43:46 +0800387config_IPC = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100388 "tfm_platform": ["mps2/an521", "mps2/an519", "musca_a",
389 "musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800390 "toolchain_file": ["toolchain_GNUARM.cmake",
391 "toolchain_ARMCLANG.cmake"],
392 "psa_api": [True],
393 "isolation_level": ["1", "2"],
394 "test_regression": [True, False],
395 "test_psa_api": ["OFF"],
396 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800397 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800398 "with_bl2": [True, False],
399 "with_ns": [True, False],
400 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800401 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800402 },
Minos Galanakisea421232019-06-20 17:11:28 +0100403 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800404 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100405 }
406
Minos Galanakisea421232019-06-20 17:11:28 +0100407config_full = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800408 "tfm_platform": ["mps2/an521", "mps2/an519",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100409 "musca_a", "musca_b1/sse_200",
Karl Zhang6919ff62021-01-05 14:17:44 +0800410 "mps3/an524", "cypress/psoc64",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100411 "musca_b1/secure_enclave"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800412 "toolchain_file": ["toolchain_GNUARM.cmake",
413 "toolchain_ARMCLANG.cmake"],
414 "psa_api": [True, False],
415 "isolation_level": ["1", "2"],
416 "test_regression": [True, False],
417 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800418 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800419 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800420 "with_bl2": [True, False],
421 "with_ns": [True, False],
422 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800423 "partition_ps": ["ON"],
Dean Birchd6ce2c82020-05-13 13:16:15 +0100424 },
425 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800426 "invalid": _common_tfm_invalid_configs + [
427 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800428 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800429 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800430 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800431 ("mps2/an521", "*", "*", "*",
432 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
433 ("mps2/an519", "*", "*", "*",
434 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
435 ("musca_a", "*", "*", "*",
436 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100437 ("musca_b1/sse_200", "*", "*", "*",
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800438 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800439 ("mps3/an524", "*", "*", "*",
440 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800441 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800442 }
443
Karl Zhangaff558a2020-05-15 14:28:23 +0100444config_tfm_test = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800445 "tfm_platform": ["mps2/an521", "musca_a",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100446 "musca_b1/sse_200", "musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800447 "toolchain_file": ["toolchain_ARMCLANG.cmake",
448 "toolchain_GNUARM.cmake"],
449 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800450 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800451 "test_regression": [True, False],
452 "test_psa_api": ["OFF"],
453 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800454 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800455 "with_bl2": [True],
456 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800457 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800458 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800459 },
460 "common_params": _common_tfm_builder_cfg,
461 "invalid": _common_tfm_invalid_configs + []
462 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800463
Karl Zhangaff558a2020-05-15 14:28:23 +0100464config_tfm_test2 = {"seed_params": {
Karl Zhang6919ff62021-01-05 14:17:44 +0800465 "tfm_platform": ["mps2/an519", "mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800466 "toolchain_file": ["toolchain_ARMCLANG.cmake",
467 "toolchain_GNUARM.cmake"],
468 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800469 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800470 "test_regression": [True, False],
471 "test_psa_api": ["OFF"],
472 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800473 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800474 "with_bl2": [True],
475 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800476 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800477 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800478 },
479 "common_params": _common_tfm_builder_cfg,
480 "invalid": _common_tfm_invalid_configs + [
481 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800482 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800483 ]
484 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100485
Karl Zhang14573bc2020-06-08 09:23:21 +0800486config_tfm_profile = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800487 "tfm_platform": ["mps2/an519", "mps2/an521",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100488 "musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800489 "toolchain_file": ["toolchain_ARMCLANG.cmake",
490 "toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800491 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800492 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800493 "test_regression": [True, False],
494 "test_psa_api": ["OFF"],
495 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800496 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800497 "with_bl2": [True],
498 "with_ns": [True],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800499 "profile": ["profile_small", "profile_medium"],
500 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800501 },
502 "common_params": _common_tfm_builder_cfg,
503 "invalid": _common_tfm_invalid_configs + [
504 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800505 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800506 ]
507 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800508
Karl Zhangaff558a2020-05-15 14:28:23 +0100509config_tfm_test_OTP = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100510 "tfm_platform": ["musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800511 "toolchain_file": ["toolchain_ARMCLANG.cmake",
512 "toolchain_GNUARM.cmake"],
513 "psa_api": [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": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800519 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800520 "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 + []
526 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100527
Minos Galanakisea421232019-06-20 17:11:28 +0100528config_MUSCA_A = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800529 "tfm_platform": ["musca_a"],
530 "toolchain_file": ["toolchain_ARMCLANG.cmake",
531 "toolchain_GNUARM.cmake"],
532 "psa_api": [True, False],
533 "isolation_level": ["1", "2"],
534 "test_regression": [True, False],
535 "test_psa_api": ["OFF"],
536 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800537 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800538 "with_bl2": [True],
539 "with_ns": [True, False],
540 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800541 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800542 },
543 "common_params": _common_tfm_builder_cfg,
544 "invalid": _common_tfm_invalid_configs + []
545 }
Minos Galanakisea421232019-06-20 17:11:28 +0100546
547config_MUSCA_B1 = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100548 "tfm_platform": ["musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800549 "toolchain_file": ["toolchain_ARMCLANG.cmake",
550 "toolchain_GNUARM.cmake"],
551 "psa_api": [True, False],
552 "isolation_level": ["1", "2"],
553 "test_regression": [True, False],
554 "test_psa_api": ["OFF"],
555 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800556 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800557 "with_bl2": [True],
558 "with_ns": [True, False],
559 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800560 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800561 },
562 "common_params": _common_tfm_builder_cfg,
563 "invalid": _common_tfm_invalid_configs + []
564 }
Minos Galanakisea421232019-06-20 17:11:28 +0100565
Mark Horvath8d281cd2020-12-07 15:20:26 +0100566config_MUSCA_B1_SE = {"seed_params": {
567 "tfm_platform": ["musca_b1/secure_enclave"],
568 "toolchain_file": ["toolchain_ARMCLANG.cmake",
569 "toolchain_GNUARM.cmake"],
570 "psa_api": [True],
571 "isolation_level": ["1"],
572 "test_regression": [False],
573 "test_psa_api": ["OFF"],
574 "cmake_build_type": ["Debug", "Release"],
575 "with_otp": ["off"],
576 "with_bl2": [True],
577 "with_ns": [False],
578 "profile": [""],
579 "partition_ps": ["ON"],
580 },
581 "common_params": _common_tfm_builder_cfg,
582 "invalid": _common_tfm_invalid_configs + []
583 }
584
Karl Zhangeffed972020-06-30 15:48:01 +0800585config_MUSCA_S1 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800586 "tfm_platform": ["musca_s1"],
587 "toolchain_file": ["toolchain_ARMCLANG.cmake",
588 "toolchain_GNUARM.cmake"],
589 "psa_api": [True, False],
590 "isolation_level": ["1", "2"],
591 "test_regression": [True, False],
592 "test_psa_api": ["OFF"],
593 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800594 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800595 "with_bl2": [True],
596 "with_ns": [True, False],
597 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800598 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800599 },
600 "common_params": _common_tfm_builder_cfg,
601 "invalid": _common_tfm_invalid_configs + []
602 }
Karl Zhangeffed972020-06-30 15:48:01 +0800603
Karl Zhangaff558a2020-05-15 14:28:23 +0100604config_release = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800605 "tfm_platform": ["mps2/an521", "mps2/an519",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100606 "musca_a", "musca_b1/sse_200", "musca_s1",
Karl Zhang6919ff62021-01-05 14:17:44 +0800607 "mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800608 "toolchain_file": ["toolchain_ARMCLANG.cmake",
609 "toolchain_GNUARM.cmake"],
610 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800611 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800612 "test_regression": [True, False],
613 "test_psa_api": ["OFF"],
614 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800615 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800616 "with_bl2": [True, False],
617 "with_ns": [True, False],
618 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800619 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800620 },
621 "common_params": _common_tfm_builder_cfg,
622 "invalid": _common_tfm_invalid_configs + [
623 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800624 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800625 ]
626 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100627
628# Configure build manager to build several combinations
629config_AN521_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800630 "tfm_platform": ["mps2/an521", "mps2/an519",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100631 "musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800632 "toolchain_file": ["toolchain_GNUARM.cmake",
633 "toolchain_ARMCLANG.cmake"],
634 "psa_api": [True, False],
635 "isolation_level": ["1", "2"],
636 "test_regression": [False],
637 "test_psa_api": ["IPC",
638 "CRYPTO",
639 "PROTECTED_STORAGE",
640 "INITIAL_ATTESTATION",
641 "INTERNAL_TRUSTED_STORAGE"],
642 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800643 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800644 "with_bl2": [True],
645 "with_ns": [True, False],
646 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800647 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100648 },
649 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800650 "invalid": _common_tfm_invalid_configs + [
651 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800652 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800653 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100654 }
655
Karl Zhangaff558a2020-05-15 14:28:23 +0100656config_AN521_PSA_IPC = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800657 "tfm_platform": ["mps2/an521", "mps2/an519",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100658 "musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800659 "toolchain_file": ["toolchain_GNUARM.cmake",
660 "toolchain_ARMCLANG.cmake"],
661 "psa_api": [True],
662 "isolation_level": ["1", "2"],
663 "test_regression": [False],
664 "test_psa_api": ["IPC"],
665 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800666 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800667 "with_bl2": [True],
668 "with_ns": [True, False],
669 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800670 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100671 },
672 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800673 "invalid": _common_tfm_invalid_configs + [
674 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800675 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800676 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100677 }
678
Karl Zhang14573bc2020-06-08 09:23:21 +0800679config_nightly = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800680 "tfm_platform": ["mps2/an521", "mps2/an519",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100681 "musca_a", "musca_b1/sse_200", "musca_s1",
Karl Zhang6919ff62021-01-05 14:17:44 +0800682 "mps3/an524", "cypress/psoc64",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100683 "musca_b1/secure_enclave"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800684 "toolchain_file": ["toolchain_GNUARM.cmake",
685 "toolchain_ARMCLANG.cmake"],
686 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800687 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800688 "test_regression": [True, False],
689 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800690 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800691 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800692 "with_bl2": [True],
693 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800694 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800695 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800696 },
697 "common_params": _common_tfm_builder_cfg,
698 "invalid": _common_tfm_invalid_configs + [
699 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800700 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800701 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800702 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800703 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800704 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800705 ("mps2/an521", "*", "*", "*",
706 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
707 ("mps2/an519", "*", "*", "*",
708 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
709 ("musca_a", "*", "*", "*",
710 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100711 ("musca_b1/sse_200", "*", "*", "*",
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800712 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
713 ("musca_s1", "*", "*", "*",
714 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800715 ("mps3/an524", "*", "*", "*",
716 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800717 ]
718 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800719
Karl Zhang14573bc2020-06-08 09:23:21 +0800720config_nightly_profile = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800721 "tfm_platform": ["mps2/an519", "mps2/an521",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100722 "musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800723 "toolchain_file": ["toolchain_ARMCLANG.cmake",
724 "toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800725 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800726 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800727 "test_regression": [True, False],
728 "test_psa_api": ["OFF"],
729 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800730 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800731 "with_bl2": [True],
732 "with_ns": [True],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800733 "profile": ["profile_small", "profile_medium"],
734 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800735 },
736 "common_params": _common_tfm_builder_cfg,
737 "invalid": _common_tfm_invalid_configs + [
738 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800739 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800740 ]
741 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800742
Karl Zhang14573bc2020-06-08 09:23:21 +0800743config_nightly_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800744 "tfm_platform": ["mps2/an521"],
745 "toolchain_file": ["toolchain_GNUARM.cmake",
746 "toolchain_ARMCLANG.cmake"],
747 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800748 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800749 "test_regression": [False],
750 "test_psa_api": ["CRYPTO",
751 "PROTECTED_STORAGE",
752 "INITIAL_ATTESTATION",
753 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800754 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800755 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800756 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800757 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800758 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800759 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800760 },
761 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800762 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800763 }
764
Karl Zhang14573bc2020-06-08 09:23:21 +0800765config_nightly_PSA_FF = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800766 "tfm_platform": ["mps2/an521"],
767 "toolchain_file": ["toolchain_GNUARM.cmake",
768 "toolchain_ARMCLANG.cmake"],
769 "psa_api": [True],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800770 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800771 "test_regression": [False],
772 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800773 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800774 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800775 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800776 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800777 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800778 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800779 },
780 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800781 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800782 }
783
Karl Zhang14573bc2020-06-08 09:23:21 +0800784config_nightly_OTP = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100785 "tfm_platform": ["musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800786 "toolchain_file": ["toolchain_GNUARM.cmake",
787 "toolchain_ARMCLANG.cmake"],
788 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800789 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800790 "test_regression": [True],
791 "test_psa_api": ["OFF"],
792 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800793 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800794 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800795 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800796 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800797 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800798 },
799 "common_params": _common_tfm_builder_cfg,
800 "invalid": _common_tfm_invalid_configs + []
801 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800802
Karl Zhang14573bc2020-06-08 09:23:21 +0800803config_pp_test = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800804 "tfm_platform": ["mps2/an521", "mps2/an519",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100805 "musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800806 "toolchain_file": ["toolchain_GNUARM.cmake",
807 "toolchain_ARMCLANG.cmake"],
808 "psa_api": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +0800809 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800810 "test_regression": [True],
811 "test_psa_api": ["OFF"],
812 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800813 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800814 "with_bl2": [True],
815 "with_ns": [True, False],
816 "profile": ["", "profile_small"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800817 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800818 },
819 "common_params": _common_tfm_builder_cfg,
820 "invalid": _common_tfm_invalid_configs + [
Mark Horvath8d281cd2020-12-07 15:20:26 +0100821 ("musca_b1/sse_200", "*", "*", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800822 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800823 ("*", "*", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800824 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800825 ("*", "*", "*", "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800826 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800827 ]
828 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800829
Karl Zhang14573bc2020-06-08 09:23:21 +0800830config_pp_OTP = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100831 "tfm_platform": ["musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800832 "toolchain_file": ["toolchain_GNUARM.cmake"],
833 "psa_api": [True, False],
834 "isolation_level": ["1", "2"],
835 "test_regression": [True],
836 "test_psa_api": ["OFF"],
837 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800838 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800839 "with_bl2": [True],
840 "with_ns": [True, False],
841 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800842 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800843 },
844 "common_params": _common_tfm_builder_cfg,
845 "invalid": _common_tfm_invalid_configs + []
846 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800847
848# Configure build manager to build several combinations
849config_pp_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800850 "tfm_platform": ["mps2/an521"],
851 "toolchain_file": ["toolchain_GNUARM.cmake"],
852 "psa_api": [True],
853 "isolation_level": ["2"],
854 "test_regression": [False],
855 "test_psa_api": ["IPC",
856 "CRYPTO",
857 "PROTECTED_STORAGE",
858 "INITIAL_ATTESTATION",
859 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800860 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800861 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800862 "with_bl2": [True],
863 "with_ns": [True, False],
864 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800865 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800866 },
867 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800868 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800869 }
870
Karl Zhang14573bc2020-06-08 09:23:21 +0800871config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800872 "tfm_platform": ["cypress/psoc64"],
873 "toolchain_file": ["toolchain_GNUARM.cmake"],
874 "psa_api": [True],
875 "isolation_level": ["1", "2"],
876 "test_regression": [True],
877 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800878 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800879 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800880 "with_bl2": [False],
881 "with_ns": [True, False],
882 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800883 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800884 },
885 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800886 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800887 }
888
Minos Galanakisea421232019-06-20 17:11:28 +0100889# Configruation used for document building
890config_doxygen = {"common_params": {
891 "config_type": "tf-m_documents",
892 "codebase_root_dir": "tf-m",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800893 "build_cmds": {"all": ["-DTFM_PLATFORM=mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +0100894 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +0100895 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +0100896 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800897 "cmake --build ./ -- docs"]},
898 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
899 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +0100900 r'/(\w+\.(?:html|md|pdf))$',
901 },
Xinyu Zhangb708f572020-09-15 11:43:46 +0800902 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100903 }
904
Karl Zhangaff558a2020-05-15 14:28:23 +0100905# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +0100906config_debug = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800907 "tfm_platform": ["mps2/an521"],
908 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
909 "psa_api": [False],
910 "isolation_level": ["1"],
911 "test_regression": [False],
912 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100913 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800914 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800915 "with_bl2": [True],
916 "with_ns": [True],
917 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800918 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +0100919 },
920 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800921 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100922 }
923
Dean Birch4c6ad622020-03-13 11:28:03 +0000924# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +0800925config_ci = {"seed_params": {
926 "tfm_platform": ["mps2/an521"],
927 "toolchain_file": ["toolchain_ARMCLANG.cmake",
928 "toolchain_GNUARM.cmake"],
929 "psa_api": [True, False],
930 "isolation_level": ["1", "2"],
931 "test_regression": [True, False],
932 "test_psa_api": ["OFF"],
933 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800934 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800935 "with_bl2": [True, False],
936 "with_ns": [True],
937 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800938 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800939 },
940 "common_params": _common_tfm_builder_cfg,
941 "invalid": _common_tfm_invalid_configs + [
942 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800943 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800944 ("*", "toolchain_ARMCLANG.cmake", False, "1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800945 "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800946 ]
947 }
Matthew Hartfb6fd362020-03-04 21:03:59 +0000948
Xinyu Zhangb708f572020-09-15 11:43:46 +0800949config_lava_debug = {"seed_params": {
950 "tfm_platform": ["mps2/an521", "mps2/an519"],
951 "toolchain_file": ["toolchain_GNUARM.cmake"],
952 "psa_api": [True, False],
953 "isolation_level": ["1", "2"],
954 "test_regression": [True],
955 "test_psa_api": ["OFF"],
956 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800957 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800958 "with_bl2": [True, False],
959 "with_ns": [True, False],
960 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800961 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800962 },
963 "common_params": _common_tfm_builder_cfg,
964 "invalid": _common_tfm_invalid_configs + [
965 ("mps2/an521", "toolchain_GNUARM.cmake", True, "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800966 "*", "*", True, "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +0800967 ]
968 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000969
Karl Zhangaff558a2020-05-15 14:28:23 +0100970_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +0800971 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +0100972 "tfm_test": config_tfm_test,
973 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +0800974 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +0100975 "tfm_test_otp": config_tfm_test_OTP,
976 "psa_api": config_PSA_API,
977 "psa_api_otp": config_PSA_API_OTP,
978 "psa_ff": config_PSA_FF,
979 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +0800980 "tfm_psoc64": config_PSOC64,
981
982 #nightly test group
983 "nightly_test": config_nightly,
984 "nightly_profile": config_nightly_profile,
985 "nightly_psa_api": config_nightly_PSA_API,
986 "nightly_ff": config_nightly_PSA_FF,
987 "nightly_otp": config_nightly_OTP,
988
989 #per patch test group
990 "pp_test": config_pp_test,
991 "pp_OTP": config_pp_OTP,
992 "pp_PSA_API": config_pp_PSA_API,
993 "pp_psoc64": config_pp_PSoC64,
994
995 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +0100996 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +0800997
998 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +0100999 "an539": config_AN539,
1000 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001001 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001002 "an521_psa_api": config_AN521_PSA_API,
1003 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001004 "an519": config_AN519,
1005 "musca_a": config_MUSCA_A,
1006 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001007 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001008 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001009 "psoc64": config_PSOC64,
Minos Galanakisea421232019-06-20 17:11:28 +01001010 "ipc": config_IPC,
1011 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001012 "debug": config_debug,
Karl Zhangaff558a2020-05-15 14:28:23 +01001013 "release": config_release,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001014 "debug": config_debug,
Karl Zhang14573bc2020-06-08 09:23:21 +08001015
1016 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001017 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001018 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001019
1020if __name__ == '__main__':
1021 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001022
Minos Galanakisea421232019-06-20 17:11:28 +01001023 # Default behavior is to export refference config when called
1024 _dir = os.getcwd()
1025 from utils import save_json
1026 for _cname, _cfg in _builtin_configs.items():
1027 _fname = os.path.join(_dir, _cname + ".json")
1028 print("Exporting config %s" % _fname)
1029 save_json(_fname, _cfg)