blob: a95295aff27b3c93659f0ad799ec87dc2d68cfa3 [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, "*", "*"),
143 # No PSA_ACK with regression
144 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*", "*"),
145 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*", "*"),
146 ("*", "*", "*", "*", True, "PROTECTED_STORAGE", "*", "*", "*", "*", "*", "*"),
147 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*"),
148 ("*", "*", "*", "*", True, "INTERNAL_TRUSTED_STORAGE", "*", "*", "*", "*", "*", "*"),
149 # PSA_ACK requires NS
150 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*", "*"),
151 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*", "*"),
152 ("*", "*", "*", "*", "*", "PROTECTED_STORAGE", "*", "*", "*", False, "*", "*"),
153 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*", "*"),
154 ("*", "*", "*", "*", "*", "INTERNAL_TRUSTED_STORAGE", "*", "*", "*", False, "*", "*"),
155 # Musca requires BL2
156 ("musca_a", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
157 ("musca_b1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
158 ("musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
159 # psoc64 cannot use BL2
160 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*"),
161 # Musca b1 does not support Profile S
162 ("musca_b1", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800163 # PARTITION_PS could be OFF only for Profile S and M
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800164 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800165 # PARTITION_PS should be OFF for Profile S
166 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800167 # Proile M only support for PSA_API
168 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
169 # Profile M only support for Isolation Level 2
170 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
171 # Profile S does not support MUSCA_B1
172 ("musca_b1", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
173 # Profile S does not support PSA_API
174 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
175 # Profile S only supports Isolation Level 2
176 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800177 ]
178
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100179# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100180config_AN539 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800181 "tfm_platform": ["mps2/an539"],
182 "toolchain_file": ["toolchain_GNUARM.cmake",
183 "toolchain_ARMCLANG.cmake"],
184 "psa_api": [True, False],
185 "isolation_level": ["1", "2"],
186 "test_regression": [True, False],
187 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100188 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800189 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800190 "with_bl2": [True, False],
191 "with_ns": [True, False],
192 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800193 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +0100194 },
195 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800196 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100197 }
198
Karl Zhangaff558a2020-05-15 14:28:23 +0100199config_AN524 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800200 "tfm_platform": ["mps3/an524"],
201 "toolchain_file": ["toolchain_GNUARM.cmake",
202 "toolchain_ARMCLANG.cmake"],
203 "psa_api": [True, False],
204 "isolation_level": ["1", "2"],
205 "test_regression": [True, False],
206 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100207 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800208 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800209 "with_bl2": [True, False],
210 "with_ns": [True, False],
211 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800212 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100213 },
214 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800215 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100216 }
217
Karl Zhangaff558a2020-05-15 14:28:23 +0100218config_AN521 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800219 "tfm_platform": ["mps2/an521"],
220 "toolchain_file": ["toolchain_GNUARM.cmake",
221 "toolchain_ARMCLANG.cmake"],
222 "psa_api": [True, False],
223 "isolation_level": ["1", "2"],
224 "test_regression": [True, False],
225 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100226 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800227 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800228 "with_bl2": [True, False],
229 "with_ns": [True, False],
230 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800231 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100232 },
233 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800234 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100235 }
236
Karl Zhangaff558a2020-05-15 14:28:23 +0100237config_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800238 "tfm_platform": ["mps2/an521", "musca_b1", "musca_s1"],
239 "toolchain_file": ["toolchain_GNUARM.cmake",
240 "toolchain_ARMCLANG.cmake"],
241 "psa_api": [True, False],
242 "isolation_level": ["1", "2"],
243 "test_regression": [False],
244 "test_psa_api": ["CRYPTO",
245 "PROTECTED_STORAGE",
246 "INITIAL_ATTESTATION",
247 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100248 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800249 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800250 "with_bl2": [True],
251 "with_ns": [True, False],
252 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800253 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100254 },
255 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800256 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100257 }
258
Karl Zhangaff558a2020-05-15 14:28:23 +0100259config_PSA_FF = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800260 "tfm_platform": ["mps2/an521", "musca_b1"],
261 "toolchain_file": ["toolchain_GNUARM.cmake",
262 "toolchain_ARMCLANG.cmake"],
263 "psa_api": [True],
264 "isolation_level": ["1", "2"],
265 "test_regression": [False],
266 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100267 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800268 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800269 "with_bl2": [True],
270 "with_ns": [True, False],
271 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800272 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100273 },
274 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800275 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100276 }
277
Karl Zhangaff558a2020-05-15 14:28:23 +0100278config_PSA_API_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800279 "tfm_platform": ["musca_b1"],
280 "toolchain_file": ["toolchain_GNUARM.cmake",
281 "toolchain_ARMCLANG.cmake"],
282 "psa_api": [True, False],
283 "isolation_level": ["1", "2"],
284 "test_regression": [False],
285 "test_psa_api": ["CRYPTO",
286 "PROTECTED_STORAGE",
287 "INITIAL_ATTESTATION",
288 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100289 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800290 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800291 "with_bl2": [True],
292 "with_ns": [True, False],
293 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800294 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100295 },
296 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800297 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100298 }
Minos Galanakisea421232019-06-20 17:11:28 +0100299
Xinyu Zhangb708f572020-09-15 11:43:46 +0800300config_PSA_FF_OTP = {"seed_params": {
301 "tfm_platform": ["musca_b1"],
302 "toolchain_file": ["toolchain_GNUARM.cmake",
303 "toolchain_ARMCLANG.cmake"],
304 "psa_api": [True],
305 "isolation_level": ["1", "2"],
306 "test_regression": [False],
307 "test_psa_api": ["IPC"],
308 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800309 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800310 "with_bl2": [True],
311 "with_ns": [True, False],
312 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800313 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800314 },
315 "common_params": _common_tfm_builder_cfg,
316 "invalid": _common_tfm_invalid_configs + []
317 }
318
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800319config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800320 "tfm_platform": ["cypress/psoc64"],
321 "toolchain_file": ["toolchain_GNUARM.cmake",
322 "toolchain_ARMCLANG.cmake"],
323 "psa_api": [True],
324 "isolation_level": ["1", "2"],
325 "test_regression": [True],
326 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800327 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800328 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800329 "with_bl2": [False],
330 "with_ns": [True, False],
331 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800332 "partition_ps": ["ON"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800333 },
334 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800335 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800336 }
337
Minos Galanakisea421232019-06-20 17:11:28 +0100338config_AN519 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800339 "tfm_platform": ["mps2/an519"],
340 "toolchain_file": ["toolchain_GNUARM.cmake",
341 "toolchain_ARMCLANG.cmake"],
342 "psa_api": [True, False],
343 "isolation_level": ["1", "2"],
344 "test_regression": [True, False],
345 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100346 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800347 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800348 "with_bl2": [True, False],
349 "with_ns": [True, False],
350 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800351 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +0100352 },
353 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800354 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100355 }
356
Xinyu Zhangb708f572020-09-15 11:43:46 +0800357config_IPC = {"seed_params": {
358 "tfm_platform": ["mps2/an521", "mps2/an519", "musca_a", "musca_b1"],
359 "toolchain_file": ["toolchain_GNUARM.cmake",
360 "toolchain_ARMCLANG.cmake"],
361 "psa_api": [True],
362 "isolation_level": ["1", "2"],
363 "test_regression": [True, False],
364 "test_psa_api": ["OFF"],
365 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800366 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800367 "with_bl2": [True, False],
368 "with_ns": [True, False],
369 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800370 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800371 },
Minos Galanakisea421232019-06-20 17:11:28 +0100372 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800373 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100374 }
375
Minos Galanakisea421232019-06-20 17:11:28 +0100376config_full = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800377 "tfm_platform": ["mps2/an521", "mps2/an519",
378 "musca_a", "musca_b1",
379 "mps2/an539", "mps3/an524",
380 "cypress/psoc64"],
381 "toolchain_file": ["toolchain_GNUARM.cmake",
382 "toolchain_ARMCLANG.cmake"],
383 "psa_api": [True, False],
384 "isolation_level": ["1", "2"],
385 "test_regression": [True, False],
386 "test_psa_api": ["OFF"],
Dean Birchd6ce2c82020-05-13 13:16:15 +0100387 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800388 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800389 "with_bl2": [True, False],
390 "with_ns": [True, False],
391 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800392 "partition_ps": ["ON"],
Dean Birchd6ce2c82020-05-13 13:16:15 +0100393 },
394 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800395 "invalid": _common_tfm_invalid_configs + [
396 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800397 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800398 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800399 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800400 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800401 }
402
Karl Zhang81a76772020-05-11 18:28:52 +0800403config_full_gnuarm = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800404 "tfm_platform": ["mps2/an521", "mps2/an519",
405 "musca_a", "musca_b1",
406 "mps3/an524", "mps2/an539",
407 "cypress/psoc64"],
408 "toolchain_file": ["toolchain_GNUARM.cmake"],
409 "psa_api": [True, False],
410 "isolation_level": ["1", "2"],
411 "test_regression": [True, False],
412 "test_psa_api": ["OFF"],
Karl Zhang81a76772020-05-11 18:28:52 +0800413 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800414 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800415 "with_bl2": [True, False],
416 "with_ns": [True, False],
417 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800418 "partition_ps": ["ON"],
Karl Zhang81a76772020-05-11 18:28:52 +0800419 },
420 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800421 "invalid": _common_tfm_invalid_configs + [
422 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800423 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800424 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800425 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800426 ]
Dean Birchd6ce2c82020-05-13 13:16:15 +0100427 }
428
Karl Zhangaff558a2020-05-15 14:28:23 +0100429config_tfm_test = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800430 "tfm_platform": ["mps2/an521", "musca_a",
431 "musca_b1", "musca_s1"],
432 "toolchain_file": ["toolchain_ARMCLANG.cmake",
433 "toolchain_GNUARM.cmake"],
434 "psa_api": [True, False],
435 "isolation_level": ["1", "2"],
436 "test_regression": [True, False],
437 "test_psa_api": ["OFF"],
438 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800439 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800440 "with_bl2": [True, False],
441 "with_ns": [True, False],
442 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800443 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800444 },
445 "common_params": _common_tfm_builder_cfg,
446 "invalid": _common_tfm_invalid_configs + []
447 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800448
Karl Zhangaff558a2020-05-15 14:28:23 +0100449config_tfm_test2 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800450 "tfm_platform": ["mps2/an519", "mps3/an524",
451 "mps2/an539", "mps2/sse-200_aws"],
452 "toolchain_file": ["toolchain_ARMCLANG.cmake",
453 "toolchain_GNUARM.cmake"],
454 "psa_api": [True, False],
455 "isolation_level": ["1", "2"],
456 "test_regression": [True, False],
457 "test_psa_api": ["OFF"],
458 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800459 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800460 "with_bl2": [True, False],
461 "with_ns": [True, False],
462 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800463 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800464 },
465 "common_params": _common_tfm_builder_cfg,
466 "invalid": _common_tfm_invalid_configs + [
467 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800468 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800469 ]
470 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100471
Karl Zhang14573bc2020-06-08 09:23:21 +0800472config_tfm_profile = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800473 "tfm_platform": ["mps2/an519", "mps2/an521",
474 "musca_b1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800475 "toolchain_file": ["toolchain_ARMCLANG.cmake",
476 "toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800477 "psa_api": [True, False],
478 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800479 "test_regression": [True, False],
480 "test_psa_api": ["OFF"],
481 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800482 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800483 "with_bl2": [True, False],
484 "with_ns": [True, False],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800485 "profile": ["profile_small", "profile_medium"],
486 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800487 },
488 "common_params": _common_tfm_builder_cfg,
489 "invalid": _common_tfm_invalid_configs + [
490 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800491 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800492 ]
493 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800494
Karl Zhangaff558a2020-05-15 14:28:23 +0100495config_tfm_test_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800496 "tfm_platform": ["musca_b1"],
497 "toolchain_file": ["toolchain_ARMCLANG.cmake",
498 "toolchain_GNUARM.cmake"],
499 "psa_api": [True, False],
500 "isolation_level": ["1", "2"],
501 "test_regression": [True, False],
502 "test_psa_api": ["OFF"],
503 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800504 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800505 "with_bl2": [True],
506 "with_ns": [True, False],
507 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800508 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800509 },
510 "common_params": _common_tfm_builder_cfg,
511 "invalid": _common_tfm_invalid_configs + []
512 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100513
Minos Galanakisea421232019-06-20 17:11:28 +0100514config_MUSCA_A = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800515 "tfm_platform": ["musca_a"],
516 "toolchain_file": ["toolchain_ARMCLANG.cmake",
517 "toolchain_GNUARM.cmake"],
518 "psa_api": [True, False],
519 "isolation_level": ["1", "2"],
520 "test_regression": [True, False],
521 "test_psa_api": ["OFF"],
522 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800523 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800524 "with_bl2": [True],
525 "with_ns": [True, False],
526 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800527 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800528 },
529 "common_params": _common_tfm_builder_cfg,
530 "invalid": _common_tfm_invalid_configs + []
531 }
Minos Galanakisea421232019-06-20 17:11:28 +0100532
533config_MUSCA_B1 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800534 "tfm_platform": ["musca_b1"],
535 "toolchain_file": ["toolchain_ARMCLANG.cmake",
536 "toolchain_GNUARM.cmake"],
537 "psa_api": [True, False],
538 "isolation_level": ["1", "2"],
539 "test_regression": [True, False],
540 "test_psa_api": ["OFF"],
541 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800542 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800543 "with_bl2": [True],
544 "with_ns": [True, False],
545 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800546 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800547 },
548 "common_params": _common_tfm_builder_cfg,
549 "invalid": _common_tfm_invalid_configs + []
550 }
Minos Galanakisea421232019-06-20 17:11:28 +0100551
Karl Zhangeffed972020-06-30 15:48:01 +0800552config_MUSCA_S1 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800553 "tfm_platform": ["musca_s1"],
554 "toolchain_file": ["toolchain_ARMCLANG.cmake",
555 "toolchain_GNUARM.cmake"],
556 "psa_api": [True, False],
557 "isolation_level": ["1", "2"],
558 "test_regression": [True, False],
559 "test_psa_api": ["OFF"],
560 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800561 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800562 "with_bl2": [True],
563 "with_ns": [True, False],
564 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800565 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800566 },
567 "common_params": _common_tfm_builder_cfg,
568 "invalid": _common_tfm_invalid_configs + []
569 }
Karl Zhangeffed972020-06-30 15:48:01 +0800570
Karl Zhangaff558a2020-05-15 14:28:23 +0100571config_release = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800572 "tfm_platform": ["mps2/an521", "mps2/an519",
573 "musca_a", "musca_b1", "musca_s1",
574 "mps3/an524", "mps2/an539"],
575 "toolchain_file": ["toolchain_ARMCLANG.cmake",
576 "toolchain_GNUARM.cmake"],
577 "psa_api": [True, False],
578 "isolation_level": ["1", "2"],
579 "test_regression": [True, False],
580 "test_psa_api": ["OFF"],
581 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800582 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800583 "with_bl2": [True, False],
584 "with_ns": [True, False],
585 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800586 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800587 },
588 "common_params": _common_tfm_builder_cfg,
589 "invalid": _common_tfm_invalid_configs + [
590 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800591 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800592 ]
593 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100594
595# Configure build manager to build several combinations
596config_AN521_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800597 "tfm_platform": ["mps2/an521", "mps2/an519",
598 "musca_b1"],
599 "toolchain_file": ["toolchain_GNUARM.cmake",
600 "toolchain_ARMCLANG.cmake"],
601 "psa_api": [True, False],
602 "isolation_level": ["1", "2"],
603 "test_regression": [False],
604 "test_psa_api": ["IPC",
605 "CRYPTO",
606 "PROTECTED_STORAGE",
607 "INITIAL_ATTESTATION",
608 "INTERNAL_TRUSTED_STORAGE"],
609 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800610 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800611 "with_bl2": [True],
612 "with_ns": [True, False],
613 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800614 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100615 },
616 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800617 "invalid": _common_tfm_invalid_configs + [
618 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800619 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800620 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100621 }
622
Karl Zhangaff558a2020-05-15 14:28:23 +0100623config_AN521_PSA_IPC = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800624 "tfm_platform": ["mps2/an521", "mps2/an519",
625 "musca_b1"],
626 "toolchain_file": ["toolchain_GNUARM.cmake",
627 "toolchain_ARMCLANG.cmake"],
628 "psa_api": [True],
629 "isolation_level": ["1", "2"],
630 "test_regression": [False],
631 "test_psa_api": ["IPC"],
632 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800633 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800634 "with_bl2": [True],
635 "with_ns": [True, False],
636 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800637 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100638 },
639 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800640 "invalid": _common_tfm_invalid_configs + [
641 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800642 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800643 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100644 }
645
Karl Zhang14573bc2020-06-08 09:23:21 +0800646config_nightly = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800647 "tfm_platform": ["mps2/an521", "mps2/an519",
648 "musca_a", "musca_b1", "musca_s1",
649 "mps3/an524", "mps2/an539",
650 "mps2/sse-200_aws", "cypress/psoc64"],
651 "toolchain_file": ["toolchain_GNUARM.cmake",
652 "toolchain_ARMCLANG.cmake"],
653 "psa_api": [True, False],
654 "isolation_level": ["1", "2"],
655 "test_regression": [True, False],
656 "test_psa_api": ["OFF"],
657 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800658 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800659 "with_bl2": [True, False],
660 "with_ns": [True, False],
661 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800662 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800663 },
664 "common_params": _common_tfm_builder_cfg,
665 "invalid": _common_tfm_invalid_configs + [
666 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800667 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800668 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800669 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800670 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800671 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800672 ]
673 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800674
Karl Zhang14573bc2020-06-08 09:23:21 +0800675config_nightly_profile = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800676 "tfm_platform": ["mps2/an519", "mps2/an521",
677 "musca_b1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800678 "toolchain_file": ["toolchain_ARMCLANG.cmake",
679 "toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800680 "psa_api": [True, False],
681 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800682 "test_regression": [True, False],
683 "test_psa_api": ["OFF"],
684 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800685 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800686 "with_bl2": [True, False],
687 "with_ns": [True, False],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800688 "profile": ["profile_small", "profile_medium"],
689 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800690 },
691 "common_params": _common_tfm_builder_cfg,
692 "invalid": _common_tfm_invalid_configs + [
693 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800694 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800695 ]
696 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800697
Karl Zhang14573bc2020-06-08 09:23:21 +0800698config_nightly_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800699 "tfm_platform": ["mps2/an521"],
700 "toolchain_file": ["toolchain_GNUARM.cmake",
701 "toolchain_ARMCLANG.cmake"],
702 "psa_api": [True, False],
703 "isolation_level": ["1", "2"],
704 "test_regression": [False],
705 "test_psa_api": ["CRYPTO",
706 "PROTECTED_STORAGE",
707 "INITIAL_ATTESTATION",
708 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800709 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800710 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800711 "with_bl2": [True],
712 "with_ns": [True, False],
713 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800714 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800715 },
716 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800717 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800718 }
719
Karl Zhang14573bc2020-06-08 09:23:21 +0800720config_nightly_PSA_FF = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800721 "tfm_platform": ["mps2/an521"],
722 "toolchain_file": ["toolchain_GNUARM.cmake",
723 "toolchain_ARMCLANG.cmake"],
724 "psa_api": [True],
725 "isolation_level": ["1", "2"],
726 "test_regression": [False],
727 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800728 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800729 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800730 "with_bl2": [True],
731 "with_ns": [True, False],
732 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800733 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800734 },
735 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800736 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800737 }
738
Karl Zhang14573bc2020-06-08 09:23:21 +0800739config_nightly_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800740 "tfm_platform": ["musca_b1"],
741 "toolchain_file": ["toolchain_GNUARM.cmake",
742 "toolchain_ARMCLANG.cmake"],
743 "psa_api": [True, False],
744 "isolation_level": ["1", "2"],
745 "test_regression": [True],
746 "test_psa_api": ["OFF"],
747 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800748 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800749 "with_bl2": [True],
750 "with_ns": [True, False],
751 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800752 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800753 },
754 "common_params": _common_tfm_builder_cfg,
755 "invalid": _common_tfm_invalid_configs + []
756 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800757
Karl Zhang14573bc2020-06-08 09:23:21 +0800758config_pp_test = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800759 "tfm_platform": ["mps2/an521", "mps2/an519",
760 "musca_b1"],
761 "toolchain_file": ["toolchain_GNUARM.cmake",
762 "toolchain_ARMCLANG.cmake"],
763 "psa_api": [True, False],
764 "isolation_level": ["1", "2"],
765 "test_regression": [True],
766 "test_psa_api": ["OFF"],
767 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800768 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800769 "with_bl2": [True],
770 "with_ns": [True, False],
771 "profile": ["", "profile_small"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800772 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800773 },
774 "common_params": _common_tfm_builder_cfg,
775 "invalid": _common_tfm_invalid_configs + [
776 ("musca_b1", "*", "*", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800777 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800778 ("*", "*", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800779 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800780 ("*", "*", "*", "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800781 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800782 ]
783 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800784
Karl Zhang14573bc2020-06-08 09:23:21 +0800785config_pp_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800786 "tfm_platform": ["musca_b1"],
787 "toolchain_file": ["toolchain_GNUARM.cmake"],
788 "psa_api": [True, False],
789 "isolation_level": ["1", "2"],
790 "test_regression": [True],
791 "test_psa_api": ["OFF"],
792 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800793 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800794 "with_bl2": [True],
795 "with_ns": [True, False],
796 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800797 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800798 },
799 "common_params": _common_tfm_builder_cfg,
800 "invalid": _common_tfm_invalid_configs + []
801 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800802
803# Configure build manager to build several combinations
804config_pp_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800805 "tfm_platform": ["mps2/an521"],
806 "toolchain_file": ["toolchain_GNUARM.cmake"],
807 "psa_api": [True],
808 "isolation_level": ["2"],
809 "test_regression": [False],
810 "test_psa_api": ["IPC",
811 "CRYPTO",
812 "PROTECTED_STORAGE",
813 "INITIAL_ATTESTATION",
814 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800815 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800816 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800817 "with_bl2": [True],
818 "with_ns": [True, False],
819 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800820 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800821 },
822 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800823 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800824 }
825
Karl Zhang14573bc2020-06-08 09:23:21 +0800826config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800827 "tfm_platform": ["cypress/psoc64"],
828 "toolchain_file": ["toolchain_GNUARM.cmake"],
829 "psa_api": [True],
830 "isolation_level": ["1", "2"],
831 "test_regression": [True],
832 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800833 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800834 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800835 "with_bl2": [False],
836 "with_ns": [True, False],
837 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800838 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800839 },
840 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800841 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800842 }
843
Minos Galanakisea421232019-06-20 17:11:28 +0100844# Configruation used for document building
845config_doxygen = {"common_params": {
846 "config_type": "tf-m_documents",
847 "codebase_root_dir": "tf-m",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800848 "build_cmds": {"all": ["-DTFM_PLATFORM=mps2/an521 "
849 "-DCMAKE_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +0100850 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +0100851 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800852 "cmake --build ./ -- docs"]},
853 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
854 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +0100855 r'/(\w+\.(?:html|md|pdf))$',
856 },
Xinyu Zhangb708f572020-09-15 11:43:46 +0800857 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100858 }
859
Karl Zhangaff558a2020-05-15 14:28:23 +0100860# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +0100861config_debug = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800862 "tfm_platform": ["mps2/an521"],
863 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
864 "psa_api": [False],
865 "isolation_level": ["1"],
866 "test_regression": [False],
867 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100868 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800869 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800870 "with_bl2": [True],
871 "with_ns": [True],
872 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800873 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +0100874 },
875 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800876 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100877 }
878
Dean Birch4c6ad622020-03-13 11:28:03 +0000879# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +0800880config_ci = {"seed_params": {
881 "tfm_platform": ["mps2/an521"],
882 "toolchain_file": ["toolchain_ARMCLANG.cmake",
883 "toolchain_GNUARM.cmake"],
884 "psa_api": [True, False],
885 "isolation_level": ["1", "2"],
886 "test_regression": [True, False],
887 "test_psa_api": ["OFF"],
888 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800889 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800890 "with_bl2": [True, False],
891 "with_ns": [True],
892 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800893 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800894 },
895 "common_params": _common_tfm_builder_cfg,
896 "invalid": _common_tfm_invalid_configs + [
897 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800898 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800899 ("*", "toolchain_ARMCLANG.cmake", False, "1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800900 "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800901 ]
902 }
Matthew Hartfb6fd362020-03-04 21:03:59 +0000903
Dean Birchd6ce2c82020-05-13 13:16:15 +0100904# Configuration used in CI if armclang not available
Xinyu Zhangb708f572020-09-15 11:43:46 +0800905config_ci_gnuarm = {"seed_params": {
906 "tfm_platform": ["mps2/an521"],
907 "toolchain_file": ["toolchain_ARMCLANG.cmake",
908 "toolchain_GNUARM.cmake"],
909 "psa_api": [True, False],
910 "isolation_level": ["1", "2"],
911 "test_regression": [True, False],
912 "test_psa_api": ["OFF"],
913 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800914 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800915 "with_bl2": [True, False],
916 "with_ns": [True],
917 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800918 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800919 },
920 "common_params": _common_tfm_builder_cfg,
921 "invalid": _common_tfm_invalid_configs + [
922 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800923 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800924 ("*", "toolchain_ARMCLANG.cmake", False, "1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800925 "*", "*", "False", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800926 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800927 "*", "*", "*", "*", "*", "*") # Disable ARMCLANG for now
Xinyu Zhangb708f572020-09-15 11:43:46 +0800928 ]
929 }
Dean Birchd6ce2c82020-05-13 13:16:15 +0100930
Xinyu Zhangb708f572020-09-15 11:43:46 +0800931config_lava_debug = {"seed_params": {
932 "tfm_platform": ["mps2/an521", "mps2/an519"],
933 "toolchain_file": ["toolchain_GNUARM.cmake"],
934 "psa_api": [True, False],
935 "isolation_level": ["1", "2"],
936 "test_regression": [True],
937 "test_psa_api": ["OFF"],
938 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800939 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800940 "with_bl2": [True, False],
941 "with_ns": [True, False],
942 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800943 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800944 },
945 "common_params": _common_tfm_builder_cfg,
946 "invalid": _common_tfm_invalid_configs + [
947 ("mps2/an521", "toolchain_GNUARM.cmake", True, "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800948 "*", "*", True, "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +0800949 ]
950 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000951
Karl Zhangeea16ed2020-06-15 15:03:12 +0800952#GNU groups for external CI only
953# Configure build manager to build the maximum number of configurations
954config_tfm_test_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800955 "tfm_platform": ["mps2/an521", "musca_a",
956 "musca_b1", "musca_s1"],
957 "toolchain_file": ["toolchain_GNUARM.cmake"],
958 "psa_api": [True, False],
959 "isolation_level": ["1", "2"],
960 "test_regression": [True, False],
961 "test_psa_api": ["OFF"],
962 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800963 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800964 "with_bl2": [True, False],
965 "with_ns": [True, False],
966 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800967 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800968 },
969 "common_params": _common_tfm_builder_cfg,
970 "invalid": _common_tfm_invalid_configs + [
971 ("musca_a", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800972 "*", "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800973 ("musca_b1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800974 "*", "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800975 ("musca_s1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800976 "*", "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800977 ]
978 }
Karl Zhangeea16ed2020-06-15 15:03:12 +0800979
980# Configure build manager to build the maximum number of configurations
981config_tfm_test2_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800982 "tfm_platform": ["mps2/an519", "mps3/an524",
983 "mps2/an539", "mps2/sse-200_aws"],
984 "toolchain_file": ["toolchain_GNUARM.cmake"],
985 "psa_api": [True, False],
986 "isolation_level": ["1", "2"],
987 "test_regression": [True, False],
988 "test_psa_api": ["OFF"],
989 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800990 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800991 "with_bl2": [True, False],
992 "with_ns": [True, False],
993 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800994 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800995 },
996 "common_params": _common_tfm_builder_cfg,
997 "invalid": _common_tfm_invalid_configs + [
998 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800999 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001000 ]
1001 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001002
1003# Configure build manager to build the maximum number of configurations
1004config_tfm_profile_gnu = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001005 "tfm_platform": ["mps2/an519", "mps2/an521",
1006 "musca_b1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001007 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001008 "psa_api": [True, False],
1009 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001010 "test_regression": [True, False],
1011 "test_psa_api": ["OFF"],
1012 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001013 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001014 "with_bl2": [True, False],
1015 "with_ns": [True, False],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001016 "profile": ["profile_small", "profile_medium"],
1017 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001018 },
1019 "common_params": _common_tfm_builder_cfg,
1020 "invalid": _common_tfm_invalid_configs + [
1021 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001022 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001023 ]
1024 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001025
1026# Configure build manager to build the maximum number of configurations
1027config_tfm_test_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001028 "tfm_platform": ["musca_b1"],
1029 "toolchain_file": ["toolchain_GNUARM.cmake"],
1030 "psa_api": [True, False],
1031 "isolation_level": ["1", "2"],
1032 "test_regression": [True, False],
1033 "test_psa_api": ["OFF"],
1034 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001035 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001036 "with_bl2": [True],
1037 "with_ns": [True, False],
1038 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001039 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001040 },
1041 "common_params": _common_tfm_builder_cfg,
1042 "invalid": _common_tfm_invalid_configs + []
1043 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001044
1045# Configure build manager to build several combinations
1046config_PSA_API_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001047 "tfm_platform": ["mps2/an521", "musca_b1"],
1048 "toolchain_file": ["toolchain_GNUARM.cmake"],
1049 "psa_api": [True, False],
1050 "isolation_level": ["1", "2"],
1051 "test_regression": [False],
1052 "test_psa_api": ["CRYPTO",
1053 "PROTECTED_STORAGE",
1054 "INITIAL_ATTESTATION",
1055 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001056 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001057 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001058 "with_bl2": [True],
1059 "with_ns": [True, False],
1060 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001061 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001062 },
1063 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001064 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001065 }
1066
1067# Configure build manager to build several combinations
1068config_PSA_FF_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001069 "tfm_platform": ["mps2/an521", "musca_b1"],
1070 "toolchain_file": ["toolchain_GNUARM.cmake"],
1071 "psa_api": [True],
1072 "isolation_level": ["1", "2"],
1073 "test_regression": [False],
1074 "test_psa_api": ["IPC"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001075 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001076 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001077 "with_bl2": [True],
1078 "with_ns": [True, False],
1079 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001080 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001081 },
1082 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001083 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001084 }
1085
1086# Configure build manager to build several combinations
1087config_PSA_API_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001088 "tfm_platform": ["musca_b1"],
1089 "toolchain_file": ["toolchain_GNUARM.cmake"],
1090 "psa_api": [True, False],
1091 "isolation_level": ["1", "2"],
1092 "test_regression": [False],
1093 "test_psa_api": ["CRYPTO",
1094 "PROTECTED_STORAGE",
1095 "INITIAL_ATTESTATION",
1096 "INTERNAL_TRUSTED_STORAGE"],
1097 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001098 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001099 "with_bl2": [True],
1100 "with_ns": [True, False],
1101 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001102 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001103 },
1104 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001105 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001106 }
1107
1108# Configure build manager to build several combinations
1109config_PSA_FF_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001110 "tfm_platform": ["musca_b1"],
1111 "toolchain_file": ["toolchain_GNUARM.cmake"],
1112 "psa_api": [True],
1113 "isolation_level": ["1", "2"],
1114 "test_regression": [False],
1115 "test_psa_api": ["IPC"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001116 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001117 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001118 "with_bl2": [True],
1119 "with_ns": [True, False],
1120 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001121 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001122 },
1123 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001124 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001125 }
1126
1127# Configure build manager to build several combinations
1128config_PSOC64_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001129 "tfm_platform": ["cypress/psoc64"],
1130 "toolchain_file": ["toolchain_GNUARM.cmake"],
1131 "psa_api": [True],
1132 "isolation_level": ["1", "2"],
1133 "test_regression": [True],
1134 "test_psa_api": ["OFF"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001135 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001136 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001137 "with_bl2": [False],
1138 "with_ns": [True, False],
1139 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001140 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001141 },
1142 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001143 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001144 }
1145
1146# Configure build manager to build the maximum number of configurations
1147config_nightly_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001148 "tfm_platform": ["mps2/an521", "mps2/an519",
1149 "musca_a", "musca_b1", "musca_s1",
1150 "mps3/an524", "mps2/an539",
1151 "mps2/sse-200_aws", "cypress/psoc64"],
1152 "toolchain_file": ["toolchain_GNUARM.cmake"],
1153 "psa_api": [True, False],
1154 "isolation_level": ["1", "2"],
1155 "test_regression": [True, False],
1156 "test_psa_api": ["OFF"],
1157 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001158 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001159 "with_bl2": [True, False],
1160 "with_ns": [True, False],
1161 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001162 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001163 },
1164 "common_params": _common_tfm_builder_cfg,
1165 "invalid": _common_tfm_invalid_configs + [
1166 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001167 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001168 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001169 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001170 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001171 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001172 ]
1173 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001174
1175# Configure build manager to build the maximum number of configurations
1176config_nightly_profile_gnu = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001177 "tfm_platform": ["mps2/an519", "mps2/an521",
1178 "musca_b1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001179 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001180 "psa_api": [True, False],
1181 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001182 "test_regression": [True, False],
1183 "test_psa_api": ["OFF"],
1184 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001185 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001186 "with_bl2": [True, False],
1187 "with_ns": [True, False],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001188 "profile": ["profile_small", "profile_medium"],
1189 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001190 },
1191 "common_params": _common_tfm_builder_cfg,
1192 "invalid": _common_tfm_invalid_configs + [
1193 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001194 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001195 ]
1196 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001197
1198# Configure build manager to build several combinations
1199config_nightly_PSA_API_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001200 "tfm_platform": ["mps2/an521"],
1201 "toolchain_file": ["toolchain_GNUARM.cmake"],
1202 "psa_api": [True, False],
1203 "isolation_level": ["1", "2"],
1204 "test_regression": [False],
1205 "test_psa_api": ["CRYPTO",
1206 "PROTECTED_STORAGE",
1207 "INITIAL_ATTESTATION",
1208 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001209 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001210 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001211 "with_bl2": [True],
1212 "with_ns": [True, False],
1213 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001214 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001215 },
1216 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001217 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001218 }
1219
1220# Configure build manager to build several combinations
1221config_nightly_PSA_FF_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001222 "tfm_platform": ["mps2/an521"],
1223 "toolchain_file": ["toolchain_GNUARM.cmake"],
1224 "psa_api": [True],
1225 "isolation_level": ["1", "2"],
1226 "test_regression": [False],
1227 "test_psa_api": ["IPC"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001228 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001229 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001230 "with_bl2": [True],
1231 "with_ns": [True, False],
1232 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001233 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001234 },
1235 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001236 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001237 }
1238
1239# Configure build manager to build the maximum number of configurations
1240config_nightly_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001241 "tfm_platform": ["musca_b1"],
1242 "toolchain_file": ["toolchain_GNUARM.cmake"],
1243 "psa_api": [True, False],
1244 "isolation_level": ["1", "2"],
1245 "test_regression": [True],
1246 "test_psa_api": ["OFF"],
1247 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001248 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001249 "with_bl2": [True],
1250 "with_ns": [True, False],
1251 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001252 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001253 },
1254 "common_params": _common_tfm_builder_cfg,
1255 "invalid": _common_tfm_invalid_configs + []
1256 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001257
1258# Configure build manager to build the maximum number of configurations
1259config_pp_test_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001260 "tfm_platform": ["mps2/an521", "mps2/an519",
1261 "musca_b1"],
Xinyu Zhangf1025b72020-09-28 17:10:57 +08001262 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001263 "psa_api": [True, False],
1264 "isolation_level": ["1", "2"],
1265 "test_regression": [True],
1266 "test_psa_api": ["OFF"],
1267 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001268 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001269 "with_bl2": [True],
1270 "with_ns": [True, False],
1271 "profile": ["", "profile_small"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001272 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001273 },
1274 "common_params": _common_tfm_builder_cfg,
1275 "invalid": _common_tfm_invalid_configs + [
1276 ("musca_b1", "*", "*", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001277 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001278 ("*", "*", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001279 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001280 ("*", "*", "*", "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001281 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001282 ]
1283 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001284
1285# Configure build manager to build the maximum number of configurations
1286config_pp_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001287 "tfm_platform": ["musca_b1"],
1288 "toolchain_file": ["toolchain_GNUARM.cmake"],
1289 "psa_api": [True, False],
1290 "isolation_level": ["1", "2"],
1291 "test_regression": [True],
1292 "test_psa_api": ["OFF"],
1293 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001294 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001295 "with_bl2": [True],
1296 "with_ns": [True, False],
1297 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001298 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001299 },
1300 "common_params": _common_tfm_builder_cfg,
1301 "invalid": _common_tfm_invalid_configs + []
1302 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001303
1304# Configure build manager to build several combinations
1305config_pp_PSA_API_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001306 "tfm_platform": ["mps2/an521"],
1307 "toolchain_file": ["toolchain_GNUARM.cmake"],
1308 "psa_api": [True],
1309 "isolation_level": ["2"],
1310 "test_regression": [False],
1311 "test_psa_api": ["IPC",
1312 "CRYPTO",
1313 "PROTECTED_STORAGE",
1314 "INITIAL_ATTESTATION",
1315 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001316 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001317 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001318 "with_bl2": [True],
1319 "with_ns": [True, False],
1320 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001321 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001322 },
1323 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001324 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001325 }
1326
1327# Configure build manager to build several combinations
1328config_pp_PSoC64_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001329 "tfm_platform": ["cypress/psoc64"],
1330 "toolchain_file": ["toolchain_GNUARM.cmake"],
1331 "psa_api": [True],
1332 "isolation_level": ["1", "2"],
1333 "test_regression": [True],
1334 "test_psa_api": ["OFF"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001335 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001336 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001337 "with_bl2": [False],
1338 "with_ns": [True, False],
1339 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001340 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001341 },
1342 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001343 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001344 }
1345
Karl Zhangaff558a2020-05-15 14:28:23 +01001346_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001347 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001348 "tfm_test": config_tfm_test,
1349 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001350 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +01001351 "tfm_test_otp": config_tfm_test_OTP,
1352 "psa_api": config_PSA_API,
1353 "psa_api_otp": config_PSA_API_OTP,
1354 "psa_ff": config_PSA_FF,
1355 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001356 "tfm_psoc64": config_PSOC64,
1357
1358 #nightly test group
1359 "nightly_test": config_nightly,
1360 "nightly_profile": config_nightly_profile,
1361 "nightly_psa_api": config_nightly_PSA_API,
1362 "nightly_ff": config_nightly_PSA_FF,
1363 "nightly_otp": config_nightly_OTP,
1364
1365 #per patch test group
1366 "pp_test": config_pp_test,
1367 "pp_OTP": config_pp_OTP,
1368 "pp_PSA_API": config_pp_PSA_API,
1369 "pp_psoc64": config_pp_PSoC64,
1370
Karl Zhangeea16ed2020-06-15 15:03:12 +08001371 #GNU only configs against groups above
1372 #The combinations should be the same except the CLANG ones
1373 #release test group (GNU)
1374 "tfm_test_gnu": config_tfm_test_gnu,
1375 "tfm_test2_gnu": config_tfm_test2_gnu,
1376 "tfm_profile_gnu": config_tfm_profile_gnu,
1377 "tfm_test_otp_gnu": config_tfm_test_OTP_gnu,
1378 "psa_api_gnu": config_PSA_API_gnu,
1379 "psa_api_otp_gnu": config_PSA_API_OTP_gnu,
1380 "psa_ff_gnu": config_PSA_FF_gnu,
1381 "psa_ff_otp_gnu": config_PSA_FF_OTP_gnu,
1382 "tfm_psoc64_gnu": config_PSOC64_gnu,
1383
1384 #nightly test group (GNU)
1385 "nightly_test_gnu": config_nightly_gnu,
1386 "nightly_profile_gnu": config_nightly_profile_gnu,
1387 "nightly_psa_api_gnu": config_nightly_PSA_API_gnu,
1388 "nightly_ff_gnu": config_nightly_PSA_FF_gnu,
1389 "nightly_otp_gnu": config_nightly_OTP_gnu,
1390
1391 #per patch test group (GNU)
1392 "pp_test_gnu": config_pp_test_gnu,
1393 "pp_OTP_gnu": config_pp_OTP_gnu,
1394 "pp_PSA_API_gnu": config_pp_PSA_API_gnu,
1395 "pp_psoc64_gnu": config_pp_PSoC64_gnu,
1396
1397
Karl Zhang14573bc2020-06-08 09:23:21 +08001398 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001399 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001400
1401 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001402 "an539": config_AN539,
1403 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001404 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001405 "an521_psa_api": config_AN521_PSA_API,
1406 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001407 "an519": config_AN519,
1408 "musca_a": config_MUSCA_A,
1409 "musca_b1": config_MUSCA_B1,
Karl Zhangeffed972020-06-30 15:48:01 +08001410 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001411 "psoc64": config_PSOC64,
Minos Galanakisea421232019-06-20 17:11:28 +01001412 "ipc": config_IPC,
1413 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001414 "debug": config_debug,
Karl Zhangaff558a2020-05-15 14:28:23 +01001415 "release": config_release,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001416 "debug": config_debug,
Karl Zhang14573bc2020-06-08 09:23:21 +08001417
1418 #DevOps team test group
1419 "full_gnuarm": config_full_gnuarm,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001420 "lava_debug": config_lava_debug,
Dean Birchd6ce2c82020-05-13 13:16:15 +01001421 "ci": config_ci,
1422 "ci_gnuarm": config_ci_gnuarm}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001423
1424if __name__ == '__main__':
1425 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001426
Minos Galanakisea421232019-06-20 17:11:28 +01001427 # Default behavior is to export refference config when called
1428 _dir = os.getcwd()
1429 from utils import save_json
1430 for _cname, _cfg in _builtin_configs.items():
1431 _fname = os.path.join(_dir, _cname + ".json")
1432 print("Exporting config %s" % _fname)
1433 save_json(_fname, _cfg)