blob: 6b6fd5799fc60985f4febed8d711ba1ab6b75ecc [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 """
17__author__ = "Minos Galanakis"
18__email__ = "minos.galanakis@linaro.org"
19__project__ = "Trusted Firmware-M Open CI"
20__status__ = "stable"
Minos Galanakisea421232019-06-20 17:11:28 +010021__version__ = "1.1"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010022
Minos Galanakisea421232019-06-20 17:11:28 +010023# common parameters for tf-m build system
24# This configuration template will be passed into the tfm-builder module after
25# the template evaluation is converted to a command
26
27_common_tfm_builder_cfg = {
28 "config_type": "tf-m",
29 "codebase_root_dir": "tf-m",
30 # Order to which the variants are evaluated. This affects the name of
31 # variant configuration and the wildcard replacement logic in invalid
32 # configuration tuples
Xinyu Zhangb708f572020-09-15 11:43:46 +080033 "sort_order": ["tfm_platform",
34 "toolchain_file",
35 "psa_api",
36 "isolation_level",
37 "test_regression",
38 "test_psa_api",
Minos Galanakisea421232019-06-20 17:11:28 +010039 "cmake_build_type",
Xinyu Zhangb708f572020-09-15 11:43:46 +080040 "with_otp",
41 "with_bl2",
42 "with_ns",
Xinyu Zhang9fd74242020-10-22 11:30:50 +080043 "profile",
44 "partition_ps"],
Minos Galanakisea421232019-06-20 17:11:28 +010045
46 # Keys for the templace will come from the combinations of parameters
47 # provided in the seed dictionary.
48
Xinyu Zhangb708f572020-09-15 11:43:46 +080049 "config_template": "cmake " + \
50 "-DTFM_PLATFORM=%(tfm_platform)s " + \
51 "-DCMAKE_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(toolchain_file)s " + \
52 "-DTFM_PSA_API=%(psa_api)s " + \
53 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
54 "-DTEST_NS=%(test_regression)s -DTEST_S=%(test_regression)s " + \
55 "-DTEST_PSA_API=%(test_psa_api)s " + \
56 "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \
57 "-DCRYPTO_HW_ACCELERATOR_OTP_STATE=%(with_otp)s " + \
58 "-DBL2=%(with_bl2)s " + \
59 "-DNS=%(with_ns)s " + \
60 "-DTFM_TEST_REPO_PATH=%(codebase_root_dir)s/../tf-m-tests " + \
61 "-DMBEDCRYPTO_PATH=%(codebase_root_dir)s/../mbedtls " + \
62 "-DPSA_ARCH_TESTS_PATH=%(codebase_root_dir)s/../psa-arch-tests " + \
63 "-DMCUBOOT_PATH=%(codebase_root_dir)s/../mcuboot " + \
64 "-DTFM_PROFILE=%(profile)s " + \
Xinyu Zhangb5bbb692020-10-26 10:14:33 +080065 "-DTFM_PARTITION_PROTECTED_STORAGE=%(partition_ps)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080066 "%(codebase_root_dir)s",
Karl Zhangaff558a2020-05-15 14:28:23 +010067
Minos Galanakisea421232019-06-20 17:11:28 +010068 # A small subset of string substitution params is allowed in commands.
69 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
70 # _tbm_target_platform_ with the paths set when building
71
Xinyu Zhangb708f572020-09-15 11:43:46 +080072 "artifact_capture_rex": (r'%(_tbm_build_dir_)s/bin'
Minos Galanakisea421232019-06-20 17:11:28 +010073 r'/(\w+\.(?:axf|bin|hex))$'),
74
75 # ALL commands will be executed for every build.
76 # Other keys will append extra commands when matching target_platform
Karl Zhangaff558a2020-05-15 14:28:23 +010077 "build_cmds": {"all": ["cmake --build ./ -- install"],
Minos Galanakisea421232019-06-20 17:11:28 +010078 "MUSCA_A": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080079 "%(_tbm_build_dir_)s/bin/"
80 "bl2.bin "
Minos Galanakisea421232019-06-20 17:11:28 +010081 "-Binary -offset 0x200000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080082 "%(_tbm_build_dir_)s/bin/"
83 "%tfm_s_ns_signed.bin "
Minos Galanakisea421232019-06-20 17:11:28 +010084 "-Binary -offset 0x220000 -o "
Xinyu Zhangb708f572020-09-15 11:43:46 +080085 "%(_tbm_build_dir_)s/bin/"
Minos Galanakisea421232019-06-20 17:11:28 +010086 "/tfm.hex -Intel")],
87 "MUSCA_B1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080088 "%(_tbm_build_dir_)s/bin/"
89 "bl2.bin "
Minos Galanakise86f4482019-11-06 16:08:23 +000090 "-Binary -offset 0xA000000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080091 "%(_tbm_build_dir_)s/bin/"
92 "%tfm_s_ns_signed.bin "
Minos Galanakise86f4482019-11-06 16:08:23 +000093 "-Binary -offset 0xA020000 -o "
Xinyu Zhangb708f572020-09-15 11:43:46 +080094 "%(_tbm_build_dir_)s/bin/"
Karl Zhangeffed972020-06-30 15:48:01 +080095 "/tfm.hex -Intel")],
96 "MUSCA_S1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080097 "%(_tbm_build_dir_)s/bin/"
98 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +080099 "-Binary -offset 0xA000000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +0800100 "%(_tbm_build_dir_)s/bin/"
101 "%tfm_s_ns_signed.bin "
Karl Zhangeffed972020-06-30 15:48:01 +0800102 "-Binary -offset 0xA020000 -o "
Xinyu Zhangb708f572020-09-15 11:43:46 +0800103 "%(_tbm_build_dir_)s/bin/"
Minos Galanakisea421232019-06-20 17:11:28 +0100104 "/tfm.hex -Intel")]
105 },
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"],
Minos Galanakisea421232019-06-20 17:11:28 +0100113 "MUSCA_A": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800114 "%(_tbm_build_dir_)s/bin/"
115 "tfm.hex",
116 "%(_tbm_build_dir_)s/bin/"
117 "mcuboot.bin",
118 "%(_tbm_build_dir_)s/bin/"
119 "tfm_sign.bin"],
Minos Galanakisea421232019-06-20 17:11:28 +0100120 "MUSCA_B1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800121 "%(_tbm_build_dir_)s/bin/"
122 "tfm.hex",
123 "%(_tbm_build_dir_)s/bin/"
124 "mcuboot.bin",
125 "%(_tbm_build_dir_)s/bin/"
126 "tfm_sign.bin"],
Karl Zhangeffed972020-06-30 15:48:01 +0800127 "MUSCA_S1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800128 "%(_tbm_build_dir_)s/bin/"
129 "tfm.hex",
130 "%(_tbm_build_dir_)s/bin/"
131 "mcuboot.bin",
132 "%(_tbm_build_dir_)s/bin/"
133 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100134 }
135}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100136
Xinyu Zhangb708f572020-09-15 11:43:46 +0800137# List of all build configs that are impossible under all circumstances
138_common_tfm_invalid_configs = [
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800139 # LVL2 requires PSA api
140 ("*", "*", False, "2", "*", "*", "*", "*", "*", "*", "*", "*"),
141 # Regression requires NS
142 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*", "*"),
Xinyu Zhang11d66112020-11-04 15:38:29 +0800143 # psoc64 requires PSA api
144 ("cypress/psoc64", "*", False, "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800145 # No PSA_ACK with regression
146 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*", "*"),
147 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*", "*"),
148 ("*", "*", "*", "*", True, "PROTECTED_STORAGE", "*", "*", "*", "*", "*", "*"),
149 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*"),
150 ("*", "*", "*", "*", True, "INTERNAL_TRUSTED_STORAGE", "*", "*", "*", "*", "*", "*"),
151 # PSA_ACK requires NS
152 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*", "*"),
153 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*", "*"),
154 ("*", "*", "*", "*", "*", "PROTECTED_STORAGE", "*", "*", "*", False, "*", "*"),
155 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*", "*"),
156 ("*", "*", "*", "*", "*", "INTERNAL_TRUSTED_STORAGE", "*", "*", "*", False, "*", "*"),
157 # Musca requires BL2
158 ("musca_a", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
159 ("musca_b1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
160 ("musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
161 # psoc64 cannot use BL2
162 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*"),
163 # Musca b1 does not support Profile S
164 ("musca_b1", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800165 # PARTITION_PS could be OFF only for Profile S and M
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800166 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800167 # PARTITION_PS should be OFF for Profile S
168 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800169 # Proile M only support for PSA_API
170 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
171 # Profile M only support for Isolation Level 2
172 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
173 # Profile S does not support MUSCA_B1
174 ("musca_b1", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
175 # Profile S does not support PSA_API
176 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
177 # Profile S only supports Isolation Level 2
178 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800179 ]
180
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100181# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100182config_AN539 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800183 "tfm_platform": ["mps2/an539"],
184 "toolchain_file": ["toolchain_GNUARM.cmake",
185 "toolchain_ARMCLANG.cmake"],
186 "psa_api": [True, False],
187 "isolation_level": ["1", "2"],
188 "test_regression": [True, False],
189 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100190 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800191 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800192 "with_bl2": [True, False],
193 "with_ns": [True, False],
194 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800195 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +0100196 },
197 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800198 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100199 }
200
Karl Zhangaff558a2020-05-15 14:28:23 +0100201config_AN524 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800202 "tfm_platform": ["mps3/an524"],
203 "toolchain_file": ["toolchain_GNUARM.cmake",
204 "toolchain_ARMCLANG.cmake"],
205 "psa_api": [True, False],
206 "isolation_level": ["1", "2"],
207 "test_regression": [True, False],
208 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100209 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800210 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800211 "with_bl2": [True, False],
212 "with_ns": [True, False],
213 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800214 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100215 },
216 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800217 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100218 }
219
Karl Zhangaff558a2020-05-15 14:28:23 +0100220config_AN521 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800221 "tfm_platform": ["mps2/an521"],
222 "toolchain_file": ["toolchain_GNUARM.cmake",
223 "toolchain_ARMCLANG.cmake"],
224 "psa_api": [True, False],
225 "isolation_level": ["1", "2"],
226 "test_regression": [True, False],
227 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100228 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800229 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800230 "with_bl2": [True, False],
231 "with_ns": [True, False],
232 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800233 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100234 },
235 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800236 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100237 }
238
Karl Zhangaff558a2020-05-15 14:28:23 +0100239config_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800240 "tfm_platform": ["mps2/an521", "musca_b1", "musca_s1"],
241 "toolchain_file": ["toolchain_GNUARM.cmake",
242 "toolchain_ARMCLANG.cmake"],
243 "psa_api": [True, False],
244 "isolation_level": ["1", "2"],
245 "test_regression": [False],
246 "test_psa_api": ["CRYPTO",
247 "PROTECTED_STORAGE",
248 "INITIAL_ATTESTATION",
249 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100250 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800251 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800252 "with_bl2": [True],
253 "with_ns": [True, False],
254 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800255 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100256 },
257 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800258 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100259 }
260
Karl Zhangaff558a2020-05-15 14:28:23 +0100261config_PSA_FF = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800262 "tfm_platform": ["mps2/an521", "musca_b1"],
263 "toolchain_file": ["toolchain_GNUARM.cmake",
264 "toolchain_ARMCLANG.cmake"],
265 "psa_api": [True],
266 "isolation_level": ["1", "2"],
267 "test_regression": [False],
268 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100269 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800270 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800271 "with_bl2": [True],
272 "with_ns": [True, False],
273 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800274 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100275 },
276 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800277 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100278 }
279
Karl Zhangaff558a2020-05-15 14:28:23 +0100280config_PSA_API_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800281 "tfm_platform": ["musca_b1"],
282 "toolchain_file": ["toolchain_GNUARM.cmake",
283 "toolchain_ARMCLANG.cmake"],
284 "psa_api": [True, False],
285 "isolation_level": ["1", "2"],
286 "test_regression": [False],
287 "test_psa_api": ["CRYPTO",
288 "PROTECTED_STORAGE",
289 "INITIAL_ATTESTATION",
290 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100291 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800292 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800293 "with_bl2": [True],
294 "with_ns": [True, False],
295 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800296 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100297 },
298 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800299 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100300 }
Minos Galanakisea421232019-06-20 17:11:28 +0100301
Xinyu Zhangb708f572020-09-15 11:43:46 +0800302config_PSA_FF_OTP = {"seed_params": {
303 "tfm_platform": ["musca_b1"],
304 "toolchain_file": ["toolchain_GNUARM.cmake",
305 "toolchain_ARMCLANG.cmake"],
306 "psa_api": [True],
307 "isolation_level": ["1", "2"],
308 "test_regression": [False],
309 "test_psa_api": ["IPC"],
310 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800311 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800312 "with_bl2": [True],
313 "with_ns": [True, False],
314 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800315 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800316 },
317 "common_params": _common_tfm_builder_cfg,
318 "invalid": _common_tfm_invalid_configs + []
319 }
320
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800321config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800322 "tfm_platform": ["cypress/psoc64"],
323 "toolchain_file": ["toolchain_GNUARM.cmake",
324 "toolchain_ARMCLANG.cmake"],
325 "psa_api": [True],
326 "isolation_level": ["1", "2"],
327 "test_regression": [True],
328 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800329 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800330 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800331 "with_bl2": [False],
332 "with_ns": [True, False],
333 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800334 "partition_ps": ["ON"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800335 },
336 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800337 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800338 }
339
Minos Galanakisea421232019-06-20 17:11:28 +0100340config_AN519 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800341 "tfm_platform": ["mps2/an519"],
342 "toolchain_file": ["toolchain_GNUARM.cmake",
343 "toolchain_ARMCLANG.cmake"],
344 "psa_api": [True, False],
345 "isolation_level": ["1", "2"],
346 "test_regression": [True, False],
347 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100348 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800349 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800350 "with_bl2": [True, False],
351 "with_ns": [True, False],
352 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800353 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +0100354 },
355 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800356 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100357 }
358
Xinyu Zhangb708f572020-09-15 11:43:46 +0800359config_IPC = {"seed_params": {
360 "tfm_platform": ["mps2/an521", "mps2/an519", "musca_a", "musca_b1"],
361 "toolchain_file": ["toolchain_GNUARM.cmake",
362 "toolchain_ARMCLANG.cmake"],
363 "psa_api": [True],
364 "isolation_level": ["1", "2"],
365 "test_regression": [True, False],
366 "test_psa_api": ["OFF"],
367 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800368 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800369 "with_bl2": [True, False],
370 "with_ns": [True, False],
371 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800372 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800373 },
Minos Galanakisea421232019-06-20 17:11:28 +0100374 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800375 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100376 }
377
Minos Galanakisea421232019-06-20 17:11:28 +0100378config_full = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800379 "tfm_platform": ["mps2/an521", "mps2/an519",
380 "musca_a", "musca_b1",
381 "mps2/an539", "mps3/an524",
382 "cypress/psoc64"],
383 "toolchain_file": ["toolchain_GNUARM.cmake",
384 "toolchain_ARMCLANG.cmake"],
385 "psa_api": [True, False],
386 "isolation_level": ["1", "2"],
387 "test_regression": [True, False],
388 "test_psa_api": ["OFF"],
Dean Birchd6ce2c82020-05-13 13:16:15 +0100389 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800390 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800391 "with_bl2": [True, False],
392 "with_ns": [True, False],
393 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800394 "partition_ps": ["ON"],
Dean Birchd6ce2c82020-05-13 13:16:15 +0100395 },
396 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800397 "invalid": _common_tfm_invalid_configs + [
398 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800399 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800400 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800401 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800402 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800403 }
404
Karl Zhang81a76772020-05-11 18:28:52 +0800405config_full_gnuarm = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800406 "tfm_platform": ["mps2/an521", "mps2/an519",
407 "musca_a", "musca_b1",
408 "mps3/an524", "mps2/an539",
409 "cypress/psoc64"],
410 "toolchain_file": ["toolchain_GNUARM.cmake"],
411 "psa_api": [True, False],
412 "isolation_level": ["1", "2"],
413 "test_regression": [True, False],
414 "test_psa_api": ["OFF"],
Karl Zhang81a76772020-05-11 18:28:52 +0800415 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800416 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800417 "with_bl2": [True, False],
418 "with_ns": [True, False],
419 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800420 "partition_ps": ["ON"],
Karl Zhang81a76772020-05-11 18:28:52 +0800421 },
422 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800423 "invalid": _common_tfm_invalid_configs + [
424 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800425 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800426 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800427 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800428 ]
Dean Birchd6ce2c82020-05-13 13:16:15 +0100429 }
430
Karl Zhangaff558a2020-05-15 14:28:23 +0100431config_tfm_test = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800432 "tfm_platform": ["mps2/an521", "musca_a",
433 "musca_b1", "musca_s1"],
434 "toolchain_file": ["toolchain_ARMCLANG.cmake",
435 "toolchain_GNUARM.cmake"],
436 "psa_api": [True, False],
437 "isolation_level": ["1", "2"],
438 "test_regression": [True, False],
439 "test_psa_api": ["OFF"],
440 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800441 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800442 "with_bl2": [True, False],
443 "with_ns": [True, False],
444 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800445 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800446 },
447 "common_params": _common_tfm_builder_cfg,
448 "invalid": _common_tfm_invalid_configs + []
449 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800450
Karl Zhangaff558a2020-05-15 14:28:23 +0100451config_tfm_test2 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800452 "tfm_platform": ["mps2/an519", "mps3/an524",
453 "mps2/an539", "mps2/sse-200_aws"],
454 "toolchain_file": ["toolchain_ARMCLANG.cmake",
455 "toolchain_GNUARM.cmake"],
456 "psa_api": [True, False],
457 "isolation_level": ["1", "2"],
458 "test_regression": [True, False],
459 "test_psa_api": ["OFF"],
460 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800461 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800462 "with_bl2": [True, False],
463 "with_ns": [True, False],
464 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800465 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800466 },
467 "common_params": _common_tfm_builder_cfg,
468 "invalid": _common_tfm_invalid_configs + [
469 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800470 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800471 ]
472 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100473
Karl Zhang14573bc2020-06-08 09:23:21 +0800474config_tfm_profile = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800475 "tfm_platform": ["mps2/an519", "mps2/an521",
476 "musca_b1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800477 "toolchain_file": ["toolchain_ARMCLANG.cmake",
478 "toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800479 "psa_api": [True, False],
480 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800481 "test_regression": [True, False],
482 "test_psa_api": ["OFF"],
483 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800484 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800485 "with_bl2": [True, False],
486 "with_ns": [True, False],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800487 "profile": ["profile_small", "profile_medium"],
488 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800489 },
490 "common_params": _common_tfm_builder_cfg,
491 "invalid": _common_tfm_invalid_configs + [
492 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800493 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800494 ]
495 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800496
Karl Zhangaff558a2020-05-15 14:28:23 +0100497config_tfm_test_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800498 "tfm_platform": ["musca_b1"],
499 "toolchain_file": ["toolchain_ARMCLANG.cmake",
500 "toolchain_GNUARM.cmake"],
501 "psa_api": [True, False],
502 "isolation_level": ["1", "2"],
503 "test_regression": [True, False],
504 "test_psa_api": ["OFF"],
505 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800506 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800507 "with_bl2": [True],
508 "with_ns": [True, False],
509 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800510 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800511 },
512 "common_params": _common_tfm_builder_cfg,
513 "invalid": _common_tfm_invalid_configs + []
514 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100515
Minos Galanakisea421232019-06-20 17:11:28 +0100516config_MUSCA_A = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800517 "tfm_platform": ["musca_a"],
518 "toolchain_file": ["toolchain_ARMCLANG.cmake",
519 "toolchain_GNUARM.cmake"],
520 "psa_api": [True, False],
521 "isolation_level": ["1", "2"],
522 "test_regression": [True, False],
523 "test_psa_api": ["OFF"],
524 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800525 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800526 "with_bl2": [True],
527 "with_ns": [True, False],
528 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800529 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800530 },
531 "common_params": _common_tfm_builder_cfg,
532 "invalid": _common_tfm_invalid_configs + []
533 }
Minos Galanakisea421232019-06-20 17:11:28 +0100534
535config_MUSCA_B1 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800536 "tfm_platform": ["musca_b1"],
537 "toolchain_file": ["toolchain_ARMCLANG.cmake",
538 "toolchain_GNUARM.cmake"],
539 "psa_api": [True, False],
540 "isolation_level": ["1", "2"],
541 "test_regression": [True, False],
542 "test_psa_api": ["OFF"],
543 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800544 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800545 "with_bl2": [True],
546 "with_ns": [True, False],
547 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800548 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800549 },
550 "common_params": _common_tfm_builder_cfg,
551 "invalid": _common_tfm_invalid_configs + []
552 }
Minos Galanakisea421232019-06-20 17:11:28 +0100553
Karl Zhangeffed972020-06-30 15:48:01 +0800554config_MUSCA_S1 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800555 "tfm_platform": ["musca_s1"],
556 "toolchain_file": ["toolchain_ARMCLANG.cmake",
557 "toolchain_GNUARM.cmake"],
558 "psa_api": [True, False],
559 "isolation_level": ["1", "2"],
560 "test_regression": [True, False],
561 "test_psa_api": ["OFF"],
562 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800563 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800564 "with_bl2": [True],
565 "with_ns": [True, False],
566 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800567 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800568 },
569 "common_params": _common_tfm_builder_cfg,
570 "invalid": _common_tfm_invalid_configs + []
571 }
Karl Zhangeffed972020-06-30 15:48:01 +0800572
Karl Zhangaff558a2020-05-15 14:28:23 +0100573config_release = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800574 "tfm_platform": ["mps2/an521", "mps2/an519",
575 "musca_a", "musca_b1", "musca_s1",
576 "mps3/an524", "mps2/an539"],
577 "toolchain_file": ["toolchain_ARMCLANG.cmake",
578 "toolchain_GNUARM.cmake"],
579 "psa_api": [True, False],
580 "isolation_level": ["1", "2"],
581 "test_regression": [True, False],
582 "test_psa_api": ["OFF"],
583 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800584 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800585 "with_bl2": [True, False],
586 "with_ns": [True, False],
587 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800588 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800589 },
590 "common_params": _common_tfm_builder_cfg,
591 "invalid": _common_tfm_invalid_configs + [
592 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800593 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800594 ]
595 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100596
597# Configure build manager to build several combinations
598config_AN521_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800599 "tfm_platform": ["mps2/an521", "mps2/an519",
600 "musca_b1"],
601 "toolchain_file": ["toolchain_GNUARM.cmake",
602 "toolchain_ARMCLANG.cmake"],
603 "psa_api": [True, False],
604 "isolation_level": ["1", "2"],
605 "test_regression": [False],
606 "test_psa_api": ["IPC",
607 "CRYPTO",
608 "PROTECTED_STORAGE",
609 "INITIAL_ATTESTATION",
610 "INTERNAL_TRUSTED_STORAGE"],
611 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800612 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800613 "with_bl2": [True],
614 "with_ns": [True, False],
615 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800616 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100617 },
618 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800619 "invalid": _common_tfm_invalid_configs + [
620 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800621 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800622 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100623 }
624
Karl Zhangaff558a2020-05-15 14:28:23 +0100625config_AN521_PSA_IPC = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800626 "tfm_platform": ["mps2/an521", "mps2/an519",
627 "musca_b1"],
628 "toolchain_file": ["toolchain_GNUARM.cmake",
629 "toolchain_ARMCLANG.cmake"],
630 "psa_api": [True],
631 "isolation_level": ["1", "2"],
632 "test_regression": [False],
633 "test_psa_api": ["IPC"],
634 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800635 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800636 "with_bl2": [True],
637 "with_ns": [True, False],
638 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800639 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100640 },
641 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800642 "invalid": _common_tfm_invalid_configs + [
643 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800644 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800645 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100646 }
647
Karl Zhang14573bc2020-06-08 09:23:21 +0800648config_nightly = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800649 "tfm_platform": ["mps2/an521", "mps2/an519",
650 "musca_a", "musca_b1", "musca_s1",
651 "mps3/an524", "mps2/an539",
652 "mps2/sse-200_aws", "cypress/psoc64"],
653 "toolchain_file": ["toolchain_GNUARM.cmake",
654 "toolchain_ARMCLANG.cmake"],
655 "psa_api": [True, False],
656 "isolation_level": ["1", "2"],
657 "test_regression": [True, False],
658 "test_psa_api": ["OFF"],
659 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800660 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800661 "with_bl2": [True, False],
662 "with_ns": [True, False],
663 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800664 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800665 },
666 "common_params": _common_tfm_builder_cfg,
667 "invalid": _common_tfm_invalid_configs + [
668 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800669 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800670 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800671 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800672 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800673 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800674 ]
675 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800676
Karl Zhang14573bc2020-06-08 09:23:21 +0800677config_nightly_profile = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800678 "tfm_platform": ["mps2/an519", "mps2/an521",
679 "musca_b1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800680 "toolchain_file": ["toolchain_ARMCLANG.cmake",
681 "toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800682 "psa_api": [True, False],
683 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800684 "test_regression": [True, False],
685 "test_psa_api": ["OFF"],
686 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800687 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800688 "with_bl2": [True, False],
689 "with_ns": [True, False],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800690 "profile": ["profile_small", "profile_medium"],
691 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800692 },
693 "common_params": _common_tfm_builder_cfg,
694 "invalid": _common_tfm_invalid_configs + [
695 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800696 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800697 ]
698 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800699
Karl Zhang14573bc2020-06-08 09:23:21 +0800700config_nightly_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800701 "tfm_platform": ["mps2/an521"],
702 "toolchain_file": ["toolchain_GNUARM.cmake",
703 "toolchain_ARMCLANG.cmake"],
704 "psa_api": [True, False],
705 "isolation_level": ["1", "2"],
706 "test_regression": [False],
707 "test_psa_api": ["CRYPTO",
708 "PROTECTED_STORAGE",
709 "INITIAL_ATTESTATION",
710 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800711 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800712 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800713 "with_bl2": [True],
714 "with_ns": [True, False],
715 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800716 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800717 },
718 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800719 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800720 }
721
Karl Zhang14573bc2020-06-08 09:23:21 +0800722config_nightly_PSA_FF = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800723 "tfm_platform": ["mps2/an521"],
724 "toolchain_file": ["toolchain_GNUARM.cmake",
725 "toolchain_ARMCLANG.cmake"],
726 "psa_api": [True],
727 "isolation_level": ["1", "2"],
728 "test_regression": [False],
729 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800730 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800731 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800732 "with_bl2": [True],
733 "with_ns": [True, False],
734 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800735 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800736 },
737 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800738 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800739 }
740
Karl Zhang14573bc2020-06-08 09:23:21 +0800741config_nightly_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800742 "tfm_platform": ["musca_b1"],
743 "toolchain_file": ["toolchain_GNUARM.cmake",
744 "toolchain_ARMCLANG.cmake"],
745 "psa_api": [True, False],
746 "isolation_level": ["1", "2"],
747 "test_regression": [True],
748 "test_psa_api": ["OFF"],
749 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800750 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800751 "with_bl2": [True],
752 "with_ns": [True, False],
753 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800754 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800755 },
756 "common_params": _common_tfm_builder_cfg,
757 "invalid": _common_tfm_invalid_configs + []
758 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800759
Karl Zhang14573bc2020-06-08 09:23:21 +0800760config_pp_test = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800761 "tfm_platform": ["mps2/an521", "mps2/an519",
762 "musca_b1"],
763 "toolchain_file": ["toolchain_GNUARM.cmake",
764 "toolchain_ARMCLANG.cmake"],
765 "psa_api": [True, False],
766 "isolation_level": ["1", "2"],
767 "test_regression": [True],
768 "test_psa_api": ["OFF"],
769 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800770 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800771 "with_bl2": [True],
772 "with_ns": [True, False],
773 "profile": ["", "profile_small"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800774 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800775 },
776 "common_params": _common_tfm_builder_cfg,
777 "invalid": _common_tfm_invalid_configs + [
778 ("musca_b1", "*", "*", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800779 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800780 ("*", "*", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800781 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800782 ("*", "*", "*", "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800783 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800784 ]
785 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800786
Karl Zhang14573bc2020-06-08 09:23:21 +0800787config_pp_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800788 "tfm_platform": ["musca_b1"],
789 "toolchain_file": ["toolchain_GNUARM.cmake"],
790 "psa_api": [True, False],
791 "isolation_level": ["1", "2"],
792 "test_regression": [True],
793 "test_psa_api": ["OFF"],
794 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800795 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800796 "with_bl2": [True],
797 "with_ns": [True, False],
798 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800799 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800800 },
801 "common_params": _common_tfm_builder_cfg,
802 "invalid": _common_tfm_invalid_configs + []
803 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800804
805# Configure build manager to build several combinations
806config_pp_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800807 "tfm_platform": ["mps2/an521"],
808 "toolchain_file": ["toolchain_GNUARM.cmake"],
809 "psa_api": [True],
810 "isolation_level": ["2"],
811 "test_regression": [False],
812 "test_psa_api": ["IPC",
813 "CRYPTO",
814 "PROTECTED_STORAGE",
815 "INITIAL_ATTESTATION",
816 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800817 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800818 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800819 "with_bl2": [True],
820 "with_ns": [True, False],
821 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800822 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800823 },
824 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800825 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800826 }
827
Karl Zhang14573bc2020-06-08 09:23:21 +0800828config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800829 "tfm_platform": ["cypress/psoc64"],
830 "toolchain_file": ["toolchain_GNUARM.cmake"],
831 "psa_api": [True],
832 "isolation_level": ["1", "2"],
833 "test_regression": [True],
834 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800835 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800836 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800837 "with_bl2": [False],
838 "with_ns": [True, False],
839 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800840 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800841 },
842 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800843 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800844 }
845
Minos Galanakisea421232019-06-20 17:11:28 +0100846# Configruation used for document building
847config_doxygen = {"common_params": {
848 "config_type": "tf-m_documents",
849 "codebase_root_dir": "tf-m",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800850 "build_cmds": {"all": ["-DTFM_PLATFORM=mps2/an521 "
851 "-DCMAKE_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +0100852 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +0100853 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800854 "cmake --build ./ -- docs"]},
855 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
856 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +0100857 r'/(\w+\.(?:html|md|pdf))$',
858 },
Xinyu Zhangb708f572020-09-15 11:43:46 +0800859 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100860 }
861
Karl Zhangaff558a2020-05-15 14:28:23 +0100862# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +0100863config_debug = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800864 "tfm_platform": ["mps2/an521"],
865 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
866 "psa_api": [False],
867 "isolation_level": ["1"],
868 "test_regression": [False],
869 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100870 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800871 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800872 "with_bl2": [True],
873 "with_ns": [True],
874 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800875 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +0100876 },
877 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800878 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100879 }
880
Dean Birch4c6ad622020-03-13 11:28:03 +0000881# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +0800882config_ci = {"seed_params": {
883 "tfm_platform": ["mps2/an521"],
884 "toolchain_file": ["toolchain_ARMCLANG.cmake",
885 "toolchain_GNUARM.cmake"],
886 "psa_api": [True, False],
887 "isolation_level": ["1", "2"],
888 "test_regression": [True, False],
889 "test_psa_api": ["OFF"],
890 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800891 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800892 "with_bl2": [True, False],
893 "with_ns": [True],
894 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800895 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800896 },
897 "common_params": _common_tfm_builder_cfg,
898 "invalid": _common_tfm_invalid_configs + [
899 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800900 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800901 ("*", "toolchain_ARMCLANG.cmake", False, "1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800902 "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800903 ]
904 }
Matthew Hartfb6fd362020-03-04 21:03:59 +0000905
Dean Birchd6ce2c82020-05-13 13:16:15 +0100906# Configuration used in CI if armclang not available
Xinyu Zhangb708f572020-09-15 11:43:46 +0800907config_ci_gnuarm = {"seed_params": {
908 "tfm_platform": ["mps2/an521"],
909 "toolchain_file": ["toolchain_ARMCLANG.cmake",
910 "toolchain_GNUARM.cmake"],
911 "psa_api": [True, False],
912 "isolation_level": ["1", "2"],
913 "test_regression": [True, False],
914 "test_psa_api": ["OFF"],
915 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800916 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800917 "with_bl2": [True, False],
918 "with_ns": [True],
919 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800920 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800921 },
922 "common_params": _common_tfm_builder_cfg,
923 "invalid": _common_tfm_invalid_configs + [
924 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800925 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800926 ("*", "toolchain_ARMCLANG.cmake", False, "1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800927 "*", "*", "False", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800928 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800929 "*", "*", "*", "*", "*", "*") # Disable ARMCLANG for now
Xinyu Zhangb708f572020-09-15 11:43:46 +0800930 ]
931 }
Dean Birchd6ce2c82020-05-13 13:16:15 +0100932
Xinyu Zhangb708f572020-09-15 11:43:46 +0800933config_lava_debug = {"seed_params": {
934 "tfm_platform": ["mps2/an521", "mps2/an519"],
935 "toolchain_file": ["toolchain_GNUARM.cmake"],
936 "psa_api": [True, False],
937 "isolation_level": ["1", "2"],
938 "test_regression": [True],
939 "test_psa_api": ["OFF"],
940 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800941 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800942 "with_bl2": [True, False],
943 "with_ns": [True, False],
944 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800945 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800946 },
947 "common_params": _common_tfm_builder_cfg,
948 "invalid": _common_tfm_invalid_configs + [
949 ("mps2/an521", "toolchain_GNUARM.cmake", True, "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800950 "*", "*", True, "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +0800951 ]
952 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000953
Karl Zhangeea16ed2020-06-15 15:03:12 +0800954#GNU groups for external CI only
955# Configure build manager to build the maximum number of configurations
956config_tfm_test_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800957 "tfm_platform": ["mps2/an521", "musca_a",
958 "musca_b1", "musca_s1"],
959 "toolchain_file": ["toolchain_GNUARM.cmake"],
960 "psa_api": [True, False],
961 "isolation_level": ["1", "2"],
962 "test_regression": [True, False],
963 "test_psa_api": ["OFF"],
964 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800965 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800966 "with_bl2": [True, False],
967 "with_ns": [True, False],
968 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800969 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800970 },
971 "common_params": _common_tfm_builder_cfg,
972 "invalid": _common_tfm_invalid_configs + [
973 ("musca_a", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800974 "*", "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800975 ("musca_b1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800976 "*", "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800977 ("musca_s1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800978 "*", "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800979 ]
980 }
Karl Zhangeea16ed2020-06-15 15:03:12 +0800981
982# Configure build manager to build the maximum number of configurations
983config_tfm_test2_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800984 "tfm_platform": ["mps2/an519", "mps3/an524",
985 "mps2/an539", "mps2/sse-200_aws"],
986 "toolchain_file": ["toolchain_GNUARM.cmake"],
987 "psa_api": [True, False],
988 "isolation_level": ["1", "2"],
989 "test_regression": [True, False],
990 "test_psa_api": ["OFF"],
991 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800992 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800993 "with_bl2": [True, False],
994 "with_ns": [True, False],
995 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800996 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800997 },
998 "common_params": _common_tfm_builder_cfg,
999 "invalid": _common_tfm_invalid_configs + [
1000 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001001 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001002 ]
1003 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001004
1005# Configure build manager to build the maximum number of configurations
1006config_tfm_profile_gnu = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001007 "tfm_platform": ["mps2/an519", "mps2/an521",
1008 "musca_b1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001009 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001010 "psa_api": [True, False],
1011 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001012 "test_regression": [True, False],
1013 "test_psa_api": ["OFF"],
1014 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001015 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001016 "with_bl2": [True, False],
1017 "with_ns": [True, False],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001018 "profile": ["profile_small", "profile_medium"],
1019 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001020 },
1021 "common_params": _common_tfm_builder_cfg,
1022 "invalid": _common_tfm_invalid_configs + [
1023 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001024 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001025 ]
1026 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001027
1028# Configure build manager to build the maximum number of configurations
1029config_tfm_test_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001030 "tfm_platform": ["musca_b1"],
1031 "toolchain_file": ["toolchain_GNUARM.cmake"],
1032 "psa_api": [True, False],
1033 "isolation_level": ["1", "2"],
1034 "test_regression": [True, False],
1035 "test_psa_api": ["OFF"],
1036 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001037 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001038 "with_bl2": [True],
1039 "with_ns": [True, False],
1040 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001041 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001042 },
1043 "common_params": _common_tfm_builder_cfg,
1044 "invalid": _common_tfm_invalid_configs + []
1045 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001046
1047# Configure build manager to build several combinations
1048config_PSA_API_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001049 "tfm_platform": ["mps2/an521", "musca_b1"],
1050 "toolchain_file": ["toolchain_GNUARM.cmake"],
1051 "psa_api": [True, False],
1052 "isolation_level": ["1", "2"],
1053 "test_regression": [False],
1054 "test_psa_api": ["CRYPTO",
1055 "PROTECTED_STORAGE",
1056 "INITIAL_ATTESTATION",
1057 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001058 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001059 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001060 "with_bl2": [True],
1061 "with_ns": [True, False],
1062 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001063 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001064 },
1065 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001066 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001067 }
1068
1069# Configure build manager to build several combinations
1070config_PSA_FF_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001071 "tfm_platform": ["mps2/an521", "musca_b1"],
1072 "toolchain_file": ["toolchain_GNUARM.cmake"],
1073 "psa_api": [True],
1074 "isolation_level": ["1", "2"],
1075 "test_regression": [False],
1076 "test_psa_api": ["IPC"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001077 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001078 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001079 "with_bl2": [True],
1080 "with_ns": [True, False],
1081 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001082 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001083 },
1084 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001085 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001086 }
1087
1088# Configure build manager to build several combinations
1089config_PSA_API_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001090 "tfm_platform": ["musca_b1"],
1091 "toolchain_file": ["toolchain_GNUARM.cmake"],
1092 "psa_api": [True, False],
1093 "isolation_level": ["1", "2"],
1094 "test_regression": [False],
1095 "test_psa_api": ["CRYPTO",
1096 "PROTECTED_STORAGE",
1097 "INITIAL_ATTESTATION",
1098 "INTERNAL_TRUSTED_STORAGE"],
1099 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001100 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001101 "with_bl2": [True],
1102 "with_ns": [True, False],
1103 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001104 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001105 },
1106 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001107 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001108 }
1109
1110# Configure build manager to build several combinations
1111config_PSA_FF_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001112 "tfm_platform": ["musca_b1"],
1113 "toolchain_file": ["toolchain_GNUARM.cmake"],
1114 "psa_api": [True],
1115 "isolation_level": ["1", "2"],
1116 "test_regression": [False],
1117 "test_psa_api": ["IPC"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001118 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001119 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001120 "with_bl2": [True],
1121 "with_ns": [True, False],
1122 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001123 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001124 },
1125 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001126 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001127 }
1128
1129# Configure build manager to build several combinations
1130config_PSOC64_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001131 "tfm_platform": ["cypress/psoc64"],
1132 "toolchain_file": ["toolchain_GNUARM.cmake"],
1133 "psa_api": [True],
1134 "isolation_level": ["1", "2"],
1135 "test_regression": [True],
1136 "test_psa_api": ["OFF"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001137 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001138 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001139 "with_bl2": [False],
1140 "with_ns": [True, False],
1141 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001142 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001143 },
1144 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001145 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001146 }
1147
1148# Configure build manager to build the maximum number of configurations
1149config_nightly_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001150 "tfm_platform": ["mps2/an521", "mps2/an519",
1151 "musca_a", "musca_b1", "musca_s1",
1152 "mps3/an524", "mps2/an539",
1153 "mps2/sse-200_aws", "cypress/psoc64"],
1154 "toolchain_file": ["toolchain_GNUARM.cmake"],
1155 "psa_api": [True, False],
1156 "isolation_level": ["1", "2"],
1157 "test_regression": [True, False],
1158 "test_psa_api": ["OFF"],
1159 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001160 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001161 "with_bl2": [True, False],
1162 "with_ns": [True, False],
1163 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001164 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001165 },
1166 "common_params": _common_tfm_builder_cfg,
1167 "invalid": _common_tfm_invalid_configs + [
1168 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001169 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001170 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001171 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001172 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001173 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001174 ]
1175 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001176
1177# Configure build manager to build the maximum number of configurations
1178config_nightly_profile_gnu = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001179 "tfm_platform": ["mps2/an519", "mps2/an521",
1180 "musca_b1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001181 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001182 "psa_api": [True, False],
1183 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001184 "test_regression": [True, False],
1185 "test_psa_api": ["OFF"],
1186 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001187 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001188 "with_bl2": [True, False],
1189 "with_ns": [True, False],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001190 "profile": ["profile_small", "profile_medium"],
1191 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001192 },
1193 "common_params": _common_tfm_builder_cfg,
1194 "invalid": _common_tfm_invalid_configs + [
1195 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001196 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001197 ]
1198 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001199
1200# Configure build manager to build several combinations
1201config_nightly_PSA_API_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001202 "tfm_platform": ["mps2/an521"],
1203 "toolchain_file": ["toolchain_GNUARM.cmake"],
1204 "psa_api": [True, False],
1205 "isolation_level": ["1", "2"],
1206 "test_regression": [False],
1207 "test_psa_api": ["CRYPTO",
1208 "PROTECTED_STORAGE",
1209 "INITIAL_ATTESTATION",
1210 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001211 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001212 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001213 "with_bl2": [True],
1214 "with_ns": [True, False],
1215 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001216 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001217 },
1218 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001219 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001220 }
1221
1222# Configure build manager to build several combinations
1223config_nightly_PSA_FF_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001224 "tfm_platform": ["mps2/an521"],
1225 "toolchain_file": ["toolchain_GNUARM.cmake"],
1226 "psa_api": [True],
1227 "isolation_level": ["1", "2"],
1228 "test_regression": [False],
1229 "test_psa_api": ["IPC"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001230 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001231 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001232 "with_bl2": [True],
1233 "with_ns": [True, False],
1234 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001235 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001236 },
1237 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001238 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001239 }
1240
1241# Configure build manager to build the maximum number of configurations
1242config_nightly_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001243 "tfm_platform": ["musca_b1"],
1244 "toolchain_file": ["toolchain_GNUARM.cmake"],
1245 "psa_api": [True, False],
1246 "isolation_level": ["1", "2"],
1247 "test_regression": [True],
1248 "test_psa_api": ["OFF"],
1249 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001250 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001251 "with_bl2": [True],
1252 "with_ns": [True, False],
1253 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001254 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001255 },
1256 "common_params": _common_tfm_builder_cfg,
1257 "invalid": _common_tfm_invalid_configs + []
1258 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001259
1260# Configure build manager to build the maximum number of configurations
1261config_pp_test_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001262 "tfm_platform": ["mps2/an521", "mps2/an519",
1263 "musca_b1"],
Xinyu Zhangf1025b72020-09-28 17:10:57 +08001264 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001265 "psa_api": [True, False],
1266 "isolation_level": ["1", "2"],
1267 "test_regression": [True],
1268 "test_psa_api": ["OFF"],
1269 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001270 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001271 "with_bl2": [True],
1272 "with_ns": [True, False],
1273 "profile": ["", "profile_small"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001274 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001275 },
1276 "common_params": _common_tfm_builder_cfg,
1277 "invalid": _common_tfm_invalid_configs + [
1278 ("musca_b1", "*", "*", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001279 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001280 ("*", "*", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001281 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001282 ("*", "*", "*", "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001283 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001284 ]
1285 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001286
1287# Configure build manager to build the maximum number of configurations
1288config_pp_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001289 "tfm_platform": ["musca_b1"],
1290 "toolchain_file": ["toolchain_GNUARM.cmake"],
1291 "psa_api": [True, False],
1292 "isolation_level": ["1", "2"],
1293 "test_regression": [True],
1294 "test_psa_api": ["OFF"],
1295 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001296 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001297 "with_bl2": [True],
1298 "with_ns": [True, False],
1299 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001300 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001301 },
1302 "common_params": _common_tfm_builder_cfg,
1303 "invalid": _common_tfm_invalid_configs + []
1304 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001305
1306# Configure build manager to build several combinations
1307config_pp_PSA_API_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001308 "tfm_platform": ["mps2/an521"],
1309 "toolchain_file": ["toolchain_GNUARM.cmake"],
1310 "psa_api": [True],
1311 "isolation_level": ["2"],
1312 "test_regression": [False],
1313 "test_psa_api": ["IPC",
1314 "CRYPTO",
1315 "PROTECTED_STORAGE",
1316 "INITIAL_ATTESTATION",
1317 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001318 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001319 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001320 "with_bl2": [True],
1321 "with_ns": [True, False],
1322 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001323 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001324 },
1325 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001326 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001327 }
1328
1329# Configure build manager to build several combinations
1330config_pp_PSoC64_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001331 "tfm_platform": ["cypress/psoc64"],
1332 "toolchain_file": ["toolchain_GNUARM.cmake"],
1333 "psa_api": [True],
1334 "isolation_level": ["1", "2"],
1335 "test_regression": [True],
1336 "test_psa_api": ["OFF"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001337 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001338 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001339 "with_bl2": [False],
1340 "with_ns": [True, False],
1341 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001342 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001343 },
1344 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001345 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001346 }
1347
Karl Zhangaff558a2020-05-15 14:28:23 +01001348_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001349 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001350 "tfm_test": config_tfm_test,
1351 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001352 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +01001353 "tfm_test_otp": config_tfm_test_OTP,
1354 "psa_api": config_PSA_API,
1355 "psa_api_otp": config_PSA_API_OTP,
1356 "psa_ff": config_PSA_FF,
1357 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001358 "tfm_psoc64": config_PSOC64,
1359
1360 #nightly test group
1361 "nightly_test": config_nightly,
1362 "nightly_profile": config_nightly_profile,
1363 "nightly_psa_api": config_nightly_PSA_API,
1364 "nightly_ff": config_nightly_PSA_FF,
1365 "nightly_otp": config_nightly_OTP,
1366
1367 #per patch test group
1368 "pp_test": config_pp_test,
1369 "pp_OTP": config_pp_OTP,
1370 "pp_PSA_API": config_pp_PSA_API,
1371 "pp_psoc64": config_pp_PSoC64,
1372
Karl Zhangeea16ed2020-06-15 15:03:12 +08001373 #GNU only configs against groups above
1374 #The combinations should be the same except the CLANG ones
1375 #release test group (GNU)
1376 "tfm_test_gnu": config_tfm_test_gnu,
1377 "tfm_test2_gnu": config_tfm_test2_gnu,
1378 "tfm_profile_gnu": config_tfm_profile_gnu,
1379 "tfm_test_otp_gnu": config_tfm_test_OTP_gnu,
1380 "psa_api_gnu": config_PSA_API_gnu,
1381 "psa_api_otp_gnu": config_PSA_API_OTP_gnu,
1382 "psa_ff_gnu": config_PSA_FF_gnu,
1383 "psa_ff_otp_gnu": config_PSA_FF_OTP_gnu,
1384 "tfm_psoc64_gnu": config_PSOC64_gnu,
1385
1386 #nightly test group (GNU)
1387 "nightly_test_gnu": config_nightly_gnu,
1388 "nightly_profile_gnu": config_nightly_profile_gnu,
1389 "nightly_psa_api_gnu": config_nightly_PSA_API_gnu,
1390 "nightly_ff_gnu": config_nightly_PSA_FF_gnu,
1391 "nightly_otp_gnu": config_nightly_OTP_gnu,
1392
1393 #per patch test group (GNU)
1394 "pp_test_gnu": config_pp_test_gnu,
1395 "pp_OTP_gnu": config_pp_OTP_gnu,
1396 "pp_PSA_API_gnu": config_pp_PSA_API_gnu,
1397 "pp_psoc64_gnu": config_pp_PSoC64_gnu,
1398
1399
Karl Zhang14573bc2020-06-08 09:23:21 +08001400 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001401 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001402
1403 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001404 "an539": config_AN539,
1405 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001406 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001407 "an521_psa_api": config_AN521_PSA_API,
1408 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001409 "an519": config_AN519,
1410 "musca_a": config_MUSCA_A,
1411 "musca_b1": config_MUSCA_B1,
Karl Zhangeffed972020-06-30 15:48:01 +08001412 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001413 "psoc64": config_PSOC64,
Minos Galanakisea421232019-06-20 17:11:28 +01001414 "ipc": config_IPC,
1415 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001416 "debug": config_debug,
Karl Zhangaff558a2020-05-15 14:28:23 +01001417 "release": config_release,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001418 "debug": config_debug,
Karl Zhang14573bc2020-06-08 09:23:21 +08001419
1420 #DevOps team test group
1421 "full_gnuarm": config_full_gnuarm,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001422 "lava_debug": config_lava_debug,
Dean Birchd6ce2c82020-05-13 13:16:15 +01001423 "ci": config_ci,
1424 "ci_gnuarm": config_ci_gnuarm}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001425
1426if __name__ == '__main__':
1427 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001428
Minos Galanakisea421232019-06-20 17:11:28 +01001429 # Default behavior is to export refference config when called
1430 _dir = os.getcwd()
1431 from utils import save_json
1432 for _cname, _cfg in _builtin_configs.items():
1433 _fname = os.path.join(_dir, _cname + ".json")
1434 print("Exporting config %s" % _fname)
1435 save_json(_fname, _cfg)