blob: d01ca6e1385062ad5ec71e5f99700726ae674048 [file] [log] [blame]
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001#!/usr/bin/env python3
2
3""" builtin_configs.py:
4
5 Default configuration files used as reference """
6
7from __future__ import print_function
8
9__copyright__ = """
10/*
Karl Zhangaff558a2020-05-15 14:28:23 +010011 * Copyright (c) 2018-2020, Arm Limited. All rights reserved.
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010012 *
13 * SPDX-License-Identifier: BSD-3-Clause
14 *
15 */
16 """
Karl Zhang08681e62020-10-30 13:56:03 +080017
18__author__ = "tf-m@lists.trustedfirmware.org"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010019__project__ = "Trusted Firmware-M Open CI"
Karl Zhang08681e62020-10-30 13:56:03 +080020__version__ = "1.2.0"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010021
Minos Galanakisea421232019-06-20 17:11:28 +010022# common parameters for tf-m build system
23# This configuration template will be passed into the tfm-builder module after
24# the template evaluation is converted to a command
25
26_common_tfm_builder_cfg = {
27 "config_type": "tf-m",
28 "codebase_root_dir": "tf-m",
29 # Order to which the variants are evaluated. This affects the name of
30 # variant configuration and the wildcard replacement logic in invalid
31 # configuration tuples
Xinyu Zhangb708f572020-09-15 11:43:46 +080032 "sort_order": ["tfm_platform",
33 "toolchain_file",
34 "psa_api",
35 "isolation_level",
36 "test_regression",
37 "test_psa_api",
Minos Galanakisea421232019-06-20 17:11:28 +010038 "cmake_build_type",
Xinyu Zhangb708f572020-09-15 11:43:46 +080039 "with_otp",
40 "with_bl2",
41 "with_ns",
Xinyu Zhang9fd74242020-10-22 11:30:50 +080042 "profile",
43 "partition_ps"],
Minos Galanakisea421232019-06-20 17:11:28 +010044
45 # Keys for the templace will come from the combinations of parameters
46 # provided in the seed dictionary.
47
Xinyu Zhangb708f572020-09-15 11:43:46 +080048 "config_template": "cmake " + \
49 "-DTFM_PLATFORM=%(tfm_platform)s " + \
Fathi Boudra324fee72020-11-20 10:31:12 +010050 "-DTFM_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(toolchain_file)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080051 "-DTFM_PSA_API=%(psa_api)s " + \
52 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
53 "-DTEST_NS=%(test_regression)s -DTEST_S=%(test_regression)s " + \
54 "-DTEST_PSA_API=%(test_psa_api)s " + \
55 "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \
56 "-DCRYPTO_HW_ACCELERATOR_OTP_STATE=%(with_otp)s " + \
57 "-DBL2=%(with_bl2)s " + \
58 "-DNS=%(with_ns)s " + \
59 "-DTFM_TEST_REPO_PATH=%(codebase_root_dir)s/../tf-m-tests " + \
60 "-DMBEDCRYPTO_PATH=%(codebase_root_dir)s/../mbedtls " + \
61 "-DPSA_ARCH_TESTS_PATH=%(codebase_root_dir)s/../psa-arch-tests " + \
62 "-DMCUBOOT_PATH=%(codebase_root_dir)s/../mcuboot " + \
63 "-DTFM_PROFILE=%(profile)s " + \
Xinyu Zhangb5bbb692020-10-26 10:14:33 +080064 "-DTFM_PARTITION_PROTECTED_STORAGE=%(partition_ps)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080065 "%(codebase_root_dir)s",
Karl Zhangaff558a2020-05-15 14:28:23 +010066
Minos Galanakisea421232019-06-20 17:11:28 +010067 # A small subset of string substitution params is allowed in commands.
68 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
69 # _tbm_target_platform_ with the paths set when building
70
Xinyu Zhangb708f572020-09-15 11:43:46 +080071 "artifact_capture_rex": (r'%(_tbm_build_dir_)s/bin'
Minos Galanakisea421232019-06-20 17:11:28 +010072 r'/(\w+\.(?:axf|bin|hex))$'),
73
74 # ALL commands will be executed for every build.
75 # Other keys will append extra commands when matching target_platform
Fathi Boudra83e4f292020-12-04 22:33:40 +010076 "build_cmds": {"all": ["cmake --build ./ -- install"],
Xinyu Zhang694eb492020-11-04 18:29:08 +080077 "musca_a": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080078 "%(_tbm_build_dir_)s/bin/"
79 "bl2.bin "
Minos Galanakisea421232019-06-20 17:11:28 +010080 "-Binary -offset 0x200000 "
Raef Coles543aab32020-12-03 11:12:02 +000081 "-fill 0xFF 0x200000 0x220000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080082 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080083 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +000084 "-Binary -offset 0x220000 "
85 "-fill 0xFF 0x220000 0xA00000 "
86 "-o %(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080087 "tfm.hex -Intel")],
88 "musca_b1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080089 "%(_tbm_build_dir_)s/bin/"
90 "bl2.bin "
Minos Galanakise86f4482019-11-06 16:08:23 +000091 "-Binary -offset 0xA000000 "
Raef Coles543aab32020-12-03 11:12:02 +000092 "-fill 0xFF 0xA000000 0xA020000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080093 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080094 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +000095 "-Binary -offset 0xA020000 "
96 "-fill 0xFF 0xA020000 0xA200000 "
97 "-o %(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080098 "tfm.hex -Intel")],
99 "musca_s1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +0800100 "%(_tbm_build_dir_)s/bin/"
101 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +0800102 "-Binary -offset 0xA000000 "
Raef Coles543aab32020-12-03 11:12:02 +0000103 "-fill 0xFF 0xA000000 0xA020000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +0800104 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800105 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +0000106 "-Binary -offset 0xA020000 "
107 "-fill 0xFF 0xA020000 0xA200000 "
108 "-o %(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800109 "tfm.hex -Intel")]
Minos Galanakisea421232019-06-20 17:11:28 +0100110 },
111
112 # (Optional) If set will fail if those artefacts are missing post build
113 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800114 "%(_tbm_build_dir_)s/bin/"
115 "tfm_s.bin",
116 "%(_tbm_build_dir_)s/bin/"
117 "tfm_ns.bin"],
Xinyu Zhang694eb492020-11-04 18:29:08 +0800118 "musca_a": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800119 "%(_tbm_build_dir_)s/bin/"
120 "tfm.hex",
121 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800122 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800123 "%(_tbm_build_dir_)s/bin/"
124 "tfm_sign.bin"],
Xinyu Zhang694eb492020-11-04 18:29:08 +0800125 "musca_b1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800126 "%(_tbm_build_dir_)s/bin/"
127 "tfm.hex",
128 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800129 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800130 "%(_tbm_build_dir_)s/bin/"
131 "tfm_sign.bin"],
Xinyu Zhang694eb492020-11-04 18:29:08 +0800132 "musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800133 "%(_tbm_build_dir_)s/bin/"
134 "tfm.hex",
135 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800136 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800137 "%(_tbm_build_dir_)s/bin/"
138 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100139 }
140}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100141
Xinyu Zhangb708f572020-09-15 11:43:46 +0800142# List of all build configs that are impossible under all circumstances
143_common_tfm_invalid_configs = [
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800144 # LVL2 and LVL3 requires PSA api
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800145 ("*", "*", False, "2", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800146 ("*", "*", False, "3", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800147 # Regression requires NS
148 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*", "*"),
Xinyu Zhang11d66112020-11-04 15:38:29 +0800149 # psoc64 requires PSA api
150 ("cypress/psoc64", "*", False, "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800151 # No PSA_ACK with regression
152 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*", "*"),
153 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*", "*"),
154 ("*", "*", "*", "*", True, "PROTECTED_STORAGE", "*", "*", "*", "*", "*", "*"),
155 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*"),
156 ("*", "*", "*", "*", True, "INTERNAL_TRUSTED_STORAGE", "*", "*", "*", "*", "*", "*"),
157 # PSA_ACK requires NS
158 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*", "*"),
159 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*", "*"),
160 ("*", "*", "*", "*", "*", "PROTECTED_STORAGE", "*", "*", "*", False, "*", "*"),
161 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*", "*"),
162 ("*", "*", "*", "*", "*", "INTERNAL_TRUSTED_STORAGE", "*", "*", "*", False, "*", "*"),
163 # Musca requires BL2
164 ("musca_a", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
165 ("musca_b1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
166 ("musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
167 # psoc64 cannot use BL2
168 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800169 # psoc64 does not support Debug build type
170 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800171 # Musca b1 does not support Profile S
172 ("musca_b1", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800173 # PARTITION_PS could be OFF only for Profile S and M
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800174 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800175 # PARTITION_PS should be OFF for Profile S
176 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800177 # Proile M only support for PSA_API
178 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
179 # Profile M only support for Isolation Level 2
180 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
Xinyu Zhange8de4512020-11-13 10:37:56 +0800181 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800182 # Profile S does not support MUSCA_B1
183 ("musca_b1", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
184 # Profile S does not support PSA_API
185 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
186 # Profile S only supports Isolation Level 2
187 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800188 # Only AN521 and MUSCA_B1 support Isolation Level 3
189 ("mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
190 ("mps2/an539", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
191 ("mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
192 ("mps2/sse-200_aws", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
193 ("musca_a", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
194 ("musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
195 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800196 ]
197
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100198# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100199config_AN539 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800200 "tfm_platform": ["mps2/an539"],
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"],
Minos Galanakisea421232019-06-20 17:11:28 +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"],
Minos Galanakisea421232019-06-20 17:11:28 +0100213 },
214 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800215 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100216 }
217
Karl Zhangaff558a2020-05-15 14:28:23 +0100218config_AN524 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800219 "tfm_platform": ["mps3/an524"],
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_AN521 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800238 "tfm_platform": ["mps2/an521"],
239 "toolchain_file": ["toolchain_GNUARM.cmake",
240 "toolchain_ARMCLANG.cmake"],
241 "psa_api": [True, False],
242 "isolation_level": ["1", "2"],
243 "test_regression": [True, False],
244 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100245 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800246 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800247 "with_bl2": [True, False],
248 "with_ns": [True, False],
249 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800250 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100251 },
252 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800253 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100254 }
255
Karl Zhangaff558a2020-05-15 14:28:23 +0100256config_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800257 "tfm_platform": ["mps2/an521", "musca_b1", "musca_s1"],
258 "toolchain_file": ["toolchain_GNUARM.cmake",
259 "toolchain_ARMCLANG.cmake"],
260 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800261 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800262 "test_regression": [False],
263 "test_psa_api": ["CRYPTO",
264 "PROTECTED_STORAGE",
265 "INITIAL_ATTESTATION",
266 "INTERNAL_TRUSTED_STORAGE"],
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],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800270 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800271 "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_FF = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800279 "tfm_platform": ["mps2/an521", "musca_b1"],
280 "toolchain_file": ["toolchain_GNUARM.cmake",
281 "toolchain_ARMCLANG.cmake"],
282 "psa_api": [True],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800283 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800284 "test_regression": [False],
285 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100286 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800287 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800288 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800289 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800290 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800291 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100292 },
293 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800294 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100295 }
296
Karl Zhangaff558a2020-05-15 14:28:23 +0100297config_PSA_API_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800298 "tfm_platform": ["musca_b1"],
299 "toolchain_file": ["toolchain_GNUARM.cmake",
300 "toolchain_ARMCLANG.cmake"],
301 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800302 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800303 "test_regression": [False],
304 "test_psa_api": ["CRYPTO",
305 "PROTECTED_STORAGE",
306 "INITIAL_ATTESTATION",
307 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100308 "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],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800311 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800312 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800313 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100314 },
315 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800316 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100317 }
Minos Galanakisea421232019-06-20 17:11:28 +0100318
Xinyu Zhangb708f572020-09-15 11:43:46 +0800319config_PSA_FF_OTP = {"seed_params": {
320 "tfm_platform": ["musca_b1"],
321 "toolchain_file": ["toolchain_GNUARM.cmake",
322 "toolchain_ARMCLANG.cmake"],
323 "psa_api": [True],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800324 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800325 "test_regression": [False],
326 "test_psa_api": ["IPC"],
327 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800328 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800329 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800330 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800331 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800332 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800333 },
334 "common_params": _common_tfm_builder_cfg,
335 "invalid": _common_tfm_invalid_configs + []
336 }
337
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800338config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800339 "tfm_platform": ["cypress/psoc64"],
340 "toolchain_file": ["toolchain_GNUARM.cmake",
341 "toolchain_ARMCLANG.cmake"],
342 "psa_api": [True],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800343 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800344 "test_regression": [True],
345 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800346 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800347 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800348 "with_bl2": [False],
349 "with_ns": [True, False],
350 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800351 "partition_ps": ["ON"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800352 },
353 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800354 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800355 }
356
Minos Galanakisea421232019-06-20 17:11:28 +0100357config_AN519 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800358 "tfm_platform": ["mps2/an519"],
359 "toolchain_file": ["toolchain_GNUARM.cmake",
360 "toolchain_ARMCLANG.cmake"],
361 "psa_api": [True, False],
362 "isolation_level": ["1", "2"],
363 "test_regression": [True, False],
364 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100365 "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"],
Minos Galanakisea421232019-06-20 17:11:28 +0100371 },
372 "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
Xinyu Zhangb708f572020-09-15 11:43:46 +0800376config_IPC = {"seed_params": {
377 "tfm_platform": ["mps2/an521", "mps2/an519", "musca_a", "musca_b1"],
378 "toolchain_file": ["toolchain_GNUARM.cmake",
379 "toolchain_ARMCLANG.cmake"],
380 "psa_api": [True],
381 "isolation_level": ["1", "2"],
382 "test_regression": [True, False],
383 "test_psa_api": ["OFF"],
384 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800385 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800386 "with_bl2": [True, False],
387 "with_ns": [True, False],
388 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800389 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800390 },
Minos Galanakisea421232019-06-20 17:11:28 +0100391 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800392 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100393 }
394
Minos Galanakisea421232019-06-20 17:11:28 +0100395config_full = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800396 "tfm_platform": ["mps2/an521", "mps2/an519",
397 "musca_a", "musca_b1",
398 "mps2/an539", "mps3/an524",
399 "cypress/psoc64"],
400 "toolchain_file": ["toolchain_GNUARM.cmake",
401 "toolchain_ARMCLANG.cmake"],
402 "psa_api": [True, False],
403 "isolation_level": ["1", "2"],
404 "test_regression": [True, False],
405 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800406 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800407 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800408 "with_bl2": [True, False],
409 "with_ns": [True, False],
410 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800411 "partition_ps": ["ON"],
Dean Birchd6ce2c82020-05-13 13:16:15 +0100412 },
413 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800414 "invalid": _common_tfm_invalid_configs + [
415 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800416 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800417 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800418 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800419 ("mps2/an521", "*", "*", "*",
420 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
421 ("mps2/an519", "*", "*", "*",
422 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
423 ("musca_a", "*", "*", "*",
424 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
425 ("musca_b1", "*", "*", "*",
426 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
427 ("mps2/an539", "*", "*", "*",
428 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
429 ("mps3/an524", "*", "*", "*",
430 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800431 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800432 }
433
Karl Zhangaff558a2020-05-15 14:28:23 +0100434config_tfm_test = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800435 "tfm_platform": ["mps2/an521", "musca_a",
436 "musca_b1", "musca_s1"],
437 "toolchain_file": ["toolchain_ARMCLANG.cmake",
438 "toolchain_GNUARM.cmake"],
439 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800440 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800441 "test_regression": [True, False],
442 "test_psa_api": ["OFF"],
443 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800444 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800445 "with_bl2": [True],
446 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800447 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800448 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800449 },
450 "common_params": _common_tfm_builder_cfg,
451 "invalid": _common_tfm_invalid_configs + []
452 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800453
Karl Zhangaff558a2020-05-15 14:28:23 +0100454config_tfm_test2 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800455 "tfm_platform": ["mps2/an519", "mps3/an524",
456 "mps2/an539", "mps2/sse-200_aws"],
457 "toolchain_file": ["toolchain_ARMCLANG.cmake",
458 "toolchain_GNUARM.cmake"],
459 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800460 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800461 "test_regression": [True, False],
462 "test_psa_api": ["OFF"],
463 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800464 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800465 "with_bl2": [True],
466 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800467 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800468 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800469 },
470 "common_params": _common_tfm_builder_cfg,
471 "invalid": _common_tfm_invalid_configs + [
472 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800473 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800474 ]
475 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100476
Karl Zhang14573bc2020-06-08 09:23:21 +0800477config_tfm_profile = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800478 "tfm_platform": ["mps2/an519", "mps2/an521",
479 "musca_b1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800480 "toolchain_file": ["toolchain_ARMCLANG.cmake",
481 "toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800482 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800483 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800484 "test_regression": [True, False],
485 "test_psa_api": ["OFF"],
486 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800487 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800488 "with_bl2": [True],
489 "with_ns": [True],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800490 "profile": ["profile_small", "profile_medium"],
491 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800492 },
493 "common_params": _common_tfm_builder_cfg,
494 "invalid": _common_tfm_invalid_configs + [
495 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800496 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800497 ]
498 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800499
Karl Zhangaff558a2020-05-15 14:28:23 +0100500config_tfm_test_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800501 "tfm_platform": ["musca_b1"],
502 "toolchain_file": ["toolchain_ARMCLANG.cmake",
503 "toolchain_GNUARM.cmake"],
504 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800505 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800506 "test_regression": [True, False],
507 "test_psa_api": ["OFF"],
508 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800509 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800510 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800511 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800512 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800513 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800514 },
515 "common_params": _common_tfm_builder_cfg,
516 "invalid": _common_tfm_invalid_configs + []
517 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100518
Minos Galanakisea421232019-06-20 17:11:28 +0100519config_MUSCA_A = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800520 "tfm_platform": ["musca_a"],
521 "toolchain_file": ["toolchain_ARMCLANG.cmake",
522 "toolchain_GNUARM.cmake"],
523 "psa_api": [True, False],
524 "isolation_level": ["1", "2"],
525 "test_regression": [True, False],
526 "test_psa_api": ["OFF"],
527 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800528 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800529 "with_bl2": [True],
530 "with_ns": [True, False],
531 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800532 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800533 },
534 "common_params": _common_tfm_builder_cfg,
535 "invalid": _common_tfm_invalid_configs + []
536 }
Minos Galanakisea421232019-06-20 17:11:28 +0100537
538config_MUSCA_B1 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800539 "tfm_platform": ["musca_b1"],
540 "toolchain_file": ["toolchain_ARMCLANG.cmake",
541 "toolchain_GNUARM.cmake"],
542 "psa_api": [True, False],
543 "isolation_level": ["1", "2"],
544 "test_regression": [True, False],
545 "test_psa_api": ["OFF"],
546 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800547 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800548 "with_bl2": [True],
549 "with_ns": [True, False],
550 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800551 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800552 },
553 "common_params": _common_tfm_builder_cfg,
554 "invalid": _common_tfm_invalid_configs + []
555 }
Minos Galanakisea421232019-06-20 17:11:28 +0100556
Karl Zhangeffed972020-06-30 15:48:01 +0800557config_MUSCA_S1 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800558 "tfm_platform": ["musca_s1"],
559 "toolchain_file": ["toolchain_ARMCLANG.cmake",
560 "toolchain_GNUARM.cmake"],
561 "psa_api": [True, False],
562 "isolation_level": ["1", "2"],
563 "test_regression": [True, False],
564 "test_psa_api": ["OFF"],
565 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800566 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800567 "with_bl2": [True],
568 "with_ns": [True, False],
569 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800570 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800571 },
572 "common_params": _common_tfm_builder_cfg,
573 "invalid": _common_tfm_invalid_configs + []
574 }
Karl Zhangeffed972020-06-30 15:48:01 +0800575
Karl Zhangaff558a2020-05-15 14:28:23 +0100576config_release = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800577 "tfm_platform": ["mps2/an521", "mps2/an519",
578 "musca_a", "musca_b1", "musca_s1",
579 "mps3/an524", "mps2/an539"],
580 "toolchain_file": ["toolchain_ARMCLANG.cmake",
581 "toolchain_GNUARM.cmake"],
582 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800583 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800584 "test_regression": [True, False],
585 "test_psa_api": ["OFF"],
586 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800587 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800588 "with_bl2": [True, False],
589 "with_ns": [True, False],
590 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800591 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800592 },
593 "common_params": _common_tfm_builder_cfg,
594 "invalid": _common_tfm_invalid_configs + [
595 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800596 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800597 ]
598 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100599
600# Configure build manager to build several combinations
601config_AN521_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800602 "tfm_platform": ["mps2/an521", "mps2/an519",
603 "musca_b1"],
604 "toolchain_file": ["toolchain_GNUARM.cmake",
605 "toolchain_ARMCLANG.cmake"],
606 "psa_api": [True, False],
607 "isolation_level": ["1", "2"],
608 "test_regression": [False],
609 "test_psa_api": ["IPC",
610 "CRYPTO",
611 "PROTECTED_STORAGE",
612 "INITIAL_ATTESTATION",
613 "INTERNAL_TRUSTED_STORAGE"],
614 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800615 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800616 "with_bl2": [True],
617 "with_ns": [True, False],
618 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800619 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100620 },
621 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800622 "invalid": _common_tfm_invalid_configs + [
623 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800624 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800625 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100626 }
627
Karl Zhangaff558a2020-05-15 14:28:23 +0100628config_AN521_PSA_IPC = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800629 "tfm_platform": ["mps2/an521", "mps2/an519",
630 "musca_b1"],
631 "toolchain_file": ["toolchain_GNUARM.cmake",
632 "toolchain_ARMCLANG.cmake"],
633 "psa_api": [True],
634 "isolation_level": ["1", "2"],
635 "test_regression": [False],
636 "test_psa_api": ["IPC"],
637 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800638 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800639 "with_bl2": [True],
640 "with_ns": [True, False],
641 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800642 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100643 },
644 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800645 "invalid": _common_tfm_invalid_configs + [
646 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800647 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800648 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100649 }
650
Karl Zhang14573bc2020-06-08 09:23:21 +0800651config_nightly = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800652 "tfm_platform": ["mps2/an521", "mps2/an519",
653 "musca_a", "musca_b1", "musca_s1",
654 "mps3/an524", "mps2/an539",
655 "mps2/sse-200_aws", "cypress/psoc64"],
656 "toolchain_file": ["toolchain_GNUARM.cmake",
657 "toolchain_ARMCLANG.cmake"],
658 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800659 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800660 "test_regression": [True, False],
661 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800662 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800663 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800664 "with_bl2": [True],
665 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800666 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800667 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800668 },
669 "common_params": _common_tfm_builder_cfg,
670 "invalid": _common_tfm_invalid_configs + [
671 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800672 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800673 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800674 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800675 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800676 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800677 ("mps2/an521", "*", "*", "*",
678 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
679 ("mps2/an519", "*", "*", "*",
680 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
681 ("musca_a", "*", "*", "*",
682 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
683 ("musca_b1", "*", "*", "*",
684 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
685 ("musca_s1", "*", "*", "*",
686 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
687 ("mps2/an539", "*", "*", "*",
688 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
689 ("mps3/an524", "*", "*", "*",
690 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
691 ("mps2/sse-200_aws", "*", "*", "*",
692 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800693 ]
694 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800695
Karl Zhang14573bc2020-06-08 09:23:21 +0800696config_nightly_profile = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800697 "tfm_platform": ["mps2/an519", "mps2/an521",
698 "musca_b1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800699 "toolchain_file": ["toolchain_ARMCLANG.cmake",
700 "toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800701 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800702 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800703 "test_regression": [True, False],
704 "test_psa_api": ["OFF"],
705 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800706 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800707 "with_bl2": [True],
708 "with_ns": [True],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800709 "profile": ["profile_small", "profile_medium"],
710 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800711 },
712 "common_params": _common_tfm_builder_cfg,
713 "invalid": _common_tfm_invalid_configs + [
714 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800715 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800716 ]
717 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800718
Karl Zhang14573bc2020-06-08 09:23:21 +0800719config_nightly_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800720 "tfm_platform": ["mps2/an521"],
721 "toolchain_file": ["toolchain_GNUARM.cmake",
722 "toolchain_ARMCLANG.cmake"],
723 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800724 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800725 "test_regression": [False],
726 "test_psa_api": ["CRYPTO",
727 "PROTECTED_STORAGE",
728 "INITIAL_ATTESTATION",
729 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800730 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800731 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800732 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800733 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800734 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800735 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800736 },
737 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800738 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800739 }
740
Karl Zhang14573bc2020-06-08 09:23:21 +0800741config_nightly_PSA_FF = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800742 "tfm_platform": ["mps2/an521"],
743 "toolchain_file": ["toolchain_GNUARM.cmake",
744 "toolchain_ARMCLANG.cmake"],
745 "psa_api": [True],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800746 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800747 "test_regression": [False],
748 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800749 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800750 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800751 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800752 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800753 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800754 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800755 },
756 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800757 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800758 }
759
Karl Zhang14573bc2020-06-08 09:23:21 +0800760config_nightly_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800761 "tfm_platform": ["musca_b1"],
762 "toolchain_file": ["toolchain_GNUARM.cmake",
763 "toolchain_ARMCLANG.cmake"],
764 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800765 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800766 "test_regression": [True],
767 "test_psa_api": ["OFF"],
768 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800769 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800770 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800771 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800772 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800773 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800774 },
775 "common_params": _common_tfm_builder_cfg,
776 "invalid": _common_tfm_invalid_configs + []
777 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800778
Karl Zhang14573bc2020-06-08 09:23:21 +0800779config_pp_test = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800780 "tfm_platform": ["mps2/an521", "mps2/an519",
781 "musca_b1"],
782 "toolchain_file": ["toolchain_GNUARM.cmake",
783 "toolchain_ARMCLANG.cmake"],
784 "psa_api": [True, False],
785 "isolation_level": ["1", "2"],
786 "test_regression": [True],
787 "test_psa_api": ["OFF"],
788 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800789 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800790 "with_bl2": [True],
791 "with_ns": [True, False],
792 "profile": ["", "profile_small"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800793 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800794 },
795 "common_params": _common_tfm_builder_cfg,
796 "invalid": _common_tfm_invalid_configs + [
797 ("musca_b1", "*", "*", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800798 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800799 ("*", "*", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800800 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800801 ("*", "*", "*", "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800802 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800803 ]
804 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800805
Karl Zhang14573bc2020-06-08 09:23:21 +0800806config_pp_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800807 "tfm_platform": ["musca_b1"],
808 "toolchain_file": ["toolchain_GNUARM.cmake"],
809 "psa_api": [True, False],
810 "isolation_level": ["1", "2"],
811 "test_regression": [True],
812 "test_psa_api": ["OFF"],
813 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800814 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800815 "with_bl2": [True],
816 "with_ns": [True, False],
817 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800818 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800819 },
820 "common_params": _common_tfm_builder_cfg,
821 "invalid": _common_tfm_invalid_configs + []
822 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800823
824# Configure build manager to build several combinations
825config_pp_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800826 "tfm_platform": ["mps2/an521"],
827 "toolchain_file": ["toolchain_GNUARM.cmake"],
828 "psa_api": [True],
829 "isolation_level": ["2"],
830 "test_regression": [False],
831 "test_psa_api": ["IPC",
832 "CRYPTO",
833 "PROTECTED_STORAGE",
834 "INITIAL_ATTESTATION",
835 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800836 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800837 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800838 "with_bl2": [True],
839 "with_ns": [True, False],
840 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800841 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800842 },
843 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800844 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800845 }
846
Karl Zhang14573bc2020-06-08 09:23:21 +0800847config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800848 "tfm_platform": ["cypress/psoc64"],
849 "toolchain_file": ["toolchain_GNUARM.cmake"],
850 "psa_api": [True],
851 "isolation_level": ["1", "2"],
852 "test_regression": [True],
853 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800854 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800855 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800856 "with_bl2": [False],
857 "with_ns": [True, False],
858 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800859 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800860 },
861 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800862 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800863 }
864
Minos Galanakisea421232019-06-20 17:11:28 +0100865# Configruation used for document building
866config_doxygen = {"common_params": {
867 "config_type": "tf-m_documents",
868 "codebase_root_dir": "tf-m",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800869 "build_cmds": {"all": ["-DTFM_PLATFORM=mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +0100870 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +0100871 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +0100872 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800873 "cmake --build ./ -- docs"]},
874 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
875 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +0100876 r'/(\w+\.(?:html|md|pdf))$',
877 },
Xinyu Zhangb708f572020-09-15 11:43:46 +0800878 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100879 }
880
Karl Zhangaff558a2020-05-15 14:28:23 +0100881# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +0100882config_debug = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800883 "tfm_platform": ["mps2/an521"],
884 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
885 "psa_api": [False],
886 "isolation_level": ["1"],
887 "test_regression": [False],
888 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100889 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800890 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800891 "with_bl2": [True],
892 "with_ns": [True],
893 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800894 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +0100895 },
896 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800897 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100898 }
899
Dean Birch4c6ad622020-03-13 11:28:03 +0000900# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +0800901config_ci = {"seed_params": {
902 "tfm_platform": ["mps2/an521"],
903 "toolchain_file": ["toolchain_ARMCLANG.cmake",
904 "toolchain_GNUARM.cmake"],
905 "psa_api": [True, False],
906 "isolation_level": ["1", "2"],
907 "test_regression": [True, False],
908 "test_psa_api": ["OFF"],
909 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800910 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800911 "with_bl2": [True, False],
912 "with_ns": [True],
913 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800914 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800915 },
916 "common_params": _common_tfm_builder_cfg,
917 "invalid": _common_tfm_invalid_configs + [
918 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800919 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800920 ("*", "toolchain_ARMCLANG.cmake", False, "1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800921 "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800922 ]
923 }
Matthew Hartfb6fd362020-03-04 21:03:59 +0000924
Xinyu Zhangb708f572020-09-15 11:43:46 +0800925config_lava_debug = {"seed_params": {
926 "tfm_platform": ["mps2/an521", "mps2/an519"],
927 "toolchain_file": ["toolchain_GNUARM.cmake"],
928 "psa_api": [True, False],
929 "isolation_level": ["1", "2"],
930 "test_regression": [True],
931 "test_psa_api": ["OFF"],
932 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800933 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800934 "with_bl2": [True, False],
935 "with_ns": [True, False],
936 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800937 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800938 },
939 "common_params": _common_tfm_builder_cfg,
940 "invalid": _common_tfm_invalid_configs + [
941 ("mps2/an521", "toolchain_GNUARM.cmake", True, "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800942 "*", "*", True, "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +0800943 ]
944 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000945
Karl Zhangaff558a2020-05-15 14:28:23 +0100946_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +0800947 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +0100948 "tfm_test": config_tfm_test,
949 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +0800950 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +0100951 "tfm_test_otp": config_tfm_test_OTP,
952 "psa_api": config_PSA_API,
953 "psa_api_otp": config_PSA_API_OTP,
954 "psa_ff": config_PSA_FF,
955 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +0800956 "tfm_psoc64": config_PSOC64,
957
958 #nightly test group
959 "nightly_test": config_nightly,
960 "nightly_profile": config_nightly_profile,
961 "nightly_psa_api": config_nightly_PSA_API,
962 "nightly_ff": config_nightly_PSA_FF,
963 "nightly_otp": config_nightly_OTP,
964
965 #per patch test group
966 "pp_test": config_pp_test,
967 "pp_OTP": config_pp_OTP,
968 "pp_PSA_API": config_pp_PSA_API,
969 "pp_psoc64": config_pp_PSoC64,
970
971 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +0100972 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +0800973
974 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +0100975 "an539": config_AN539,
976 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +0100977 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +0800978 "an521_psa_api": config_AN521_PSA_API,
979 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +0100980 "an519": config_AN519,
981 "musca_a": config_MUSCA_A,
982 "musca_b1": config_MUSCA_B1,
Karl Zhangeffed972020-06-30 15:48:01 +0800983 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800984 "psoc64": config_PSOC64,
Minos Galanakisea421232019-06-20 17:11:28 +0100985 "ipc": config_IPC,
986 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +0000987 "debug": config_debug,
Karl Zhangaff558a2020-05-15 14:28:23 +0100988 "release": config_release,
Matthew Hartfb6fd362020-03-04 21:03:59 +0000989 "debug": config_debug,
Karl Zhang14573bc2020-06-08 09:23:21 +0800990
991 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +0000992 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +0800993 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100994
995if __name__ == '__main__':
996 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100997
Minos Galanakisea421232019-06-20 17:11:28 +0100998 # Default behavior is to export refference config when called
999 _dir = os.getcwd()
1000 from utils import save_json
1001 for _cname, _cfg in _builtin_configs.items():
1002 _fname = os.path.join(_dir, _cname + ".json")
1003 print("Exporting config %s" % _fname)
1004 save_json(_fname, _cfg)