blob: c27d2196c43dbf62bdcd4b5438bd853b275fba08 [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
Karl Zhangaff558a2020-05-15 14:28:23 +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 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080081 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080082 "tfm_s_ns_signed.bin "
Minos Galanakisea421232019-06-20 17:11:28 +010083 "-Binary -offset 0x220000 -o "
Xinyu Zhangb708f572020-09-15 11:43:46 +080084 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080085 "tfm.hex -Intel")],
86 "musca_b1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080087 "%(_tbm_build_dir_)s/bin/"
88 "bl2.bin "
Minos Galanakise86f4482019-11-06 16:08:23 +000089 "-Binary -offset 0xA000000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080090 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080091 "tfm_s_ns_signed.bin "
Minos Galanakise86f4482019-11-06 16:08:23 +000092 "-Binary -offset 0xA020000 -o "
Xinyu Zhangb708f572020-09-15 11:43:46 +080093 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080094 "tfm.hex -Intel")],
95 "musca_s1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080096 "%(_tbm_build_dir_)s/bin/"
97 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +080098 "-Binary -offset 0xA000000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080099 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800100 "tfm_s_ns_signed.bin "
Karl Zhangeffed972020-06-30 15:48:01 +0800101 "-Binary -offset 0xA020000 -o "
Xinyu Zhangb708f572020-09-15 11:43:46 +0800102 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800103 "tfm.hex -Intel")]
Minos Galanakisea421232019-06-20 17:11:28 +0100104 },
105
106 # (Optional) If set will fail if those artefacts are missing post build
107 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800108 "%(_tbm_build_dir_)s/bin/"
109 "tfm_s.bin",
110 "%(_tbm_build_dir_)s/bin/"
111 "tfm_ns.bin"],
Xinyu Zhang694eb492020-11-04 18:29:08 +0800112 "musca_a": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800113 "%(_tbm_build_dir_)s/bin/"
114 "tfm.hex",
115 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800116 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800117 "%(_tbm_build_dir_)s/bin/"
118 "tfm_sign.bin"],
Xinyu Zhang694eb492020-11-04 18:29:08 +0800119 "musca_b1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800120 "%(_tbm_build_dir_)s/bin/"
121 "tfm.hex",
122 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800123 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800124 "%(_tbm_build_dir_)s/bin/"
125 "tfm_sign.bin"],
Xinyu Zhang694eb492020-11-04 18:29:08 +0800126 "musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800127 "%(_tbm_build_dir_)s/bin/"
128 "tfm.hex",
129 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800130 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800131 "%(_tbm_build_dir_)s/bin/"
132 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100133 }
134}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100135
Xinyu Zhangb708f572020-09-15 11:43:46 +0800136# List of all build configs that are impossible under all circumstances
137_common_tfm_invalid_configs = [
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800138 # LVL2 and LVL3 requires PSA api
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800139 ("*", "*", False, "2", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800140 ("*", "*", False, "3", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800141 # Regression requires NS
142 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*", "*"),
Xinyu Zhang11d66112020-11-04 15:38:29 +0800143 # psoc64 requires PSA api
144 ("cypress/psoc64", "*", False, "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800145 # No PSA_ACK with regression
146 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*", "*"),
147 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*", "*"),
148 ("*", "*", "*", "*", True, "PROTECTED_STORAGE", "*", "*", "*", "*", "*", "*"),
149 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*"),
150 ("*", "*", "*", "*", True, "INTERNAL_TRUSTED_STORAGE", "*", "*", "*", "*", "*", "*"),
151 # PSA_ACK requires NS
152 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*", "*"),
153 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*", "*"),
154 ("*", "*", "*", "*", "*", "PROTECTED_STORAGE", "*", "*", "*", False, "*", "*"),
155 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*", "*"),
156 ("*", "*", "*", "*", "*", "INTERNAL_TRUSTED_STORAGE", "*", "*", "*", False, "*", "*"),
157 # Musca requires BL2
158 ("musca_a", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
159 ("musca_b1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
160 ("musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
161 # psoc64 cannot use BL2
162 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800163 # psoc64 does not support Debug build type
164 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800165 # Musca b1 does not support Profile S
166 ("musca_b1", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800167 # PARTITION_PS could be OFF only for Profile S and M
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800168 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800169 # PARTITION_PS should be OFF for Profile S
170 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800171 # Proile M only support for PSA_API
172 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
173 # Profile M only support for Isolation Level 2
174 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
Xinyu Zhange8de4512020-11-13 10:37:56 +0800175 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800176 # Profile S does not support MUSCA_B1
177 ("musca_b1", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
178 # Profile S does not support PSA_API
179 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
180 # Profile S only supports Isolation Level 2
181 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800182 # Only AN521 and MUSCA_B1 support Isolation Level 3
183 ("mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
184 ("mps2/an539", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
185 ("mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
186 ("mps2/sse-200_aws", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
187 ("musca_a", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
188 ("musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
189 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800190 ]
191
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100192# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100193config_AN539 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800194 "tfm_platform": ["mps2/an539"],
195 "toolchain_file": ["toolchain_GNUARM.cmake",
196 "toolchain_ARMCLANG.cmake"],
197 "psa_api": [True, False],
198 "isolation_level": ["1", "2"],
199 "test_regression": [True, False],
200 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100201 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800202 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800203 "with_bl2": [True, False],
204 "with_ns": [True, False],
205 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800206 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +0100207 },
208 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800209 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100210 }
211
Karl Zhangaff558a2020-05-15 14:28:23 +0100212config_AN524 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800213 "tfm_platform": ["mps3/an524"],
214 "toolchain_file": ["toolchain_GNUARM.cmake",
215 "toolchain_ARMCLANG.cmake"],
216 "psa_api": [True, False],
217 "isolation_level": ["1", "2"],
218 "test_regression": [True, False],
219 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100220 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800221 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800222 "with_bl2": [True, False],
223 "with_ns": [True, False],
224 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800225 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100226 },
227 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800228 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100229 }
230
Karl Zhangaff558a2020-05-15 14:28:23 +0100231config_AN521 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800232 "tfm_platform": ["mps2/an521"],
233 "toolchain_file": ["toolchain_GNUARM.cmake",
234 "toolchain_ARMCLANG.cmake"],
235 "psa_api": [True, False],
236 "isolation_level": ["1", "2"],
237 "test_regression": [True, False],
238 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100239 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800240 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800241 "with_bl2": [True, False],
242 "with_ns": [True, False],
243 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800244 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100245 },
246 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800247 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100248 }
249
Karl Zhangaff558a2020-05-15 14:28:23 +0100250config_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800251 "tfm_platform": ["mps2/an521", "musca_b1", "musca_s1"],
252 "toolchain_file": ["toolchain_GNUARM.cmake",
253 "toolchain_ARMCLANG.cmake"],
254 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800255 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800256 "test_regression": [False],
257 "test_psa_api": ["CRYPTO",
258 "PROTECTED_STORAGE",
259 "INITIAL_ATTESTATION",
260 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100261 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800262 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800263 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800264 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800265 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800266 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100267 },
268 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800269 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100270 }
271
Karl Zhangaff558a2020-05-15 14:28:23 +0100272config_PSA_FF = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800273 "tfm_platform": ["mps2/an521", "musca_b1"],
274 "toolchain_file": ["toolchain_GNUARM.cmake",
275 "toolchain_ARMCLANG.cmake"],
276 "psa_api": [True],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800277 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800278 "test_regression": [False],
279 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100280 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800281 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800282 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800283 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800284 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800285 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100286 },
287 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800288 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100289 }
290
Karl Zhangaff558a2020-05-15 14:28:23 +0100291config_PSA_API_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800292 "tfm_platform": ["musca_b1"],
293 "toolchain_file": ["toolchain_GNUARM.cmake",
294 "toolchain_ARMCLANG.cmake"],
295 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800296 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800297 "test_regression": [False],
298 "test_psa_api": ["CRYPTO",
299 "PROTECTED_STORAGE",
300 "INITIAL_ATTESTATION",
301 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100302 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800303 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800304 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800305 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800306 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800307 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100308 },
309 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800310 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100311 }
Minos Galanakisea421232019-06-20 17:11:28 +0100312
Xinyu Zhangb708f572020-09-15 11:43:46 +0800313config_PSA_FF_OTP = {"seed_params": {
314 "tfm_platform": ["musca_b1"],
315 "toolchain_file": ["toolchain_GNUARM.cmake",
316 "toolchain_ARMCLANG.cmake"],
317 "psa_api": [True],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800318 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800319 "test_regression": [False],
320 "test_psa_api": ["IPC"],
321 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800322 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800323 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800324 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800325 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800326 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800327 },
328 "common_params": _common_tfm_builder_cfg,
329 "invalid": _common_tfm_invalid_configs + []
330 }
331
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800332config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800333 "tfm_platform": ["cypress/psoc64"],
334 "toolchain_file": ["toolchain_GNUARM.cmake",
335 "toolchain_ARMCLANG.cmake"],
336 "psa_api": [True],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800337 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800338 "test_regression": [True],
339 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800340 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800341 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800342 "with_bl2": [False],
343 "with_ns": [True, False],
344 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800345 "partition_ps": ["ON"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800346 },
347 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800348 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800349 }
350
Minos Galanakisea421232019-06-20 17:11:28 +0100351config_AN519 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800352 "tfm_platform": ["mps2/an519"],
353 "toolchain_file": ["toolchain_GNUARM.cmake",
354 "toolchain_ARMCLANG.cmake"],
355 "psa_api": [True, False],
356 "isolation_level": ["1", "2"],
357 "test_regression": [True, False],
358 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100359 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800360 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800361 "with_bl2": [True, False],
362 "with_ns": [True, False],
363 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800364 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +0100365 },
366 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800367 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100368 }
369
Xinyu Zhangb708f572020-09-15 11:43:46 +0800370config_IPC = {"seed_params": {
371 "tfm_platform": ["mps2/an521", "mps2/an519", "musca_a", "musca_b1"],
372 "toolchain_file": ["toolchain_GNUARM.cmake",
373 "toolchain_ARMCLANG.cmake"],
374 "psa_api": [True],
375 "isolation_level": ["1", "2"],
376 "test_regression": [True, False],
377 "test_psa_api": ["OFF"],
378 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800379 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800380 "with_bl2": [True, False],
381 "with_ns": [True, False],
382 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800383 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800384 },
Minos Galanakisea421232019-06-20 17:11:28 +0100385 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800386 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100387 }
388
Minos Galanakisea421232019-06-20 17:11:28 +0100389config_full = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800390 "tfm_platform": ["mps2/an521", "mps2/an519",
391 "musca_a", "musca_b1",
392 "mps2/an539", "mps3/an524",
393 "cypress/psoc64"],
394 "toolchain_file": ["toolchain_GNUARM.cmake",
395 "toolchain_ARMCLANG.cmake"],
396 "psa_api": [True, False],
397 "isolation_level": ["1", "2"],
398 "test_regression": [True, False],
399 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800400 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800401 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800402 "with_bl2": [True, False],
403 "with_ns": [True, False],
404 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800405 "partition_ps": ["ON"],
Dean Birchd6ce2c82020-05-13 13:16:15 +0100406 },
407 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800408 "invalid": _common_tfm_invalid_configs + [
409 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800410 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800411 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800412 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800413 ("mps2/an521", "*", "*", "*",
414 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
415 ("mps2/an519", "*", "*", "*",
416 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
417 ("musca_a", "*", "*", "*",
418 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
419 ("musca_b1", "*", "*", "*",
420 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
421 ("mps2/an539", "*", "*", "*",
422 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
423 ("mps3/an524", "*", "*", "*",
424 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800425 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800426 }
427
Karl Zhangaff558a2020-05-15 14:28:23 +0100428config_tfm_test = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800429 "tfm_platform": ["mps2/an521", "musca_a",
430 "musca_b1", "musca_s1"],
431 "toolchain_file": ["toolchain_ARMCLANG.cmake",
432 "toolchain_GNUARM.cmake"],
433 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800434 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800435 "test_regression": [True, False],
436 "test_psa_api": ["OFF"],
437 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800438 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800439 "with_bl2": [True],
440 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800441 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800442 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800443 },
444 "common_params": _common_tfm_builder_cfg,
445 "invalid": _common_tfm_invalid_configs + []
446 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800447
Karl Zhangaff558a2020-05-15 14:28:23 +0100448config_tfm_test2 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800449 "tfm_platform": ["mps2/an519", "mps3/an524",
450 "mps2/an539", "mps2/sse-200_aws"],
451 "toolchain_file": ["toolchain_ARMCLANG.cmake",
452 "toolchain_GNUARM.cmake"],
453 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800454 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800455 "test_regression": [True, False],
456 "test_psa_api": ["OFF"],
457 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800458 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800459 "with_bl2": [True],
460 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800461 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800462 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800463 },
464 "common_params": _common_tfm_builder_cfg,
465 "invalid": _common_tfm_invalid_configs + [
466 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800467 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800468 ]
469 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100470
Karl Zhang14573bc2020-06-08 09:23:21 +0800471config_tfm_profile = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800472 "tfm_platform": ["mps2/an519", "mps2/an521",
473 "musca_b1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800474 "toolchain_file": ["toolchain_ARMCLANG.cmake",
475 "toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800476 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800477 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800478 "test_regression": [True, False],
479 "test_psa_api": ["OFF"],
480 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800481 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800482 "with_bl2": [True],
483 "with_ns": [True],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800484 "profile": ["profile_small", "profile_medium"],
485 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800486 },
487 "common_params": _common_tfm_builder_cfg,
488 "invalid": _common_tfm_invalid_configs + [
489 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800490 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800491 ]
492 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800493
Karl Zhangaff558a2020-05-15 14:28:23 +0100494config_tfm_test_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800495 "tfm_platform": ["musca_b1"],
496 "toolchain_file": ["toolchain_ARMCLANG.cmake",
497 "toolchain_GNUARM.cmake"],
498 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800499 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800500 "test_regression": [True, False],
501 "test_psa_api": ["OFF"],
502 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800503 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800504 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800505 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800506 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800507 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800508 },
509 "common_params": _common_tfm_builder_cfg,
510 "invalid": _common_tfm_invalid_configs + []
511 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100512
Minos Galanakisea421232019-06-20 17:11:28 +0100513config_MUSCA_A = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800514 "tfm_platform": ["musca_a"],
515 "toolchain_file": ["toolchain_ARMCLANG.cmake",
516 "toolchain_GNUARM.cmake"],
517 "psa_api": [True, False],
518 "isolation_level": ["1", "2"],
519 "test_regression": [True, False],
520 "test_psa_api": ["OFF"],
521 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800522 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800523 "with_bl2": [True],
524 "with_ns": [True, False],
525 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800526 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800527 },
528 "common_params": _common_tfm_builder_cfg,
529 "invalid": _common_tfm_invalid_configs + []
530 }
Minos Galanakisea421232019-06-20 17:11:28 +0100531
532config_MUSCA_B1 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800533 "tfm_platform": ["musca_b1"],
534 "toolchain_file": ["toolchain_ARMCLANG.cmake",
535 "toolchain_GNUARM.cmake"],
536 "psa_api": [True, False],
537 "isolation_level": ["1", "2"],
538 "test_regression": [True, False],
539 "test_psa_api": ["OFF"],
540 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800541 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800542 "with_bl2": [True],
543 "with_ns": [True, False],
544 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800545 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800546 },
547 "common_params": _common_tfm_builder_cfg,
548 "invalid": _common_tfm_invalid_configs + []
549 }
Minos Galanakisea421232019-06-20 17:11:28 +0100550
Karl Zhangeffed972020-06-30 15:48:01 +0800551config_MUSCA_S1 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800552 "tfm_platform": ["musca_s1"],
553 "toolchain_file": ["toolchain_ARMCLANG.cmake",
554 "toolchain_GNUARM.cmake"],
555 "psa_api": [True, False],
556 "isolation_level": ["1", "2"],
557 "test_regression": [True, False],
558 "test_psa_api": ["OFF"],
559 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800560 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800561 "with_bl2": [True],
562 "with_ns": [True, False],
563 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800564 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800565 },
566 "common_params": _common_tfm_builder_cfg,
567 "invalid": _common_tfm_invalid_configs + []
568 }
Karl Zhangeffed972020-06-30 15:48:01 +0800569
Karl Zhangaff558a2020-05-15 14:28:23 +0100570config_release = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800571 "tfm_platform": ["mps2/an521", "mps2/an519",
572 "musca_a", "musca_b1", "musca_s1",
573 "mps3/an524", "mps2/an539"],
574 "toolchain_file": ["toolchain_ARMCLANG.cmake",
575 "toolchain_GNUARM.cmake"],
576 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800577 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800578 "test_regression": [True, False],
579 "test_psa_api": ["OFF"],
580 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800581 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800582 "with_bl2": [True, False],
583 "with_ns": [True, False],
584 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800585 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800586 },
587 "common_params": _common_tfm_builder_cfg,
588 "invalid": _common_tfm_invalid_configs + [
589 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800590 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800591 ]
592 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100593
594# Configure build manager to build several combinations
595config_AN521_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800596 "tfm_platform": ["mps2/an521", "mps2/an519",
597 "musca_b1"],
598 "toolchain_file": ["toolchain_GNUARM.cmake",
599 "toolchain_ARMCLANG.cmake"],
600 "psa_api": [True, False],
601 "isolation_level": ["1", "2"],
602 "test_regression": [False],
603 "test_psa_api": ["IPC",
604 "CRYPTO",
605 "PROTECTED_STORAGE",
606 "INITIAL_ATTESTATION",
607 "INTERNAL_TRUSTED_STORAGE"],
608 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800609 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800610 "with_bl2": [True],
611 "with_ns": [True, False],
612 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800613 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100614 },
615 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800616 "invalid": _common_tfm_invalid_configs + [
617 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800618 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800619 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100620 }
621
Karl Zhangaff558a2020-05-15 14:28:23 +0100622config_AN521_PSA_IPC = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800623 "tfm_platform": ["mps2/an521", "mps2/an519",
624 "musca_b1"],
625 "toolchain_file": ["toolchain_GNUARM.cmake",
626 "toolchain_ARMCLANG.cmake"],
627 "psa_api": [True],
628 "isolation_level": ["1", "2"],
629 "test_regression": [False],
630 "test_psa_api": ["IPC"],
631 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800632 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800633 "with_bl2": [True],
634 "with_ns": [True, False],
635 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800636 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100637 },
638 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800639 "invalid": _common_tfm_invalid_configs + [
640 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800641 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800642 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100643 }
644
Karl Zhang14573bc2020-06-08 09:23:21 +0800645config_nightly = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800646 "tfm_platform": ["mps2/an521", "mps2/an519",
647 "musca_a", "musca_b1", "musca_s1",
648 "mps3/an524", "mps2/an539",
649 "mps2/sse-200_aws", "cypress/psoc64"],
650 "toolchain_file": ["toolchain_GNUARM.cmake",
651 "toolchain_ARMCLANG.cmake"],
652 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800653 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800654 "test_regression": [True, False],
655 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800656 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800657 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800658 "with_bl2": [True],
659 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800660 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800661 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800662 },
663 "common_params": _common_tfm_builder_cfg,
664 "invalid": _common_tfm_invalid_configs + [
665 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800666 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800667 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800668 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800669 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800670 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800671 ("mps2/an521", "*", "*", "*",
672 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
673 ("mps2/an519", "*", "*", "*",
674 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
675 ("musca_a", "*", "*", "*",
676 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
677 ("musca_b1", "*", "*", "*",
678 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
679 ("musca_s1", "*", "*", "*",
680 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
681 ("mps2/an539", "*", "*", "*",
682 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
683 ("mps3/an524", "*", "*", "*",
684 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
685 ("mps2/sse-200_aws", "*", "*", "*",
686 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800687 ]
688 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800689
Karl Zhang14573bc2020-06-08 09:23:21 +0800690config_nightly_profile = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800691 "tfm_platform": ["mps2/an519", "mps2/an521",
692 "musca_b1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800693 "toolchain_file": ["toolchain_ARMCLANG.cmake",
694 "toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800695 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800696 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800697 "test_regression": [True, False],
698 "test_psa_api": ["OFF"],
699 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800700 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800701 "with_bl2": [True],
702 "with_ns": [True],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800703 "profile": ["profile_small", "profile_medium"],
704 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800705 },
706 "common_params": _common_tfm_builder_cfg,
707 "invalid": _common_tfm_invalid_configs + [
708 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800709 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800710 ]
711 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800712
Karl Zhang14573bc2020-06-08 09:23:21 +0800713config_nightly_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800714 "tfm_platform": ["mps2/an521"],
715 "toolchain_file": ["toolchain_GNUARM.cmake",
716 "toolchain_ARMCLANG.cmake"],
717 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800718 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800719 "test_regression": [False],
720 "test_psa_api": ["CRYPTO",
721 "PROTECTED_STORAGE",
722 "INITIAL_ATTESTATION",
723 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800724 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800725 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800726 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800727 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800728 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800729 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800730 },
731 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800732 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800733 }
734
Karl Zhang14573bc2020-06-08 09:23:21 +0800735config_nightly_PSA_FF = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800736 "tfm_platform": ["mps2/an521"],
737 "toolchain_file": ["toolchain_GNUARM.cmake",
738 "toolchain_ARMCLANG.cmake"],
739 "psa_api": [True],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800740 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800741 "test_regression": [False],
742 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800743 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800744 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800745 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800746 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800747 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800748 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800749 },
750 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800751 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800752 }
753
Karl Zhang14573bc2020-06-08 09:23:21 +0800754config_nightly_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800755 "tfm_platform": ["musca_b1"],
756 "toolchain_file": ["toolchain_GNUARM.cmake",
757 "toolchain_ARMCLANG.cmake"],
758 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800759 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800760 "test_regression": [True],
761 "test_psa_api": ["OFF"],
762 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800763 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800764 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800765 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800766 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800767 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800768 },
769 "common_params": _common_tfm_builder_cfg,
770 "invalid": _common_tfm_invalid_configs + []
771 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800772
Karl Zhang14573bc2020-06-08 09:23:21 +0800773config_pp_test = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800774 "tfm_platform": ["mps2/an521", "mps2/an519",
775 "musca_b1"],
776 "toolchain_file": ["toolchain_GNUARM.cmake",
777 "toolchain_ARMCLANG.cmake"],
778 "psa_api": [True, False],
779 "isolation_level": ["1", "2"],
780 "test_regression": [True],
781 "test_psa_api": ["OFF"],
782 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800783 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800784 "with_bl2": [True],
785 "with_ns": [True, False],
786 "profile": ["", "profile_small"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800787 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800788 },
789 "common_params": _common_tfm_builder_cfg,
790 "invalid": _common_tfm_invalid_configs + [
791 ("musca_b1", "*", "*", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800792 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800793 ("*", "*", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800794 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800795 ("*", "*", "*", "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800796 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800797 ]
798 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800799
Karl Zhang14573bc2020-06-08 09:23:21 +0800800config_pp_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800801 "tfm_platform": ["musca_b1"],
802 "toolchain_file": ["toolchain_GNUARM.cmake"],
803 "psa_api": [True, False],
804 "isolation_level": ["1", "2"],
805 "test_regression": [True],
806 "test_psa_api": ["OFF"],
807 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800808 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800809 "with_bl2": [True],
810 "with_ns": [True, False],
811 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800812 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800813 },
814 "common_params": _common_tfm_builder_cfg,
815 "invalid": _common_tfm_invalid_configs + []
816 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800817
818# Configure build manager to build several combinations
819config_pp_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800820 "tfm_platform": ["mps2/an521"],
821 "toolchain_file": ["toolchain_GNUARM.cmake"],
822 "psa_api": [True],
823 "isolation_level": ["2"],
824 "test_regression": [False],
825 "test_psa_api": ["IPC",
826 "CRYPTO",
827 "PROTECTED_STORAGE",
828 "INITIAL_ATTESTATION",
829 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800830 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800831 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800832 "with_bl2": [True],
833 "with_ns": [True, False],
834 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800835 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800836 },
837 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800838 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800839 }
840
Karl Zhang14573bc2020-06-08 09:23:21 +0800841config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800842 "tfm_platform": ["cypress/psoc64"],
843 "toolchain_file": ["toolchain_GNUARM.cmake"],
844 "psa_api": [True],
845 "isolation_level": ["1", "2"],
846 "test_regression": [True],
847 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800848 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800849 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800850 "with_bl2": [False],
851 "with_ns": [True, False],
852 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800853 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800854 },
855 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800856 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800857 }
858
Minos Galanakisea421232019-06-20 17:11:28 +0100859# Configruation used for document building
860config_doxygen = {"common_params": {
861 "config_type": "tf-m_documents",
862 "codebase_root_dir": "tf-m",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800863 "build_cmds": {"all": ["-DTFM_PLATFORM=mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +0100864 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +0100865 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +0100866 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800867 "cmake --build ./ -- docs"]},
868 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
869 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +0100870 r'/(\w+\.(?:html|md|pdf))$',
871 },
Xinyu Zhangb708f572020-09-15 11:43:46 +0800872 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100873 }
874
Karl Zhangaff558a2020-05-15 14:28:23 +0100875# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +0100876config_debug = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800877 "tfm_platform": ["mps2/an521"],
878 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
879 "psa_api": [False],
880 "isolation_level": ["1"],
881 "test_regression": [False],
882 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100883 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800884 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800885 "with_bl2": [True],
886 "with_ns": [True],
887 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800888 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +0100889 },
890 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800891 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100892 }
893
Dean Birch4c6ad622020-03-13 11:28:03 +0000894# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +0800895config_ci = {"seed_params": {
896 "tfm_platform": ["mps2/an521"],
897 "toolchain_file": ["toolchain_ARMCLANG.cmake",
898 "toolchain_GNUARM.cmake"],
899 "psa_api": [True, False],
900 "isolation_level": ["1", "2"],
901 "test_regression": [True, False],
902 "test_psa_api": ["OFF"],
903 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800904 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800905 "with_bl2": [True, False],
906 "with_ns": [True],
907 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800908 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800909 },
910 "common_params": _common_tfm_builder_cfg,
911 "invalid": _common_tfm_invalid_configs + [
912 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800913 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800914 ("*", "toolchain_ARMCLANG.cmake", False, "1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800915 "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800916 ]
917 }
Matthew Hartfb6fd362020-03-04 21:03:59 +0000918
Xinyu Zhangb708f572020-09-15 11:43:46 +0800919config_lava_debug = {"seed_params": {
920 "tfm_platform": ["mps2/an521", "mps2/an519"],
921 "toolchain_file": ["toolchain_GNUARM.cmake"],
922 "psa_api": [True, False],
923 "isolation_level": ["1", "2"],
924 "test_regression": [True],
925 "test_psa_api": ["OFF"],
926 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800927 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800928 "with_bl2": [True, False],
929 "with_ns": [True, False],
930 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800931 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800932 },
933 "common_params": _common_tfm_builder_cfg,
934 "invalid": _common_tfm_invalid_configs + [
935 ("mps2/an521", "toolchain_GNUARM.cmake", True, "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800936 "*", "*", True, "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +0800937 ]
938 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000939
Karl Zhangaff558a2020-05-15 14:28:23 +0100940_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +0800941 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +0100942 "tfm_test": config_tfm_test,
943 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +0800944 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +0100945 "tfm_test_otp": config_tfm_test_OTP,
946 "psa_api": config_PSA_API,
947 "psa_api_otp": config_PSA_API_OTP,
948 "psa_ff": config_PSA_FF,
949 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +0800950 "tfm_psoc64": config_PSOC64,
951
952 #nightly test group
953 "nightly_test": config_nightly,
954 "nightly_profile": config_nightly_profile,
955 "nightly_psa_api": config_nightly_PSA_API,
956 "nightly_ff": config_nightly_PSA_FF,
957 "nightly_otp": config_nightly_OTP,
958
959 #per patch test group
960 "pp_test": config_pp_test,
961 "pp_OTP": config_pp_OTP,
962 "pp_PSA_API": config_pp_PSA_API,
963 "pp_psoc64": config_pp_PSoC64,
964
965 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +0100966 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +0800967
968 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +0100969 "an539": config_AN539,
970 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +0100971 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +0800972 "an521_psa_api": config_AN521_PSA_API,
973 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +0100974 "an519": config_AN519,
975 "musca_a": config_MUSCA_A,
976 "musca_b1": config_MUSCA_B1,
Karl Zhangeffed972020-06-30 15:48:01 +0800977 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800978 "psoc64": config_PSOC64,
Minos Galanakisea421232019-06-20 17:11:28 +0100979 "ipc": config_IPC,
980 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +0000981 "debug": config_debug,
Karl Zhangaff558a2020-05-15 14:28:23 +0100982 "release": config_release,
Matthew Hartfb6fd362020-03-04 21:03:59 +0000983 "debug": config_debug,
Karl Zhang14573bc2020-06-08 09:23:21 +0800984
985 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +0000986 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +0800987 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100988
989if __name__ == '__main__':
990 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100991
Minos Galanakisea421232019-06-20 17:11:28 +0100992 # Default behavior is to export refference config when called
993 _dir = os.getcwd()
994 from utils import save_json
995 for _cname, _cfg in _builtin_configs.items():
996 _fname = os.path.join(_dir, _cname + ".json")
997 print("Exporting config %s" % _fname)
998 save_json(_fname, _cfg)