blob: 952b6e18f4ed1f9f6ca3eabca0293b4735a17f86 [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 Zhangb1c550f2020-10-28 15:32:38 +0800139 # LVL2 and LVL3 requires PSA api
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800140 ("*", "*", False, "2", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800141 ("*", "*", False, "3", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800142 # Regression requires NS
143 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*", "*"),
Xinyu Zhang11d66112020-11-04 15:38:29 +0800144 # psoc64 requires PSA api
145 ("cypress/psoc64", "*", False, "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800146 # No PSA_ACK with regression
147 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*", "*"),
148 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*", "*"),
149 ("*", "*", "*", "*", True, "PROTECTED_STORAGE", "*", "*", "*", "*", "*", "*"),
150 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*"),
151 ("*", "*", "*", "*", True, "INTERNAL_TRUSTED_STORAGE", "*", "*", "*", "*", "*", "*"),
152 # PSA_ACK requires NS
153 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*", "*"),
154 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*", "*"),
155 ("*", "*", "*", "*", "*", "PROTECTED_STORAGE", "*", "*", "*", False, "*", "*"),
156 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*", "*"),
157 ("*", "*", "*", "*", "*", "INTERNAL_TRUSTED_STORAGE", "*", "*", "*", False, "*", "*"),
158 # Musca requires BL2
159 ("musca_a", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
160 ("musca_b1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
161 ("musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
162 # psoc64 cannot use BL2
163 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*"),
164 # Musca b1 does not support Profile S
165 ("musca_b1", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800166 # PARTITION_PS could be OFF only for Profile S and M
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800167 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800168 # PARTITION_PS should be OFF for Profile S
169 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800170 # Proile M only support for PSA_API
171 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
172 # Profile M only support for Isolation Level 2
173 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
174 # Profile S does not support MUSCA_B1
175 ("musca_b1", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
176 # Profile S does not support PSA_API
177 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
178 # Profile S only supports Isolation Level 2
179 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800180 # Only AN521 and MUSCA_B1 support Isolation Level 3
181 ("mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
182 ("mps2/an539", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
183 ("mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
184 ("mps2/sse-200_aws", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
185 ("musca_a", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
186 ("musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
187 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800188 ]
189
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100190# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100191config_AN539 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800192 "tfm_platform": ["mps2/an539"],
193 "toolchain_file": ["toolchain_GNUARM.cmake",
194 "toolchain_ARMCLANG.cmake"],
195 "psa_api": [True, False],
196 "isolation_level": ["1", "2"],
197 "test_regression": [True, False],
198 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100199 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800200 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800201 "with_bl2": [True, False],
202 "with_ns": [True, False],
203 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800204 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +0100205 },
206 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800207 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100208 }
209
Karl Zhangaff558a2020-05-15 14:28:23 +0100210config_AN524 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800211 "tfm_platform": ["mps3/an524"],
212 "toolchain_file": ["toolchain_GNUARM.cmake",
213 "toolchain_ARMCLANG.cmake"],
214 "psa_api": [True, False],
215 "isolation_level": ["1", "2"],
216 "test_regression": [True, False],
217 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100218 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800219 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800220 "with_bl2": [True, False],
221 "with_ns": [True, False],
222 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800223 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100224 },
225 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800226 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100227 }
228
Karl Zhangaff558a2020-05-15 14:28:23 +0100229config_AN521 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800230 "tfm_platform": ["mps2/an521"],
231 "toolchain_file": ["toolchain_GNUARM.cmake",
232 "toolchain_ARMCLANG.cmake"],
233 "psa_api": [True, False],
234 "isolation_level": ["1", "2"],
235 "test_regression": [True, False],
236 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100237 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800238 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800239 "with_bl2": [True, False],
240 "with_ns": [True, False],
241 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800242 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100243 },
244 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800245 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100246 }
247
Karl Zhangaff558a2020-05-15 14:28:23 +0100248config_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800249 "tfm_platform": ["mps2/an521", "musca_b1", "musca_s1"],
250 "toolchain_file": ["toolchain_GNUARM.cmake",
251 "toolchain_ARMCLANG.cmake"],
252 "psa_api": [True, False],
253 "isolation_level": ["1", "2"],
254 "test_regression": [False],
255 "test_psa_api": ["CRYPTO",
256 "PROTECTED_STORAGE",
257 "INITIAL_ATTESTATION",
258 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100259 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800260 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800261 "with_bl2": [True],
262 "with_ns": [True, False],
263 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800264 "partition_ps": ["ON"],
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 }
269
Karl Zhangaff558a2020-05-15 14:28:23 +0100270config_PSA_FF = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800271 "tfm_platform": ["mps2/an521", "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"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100278 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800279 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800280 "with_bl2": [True],
281 "with_ns": [True, False],
282 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800283 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100284 },
285 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800286 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100287 }
288
Karl Zhangaff558a2020-05-15 14:28:23 +0100289config_PSA_API_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800290 "tfm_platform": ["musca_b1"],
291 "toolchain_file": ["toolchain_GNUARM.cmake",
292 "toolchain_ARMCLANG.cmake"],
293 "psa_api": [True, False],
294 "isolation_level": ["1", "2"],
295 "test_regression": [False],
296 "test_psa_api": ["CRYPTO",
297 "PROTECTED_STORAGE",
298 "INITIAL_ATTESTATION",
299 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100300 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800301 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800302 "with_bl2": [True],
303 "with_ns": [True, False],
304 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800305 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100306 },
307 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800308 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100309 }
Minos Galanakisea421232019-06-20 17:11:28 +0100310
Xinyu Zhangb708f572020-09-15 11:43:46 +0800311config_PSA_FF_OTP = {"seed_params": {
312 "tfm_platform": ["musca_b1"],
313 "toolchain_file": ["toolchain_GNUARM.cmake",
314 "toolchain_ARMCLANG.cmake"],
315 "psa_api": [True],
316 "isolation_level": ["1", "2"],
317 "test_regression": [False],
318 "test_psa_api": ["IPC"],
319 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800320 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800321 "with_bl2": [True],
322 "with_ns": [True, False],
323 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800324 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800325 },
326 "common_params": _common_tfm_builder_cfg,
327 "invalid": _common_tfm_invalid_configs + []
328 }
329
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800330config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800331 "tfm_platform": ["cypress/psoc64"],
332 "toolchain_file": ["toolchain_GNUARM.cmake",
333 "toolchain_ARMCLANG.cmake"],
334 "psa_api": [True],
335 "isolation_level": ["1", "2"],
336 "test_regression": [True],
337 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800338 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800339 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800340 "with_bl2": [False],
341 "with_ns": [True, False],
342 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800343 "partition_ps": ["ON"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800344 },
345 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800346 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800347 }
348
Minos Galanakisea421232019-06-20 17:11:28 +0100349config_AN519 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800350 "tfm_platform": ["mps2/an519"],
351 "toolchain_file": ["toolchain_GNUARM.cmake",
352 "toolchain_ARMCLANG.cmake"],
353 "psa_api": [True, False],
354 "isolation_level": ["1", "2"],
355 "test_regression": [True, False],
356 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100357 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800358 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800359 "with_bl2": [True, False],
360 "with_ns": [True, False],
361 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800362 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +0100363 },
364 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800365 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100366 }
367
Xinyu Zhangb708f572020-09-15 11:43:46 +0800368config_IPC = {"seed_params": {
369 "tfm_platform": ["mps2/an521", "mps2/an519", "musca_a", "musca_b1"],
370 "toolchain_file": ["toolchain_GNUARM.cmake",
371 "toolchain_ARMCLANG.cmake"],
372 "psa_api": [True],
373 "isolation_level": ["1", "2"],
374 "test_regression": [True, False],
375 "test_psa_api": ["OFF"],
376 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800377 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800378 "with_bl2": [True, False],
379 "with_ns": [True, False],
380 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800381 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800382 },
Minos Galanakisea421232019-06-20 17:11:28 +0100383 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800384 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100385 }
386
Minos Galanakisea421232019-06-20 17:11:28 +0100387config_full = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800388 "tfm_platform": ["mps2/an521", "mps2/an519",
389 "musca_a", "musca_b1",
390 "mps2/an539", "mps3/an524",
391 "cypress/psoc64"],
392 "toolchain_file": ["toolchain_GNUARM.cmake",
393 "toolchain_ARMCLANG.cmake"],
394 "psa_api": [True, False],
395 "isolation_level": ["1", "2"],
396 "test_regression": [True, False],
397 "test_psa_api": ["OFF"],
Dean Birchd6ce2c82020-05-13 13:16:15 +0100398 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800399 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800400 "with_bl2": [True, False],
401 "with_ns": [True, False],
402 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800403 "partition_ps": ["ON"],
Dean Birchd6ce2c82020-05-13 13:16:15 +0100404 },
405 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800406 "invalid": _common_tfm_invalid_configs + [
407 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800408 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800409 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800410 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800411 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800412 }
413
Karl Zhang81a76772020-05-11 18:28:52 +0800414config_full_gnuarm = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800415 "tfm_platform": ["mps2/an521", "mps2/an519",
416 "musca_a", "musca_b1",
417 "mps3/an524", "mps2/an539",
418 "cypress/psoc64"],
419 "toolchain_file": ["toolchain_GNUARM.cmake"],
420 "psa_api": [True, False],
421 "isolation_level": ["1", "2"],
422 "test_regression": [True, False],
423 "test_psa_api": ["OFF"],
Karl Zhang81a76772020-05-11 18:28:52 +0800424 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800425 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800426 "with_bl2": [True, False],
427 "with_ns": [True, False],
428 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800429 "partition_ps": ["ON"],
Karl Zhang81a76772020-05-11 18:28:52 +0800430 },
431 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800432 "invalid": _common_tfm_invalid_configs + [
433 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800434 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800435 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800436 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800437 ]
Dean Birchd6ce2c82020-05-13 13:16:15 +0100438 }
439
Karl Zhangaff558a2020-05-15 14:28:23 +0100440config_tfm_test = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800441 "tfm_platform": ["mps2/an521", "musca_a",
442 "musca_b1", "musca_s1"],
443 "toolchain_file": ["toolchain_ARMCLANG.cmake",
444 "toolchain_GNUARM.cmake"],
445 "psa_api": [True, False],
446 "isolation_level": ["1", "2"],
447 "test_regression": [True, False],
448 "test_psa_api": ["OFF"],
449 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800450 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800451 "with_bl2": [True, False],
452 "with_ns": [True, False],
453 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800454 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800455 },
456 "common_params": _common_tfm_builder_cfg,
457 "invalid": _common_tfm_invalid_configs + []
458 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800459
Karl Zhangaff558a2020-05-15 14:28:23 +0100460config_tfm_test2 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800461 "tfm_platform": ["mps2/an519", "mps3/an524",
462 "mps2/an539", "mps2/sse-200_aws"],
463 "toolchain_file": ["toolchain_ARMCLANG.cmake",
464 "toolchain_GNUARM.cmake"],
465 "psa_api": [True, False],
466 "isolation_level": ["1", "2"],
467 "test_regression": [True, False],
468 "test_psa_api": ["OFF"],
469 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800470 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800471 "with_bl2": [True, False],
472 "with_ns": [True, False],
473 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800474 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800475 },
476 "common_params": _common_tfm_builder_cfg,
477 "invalid": _common_tfm_invalid_configs + [
478 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800479 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800480 ]
481 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100482
Karl Zhang14573bc2020-06-08 09:23:21 +0800483config_tfm_profile = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800484 "tfm_platform": ["mps2/an519", "mps2/an521",
485 "musca_b1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800486 "toolchain_file": ["toolchain_ARMCLANG.cmake",
487 "toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800488 "psa_api": [True, False],
489 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800490 "test_regression": [True, False],
491 "test_psa_api": ["OFF"],
492 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800493 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800494 "with_bl2": [True, False],
495 "with_ns": [True, False],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800496 "profile": ["profile_small", "profile_medium"],
497 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800498 },
499 "common_params": _common_tfm_builder_cfg,
500 "invalid": _common_tfm_invalid_configs + [
501 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800502 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800503 ]
504 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800505
Karl Zhangaff558a2020-05-15 14:28:23 +0100506config_tfm_test_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800507 "tfm_platform": ["musca_b1"],
508 "toolchain_file": ["toolchain_ARMCLANG.cmake",
509 "toolchain_GNUARM.cmake"],
510 "psa_api": [True, False],
511 "isolation_level": ["1", "2"],
512 "test_regression": [True, False],
513 "test_psa_api": ["OFF"],
514 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800515 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800516 "with_bl2": [True],
517 "with_ns": [True, False],
518 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800519 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800520 },
521 "common_params": _common_tfm_builder_cfg,
522 "invalid": _common_tfm_invalid_configs + []
523 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100524
Minos Galanakisea421232019-06-20 17:11:28 +0100525config_MUSCA_A = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800526 "tfm_platform": ["musca_a"],
527 "toolchain_file": ["toolchain_ARMCLANG.cmake",
528 "toolchain_GNUARM.cmake"],
529 "psa_api": [True, False],
530 "isolation_level": ["1", "2"],
531 "test_regression": [True, False],
532 "test_psa_api": ["OFF"],
533 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800534 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800535 "with_bl2": [True],
536 "with_ns": [True, False],
537 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800538 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800539 },
540 "common_params": _common_tfm_builder_cfg,
541 "invalid": _common_tfm_invalid_configs + []
542 }
Minos Galanakisea421232019-06-20 17:11:28 +0100543
544config_MUSCA_B1 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800545 "tfm_platform": ["musca_b1"],
546 "toolchain_file": ["toolchain_ARMCLANG.cmake",
547 "toolchain_GNUARM.cmake"],
548 "psa_api": [True, False],
549 "isolation_level": ["1", "2"],
550 "test_regression": [True, False],
551 "test_psa_api": ["OFF"],
552 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800553 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800554 "with_bl2": [True],
555 "with_ns": [True, False],
556 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800557 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800558 },
559 "common_params": _common_tfm_builder_cfg,
560 "invalid": _common_tfm_invalid_configs + []
561 }
Minos Galanakisea421232019-06-20 17:11:28 +0100562
Karl Zhangeffed972020-06-30 15:48:01 +0800563config_MUSCA_S1 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800564 "tfm_platform": ["musca_s1"],
565 "toolchain_file": ["toolchain_ARMCLANG.cmake",
566 "toolchain_GNUARM.cmake"],
567 "psa_api": [True, False],
568 "isolation_level": ["1", "2"],
569 "test_regression": [True, False],
570 "test_psa_api": ["OFF"],
571 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800572 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800573 "with_bl2": [True],
574 "with_ns": [True, False],
575 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800576 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800577 },
578 "common_params": _common_tfm_builder_cfg,
579 "invalid": _common_tfm_invalid_configs + []
580 }
Karl Zhangeffed972020-06-30 15:48:01 +0800581
Karl Zhangaff558a2020-05-15 14:28:23 +0100582config_release = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800583 "tfm_platform": ["mps2/an521", "mps2/an519",
584 "musca_a", "musca_b1", "musca_s1",
585 "mps3/an524", "mps2/an539"],
586 "toolchain_file": ["toolchain_ARMCLANG.cmake",
587 "toolchain_GNUARM.cmake"],
588 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800589 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800590 "test_regression": [True, False],
591 "test_psa_api": ["OFF"],
592 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800593 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800594 "with_bl2": [True, False],
595 "with_ns": [True, False],
596 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800597 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800598 },
599 "common_params": _common_tfm_builder_cfg,
600 "invalid": _common_tfm_invalid_configs + [
601 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800602 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800603 ]
604 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100605
606# Configure build manager to build several combinations
607config_AN521_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800608 "tfm_platform": ["mps2/an521", "mps2/an519",
609 "musca_b1"],
610 "toolchain_file": ["toolchain_GNUARM.cmake",
611 "toolchain_ARMCLANG.cmake"],
612 "psa_api": [True, False],
613 "isolation_level": ["1", "2"],
614 "test_regression": [False],
615 "test_psa_api": ["IPC",
616 "CRYPTO",
617 "PROTECTED_STORAGE",
618 "INITIAL_ATTESTATION",
619 "INTERNAL_TRUSTED_STORAGE"],
620 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800621 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800622 "with_bl2": [True],
623 "with_ns": [True, False],
624 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800625 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100626 },
627 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800628 "invalid": _common_tfm_invalid_configs + [
629 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800630 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800631 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100632 }
633
Karl Zhangaff558a2020-05-15 14:28:23 +0100634config_AN521_PSA_IPC = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800635 "tfm_platform": ["mps2/an521", "mps2/an519",
636 "musca_b1"],
637 "toolchain_file": ["toolchain_GNUARM.cmake",
638 "toolchain_ARMCLANG.cmake"],
639 "psa_api": [True],
640 "isolation_level": ["1", "2"],
641 "test_regression": [False],
642 "test_psa_api": ["IPC"],
643 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800644 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800645 "with_bl2": [True],
646 "with_ns": [True, False],
647 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800648 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100649 },
650 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800651 "invalid": _common_tfm_invalid_configs + [
652 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800653 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800654 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100655 }
656
Karl Zhang14573bc2020-06-08 09:23:21 +0800657config_nightly = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800658 "tfm_platform": ["mps2/an521", "mps2/an519",
659 "musca_a", "musca_b1", "musca_s1",
660 "mps3/an524", "mps2/an539",
661 "mps2/sse-200_aws", "cypress/psoc64"],
662 "toolchain_file": ["toolchain_GNUARM.cmake",
663 "toolchain_ARMCLANG.cmake"],
664 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800665 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800666 "test_regression": [True, False],
667 "test_psa_api": ["OFF"],
668 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800669 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800670 "with_bl2": [True, False],
671 "with_ns": [True, False],
672 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800673 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800674 },
675 "common_params": _common_tfm_builder_cfg,
676 "invalid": _common_tfm_invalid_configs + [
677 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800678 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800679 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800680 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800681 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800682 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800683 ]
684 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800685
Karl Zhang14573bc2020-06-08 09:23:21 +0800686config_nightly_profile = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800687 "tfm_platform": ["mps2/an519", "mps2/an521",
688 "musca_b1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800689 "toolchain_file": ["toolchain_ARMCLANG.cmake",
690 "toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800691 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800692 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800693 "test_regression": [True, False],
694 "test_psa_api": ["OFF"],
695 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800696 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800697 "with_bl2": [True, False],
698 "with_ns": [True, False],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800699 "profile": ["profile_small", "profile_medium"],
700 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800701 },
702 "common_params": _common_tfm_builder_cfg,
703 "invalid": _common_tfm_invalid_configs + [
704 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800705 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800706 ]
707 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800708
Karl Zhang14573bc2020-06-08 09:23:21 +0800709config_nightly_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800710 "tfm_platform": ["mps2/an521"],
711 "toolchain_file": ["toolchain_GNUARM.cmake",
712 "toolchain_ARMCLANG.cmake"],
713 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800714 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800715 "test_regression": [False],
716 "test_psa_api": ["CRYPTO",
717 "PROTECTED_STORAGE",
718 "INITIAL_ATTESTATION",
719 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800720 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800721 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800722 "with_bl2": [True],
723 "with_ns": [True, False],
724 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800725 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800726 },
727 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800728 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800729 }
730
Karl Zhang14573bc2020-06-08 09:23:21 +0800731config_nightly_PSA_FF = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800732 "tfm_platform": ["mps2/an521"],
733 "toolchain_file": ["toolchain_GNUARM.cmake",
734 "toolchain_ARMCLANG.cmake"],
735 "psa_api": [True],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800736 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800737 "test_regression": [False],
738 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800739 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800740 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800741 "with_bl2": [True],
742 "with_ns": [True, False],
743 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800744 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800745 },
746 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800747 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800748 }
749
Karl Zhang14573bc2020-06-08 09:23:21 +0800750config_nightly_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800751 "tfm_platform": ["musca_b1"],
752 "toolchain_file": ["toolchain_GNUARM.cmake",
753 "toolchain_ARMCLANG.cmake"],
754 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800755 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800756 "test_regression": [True],
757 "test_psa_api": ["OFF"],
758 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800759 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800760 "with_bl2": [True],
761 "with_ns": [True, False],
762 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800763 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800764 },
765 "common_params": _common_tfm_builder_cfg,
766 "invalid": _common_tfm_invalid_configs + []
767 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800768
Karl Zhang14573bc2020-06-08 09:23:21 +0800769config_pp_test = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800770 "tfm_platform": ["mps2/an521", "mps2/an519",
771 "musca_b1"],
772 "toolchain_file": ["toolchain_GNUARM.cmake",
773 "toolchain_ARMCLANG.cmake"],
774 "psa_api": [True, False],
775 "isolation_level": ["1", "2"],
776 "test_regression": [True],
777 "test_psa_api": ["OFF"],
778 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800779 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800780 "with_bl2": [True],
781 "with_ns": [True, False],
782 "profile": ["", "profile_small"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800783 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800784 },
785 "common_params": _common_tfm_builder_cfg,
786 "invalid": _common_tfm_invalid_configs + [
787 ("musca_b1", "*", "*", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800788 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800789 ("*", "*", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800790 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800791 ("*", "*", "*", "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800792 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800793 ]
794 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800795
Karl Zhang14573bc2020-06-08 09:23:21 +0800796config_pp_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800797 "tfm_platform": ["musca_b1"],
798 "toolchain_file": ["toolchain_GNUARM.cmake"],
799 "psa_api": [True, False],
800 "isolation_level": ["1", "2"],
801 "test_regression": [True],
802 "test_psa_api": ["OFF"],
803 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800804 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800805 "with_bl2": [True],
806 "with_ns": [True, False],
807 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800808 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800809 },
810 "common_params": _common_tfm_builder_cfg,
811 "invalid": _common_tfm_invalid_configs + []
812 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800813
814# Configure build manager to build several combinations
815config_pp_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800816 "tfm_platform": ["mps2/an521"],
817 "toolchain_file": ["toolchain_GNUARM.cmake"],
818 "psa_api": [True],
819 "isolation_level": ["2"],
820 "test_regression": [False],
821 "test_psa_api": ["IPC",
822 "CRYPTO",
823 "PROTECTED_STORAGE",
824 "INITIAL_ATTESTATION",
825 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800826 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800827 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800828 "with_bl2": [True],
829 "with_ns": [True, False],
830 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800831 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800832 },
833 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800834 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800835 }
836
Karl Zhang14573bc2020-06-08 09:23:21 +0800837config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800838 "tfm_platform": ["cypress/psoc64"],
839 "toolchain_file": ["toolchain_GNUARM.cmake"],
840 "psa_api": [True],
841 "isolation_level": ["1", "2"],
842 "test_regression": [True],
843 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800844 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800845 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800846 "with_bl2": [False],
847 "with_ns": [True, False],
848 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800849 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800850 },
851 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800852 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800853 }
854
Minos Galanakisea421232019-06-20 17:11:28 +0100855# Configruation used for document building
856config_doxygen = {"common_params": {
857 "config_type": "tf-m_documents",
858 "codebase_root_dir": "tf-m",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800859 "build_cmds": {"all": ["-DTFM_PLATFORM=mps2/an521 "
860 "-DCMAKE_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +0100861 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +0100862 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800863 "cmake --build ./ -- docs"]},
864 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
865 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +0100866 r'/(\w+\.(?:html|md|pdf))$',
867 },
Xinyu Zhangb708f572020-09-15 11:43:46 +0800868 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100869 }
870
Karl Zhangaff558a2020-05-15 14:28:23 +0100871# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +0100872config_debug = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800873 "tfm_platform": ["mps2/an521"],
874 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
875 "psa_api": [False],
876 "isolation_level": ["1"],
877 "test_regression": [False],
878 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100879 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800880 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800881 "with_bl2": [True],
882 "with_ns": [True],
883 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800884 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +0100885 },
886 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800887 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100888 }
889
Dean Birch4c6ad622020-03-13 11:28:03 +0000890# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +0800891config_ci = {"seed_params": {
892 "tfm_platform": ["mps2/an521"],
893 "toolchain_file": ["toolchain_ARMCLANG.cmake",
894 "toolchain_GNUARM.cmake"],
895 "psa_api": [True, False],
896 "isolation_level": ["1", "2"],
897 "test_regression": [True, False],
898 "test_psa_api": ["OFF"],
899 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800900 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800901 "with_bl2": [True, False],
902 "with_ns": [True],
903 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800904 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800905 },
906 "common_params": _common_tfm_builder_cfg,
907 "invalid": _common_tfm_invalid_configs + [
908 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800909 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800910 ("*", "toolchain_ARMCLANG.cmake", False, "1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800911 "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800912 ]
913 }
Matthew Hartfb6fd362020-03-04 21:03:59 +0000914
Dean Birchd6ce2c82020-05-13 13:16:15 +0100915# Configuration used in CI if armclang not available
Xinyu Zhangb708f572020-09-15 11:43:46 +0800916config_ci_gnuarm = {"seed_params": {
917 "tfm_platform": ["mps2/an521"],
918 "toolchain_file": ["toolchain_ARMCLANG.cmake",
919 "toolchain_GNUARM.cmake"],
920 "psa_api": [True, False],
921 "isolation_level": ["1", "2"],
922 "test_regression": [True, False],
923 "test_psa_api": ["OFF"],
924 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800925 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800926 "with_bl2": [True, False],
927 "with_ns": [True],
928 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800929 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800930 },
931 "common_params": _common_tfm_builder_cfg,
932 "invalid": _common_tfm_invalid_configs + [
933 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800934 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800935 ("*", "toolchain_ARMCLANG.cmake", False, "1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800936 "*", "*", "False", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800937 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800938 "*", "*", "*", "*", "*", "*") # Disable ARMCLANG for now
Xinyu Zhangb708f572020-09-15 11:43:46 +0800939 ]
940 }
Dean Birchd6ce2c82020-05-13 13:16:15 +0100941
Xinyu Zhangb708f572020-09-15 11:43:46 +0800942config_lava_debug = {"seed_params": {
943 "tfm_platform": ["mps2/an521", "mps2/an519"],
944 "toolchain_file": ["toolchain_GNUARM.cmake"],
945 "psa_api": [True, False],
946 "isolation_level": ["1", "2"],
947 "test_regression": [True],
948 "test_psa_api": ["OFF"],
949 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800950 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800951 "with_bl2": [True, False],
952 "with_ns": [True, False],
953 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800954 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800955 },
956 "common_params": _common_tfm_builder_cfg,
957 "invalid": _common_tfm_invalid_configs + [
958 ("mps2/an521", "toolchain_GNUARM.cmake", True, "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800959 "*", "*", True, "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +0800960 ]
961 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000962
Karl Zhangeea16ed2020-06-15 15:03:12 +0800963#GNU groups for external CI only
964# Configure build manager to build the maximum number of configurations
965config_tfm_test_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800966 "tfm_platform": ["mps2/an521", "musca_a",
967 "musca_b1", "musca_s1"],
968 "toolchain_file": ["toolchain_GNUARM.cmake"],
969 "psa_api": [True, False],
970 "isolation_level": ["1", "2"],
971 "test_regression": [True, False],
972 "test_psa_api": ["OFF"],
973 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800974 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800975 "with_bl2": [True, False],
976 "with_ns": [True, False],
977 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800978 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800979 },
980 "common_params": _common_tfm_builder_cfg,
981 "invalid": _common_tfm_invalid_configs + [
982 ("musca_a", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800983 "*", "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800984 ("musca_b1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800985 "*", "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800986 ("musca_s1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800987 "*", "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800988 ]
989 }
Karl Zhangeea16ed2020-06-15 15:03:12 +0800990
991# Configure build manager to build the maximum number of configurations
992config_tfm_test2_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800993 "tfm_platform": ["mps2/an519", "mps3/an524",
994 "mps2/an539", "mps2/sse-200_aws"],
995 "toolchain_file": ["toolchain_GNUARM.cmake"],
996 "psa_api": [True, False],
997 "isolation_level": ["1", "2"],
998 "test_regression": [True, False],
999 "test_psa_api": ["OFF"],
1000 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001001 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001002 "with_bl2": [True, False],
1003 "with_ns": [True, False],
1004 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001005 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001006 },
1007 "common_params": _common_tfm_builder_cfg,
1008 "invalid": _common_tfm_invalid_configs + [
1009 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001010 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001011 ]
1012 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001013
1014# Configure build manager to build the maximum number of configurations
1015config_tfm_profile_gnu = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001016 "tfm_platform": ["mps2/an519", "mps2/an521",
1017 "musca_b1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001018 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001019 "psa_api": [True, False],
1020 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001021 "test_regression": [True, False],
1022 "test_psa_api": ["OFF"],
1023 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001024 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001025 "with_bl2": [True, False],
1026 "with_ns": [True, False],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001027 "profile": ["profile_small", "profile_medium"],
1028 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001029 },
1030 "common_params": _common_tfm_builder_cfg,
1031 "invalid": _common_tfm_invalid_configs + [
1032 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001033 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001034 ]
1035 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001036
1037# Configure build manager to build the maximum number of configurations
1038config_tfm_test_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001039 "tfm_platform": ["musca_b1"],
1040 "toolchain_file": ["toolchain_GNUARM.cmake"],
1041 "psa_api": [True, False],
1042 "isolation_level": ["1", "2"],
1043 "test_regression": [True, False],
1044 "test_psa_api": ["OFF"],
1045 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001046 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001047 "with_bl2": [True],
1048 "with_ns": [True, False],
1049 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001050 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001051 },
1052 "common_params": _common_tfm_builder_cfg,
1053 "invalid": _common_tfm_invalid_configs + []
1054 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001055
1056# Configure build manager to build several combinations
1057config_PSA_API_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001058 "tfm_platform": ["mps2/an521", "musca_b1"],
1059 "toolchain_file": ["toolchain_GNUARM.cmake"],
1060 "psa_api": [True, False],
1061 "isolation_level": ["1", "2"],
1062 "test_regression": [False],
1063 "test_psa_api": ["CRYPTO",
1064 "PROTECTED_STORAGE",
1065 "INITIAL_ATTESTATION",
1066 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001067 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001068 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001069 "with_bl2": [True],
1070 "with_ns": [True, False],
1071 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001072 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001073 },
1074 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001075 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001076 }
1077
1078# Configure build manager to build several combinations
1079config_PSA_FF_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001080 "tfm_platform": ["mps2/an521", "musca_b1"],
1081 "toolchain_file": ["toolchain_GNUARM.cmake"],
1082 "psa_api": [True],
1083 "isolation_level": ["1", "2"],
1084 "test_regression": [False],
1085 "test_psa_api": ["IPC"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001086 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001087 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001088 "with_bl2": [True],
1089 "with_ns": [True, False],
1090 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001091 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001092 },
1093 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001094 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001095 }
1096
1097# Configure build manager to build several combinations
1098config_PSA_API_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001099 "tfm_platform": ["musca_b1"],
1100 "toolchain_file": ["toolchain_GNUARM.cmake"],
1101 "psa_api": [True, False],
1102 "isolation_level": ["1", "2"],
1103 "test_regression": [False],
1104 "test_psa_api": ["CRYPTO",
1105 "PROTECTED_STORAGE",
1106 "INITIAL_ATTESTATION",
1107 "INTERNAL_TRUSTED_STORAGE"],
1108 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001109 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001110 "with_bl2": [True],
1111 "with_ns": [True, False],
1112 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001113 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001114 },
1115 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001116 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001117 }
1118
1119# Configure build manager to build several combinations
1120config_PSA_FF_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001121 "tfm_platform": ["musca_b1"],
1122 "toolchain_file": ["toolchain_GNUARM.cmake"],
1123 "psa_api": [True],
1124 "isolation_level": ["1", "2"],
1125 "test_regression": [False],
1126 "test_psa_api": ["IPC"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001127 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001128 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001129 "with_bl2": [True],
1130 "with_ns": [True, False],
1131 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001132 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001133 },
1134 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001135 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001136 }
1137
1138# Configure build manager to build several combinations
1139config_PSOC64_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001140 "tfm_platform": ["cypress/psoc64"],
1141 "toolchain_file": ["toolchain_GNUARM.cmake"],
1142 "psa_api": [True],
1143 "isolation_level": ["1", "2"],
1144 "test_regression": [True],
1145 "test_psa_api": ["OFF"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001146 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001147 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001148 "with_bl2": [False],
1149 "with_ns": [True, False],
1150 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001151 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001152 },
1153 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001154 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001155 }
1156
1157# Configure build manager to build the maximum number of configurations
1158config_nightly_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001159 "tfm_platform": ["mps2/an521", "mps2/an519",
1160 "musca_a", "musca_b1", "musca_s1",
1161 "mps3/an524", "mps2/an539",
1162 "mps2/sse-200_aws", "cypress/psoc64"],
1163 "toolchain_file": ["toolchain_GNUARM.cmake"],
1164 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +08001165 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001166 "test_regression": [True, False],
1167 "test_psa_api": ["OFF"],
1168 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001169 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001170 "with_bl2": [True, False],
1171 "with_ns": [True, False],
1172 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001173 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001174 },
1175 "common_params": _common_tfm_builder_cfg,
1176 "invalid": _common_tfm_invalid_configs + [
1177 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001178 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001179 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001180 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001181 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001182 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001183 ]
1184 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001185
1186# Configure build manager to build the maximum number of configurations
1187config_nightly_profile_gnu = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001188 "tfm_platform": ["mps2/an519", "mps2/an521",
1189 "musca_b1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001190 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001191 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +08001192 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001193 "test_regression": [True, False],
1194 "test_psa_api": ["OFF"],
1195 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001196 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001197 "with_bl2": [True, False],
1198 "with_ns": [True, False],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001199 "profile": ["profile_small", "profile_medium"],
1200 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001201 },
1202 "common_params": _common_tfm_builder_cfg,
1203 "invalid": _common_tfm_invalid_configs + [
1204 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001205 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001206 ]
1207 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001208
1209# Configure build manager to build several combinations
1210config_nightly_PSA_API_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001211 "tfm_platform": ["mps2/an521"],
1212 "toolchain_file": ["toolchain_GNUARM.cmake"],
1213 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +08001214 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001215 "test_regression": [False],
1216 "test_psa_api": ["CRYPTO",
1217 "PROTECTED_STORAGE",
1218 "INITIAL_ATTESTATION",
1219 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001220 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001221 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001222 "with_bl2": [True],
1223 "with_ns": [True, False],
1224 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001225 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001226 },
1227 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001228 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001229 }
1230
1231# Configure build manager to build several combinations
1232config_nightly_PSA_FF_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001233 "tfm_platform": ["mps2/an521"],
1234 "toolchain_file": ["toolchain_GNUARM.cmake"],
1235 "psa_api": [True],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +08001236 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001237 "test_regression": [False],
1238 "test_psa_api": ["IPC"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001239 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001240 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001241 "with_bl2": [True],
1242 "with_ns": [True, False],
1243 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001244 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001245 },
1246 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001247 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001248 }
1249
1250# Configure build manager to build the maximum number of configurations
1251config_nightly_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001252 "tfm_platform": ["musca_b1"],
1253 "toolchain_file": ["toolchain_GNUARM.cmake"],
1254 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +08001255 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001256 "test_regression": [True],
1257 "test_psa_api": ["OFF"],
1258 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001259 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001260 "with_bl2": [True],
1261 "with_ns": [True, False],
1262 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001263 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001264 },
1265 "common_params": _common_tfm_builder_cfg,
1266 "invalid": _common_tfm_invalid_configs + []
1267 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001268
1269# Configure build manager to build the maximum number of configurations
1270config_pp_test_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001271 "tfm_platform": ["mps2/an521", "mps2/an519",
1272 "musca_b1"],
Xinyu Zhangf1025b72020-09-28 17:10:57 +08001273 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001274 "psa_api": [True, False],
1275 "isolation_level": ["1", "2"],
1276 "test_regression": [True],
1277 "test_psa_api": ["OFF"],
1278 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001279 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001280 "with_bl2": [True],
1281 "with_ns": [True, False],
1282 "profile": ["", "profile_small"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001283 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001284 },
1285 "common_params": _common_tfm_builder_cfg,
1286 "invalid": _common_tfm_invalid_configs + [
1287 ("musca_b1", "*", "*", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001288 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001289 ("*", "*", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001290 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001291 ("*", "*", "*", "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001292 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001293 ]
1294 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001295
1296# Configure build manager to build the maximum number of configurations
1297config_pp_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001298 "tfm_platform": ["musca_b1"],
1299 "toolchain_file": ["toolchain_GNUARM.cmake"],
1300 "psa_api": [True, False],
1301 "isolation_level": ["1", "2"],
1302 "test_regression": [True],
1303 "test_psa_api": ["OFF"],
1304 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001305 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001306 "with_bl2": [True],
1307 "with_ns": [True, False],
1308 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001309 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001310 },
1311 "common_params": _common_tfm_builder_cfg,
1312 "invalid": _common_tfm_invalid_configs + []
1313 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001314
1315# Configure build manager to build several combinations
1316config_pp_PSA_API_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001317 "tfm_platform": ["mps2/an521"],
1318 "toolchain_file": ["toolchain_GNUARM.cmake"],
1319 "psa_api": [True],
1320 "isolation_level": ["2"],
1321 "test_regression": [False],
1322 "test_psa_api": ["IPC",
1323 "CRYPTO",
1324 "PROTECTED_STORAGE",
1325 "INITIAL_ATTESTATION",
1326 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001327 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001328 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001329 "with_bl2": [True],
1330 "with_ns": [True, False],
1331 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001332 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001333 },
1334 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001335 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001336 }
1337
1338# Configure build manager to build several combinations
1339config_pp_PSoC64_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001340 "tfm_platform": ["cypress/psoc64"],
1341 "toolchain_file": ["toolchain_GNUARM.cmake"],
1342 "psa_api": [True],
1343 "isolation_level": ["1", "2"],
1344 "test_regression": [True],
1345 "test_psa_api": ["OFF"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001346 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001347 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001348 "with_bl2": [False],
1349 "with_ns": [True, False],
1350 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001351 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001352 },
1353 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001354 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001355 }
1356
Karl Zhangaff558a2020-05-15 14:28:23 +01001357_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001358 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001359 "tfm_test": config_tfm_test,
1360 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001361 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +01001362 "tfm_test_otp": config_tfm_test_OTP,
1363 "psa_api": config_PSA_API,
1364 "psa_api_otp": config_PSA_API_OTP,
1365 "psa_ff": config_PSA_FF,
1366 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001367 "tfm_psoc64": config_PSOC64,
1368
1369 #nightly test group
1370 "nightly_test": config_nightly,
1371 "nightly_profile": config_nightly_profile,
1372 "nightly_psa_api": config_nightly_PSA_API,
1373 "nightly_ff": config_nightly_PSA_FF,
1374 "nightly_otp": config_nightly_OTP,
1375
1376 #per patch test group
1377 "pp_test": config_pp_test,
1378 "pp_OTP": config_pp_OTP,
1379 "pp_PSA_API": config_pp_PSA_API,
1380 "pp_psoc64": config_pp_PSoC64,
1381
Karl Zhangeea16ed2020-06-15 15:03:12 +08001382 #GNU only configs against groups above
1383 #The combinations should be the same except the CLANG ones
1384 #release test group (GNU)
1385 "tfm_test_gnu": config_tfm_test_gnu,
1386 "tfm_test2_gnu": config_tfm_test2_gnu,
1387 "tfm_profile_gnu": config_tfm_profile_gnu,
1388 "tfm_test_otp_gnu": config_tfm_test_OTP_gnu,
1389 "psa_api_gnu": config_PSA_API_gnu,
1390 "psa_api_otp_gnu": config_PSA_API_OTP_gnu,
1391 "psa_ff_gnu": config_PSA_FF_gnu,
1392 "psa_ff_otp_gnu": config_PSA_FF_OTP_gnu,
1393 "tfm_psoc64_gnu": config_PSOC64_gnu,
1394
1395 #nightly test group (GNU)
1396 "nightly_test_gnu": config_nightly_gnu,
1397 "nightly_profile_gnu": config_nightly_profile_gnu,
1398 "nightly_psa_api_gnu": config_nightly_PSA_API_gnu,
1399 "nightly_ff_gnu": config_nightly_PSA_FF_gnu,
1400 "nightly_otp_gnu": config_nightly_OTP_gnu,
1401
1402 #per patch test group (GNU)
1403 "pp_test_gnu": config_pp_test_gnu,
1404 "pp_OTP_gnu": config_pp_OTP_gnu,
1405 "pp_PSA_API_gnu": config_pp_PSA_API_gnu,
1406 "pp_psoc64_gnu": config_pp_PSoC64_gnu,
1407
1408
Karl Zhang14573bc2020-06-08 09:23:21 +08001409 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001410 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001411
1412 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001413 "an539": config_AN539,
1414 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001415 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001416 "an521_psa_api": config_AN521_PSA_API,
1417 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001418 "an519": config_AN519,
1419 "musca_a": config_MUSCA_A,
1420 "musca_b1": config_MUSCA_B1,
Karl Zhangeffed972020-06-30 15:48:01 +08001421 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001422 "psoc64": config_PSOC64,
Minos Galanakisea421232019-06-20 17:11:28 +01001423 "ipc": config_IPC,
1424 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001425 "debug": config_debug,
Karl Zhangaff558a2020-05-15 14:28:23 +01001426 "release": config_release,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001427 "debug": config_debug,
Karl Zhang14573bc2020-06-08 09:23:21 +08001428
1429 #DevOps team test group
1430 "full_gnuarm": config_full_gnuarm,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001431 "lava_debug": config_lava_debug,
Dean Birchd6ce2c82020-05-13 13:16:15 +01001432 "ci": config_ci,
1433 "ci_gnuarm": config_ci_gnuarm}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001434
1435if __name__ == '__main__':
1436 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001437
Minos Galanakisea421232019-06-20 17:11:28 +01001438 # Default behavior is to export refference config when called
1439 _dir = os.getcwd()
1440 from utils import save_json
1441 for _cname, _cfg in _builtin_configs.items():
1442 _fname = os.path.join(_dir, _cname + ".json")
1443 print("Exporting config %s" % _fname)
1444 save_json(_fname, _cfg)