blob: 323d42511675e88c2f113a4af6872f6c1cdb5773 [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",
43 "profile"],
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 " + \
50 "-DCMAKE_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(toolchain_file)s " + \
51 "-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 " + \
64 "%(codebase_root_dir)s",
Karl Zhangaff558a2020-05-15 14:28:23 +010065
Minos Galanakisea421232019-06-20 17:11:28 +010066 # A small subset of string substitution params is allowed in commands.
67 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
68 # _tbm_target_platform_ with the paths set when building
69
Xinyu Zhangb708f572020-09-15 11:43:46 +080070 "artifact_capture_rex": (r'%(_tbm_build_dir_)s/bin'
Minos Galanakisea421232019-06-20 17:11:28 +010071 r'/(\w+\.(?:axf|bin|hex))$'),
72
73 # ALL commands will be executed for every build.
74 # Other keys will append extra commands when matching target_platform
Karl Zhangaff558a2020-05-15 14:28:23 +010075 "build_cmds": {"all": ["cmake --build ./ -- install"],
Minos Galanakisea421232019-06-20 17:11:28 +010076 "MUSCA_A": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080077 "%(_tbm_build_dir_)s/bin/"
78 "bl2.bin "
Minos Galanakisea421232019-06-20 17:11:28 +010079 "-Binary -offset 0x200000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080080 "%(_tbm_build_dir_)s/bin/"
81 "%tfm_s_ns_signed.bin "
Minos Galanakisea421232019-06-20 17:11:28 +010082 "-Binary -offset 0x220000 -o "
Xinyu Zhangb708f572020-09-15 11:43:46 +080083 "%(_tbm_build_dir_)s/bin/"
Minos Galanakisea421232019-06-20 17:11:28 +010084 "/tfm.hex -Intel")],
85 "MUSCA_B1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080086 "%(_tbm_build_dir_)s/bin/"
87 "bl2.bin "
Minos Galanakise86f4482019-11-06 16:08:23 +000088 "-Binary -offset 0xA000000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080089 "%(_tbm_build_dir_)s/bin/"
90 "%tfm_s_ns_signed.bin "
Minos Galanakise86f4482019-11-06 16:08:23 +000091 "-Binary -offset 0xA020000 -o "
Xinyu Zhangb708f572020-09-15 11:43:46 +080092 "%(_tbm_build_dir_)s/bin/"
Karl Zhangeffed972020-06-30 15:48:01 +080093 "/tfm.hex -Intel")],
94 "MUSCA_S1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080095 "%(_tbm_build_dir_)s/bin/"
96 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +080097 "-Binary -offset 0xA000000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080098 "%(_tbm_build_dir_)s/bin/"
99 "%tfm_s_ns_signed.bin "
Karl Zhangeffed972020-06-30 15:48:01 +0800100 "-Binary -offset 0xA020000 -o "
Xinyu Zhangb708f572020-09-15 11:43:46 +0800101 "%(_tbm_build_dir_)s/bin/"
Minos Galanakisea421232019-06-20 17:11:28 +0100102 "/tfm.hex -Intel")]
103 },
104
105 # (Optional) If set will fail if those artefacts are missing post build
106 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800107 "%(_tbm_build_dir_)s/bin/"
108 "tfm_s.bin",
109 "%(_tbm_build_dir_)s/bin/"
110 "tfm_ns.bin"],
Minos Galanakisea421232019-06-20 17:11:28 +0100111 "MUSCA_A": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800112 "%(_tbm_build_dir_)s/bin/"
113 "tfm.hex",
114 "%(_tbm_build_dir_)s/bin/"
115 "mcuboot.bin",
116 "%(_tbm_build_dir_)s/bin/"
117 "tfm_sign.bin"],
Minos Galanakisea421232019-06-20 17:11:28 +0100118 "MUSCA_B1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800119 "%(_tbm_build_dir_)s/bin/"
120 "tfm.hex",
121 "%(_tbm_build_dir_)s/bin/"
122 "mcuboot.bin",
123 "%(_tbm_build_dir_)s/bin/"
124 "tfm_sign.bin"],
Karl Zhangeffed972020-06-30 15:48:01 +0800125 "MUSCA_S1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800126 "%(_tbm_build_dir_)s/bin/"
127 "tfm.hex",
128 "%(_tbm_build_dir_)s/bin/"
129 "mcuboot.bin",
130 "%(_tbm_build_dir_)s/bin/"
131 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100132 }
133}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100134
Xinyu Zhangb708f572020-09-15 11:43:46 +0800135# List of all build configs that are impossible under all circumstances
136_common_tfm_invalid_configs = [
137 ("*", "*", False, "2", "*", "*", "*", "*", "*", "*", "*"), # LVL2 requires PSA api
138 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*"), # Regression requires NS
139 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*"), # No PSA_ACK with regression
140 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*"), # No PSA_ACK with regression
141 ("*", "*", "*", "*", True, "PROTECTED_STORAGE", "*", "*", "*", "*", "*"), # No PSA_ACK with regression
142 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*"), # No PSA_ACK with regression
143 ("*", "*", "*", "*", True, "INTERNAL_TRUSTED_STORAGE", "*", "*", "*", "*", "*"), # No PSA_ACK with regression
144 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*"), # PSA_ACK requires NS
145 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*"), # PSA_ACK requires NS
146 ("*", "*", "*", "*", "*", "PROTECTED_STORAGE", "*", "*", "*", False, "*"), # PSA_ACK requires NS
147 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*"), # PSA_ACK requires NS
148 ("*", "*", "*", "*", "*", "INTERNAL_TRUSTED_STORAGE", "*", "*", "*", False, "*"), # PSA_ACK requires NS
149 ("musca_a", "*", "*", "*", "*", "*", "*", "*", False, "*", "*"), # Musca a requires BL2
150 ("musca_b1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*"), # Musca b1 requires BL2
151 ("musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*"), # Musca s1 requires BL2
152 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*"), # psoc64 cannot use BL2
153 ]
154
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100155# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100156config_AN539 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800157 "tfm_platform": ["mps2/an539"],
158 "toolchain_file": ["toolchain_GNUARM.cmake",
159 "toolchain_ARMCLANG.cmake"],
160 "psa_api": [True, False],
161 "isolation_level": ["1", "2"],
162 "test_regression": [True, False],
163 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100164 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800165 "with_otp": [False],
166 "with_bl2": [True, False],
167 "with_ns": [True, False],
168 "profile": [""],
Minos Galanakisea421232019-06-20 17:11:28 +0100169 },
170 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800171 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100172 }
173
Karl Zhangaff558a2020-05-15 14:28:23 +0100174config_AN524 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800175 "tfm_platform": ["mps3/an524"],
176 "toolchain_file": ["toolchain_GNUARM.cmake",
177 "toolchain_ARMCLANG.cmake"],
178 "psa_api": [True, False],
179 "isolation_level": ["1", "2"],
180 "test_regression": [True, False],
181 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100182 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800183 "with_otp": [False],
184 "with_bl2": [True, False],
185 "with_ns": [True, False],
186 "profile": [""],
Karl Zhangaff558a2020-05-15 14:28:23 +0100187 },
188 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800189 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100190 }
191
Karl Zhangaff558a2020-05-15 14:28:23 +0100192config_AN521 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800193 "tfm_platform": ["mps2/an521"],
194 "toolchain_file": ["toolchain_GNUARM.cmake",
195 "toolchain_ARMCLANG.cmake"],
196 "psa_api": [True, False],
197 "isolation_level": ["1", "2"],
198 "test_regression": [True, False],
199 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100200 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800201 "with_otp": [False],
202 "with_bl2": [True, False],
203 "with_ns": [True, False],
204 "profile": [""],
Karl Zhangaff558a2020-05-15 14:28:23 +0100205 },
206 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800207 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100208 }
209
Karl Zhangaff558a2020-05-15 14:28:23 +0100210config_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800211 "tfm_platform": ["mps2/an521", "musca_b1", "musca_s1"],
212 "toolchain_file": ["toolchain_GNUARM.cmake",
213 "toolchain_ARMCLANG.cmake"],
214 "psa_api": [True, False],
215 "isolation_level": ["1", "2"],
216 "test_regression": [False],
217 "test_psa_api": ["CRYPTO",
218 "PROTECTED_STORAGE",
219 "INITIAL_ATTESTATION",
220 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100221 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800222 "with_otp": [False],
223 "with_bl2": [True],
224 "with_ns": [True, False],
225 "profile": [""],
Karl Zhangaff558a2020-05-15 14:28:23 +0100226 },
227 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800228 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100229 }
230
Karl Zhangaff558a2020-05-15 14:28:23 +0100231config_PSA_FF = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800232 "tfm_platform": ["mps2/an521", "musca_b1"],
233 "toolchain_file": ["toolchain_GNUARM.cmake",
234 "toolchain_ARMCLANG.cmake"],
235 "psa_api": [True],
236 "isolation_level": ["1", "2"],
237 "test_regression": [False],
238 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100239 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800240 "with_otp": [False],
241 "with_bl2": [True],
242 "with_ns": [True, False],
243 "profile": [""],
Karl Zhangaff558a2020-05-15 14:28:23 +0100244 },
245 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800246 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100247 }
248
Karl Zhangaff558a2020-05-15 14:28:23 +0100249config_PSA_API_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800250 "tfm_platform": ["musca_b1"],
251 "toolchain_file": ["toolchain_GNUARM.cmake",
252 "toolchain_ARMCLANG.cmake"],
253 "psa_api": [True, False],
254 "isolation_level": ["1", "2"],
255 "test_regression": [False],
256 "test_psa_api": ["CRYPTO",
257 "PROTECTED_STORAGE",
258 "INITIAL_ATTESTATION",
259 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100260 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800261 "with_otp": [True],
262 "with_bl2": [True],
263 "with_ns": [True, False],
264 "profile": [""],
Karl Zhangaff558a2020-05-15 14:28:23 +0100265 },
266 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800267 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100268 }
Minos Galanakisea421232019-06-20 17:11:28 +0100269
Xinyu Zhangb708f572020-09-15 11:43:46 +0800270config_PSA_FF_OTP = {"seed_params": {
271 "tfm_platform": ["musca_b1"],
272 "toolchain_file": ["toolchain_GNUARM.cmake",
273 "toolchain_ARMCLANG.cmake"],
274 "psa_api": [True],
275 "isolation_level": ["1", "2"],
276 "test_regression": [False],
277 "test_psa_api": ["IPC"],
278 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
279 "with_otp": [True],
280 "with_bl2": [True],
281 "with_ns": [True, False],
282 "profile": [""],
283 },
284 "common_params": _common_tfm_builder_cfg,
285 "invalid": _common_tfm_invalid_configs + []
286 }
287
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800288config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800289 "tfm_platform": ["cypress/psoc64"],
290 "toolchain_file": ["toolchain_GNUARM.cmake",
291 "toolchain_ARMCLANG.cmake"],
292 "psa_api": [True],
293 "isolation_level": ["1", "2"],
294 "test_regression": [True],
295 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800296 "cmake_build_type": ["Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800297 "with_otp": [False],
298 "with_bl2": [False],
299 "with_ns": [True, False],
300 "profile": [""],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800301 },
302 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800303 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800304 }
305
Minos Galanakisea421232019-06-20 17:11:28 +0100306config_AN519 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800307 "tfm_platform": ["mps2/an519"],
308 "toolchain_file": ["toolchain_GNUARM.cmake",
309 "toolchain_ARMCLANG.cmake"],
310 "psa_api": [True, False],
311 "isolation_level": ["1", "2"],
312 "test_regression": [True, False],
313 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100314 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800315 "with_otp": [False],
316 "with_bl2": [True, False],
317 "with_ns": [True, False],
318 "profile": [""],
Minos Galanakisea421232019-06-20 17:11:28 +0100319 },
320 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800321 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100322 }
323
Xinyu Zhangb708f572020-09-15 11:43:46 +0800324config_IPC = {"seed_params": {
325 "tfm_platform": ["mps2/an521", "mps2/an519", "musca_a", "musca_b1"],
326 "toolchain_file": ["toolchain_GNUARM.cmake",
327 "toolchain_ARMCLANG.cmake"],
328 "psa_api": [True],
329 "isolation_level": ["1", "2"],
330 "test_regression": [True, False],
331 "test_psa_api": ["OFF"],
332 "cmake_build_type": ["Debug", "Release"],
333 "with_otp": [False],
334 "with_bl2": [True, False],
335 "with_ns": [True, False],
336 "profile": [""],
337 },
Minos Galanakisea421232019-06-20 17:11:28 +0100338 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800339 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100340 }
341
Minos Galanakisea421232019-06-20 17:11:28 +0100342config_full = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800343 "tfm_platform": ["mps2/an521", "mps2/an519",
344 "musca_a", "musca_b1",
345 "mps2/an539", "mps3/an524",
346 "cypress/psoc64"],
347 "toolchain_file": ["toolchain_GNUARM.cmake",
348 "toolchain_ARMCLANG.cmake"],
349 "psa_api": [True, False],
350 "isolation_level": ["1", "2"],
351 "test_regression": [True, False],
352 "test_psa_api": ["OFF"],
Dean Birchd6ce2c82020-05-13 13:16:15 +0100353 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800354 "with_otp": [False],
355 "with_bl2": [True, False],
356 "with_ns": [True, False],
357 "profile": [""],
Dean Birchd6ce2c82020-05-13 13:16:15 +0100358 },
359 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800360 "invalid": _common_tfm_invalid_configs + [
361 ("cypress/psoc64", "*", "*", "*",
362 "*", "*", "Debug", "*", "*", "*", "*"),
363 ("cypress/psoc64", "*", "*", "*",
364 "*", "*", "*", "*", True, True, "*"),
365 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800366 }
367
Karl Zhang81a76772020-05-11 18:28:52 +0800368config_full_gnuarm = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800369 "tfm_platform": ["mps2/an521", "mps2/an519",
370 "musca_a", "musca_b1",
371 "mps3/an524", "mps2/an539",
372 "cypress/psoc64"],
373 "toolchain_file": ["toolchain_GNUARM.cmake"],
374 "psa_api": [True, False],
375 "isolation_level": ["1", "2"],
376 "test_regression": [True, False],
377 "test_psa_api": ["OFF"],
Karl Zhang81a76772020-05-11 18:28:52 +0800378 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800379 "with_otp": [False],
380 "with_bl2": [True, False],
381 "with_ns": [True, False],
382 "profile": [""],
Karl Zhang81a76772020-05-11 18:28:52 +0800383 },
384 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800385 "invalid": _common_tfm_invalid_configs + [
386 ("cypress/psoc64", "*", "*", "*",
387 "*", "*", "Debug", "*", "*", "*", "*"),
388 ("cypress/psoc64", "*", "*", "*",
389 "*", "*", "*", "*", True, True, "*"),
390 ]
Dean Birchd6ce2c82020-05-13 13:16:15 +0100391 }
392
Karl Zhangaff558a2020-05-15 14:28:23 +0100393config_tfm_test = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800394 "tfm_platform": ["mps2/an521", "musca_a",
395 "musca_b1", "musca_s1"],
396 "toolchain_file": ["toolchain_ARMCLANG.cmake",
397 "toolchain_GNUARM.cmake"],
398 "psa_api": [True, False],
399 "isolation_level": ["1", "2"],
400 "test_regression": [True, False],
401 "test_psa_api": ["OFF"],
402 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
403 "with_otp": [False],
404 "with_bl2": [True, False],
405 "with_ns": [True, False],
406 "profile": [""],
407 },
408 "common_params": _common_tfm_builder_cfg,
409 "invalid": _common_tfm_invalid_configs + []
410 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800411
Karl Zhangaff558a2020-05-15 14:28:23 +0100412config_tfm_test2 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800413 "tfm_platform": ["mps2/an519", "mps3/an524",
414 "mps2/an539", "mps2/sse-200_aws"],
415 "toolchain_file": ["toolchain_ARMCLANG.cmake",
416 "toolchain_GNUARM.cmake"],
417 "psa_api": [True, False],
418 "isolation_level": ["1", "2"],
419 "test_regression": [True, False],
420 "test_psa_api": ["OFF"],
421 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
422 "with_otp": [False],
423 "with_bl2": [True, False],
424 "with_ns": [True, False],
425 "profile": [""],
426 },
427 "common_params": _common_tfm_builder_cfg,
428 "invalid": _common_tfm_invalid_configs + [
429 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
430 "*", "*", "*", "Minsizerel", "*", "*", "*", "*"),
431 ]
432 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100433
Karl Zhang14573bc2020-06-08 09:23:21 +0800434config_tfm_profile = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800435 "tfm_platform": ["mps2/an519", "mps2/an521"],
436 "toolchain_file": ["toolchain_ARMCLANG.cmake",
437 "toolchain_GNUARM.cmake"],
438 "psa_api": [False],
439 "isolation_level": ["1"],
440 "test_regression": [True, False],
441 "test_psa_api": ["OFF"],
442 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
443 "with_otp": [False],
444 "with_bl2": [True, False],
445 "with_ns": [True, False],
446 "profile": ["profile_small"],
447 },
448 "common_params": _common_tfm_builder_cfg,
449 "invalid": _common_tfm_invalid_configs + [
450 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
451 "*", "*", "*", "Minsizerel", "*", "*", "*", "*"),
452 ]
453 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800454
Karl Zhangaff558a2020-05-15 14:28:23 +0100455config_tfm_test_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800456 "tfm_platform": ["musca_b1"],
457 "toolchain_file": ["toolchain_ARMCLANG.cmake",
458 "toolchain_GNUARM.cmake"],
459 "psa_api": [True, False],
460 "isolation_level": ["1", "2"],
461 "test_regression": [True, False],
462 "test_psa_api": ["OFF"],
463 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
464 "with_otp": [True],
465 "with_bl2": [True],
466 "with_ns": [True, False],
467 "profile": [""],
468 },
469 "common_params": _common_tfm_builder_cfg,
470 "invalid": _common_tfm_invalid_configs + []
471 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100472
Minos Galanakisea421232019-06-20 17:11:28 +0100473config_MUSCA_A = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800474 "tfm_platform": ["musca_a"],
475 "toolchain_file": ["toolchain_ARMCLANG.cmake",
476 "toolchain_GNUARM.cmake"],
477 "psa_api": [True, False],
478 "isolation_level": ["1", "2"],
479 "test_regression": [True, False],
480 "test_psa_api": ["OFF"],
481 "cmake_build_type": ["Debug", "Release"],
482 "with_otp": [False],
483 "with_bl2": [True],
484 "with_ns": [True, False],
485 "profile": [""],
486 },
487 "common_params": _common_tfm_builder_cfg,
488 "invalid": _common_tfm_invalid_configs + []
489 }
Minos Galanakisea421232019-06-20 17:11:28 +0100490
491config_MUSCA_B1 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800492 "tfm_platform": ["musca_b1"],
493 "toolchain_file": ["toolchain_ARMCLANG.cmake",
494 "toolchain_GNUARM.cmake"],
495 "psa_api": [True, False],
496 "isolation_level": ["1", "2"],
497 "test_regression": [True, False],
498 "test_psa_api": ["OFF"],
499 "cmake_build_type": ["Debug", "Release"],
500 "with_otp": [False],
501 "with_bl2": [True],
502 "with_ns": [True, False],
503 "profile": [""],
504 },
505 "common_params": _common_tfm_builder_cfg,
506 "invalid": _common_tfm_invalid_configs + []
507 }
Minos Galanakisea421232019-06-20 17:11:28 +0100508
Karl Zhangeffed972020-06-30 15:48:01 +0800509config_MUSCA_S1 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800510 "tfm_platform": ["musca_s1"],
511 "toolchain_file": ["toolchain_ARMCLANG.cmake",
512 "toolchain_GNUARM.cmake"],
513 "psa_api": [True, False],
514 "isolation_level": ["1", "2"],
515 "test_regression": [True, False],
516 "test_psa_api": ["OFF"],
517 "cmake_build_type": ["Debug", "Release"],
518 "with_otp": [False],
519 "with_bl2": [True],
520 "with_ns": [True, False],
521 "profile": [""],
522 },
523 "common_params": _common_tfm_builder_cfg,
524 "invalid": _common_tfm_invalid_configs + []
525 }
Karl Zhangeffed972020-06-30 15:48:01 +0800526
Karl Zhangaff558a2020-05-15 14:28:23 +0100527config_release = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800528 "tfm_platform": ["mps2/an521", "mps2/an519",
529 "musca_a", "musca_b1", "musca_s1",
530 "mps3/an524", "mps2/an539"],
531 "toolchain_file": ["toolchain_ARMCLANG.cmake",
532 "toolchain_GNUARM.cmake"],
533 "psa_api": [True, False],
534 "isolation_level": ["1", "2"],
535 "test_regression": [True, False],
536 "test_psa_api": ["OFF"],
537 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
538 "with_otp": [False],
539 "with_bl2": [True, False],
540 "with_ns": [True, False],
541 "profile": [""],
542 },
543 "common_params": _common_tfm_builder_cfg,
544 "invalid": _common_tfm_invalid_configs + [
545 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
546 "*", "*", "*", "Minsizerel", "*", "*", "*", "*"),
547 ]
548 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100549
550# Configure build manager to build several combinations
551config_AN521_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800552 "tfm_platform": ["mps2/an521", "mps2/an519",
553 "musca_b1"],
554 "toolchain_file": ["toolchain_GNUARM.cmake",
555 "toolchain_ARMCLANG.cmake"],
556 "psa_api": [True, False],
557 "isolation_level": ["1", "2"],
558 "test_regression": [False],
559 "test_psa_api": ["IPC",
560 "CRYPTO",
561 "PROTECTED_STORAGE",
562 "INITIAL_ATTESTATION",
563 "INTERNAL_TRUSTED_STORAGE"],
564 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
565 "with_otp": [False],
566 "with_bl2": [True],
567 "with_ns": [True, False],
568 "profile": [""],
Karl Zhangaff558a2020-05-15 14:28:23 +0100569 },
570 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800571 "invalid": _common_tfm_invalid_configs + [
572 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
573 "*", "*", "*", "Minsizerel", "*", "*", "*", "*"),
574 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100575 }
576
Karl Zhangaff558a2020-05-15 14:28:23 +0100577config_AN521_PSA_IPC = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800578 "tfm_platform": ["mps2/an521", "mps2/an519",
579 "musca_b1"],
580 "toolchain_file": ["toolchain_GNUARM.cmake",
581 "toolchain_ARMCLANG.cmake"],
582 "psa_api": [True],
583 "isolation_level": ["1", "2"],
584 "test_regression": [False],
585 "test_psa_api": ["IPC"],
586 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
587 "with_otp": [True],
588 "with_bl2": [True],
589 "with_ns": [True, False],
590 "profile": [""],
Karl Zhangaff558a2020-05-15 14:28:23 +0100591 },
592 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800593 "invalid": _common_tfm_invalid_configs + [
594 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
595 "*", "*", "*", "Minsizerel", "*", "*", "*", "*"),
596 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100597 }
598
Karl Zhang14573bc2020-06-08 09:23:21 +0800599config_nightly = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800600 "tfm_platform": ["mps2/an521", "mps2/an519",
601 "musca_a", "musca_b1", "musca_s1",
602 "mps3/an524", "mps2/an539",
603 "mps2/sse-200_aws", "cypress/psoc64"],
604 "toolchain_file": ["toolchain_GNUARM.cmake",
605 "toolchain_ARMCLANG.cmake"],
606 "psa_api": [True, False],
607 "isolation_level": ["1", "2"],
608 "test_regression": [True, False],
609 "test_psa_api": ["OFF"],
610 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
611 "with_otp": [False],
612 "with_bl2": [True, False],
613 "with_ns": [True, False],
614 "profile": [""],
615 },
616 "common_params": _common_tfm_builder_cfg,
617 "invalid": _common_tfm_invalid_configs + [
618 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
619 "*", "*", "*", "Minsizerel", "*", "*", "*", "*"),
620 ("cypress/psoc64", "*", "*", "*",
621 "*", "*", "Debug", "*", "*", "*", "*"),
622 ("cypress/psoc64", "*", "*", "*",
623 "*", "*", "*", "*", True, True, "*"),
624 ]
625 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800626
Karl Zhang14573bc2020-06-08 09:23:21 +0800627config_nightly_profile = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800628 "tfm_platform": ["mps2/an519", "mps2/an521"],
629 "toolchain_file": ["toolchain_ARMCLANG.cmake",
630 "toolchain_GNUARM.cmake"],
631 "psa_api": [False],
632 "isolation_level": ["1"],
633 "test_regression": [True, False],
634 "test_psa_api": ["OFF"],
635 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
636 "with_otp": [False],
637 "with_bl2": [True, False],
638 "with_ns": [True, False],
639 "profile": ["profile_small"],
640 },
641 "common_params": _common_tfm_builder_cfg,
642 "invalid": _common_tfm_invalid_configs + [
643 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
644 "*", "*", "*", "Minsizerel", "*", "*", "*", "*"),
645 ]
646 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800647
Karl Zhang14573bc2020-06-08 09:23:21 +0800648config_nightly_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800649 "tfm_platform": ["mps2/an521"],
650 "toolchain_file": ["toolchain_GNUARM.cmake",
651 "toolchain_ARMCLANG.cmake"],
652 "psa_api": [True, False],
653 "isolation_level": ["1", "2"],
654 "test_regression": [False],
655 "test_psa_api": ["CRYPTO",
656 "PROTECTED_STORAGE",
657 "INITIAL_ATTESTATION",
658 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800659 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800660 "with_otp": [False],
661 "with_bl2": [True],
662 "with_ns": [True, False],
663 "profile": [""],
Karl Zhang14573bc2020-06-08 09:23:21 +0800664 },
665 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800666 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800667 }
668
Karl Zhang14573bc2020-06-08 09:23:21 +0800669config_nightly_PSA_FF = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800670 "tfm_platform": ["mps2/an521"],
671 "toolchain_file": ["toolchain_GNUARM.cmake",
672 "toolchain_ARMCLANG.cmake"],
673 "psa_api": [True],
674 "isolation_level": ["1", "2"],
675 "test_regression": [False],
676 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800677 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800678 "with_otp": [False],
679 "with_bl2": [True],
680 "with_ns": [True, False],
681 "profile": [""],
Karl Zhang14573bc2020-06-08 09:23:21 +0800682 },
683 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800684 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800685 }
686
Karl Zhang14573bc2020-06-08 09:23:21 +0800687config_nightly_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800688 "tfm_platform": ["musca_b1"],
689 "toolchain_file": ["toolchain_GNUARM.cmake",
690 "toolchain_ARMCLANG.cmake"],
691 "psa_api": [True, False],
692 "isolation_level": ["1", "2"],
693 "test_regression": [True],
694 "test_psa_api": ["OFF"],
695 "cmake_build_type": ["Debug", "Release"],
696 "with_otp": [True],
697 "with_bl2": [True],
698 "with_ns": [True, False],
699 "profile": [""],
700 },
701 "common_params": _common_tfm_builder_cfg,
702 "invalid": _common_tfm_invalid_configs + []
703 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800704
Karl Zhang14573bc2020-06-08 09:23:21 +0800705config_pp_test = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800706 "tfm_platform": ["mps2/an521", "mps2/an519",
707 "musca_b1"],
708 "toolchain_file": ["toolchain_GNUARM.cmake",
709 "toolchain_ARMCLANG.cmake"],
710 "psa_api": [True, False],
711 "isolation_level": ["1", "2"],
712 "test_regression": [True],
713 "test_psa_api": ["OFF"],
714 "cmake_build_type": ["Release"],
715 "with_otp": [False],
716 "with_bl2": [True],
717 "with_ns": [True, False],
718 "profile": ["", "profile_small"],
719 },
720 "common_params": _common_tfm_builder_cfg,
721 "invalid": _common_tfm_invalid_configs + [
722 ("musca_b1", "*", "*", "*", "*", "*",
723 "*", "*", "*", "*", "profile_small"),
724 ("*", "*", True, "*", "*", "*",
725 "*", "*", "*", "*", "profile_small"),
726 ("*", "*", "*", "2", "*", "*",
727 "*", "*", "*", "*", "profile_small"),
728 ]
729 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800730
Karl Zhang14573bc2020-06-08 09:23:21 +0800731config_pp_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800732 "tfm_platform": ["musca_b1"],
733 "toolchain_file": ["toolchain_GNUARM.cmake"],
734 "psa_api": [True, False],
735 "isolation_level": ["1", "2"],
736 "test_regression": [True],
737 "test_psa_api": ["OFF"],
738 "cmake_build_type": ["Release"],
739 "with_otp": [True],
740 "with_bl2": [True],
741 "with_ns": [True, False],
742 "profile": [""],
743 },
744 "common_params": _common_tfm_builder_cfg,
745 "invalid": _common_tfm_invalid_configs + []
746 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800747
748# Configure build manager to build several combinations
749config_pp_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800750 "tfm_platform": ["mps2/an521"],
751 "toolchain_file": ["toolchain_GNUARM.cmake"],
752 "psa_api": [True],
753 "isolation_level": ["2"],
754 "test_regression": [False],
755 "test_psa_api": ["IPC",
756 "CRYPTO",
757 "PROTECTED_STORAGE",
758 "INITIAL_ATTESTATION",
759 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800760 "cmake_build_type": ["Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800761 "with_otp": [False],
762 "with_bl2": [True],
763 "with_ns": [True, False],
764 "profile": [""],
Karl Zhang14573bc2020-06-08 09:23:21 +0800765 },
766 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800767 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800768 }
769
Karl Zhang14573bc2020-06-08 09:23:21 +0800770config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800771 "tfm_platform": ["cypress/psoc64"],
772 "toolchain_file": ["toolchain_GNUARM.cmake"],
773 "psa_api": [True],
774 "isolation_level": ["1", "2"],
775 "test_regression": [True],
776 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800777 "cmake_build_type": ["Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800778 "with_otp": [False],
779 "with_bl2": [False],
780 "with_ns": [True, False],
781 "profile": [""],
Karl Zhang14573bc2020-06-08 09:23:21 +0800782 },
783 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800784 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800785 }
786
Minos Galanakisea421232019-06-20 17:11:28 +0100787# Configruation used for document building
788config_doxygen = {"common_params": {
789 "config_type": "tf-m_documents",
790 "codebase_root_dir": "tf-m",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800791 "build_cmds": {"all": ["-DTFM_PLATFORM=mps2/an521 "
792 "-DCMAKE_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +0100793 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +0100794 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800795 "cmake --build ./ -- docs"]},
796 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
797 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +0100798 r'/(\w+\.(?:html|md|pdf))$',
799 },
Xinyu Zhangb708f572020-09-15 11:43:46 +0800800 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100801 }
802
Karl Zhangaff558a2020-05-15 14:28:23 +0100803# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +0100804config_debug = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800805 "tfm_platform": ["mps2/an521"],
806 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
807 "psa_api": [False],
808 "isolation_level": ["1"],
809 "test_regression": [False],
810 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100811 "cmake_build_type": ["Debug"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800812 "with_otp": [False],
813 "with_bl2": [True],
814 "with_ns": [True],
815 "profile": [""],
Minos Galanakisea421232019-06-20 17:11:28 +0100816 },
817 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800818 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100819 }
820
Dean Birch4c6ad622020-03-13 11:28:03 +0000821# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +0800822config_ci = {"seed_params": {
823 "tfm_platform": ["mps2/an521"],
824 "toolchain_file": ["toolchain_ARMCLANG.cmake",
825 "toolchain_GNUARM.cmake"],
826 "psa_api": [True, False],
827 "isolation_level": ["1", "2"],
828 "test_regression": [True, False],
829 "test_psa_api": ["OFF"],
830 "cmake_build_type": ["Release"],
831 "with_otp": [False],
832 "with_bl2": [True, False],
833 "with_ns": [True],
834 "profile": [""],
835 },
836 "common_params": _common_tfm_builder_cfg,
837 "invalid": _common_tfm_invalid_configs + [
838 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
839 "*", "*", "*", "*", "*"),
840 ("*", "toolchain_ARMCLANG.cmake", False, "1", "*", "*",
841 "*", "*", False, "*", "*"),
842 ]
843 }
Matthew Hartfb6fd362020-03-04 21:03:59 +0000844
Dean Birchd6ce2c82020-05-13 13:16:15 +0100845# Configuration used in CI if armclang not available
Xinyu Zhangb708f572020-09-15 11:43:46 +0800846config_ci_gnuarm = {"seed_params": {
847 "tfm_platform": ["mps2/an521"],
848 "toolchain_file": ["toolchain_ARMCLANG.cmake",
849 "toolchain_GNUARM.cmake"],
850 "psa_api": [True, False],
851 "isolation_level": ["1", "2"],
852 "test_regression": [True, False],
853 "test_psa_api": ["OFF"],
854 "cmake_build_type": ["Release"],
855 "with_otp": [False],
856 "with_bl2": [True, False],
857 "with_ns": [True],
858 "profile": [""],
859 },
860 "common_params": _common_tfm_builder_cfg,
861 "invalid": _common_tfm_invalid_configs + [
862 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
863 "*", "*", "*", "*", "*"),
864 ("*", "toolchain_ARMCLANG.cmake", False, "1", "*", "*",
865 "*", "*", "False", "*", "*"),
866 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
867 "*", "*", "*", "*", "*") # Disable ARMCLANG for now
868 ]
869 }
Dean Birchd6ce2c82020-05-13 13:16:15 +0100870
Xinyu Zhangb708f572020-09-15 11:43:46 +0800871config_lava_debug = {"seed_params": {
872 "tfm_platform": ["mps2/an521", "mps2/an519"],
873 "toolchain_file": ["toolchain_GNUARM.cmake"],
874 "psa_api": [True, False],
875 "isolation_level": ["1", "2"],
876 "test_regression": [True],
877 "test_psa_api": ["OFF"],
878 "cmake_build_type": ["Release"],
879 "with_otp": [False],
880 "with_bl2": [True, False],
881 "with_ns": [True, False],
882 "profile": [""],
883 },
884 "common_params": _common_tfm_builder_cfg,
885 "invalid": _common_tfm_invalid_configs + [
886 ("mps2/an521", "toolchain_GNUARM.cmake", True, "2", "*", "*",
887 "*", "*", True, "*", "*")
888 ]
889 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000890
Karl Zhangeea16ed2020-06-15 15:03:12 +0800891#GNU groups for external CI only
892# Configure build manager to build the maximum number of configurations
893config_tfm_test_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800894 "tfm_platform": ["mps2/an521", "musca_a",
895 "musca_b1", "musca_s1"],
896 "toolchain_file": ["toolchain_GNUARM.cmake"],
897 "psa_api": [True, False],
898 "isolation_level": ["1", "2"],
899 "test_regression": [True, False],
900 "test_psa_api": ["OFF"],
901 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
902 "with_otp": [False],
903 "with_bl2": [True, False],
904 "with_ns": [True, False],
905 "profile": [""],
906 },
907 "common_params": _common_tfm_builder_cfg,
908 "invalid": _common_tfm_invalid_configs + [
909 ("musca_a", "*", "*",
910 "*", "*", "*", "*", "*", False, "*", "*"),
911 ("musca_b1", "*", "*",
912 "*", "*", "*", "*", "*", False, "*", "*"),
913 ("musca_s1", "*", "*",
914 "*", "*", "*", "*", "*", False, "*", "*"),
915 ]
916 }
Karl Zhangeea16ed2020-06-15 15:03:12 +0800917
918# Configure build manager to build the maximum number of configurations
919config_tfm_test2_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800920 "tfm_platform": ["mps2/an519", "mps3/an524",
921 "mps2/an539", "mps2/sse-200_aws"],
922 "toolchain_file": ["toolchain_GNUARM.cmake"],
923 "psa_api": [True, False],
924 "isolation_level": ["1", "2"],
925 "test_regression": [True, False],
926 "test_psa_api": ["OFF"],
927 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
928 "with_otp": [False],
929 "with_bl2": [True, False],
930 "with_ns": [True, False],
931 "profile": [""],
932 },
933 "common_params": _common_tfm_builder_cfg,
934 "invalid": _common_tfm_invalid_configs + [
935 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
936 "*", "*", "*", "Minsizerel", "*", "*", "*", "*"),
937 ]
938 }
Karl Zhangeea16ed2020-06-15 15:03:12 +0800939
940# Configure build manager to build the maximum number of configurations
941config_tfm_profile_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800942 "tfm_platform": ["mps2/an519", "mps2/an521"],
943 "toolchain_file": ["toolchain_GNUARM.cmake"],
944 "psa_api": [False],
945 "isolation_level": ["1"],
946 "test_regression": [True, False],
947 "test_psa_api": ["OFF"],
948 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
949 "with_otp": [False],
950 "with_bl2": [True, False],
951 "with_ns": [True, False],
952 "profile": ["profile_small"],
953 },
954 "common_params": _common_tfm_builder_cfg,
955 "invalid": _common_tfm_invalid_configs + [
956 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
957 "*", "*", "*", "Minsizerel", "*", "*", "*", "*"),
958 ]
959 }
Karl Zhangeea16ed2020-06-15 15:03:12 +0800960
961# Configure build manager to build the maximum number of configurations
962config_tfm_test_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800963 "tfm_platform": ["musca_b1"],
964 "toolchain_file": ["toolchain_GNUARM.cmake"],
965 "psa_api": [True, False],
966 "isolation_level": ["1", "2"],
967 "test_regression": [True, False],
968 "test_psa_api": ["OFF"],
969 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
970 "with_otp": [True],
971 "with_bl2": [True],
972 "with_ns": [True, False],
973 "profile": [""],
974 },
975 "common_params": _common_tfm_builder_cfg,
976 "invalid": _common_tfm_invalid_configs + []
977 }
Karl Zhangeea16ed2020-06-15 15:03:12 +0800978
979# Configure build manager to build several combinations
980config_PSA_API_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800981 "tfm_platform": ["mps2/an521", "musca_b1"],
982 "toolchain_file": ["toolchain_GNUARM.cmake"],
983 "psa_api": [True, False],
984 "isolation_level": ["1", "2"],
985 "test_regression": [False],
986 "test_psa_api": ["CRYPTO",
987 "PROTECTED_STORAGE",
988 "INITIAL_ATTESTATION",
989 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangeea16ed2020-06-15 15:03:12 +0800990 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800991 "with_otp": [False],
992 "with_bl2": [True],
993 "with_ns": [True, False],
994 "profile": [""],
Karl Zhangeea16ed2020-06-15 15:03:12 +0800995 },
996 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800997 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +0800998 }
999
1000# Configure build manager to build several combinations
1001config_PSA_FF_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001002 "tfm_platform": ["mps2/an521", "musca_b1"],
1003 "toolchain_file": ["toolchain_GNUARM.cmake"],
1004 "psa_api": [True],
1005 "isolation_level": ["1", "2"],
1006 "test_regression": [False],
1007 "test_psa_api": ["IPC"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001008 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001009 "with_otp": [False],
1010 "with_bl2": [True],
1011 "with_ns": [True, False],
1012 "profile": [""],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001013 },
1014 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001015 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001016 }
1017
1018# Configure build manager to build several combinations
1019config_PSA_API_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001020 "tfm_platform": ["musca_b1"],
1021 "toolchain_file": ["toolchain_GNUARM.cmake"],
1022 "psa_api": [True, False],
1023 "isolation_level": ["1", "2"],
1024 "test_regression": [False],
1025 "test_psa_api": ["CRYPTO",
1026 "PROTECTED_STORAGE",
1027 "INITIAL_ATTESTATION",
1028 "INTERNAL_TRUSTED_STORAGE"],
1029 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1030 "with_otp": [True],
1031 "with_bl2": [True],
1032 "with_ns": [True, False],
1033 "profile": [""],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001034 },
1035 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001036 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001037 }
1038
1039# Configure build manager to build several combinations
1040config_PSA_FF_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001041 "tfm_platform": ["musca_b1"],
1042 "toolchain_file": ["toolchain_GNUARM.cmake"],
1043 "psa_api": [True],
1044 "isolation_level": ["1", "2"],
1045 "test_regression": [False],
1046 "test_psa_api": ["IPC"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001047 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001048 "with_otp": [True],
1049 "with_bl2": [True],
1050 "with_ns": [True, False],
1051 "profile": [""],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001052 },
1053 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001054 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001055 }
1056
1057# Configure build manager to build several combinations
1058config_PSOC64_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001059 "tfm_platform": ["cypress/psoc64"],
1060 "toolchain_file": ["toolchain_GNUARM.cmake"],
1061 "psa_api": [True],
1062 "isolation_level": ["1", "2"],
1063 "test_regression": [True],
1064 "test_psa_api": ["OFF"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001065 "cmake_build_type": ["Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001066 "with_otp": [False],
1067 "with_bl2": [False],
1068 "with_ns": [True, False],
1069 "profile": [""],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001070 },
1071 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001072 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001073 }
1074
1075# Configure build manager to build the maximum number of configurations
1076config_nightly_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001077 "tfm_platform": ["mps2/an521", "mps2/an519",
1078 "musca_a", "musca_b1", "musca_s1",
1079 "mps3/an524", "mps2/an539",
1080 "mps2/sse-200_aws", "cypress/psoc64"],
1081 "toolchain_file": ["toolchain_GNUARM.cmake"],
1082 "psa_api": [True, False],
1083 "isolation_level": ["1", "2"],
1084 "test_regression": [True, False],
1085 "test_psa_api": ["OFF"],
1086 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1087 "with_otp": [False],
1088 "with_bl2": [True, False],
1089 "with_ns": [True, False],
1090 "profile": [""],
1091 },
1092 "common_params": _common_tfm_builder_cfg,
1093 "invalid": _common_tfm_invalid_configs + [
1094 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
1095 "*", "*", "*", "Minsizerel", "*", "*", "*", "*"),
1096 ("cypress/psoc64", "*", "*", "*",
1097 "*", "*", "Debug", "*", "*", "*", "*"),
1098 ("cypress/psoc64", "*", "*", "*",
1099 "*", "*", "*", "*", True, True, "*"),
1100 ]
1101 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001102
1103# Configure build manager to build the maximum number of configurations
1104config_nightly_profile_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001105 "tfm_platform": ["mps2/an519", "mps2/an521"],
1106 "toolchain_file": ["toolchain_GNUARM.cmake"],
1107 "psa_api": [False],
1108 "isolation_level": ["1"],
1109 "test_regression": [True, False],
1110 "test_psa_api": ["OFF"],
1111 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1112 "with_otp": [False],
1113 "with_bl2": [True, False],
1114 "with_ns": [True, False],
1115 "profile": ["profile_small"],
1116 },
1117 "common_params": _common_tfm_builder_cfg,
1118 "invalid": _common_tfm_invalid_configs + [
1119 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
1120 "*", "*", "*", "Minsizerel", "*", "*", "*", "*"),
1121 ]
1122 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001123
1124# Configure build manager to build several combinations
1125config_nightly_PSA_API_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001126 "tfm_platform": ["mps2/an521"],
1127 "toolchain_file": ["toolchain_GNUARM.cmake"],
1128 "psa_api": [True, False],
1129 "isolation_level": ["1", "2"],
1130 "test_regression": [False],
1131 "test_psa_api": ["CRYPTO",
1132 "PROTECTED_STORAGE",
1133 "INITIAL_ATTESTATION",
1134 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001135 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001136 "with_otp": [False],
1137 "with_bl2": [True],
1138 "with_ns": [True, False],
1139 "profile": [""],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001140 },
1141 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001142 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001143 }
1144
1145# Configure build manager to build several combinations
1146config_nightly_PSA_FF_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001147 "tfm_platform": ["mps2/an521"],
1148 "toolchain_file": ["toolchain_GNUARM.cmake"],
1149 "psa_api": [True],
1150 "isolation_level": ["1", "2"],
1151 "test_regression": [False],
1152 "test_psa_api": ["IPC"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001153 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001154 "with_otp": [False],
1155 "with_bl2": [True],
1156 "with_ns": [True, False],
1157 "profile": [""],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001158 },
1159 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001160 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001161 }
1162
1163# Configure build manager to build the maximum number of configurations
1164config_nightly_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001165 "tfm_platform": ["musca_b1"],
1166 "toolchain_file": ["toolchain_GNUARM.cmake"],
1167 "psa_api": [True, False],
1168 "isolation_level": ["1", "2"],
1169 "test_regression": [True],
1170 "test_psa_api": ["OFF"],
1171 "cmake_build_type": ["Debug", "Release"],
1172 "with_otp": [True],
1173 "with_bl2": [True],
1174 "with_ns": [True, False],
1175 "profile": [""],
1176 },
1177 "common_params": _common_tfm_builder_cfg,
1178 "invalid": _common_tfm_invalid_configs + []
1179 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001180
1181# Configure build manager to build the maximum number of configurations
1182config_pp_test_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001183 "tfm_platform": ["mps2/an521", "mps2/an519",
1184 "musca_b1"],
1185 "toolchain_file": ["toolchain_GNUARM.cmake",
1186 "toolchain_ARMCLANG.cmake"],
1187 "psa_api": [True, False],
1188 "isolation_level": ["1", "2"],
1189 "test_regression": [True],
1190 "test_psa_api": ["OFF"],
1191 "cmake_build_type": ["Release"],
1192 "with_otp": [False],
1193 "with_bl2": [True],
1194 "with_ns": [True, False],
1195 "profile": ["", "profile_small"],
1196 },
1197 "common_params": _common_tfm_builder_cfg,
1198 "invalid": _common_tfm_invalid_configs + [
1199 ("musca_b1", "*", "*", "*", "*", "*",
1200 "*", "*", "*", "*", "profile_small"),
1201 ("*", "*", True, "*", "*", "*",
1202 "*", "*", "*", "*", "profile_small"),
1203 ("*", "*", "*", "2", "*", "*",
1204 "*", "*", "*", "*", "profile_small"),
1205 ]
1206 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001207
1208# Configure build manager to build the maximum number of configurations
1209config_pp_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001210 "tfm_platform": ["musca_b1"],
1211 "toolchain_file": ["toolchain_GNUARM.cmake"],
1212 "psa_api": [True, False],
1213 "isolation_level": ["1", "2"],
1214 "test_regression": [True],
1215 "test_psa_api": ["OFF"],
1216 "cmake_build_type": ["Release"],
1217 "with_otp": [True],
1218 "with_bl2": [True],
1219 "with_ns": [True, False],
1220 "profile": [""],
1221 },
1222 "common_params": _common_tfm_builder_cfg,
1223 "invalid": _common_tfm_invalid_configs + []
1224 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001225
1226# Configure build manager to build several combinations
1227config_pp_PSA_API_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001228 "tfm_platform": ["mps2/an521"],
1229 "toolchain_file": ["toolchain_GNUARM.cmake"],
1230 "psa_api": [True],
1231 "isolation_level": ["2"],
1232 "test_regression": [False],
1233 "test_psa_api": ["IPC",
1234 "CRYPTO",
1235 "PROTECTED_STORAGE",
1236 "INITIAL_ATTESTATION",
1237 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001238 "cmake_build_type": ["Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001239 "with_otp": [False],
1240 "with_bl2": [True],
1241 "with_ns": [True, False],
1242 "profile": [""],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001243 },
1244 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001245 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001246 }
1247
1248# Configure build manager to build several combinations
1249config_pp_PSoC64_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001250 "tfm_platform": ["cypress/psoc64"],
1251 "toolchain_file": ["toolchain_GNUARM.cmake"],
1252 "psa_api": [True],
1253 "isolation_level": ["1", "2"],
1254 "test_regression": [True],
1255 "test_psa_api": ["OFF"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001256 "cmake_build_type": ["Release"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001257 "with_otp": [False],
1258 "with_bl2": [False],
1259 "with_ns": [True, False],
1260 "profile": [""],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001261 },
1262 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001263 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001264 }
1265
Karl Zhangaff558a2020-05-15 14:28:23 +01001266_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001267 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001268 "tfm_test": config_tfm_test,
1269 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001270 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +01001271 "tfm_test_otp": config_tfm_test_OTP,
1272 "psa_api": config_PSA_API,
1273 "psa_api_otp": config_PSA_API_OTP,
1274 "psa_ff": config_PSA_FF,
1275 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001276 "tfm_psoc64": config_PSOC64,
1277
1278 #nightly test group
1279 "nightly_test": config_nightly,
1280 "nightly_profile": config_nightly_profile,
1281 "nightly_psa_api": config_nightly_PSA_API,
1282 "nightly_ff": config_nightly_PSA_FF,
1283 "nightly_otp": config_nightly_OTP,
1284
1285 #per patch test group
1286 "pp_test": config_pp_test,
1287 "pp_OTP": config_pp_OTP,
1288 "pp_PSA_API": config_pp_PSA_API,
1289 "pp_psoc64": config_pp_PSoC64,
1290
Karl Zhangeea16ed2020-06-15 15:03:12 +08001291 #GNU only configs against groups above
1292 #The combinations should be the same except the CLANG ones
1293 #release test group (GNU)
1294 "tfm_test_gnu": config_tfm_test_gnu,
1295 "tfm_test2_gnu": config_tfm_test2_gnu,
1296 "tfm_profile_gnu": config_tfm_profile_gnu,
1297 "tfm_test_otp_gnu": config_tfm_test_OTP_gnu,
1298 "psa_api_gnu": config_PSA_API_gnu,
1299 "psa_api_otp_gnu": config_PSA_API_OTP_gnu,
1300 "psa_ff_gnu": config_PSA_FF_gnu,
1301 "psa_ff_otp_gnu": config_PSA_FF_OTP_gnu,
1302 "tfm_psoc64_gnu": config_PSOC64_gnu,
1303
1304 #nightly test group (GNU)
1305 "nightly_test_gnu": config_nightly_gnu,
1306 "nightly_profile_gnu": config_nightly_profile_gnu,
1307 "nightly_psa_api_gnu": config_nightly_PSA_API_gnu,
1308 "nightly_ff_gnu": config_nightly_PSA_FF_gnu,
1309 "nightly_otp_gnu": config_nightly_OTP_gnu,
1310
1311 #per patch test group (GNU)
1312 "pp_test_gnu": config_pp_test_gnu,
1313 "pp_OTP_gnu": config_pp_OTP_gnu,
1314 "pp_PSA_API_gnu": config_pp_PSA_API_gnu,
1315 "pp_psoc64_gnu": config_pp_PSoC64_gnu,
1316
1317
Karl Zhang14573bc2020-06-08 09:23:21 +08001318 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001319 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001320
1321 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001322 "an539": config_AN539,
1323 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001324 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001325 "an521_psa_api": config_AN521_PSA_API,
1326 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001327 "an519": config_AN519,
1328 "musca_a": config_MUSCA_A,
1329 "musca_b1": config_MUSCA_B1,
Karl Zhangeffed972020-06-30 15:48:01 +08001330 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001331 "psoc64": config_PSOC64,
Minos Galanakisea421232019-06-20 17:11:28 +01001332 "ipc": config_IPC,
1333 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001334 "debug": config_debug,
Karl Zhangaff558a2020-05-15 14:28:23 +01001335 "release": config_release,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001336 "debug": config_debug,
Karl Zhang14573bc2020-06-08 09:23:21 +08001337
1338 #DevOps team test group
1339 "full_gnuarm": config_full_gnuarm,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001340 "lava_debug": config_lava_debug,
Dean Birchd6ce2c82020-05-13 13:16:15 +01001341 "ci": config_ci,
1342 "ci_gnuarm": config_ci_gnuarm}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001343
1344if __name__ == '__main__':
1345 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001346
Minos Galanakisea421232019-06-20 17:11:28 +01001347 # Default behavior is to export refference config when called
1348 _dir = os.getcwd()
1349 from utils import save_json
1350 for _cname, _cfg in _builtin_configs.items():
1351 _fname = os.path.join(_dir, _cname + ".json")
1352 print("Exporting config %s" % _fname)
1353 save_json(_fname, _cfg)