blob: ad0cccfbd15717cdeeabd09d3addb89f028fc035 [file] [log] [blame]
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001#!/usr/bin/env python3
2
3""" builtin_configs.py:
4
5 Default configuration files used as reference """
6
7from __future__ import print_function
8
9__copyright__ = """
10/*
Karl Zhangaff558a2020-05-15 14:28:23 +010011 * Copyright (c) 2018-2020, Arm Limited. All rights reserved.
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010012 *
13 * SPDX-License-Identifier: BSD-3-Clause
14 *
15 */
16 """
17__author__ = "Minos Galanakis"
18__email__ = "minos.galanakis@linaro.org"
19__project__ = "Trusted Firmware-M Open CI"
20__status__ = "stable"
Minos Galanakisea421232019-06-20 17:11:28 +010021__version__ = "1.1"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010022
Minos Galanakisea421232019-06-20 17:11:28 +010023# common parameters for tf-m build system
24# This configuration template will be passed into the tfm-builder module after
25# the template evaluation is converted to a command
26
27_common_tfm_builder_cfg = {
28 "config_type": "tf-m",
29 "codebase_root_dir": "tf-m",
30 # Order to which the variants are evaluated. This affects the name of
31 # variant configuration and the wildcard replacement logic in invalid
32 # configuration tuples
Xinyu Zhangb708f572020-09-15 11:43:46 +080033 "sort_order": ["tfm_platform",
34 "toolchain_file",
35 "psa_api",
36 "isolation_level",
37 "test_regression",
38 "test_psa_api",
Minos Galanakisea421232019-06-20 17:11:28 +010039 "cmake_build_type",
Xinyu Zhangb708f572020-09-15 11:43:46 +080040 "with_otp",
41 "with_bl2",
42 "with_ns",
Xinyu Zhang9fd74242020-10-22 11:30:50 +080043 "profile",
44 "partition_ps"],
Minos Galanakisea421232019-06-20 17:11:28 +010045
46 # Keys for the templace will come from the combinations of parameters
47 # provided in the seed dictionary.
48
Xinyu Zhangb708f572020-09-15 11:43:46 +080049 "config_template": "cmake " + \
50 "-DTFM_PLATFORM=%(tfm_platform)s " + \
51 "-DCMAKE_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(toolchain_file)s " + \
52 "-DTFM_PSA_API=%(psa_api)s " + \
53 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
54 "-DTEST_NS=%(test_regression)s -DTEST_S=%(test_regression)s " + \
55 "-DTEST_PSA_API=%(test_psa_api)s " + \
56 "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \
57 "-DCRYPTO_HW_ACCELERATOR_OTP_STATE=%(with_otp)s " + \
58 "-DBL2=%(with_bl2)s " + \
59 "-DNS=%(with_ns)s " + \
60 "-DTFM_TEST_REPO_PATH=%(codebase_root_dir)s/../tf-m-tests " + \
61 "-DMBEDCRYPTO_PATH=%(codebase_root_dir)s/../mbedtls " + \
62 "-DPSA_ARCH_TESTS_PATH=%(codebase_root_dir)s/../psa-arch-tests " + \
63 "-DMCUBOOT_PATH=%(codebase_root_dir)s/../mcuboot " + \
64 "-DTFM_PROFILE=%(profile)s " + \
Xinyu Zhangb5bbb692020-10-26 10:14:33 +080065 "-DTFM_PARTITION_PROTECTED_STORAGE=%(partition_ps)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080066 "%(codebase_root_dir)s",
Karl Zhangaff558a2020-05-15 14:28:23 +010067
Minos Galanakisea421232019-06-20 17:11:28 +010068 # A small subset of string substitution params is allowed in commands.
69 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
70 # _tbm_target_platform_ with the paths set when building
71
Xinyu Zhangb708f572020-09-15 11:43:46 +080072 "artifact_capture_rex": (r'%(_tbm_build_dir_)s/bin'
Minos Galanakisea421232019-06-20 17:11:28 +010073 r'/(\w+\.(?:axf|bin|hex))$'),
74
75 # ALL commands will be executed for every build.
76 # Other keys will append extra commands when matching target_platform
Karl Zhangaff558a2020-05-15 14:28:23 +010077 "build_cmds": {"all": ["cmake --build ./ -- install"],
Xinyu Zhang694eb492020-11-04 18:29:08 +080078 "musca_a": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080079 "%(_tbm_build_dir_)s/bin/"
80 "bl2.bin "
Minos Galanakisea421232019-06-20 17:11:28 +010081 "-Binary -offset 0x200000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080082 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080083 "tfm_s_ns_signed.bin "
Minos Galanakisea421232019-06-20 17:11:28 +010084 "-Binary -offset 0x220000 -o "
Xinyu Zhangb708f572020-09-15 11:43:46 +080085 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080086 "tfm.hex -Intel")],
87 "musca_b1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080088 "%(_tbm_build_dir_)s/bin/"
89 "bl2.bin "
Minos Galanakise86f4482019-11-06 16:08:23 +000090 "-Binary -offset 0xA000000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080091 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080092 "tfm_s_ns_signed.bin "
Minos Galanakise86f4482019-11-06 16:08:23 +000093 "-Binary -offset 0xA020000 -o "
Xinyu Zhangb708f572020-09-15 11:43:46 +080094 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080095 "tfm.hex -Intel")],
96 "musca_s1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080097 "%(_tbm_build_dir_)s/bin/"
98 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +080099 "-Binary -offset 0xA000000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +0800100 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800101 "tfm_s_ns_signed.bin "
Karl Zhangeffed972020-06-30 15:48:01 +0800102 "-Binary -offset 0xA020000 -o "
Xinyu Zhangb708f572020-09-15 11:43:46 +0800103 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800104 "tfm.hex -Intel")]
Minos Galanakisea421232019-06-20 17:11:28 +0100105 },
106
107 # (Optional) If set will fail if those artefacts are missing post build
108 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800109 "%(_tbm_build_dir_)s/bin/"
110 "tfm_s.bin",
111 "%(_tbm_build_dir_)s/bin/"
112 "tfm_ns.bin"],
Xinyu Zhang694eb492020-11-04 18:29:08 +0800113 "musca_a": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800114 "%(_tbm_build_dir_)s/bin/"
115 "tfm.hex",
116 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800117 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800118 "%(_tbm_build_dir_)s/bin/"
119 "tfm_sign.bin"],
Xinyu Zhang694eb492020-11-04 18:29:08 +0800120 "musca_b1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800121 "%(_tbm_build_dir_)s/bin/"
122 "tfm.hex",
123 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800124 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800125 "%(_tbm_build_dir_)s/bin/"
126 "tfm_sign.bin"],
Xinyu Zhang694eb492020-11-04 18:29:08 +0800127 "musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800128 "%(_tbm_build_dir_)s/bin/"
129 "tfm.hex",
130 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800131 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800132 "%(_tbm_build_dir_)s/bin/"
133 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100134 }
135}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100136
Xinyu Zhangb708f572020-09-15 11:43:46 +0800137# List of all build configs that are impossible under all circumstances
138_common_tfm_invalid_configs = [
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800139 # LVL2 and LVL3 requires PSA api
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800140 ("*", "*", False, "2", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800141 ("*", "*", False, "3", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800142 # Regression requires NS
143 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*", "*"),
Xinyu Zhang11d66112020-11-04 15:38:29 +0800144 # psoc64 requires PSA api
145 ("cypress/psoc64", "*", False, "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800146 # No PSA_ACK with regression
147 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*", "*"),
148 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*", "*"),
149 ("*", "*", "*", "*", True, "PROTECTED_STORAGE", "*", "*", "*", "*", "*", "*"),
150 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*"),
151 ("*", "*", "*", "*", True, "INTERNAL_TRUSTED_STORAGE", "*", "*", "*", "*", "*", "*"),
152 # PSA_ACK requires NS
153 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*", "*"),
154 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*", "*"),
155 ("*", "*", "*", "*", "*", "PROTECTED_STORAGE", "*", "*", "*", False, "*", "*"),
156 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*", "*"),
157 ("*", "*", "*", "*", "*", "INTERNAL_TRUSTED_STORAGE", "*", "*", "*", False, "*", "*"),
158 # Musca requires BL2
159 ("musca_a", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
160 ("musca_b1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
161 ("musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
162 # psoc64 cannot use BL2
163 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800164 # psoc64 does not support Debug build type
165 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800166 # Musca b1 does not support Profile S
167 ("musca_b1", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800168 # PARTITION_PS could be OFF only for Profile S and M
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800169 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800170 # PARTITION_PS should be OFF for Profile S
171 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800172 # Proile M only support for PSA_API
173 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
174 # Profile M only support for Isolation Level 2
175 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
Xinyu Zhange8de4512020-11-13 10:37:56 +0800176 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800177 # Profile S does not support MUSCA_B1
178 ("musca_b1", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
179 # Profile S does not support PSA_API
180 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
181 # Profile S only supports Isolation Level 2
182 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800183 # Only AN521 and MUSCA_B1 support Isolation Level 3
184 ("mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
185 ("mps2/an539", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
186 ("mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
187 ("mps2/sse-200_aws", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
188 ("musca_a", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
189 ("musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
190 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800191 ]
192
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100193# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100194config_AN539 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800195 "tfm_platform": ["mps2/an539"],
196 "toolchain_file": ["toolchain_GNUARM.cmake",
197 "toolchain_ARMCLANG.cmake"],
198 "psa_api": [True, False],
199 "isolation_level": ["1", "2"],
200 "test_regression": [True, False],
201 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100202 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800203 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800204 "with_bl2": [True, False],
205 "with_ns": [True, False],
206 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800207 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +0100208 },
209 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800210 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100211 }
212
Karl Zhangaff558a2020-05-15 14:28:23 +0100213config_AN524 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800214 "tfm_platform": ["mps3/an524"],
215 "toolchain_file": ["toolchain_GNUARM.cmake",
216 "toolchain_ARMCLANG.cmake"],
217 "psa_api": [True, False],
218 "isolation_level": ["1", "2"],
219 "test_regression": [True, False],
220 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100221 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800222 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800223 "with_bl2": [True, False],
224 "with_ns": [True, False],
225 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800226 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100227 },
228 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800229 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100230 }
231
Karl Zhangaff558a2020-05-15 14:28:23 +0100232config_AN521 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800233 "tfm_platform": ["mps2/an521"],
234 "toolchain_file": ["toolchain_GNUARM.cmake",
235 "toolchain_ARMCLANG.cmake"],
236 "psa_api": [True, False],
237 "isolation_level": ["1", "2"],
238 "test_regression": [True, False],
239 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100240 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800241 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800242 "with_bl2": [True, False],
243 "with_ns": [True, False],
244 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800245 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100246 },
247 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800248 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100249 }
250
Karl Zhangaff558a2020-05-15 14:28:23 +0100251config_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800252 "tfm_platform": ["mps2/an521", "musca_b1", "musca_s1"],
253 "toolchain_file": ["toolchain_GNUARM.cmake",
254 "toolchain_ARMCLANG.cmake"],
255 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800256 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800257 "test_regression": [False],
258 "test_psa_api": ["CRYPTO",
259 "PROTECTED_STORAGE",
260 "INITIAL_ATTESTATION",
261 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100262 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800263 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800264 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800265 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800266 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800267 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100268 },
269 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800270 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100271 }
272
Karl Zhangaff558a2020-05-15 14:28:23 +0100273config_PSA_FF = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800274 "tfm_platform": ["mps2/an521", "musca_b1"],
275 "toolchain_file": ["toolchain_GNUARM.cmake",
276 "toolchain_ARMCLANG.cmake"],
277 "psa_api": [True],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800278 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800279 "test_regression": [False],
280 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100281 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800282 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800283 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800284 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800285 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800286 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100287 },
288 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800289 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100290 }
291
Karl Zhangaff558a2020-05-15 14:28:23 +0100292config_PSA_API_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800293 "tfm_platform": ["musca_b1"],
294 "toolchain_file": ["toolchain_GNUARM.cmake",
295 "toolchain_ARMCLANG.cmake"],
296 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800297 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800298 "test_regression": [False],
299 "test_psa_api": ["CRYPTO",
300 "PROTECTED_STORAGE",
301 "INITIAL_ATTESTATION",
302 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100303 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800304 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800305 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800306 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800307 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800308 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100309 },
310 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800311 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100312 }
Minos Galanakisea421232019-06-20 17:11:28 +0100313
Xinyu Zhangb708f572020-09-15 11:43:46 +0800314config_PSA_FF_OTP = {"seed_params": {
315 "tfm_platform": ["musca_b1"],
316 "toolchain_file": ["toolchain_GNUARM.cmake",
317 "toolchain_ARMCLANG.cmake"],
318 "psa_api": [True],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800319 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800320 "test_regression": [False],
321 "test_psa_api": ["IPC"],
322 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800323 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800324 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800325 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800326 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800327 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800328 },
329 "common_params": _common_tfm_builder_cfg,
330 "invalid": _common_tfm_invalid_configs + []
331 }
332
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800333config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800334 "tfm_platform": ["cypress/psoc64"],
335 "toolchain_file": ["toolchain_GNUARM.cmake",
336 "toolchain_ARMCLANG.cmake"],
337 "psa_api": [True],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800338 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800339 "test_regression": [True],
340 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800341 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800342 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800343 "with_bl2": [False],
344 "with_ns": [True, False],
345 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800346 "partition_ps": ["ON"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800347 },
348 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800349 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800350 }
351
Minos Galanakisea421232019-06-20 17:11:28 +0100352config_AN519 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800353 "tfm_platform": ["mps2/an519"],
354 "toolchain_file": ["toolchain_GNUARM.cmake",
355 "toolchain_ARMCLANG.cmake"],
356 "psa_api": [True, False],
357 "isolation_level": ["1", "2"],
358 "test_regression": [True, False],
359 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100360 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800361 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800362 "with_bl2": [True, False],
363 "with_ns": [True, False],
364 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800365 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +0100366 },
367 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800368 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100369 }
370
Xinyu Zhangb708f572020-09-15 11:43:46 +0800371config_IPC = {"seed_params": {
372 "tfm_platform": ["mps2/an521", "mps2/an519", "musca_a", "musca_b1"],
373 "toolchain_file": ["toolchain_GNUARM.cmake",
374 "toolchain_ARMCLANG.cmake"],
375 "psa_api": [True],
376 "isolation_level": ["1", "2"],
377 "test_regression": [True, False],
378 "test_psa_api": ["OFF"],
379 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800380 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800381 "with_bl2": [True, False],
382 "with_ns": [True, False],
383 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800384 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800385 },
Minos Galanakisea421232019-06-20 17:11:28 +0100386 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800387 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100388 }
389
Minos Galanakisea421232019-06-20 17:11:28 +0100390config_full = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800391 "tfm_platform": ["mps2/an521", "mps2/an519",
392 "musca_a", "musca_b1",
393 "mps2/an539", "mps3/an524",
394 "cypress/psoc64"],
395 "toolchain_file": ["toolchain_GNUARM.cmake",
396 "toolchain_ARMCLANG.cmake"],
397 "psa_api": [True, False],
398 "isolation_level": ["1", "2"],
399 "test_regression": [True, False],
400 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800401 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800402 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800403 "with_bl2": [True, False],
404 "with_ns": [True, False],
405 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800406 "partition_ps": ["ON"],
Dean Birchd6ce2c82020-05-13 13:16:15 +0100407 },
408 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800409 "invalid": _common_tfm_invalid_configs + [
410 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800411 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800412 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800413 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800414 ("mps2/an521", "*", "*", "*",
415 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
416 ("mps2/an519", "*", "*", "*",
417 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
418 ("musca_a", "*", "*", "*",
419 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
420 ("musca_b1", "*", "*", "*",
421 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
422 ("mps2/an539", "*", "*", "*",
423 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
424 ("mps3/an524", "*", "*", "*",
425 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800426 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800427 }
428
Karl Zhang81a76772020-05-11 18:28:52 +0800429config_full_gnuarm = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800430 "tfm_platform": ["mps2/an521", "mps2/an519",
431 "musca_a", "musca_b1",
432 "mps3/an524", "mps2/an539",
433 "cypress/psoc64"],
434 "toolchain_file": ["toolchain_GNUARM.cmake"],
435 "psa_api": [True, False],
436 "isolation_level": ["1", "2"],
437 "test_regression": [True, False],
438 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800439 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800440 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800441 "with_bl2": [True, False],
442 "with_ns": [True, False],
443 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800444 "partition_ps": ["ON"],
Karl Zhang81a76772020-05-11 18:28:52 +0800445 },
446 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800447 "invalid": _common_tfm_invalid_configs + [
448 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800449 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800450 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800451 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800452 ("mps2/an521", "*", "*", "*",
453 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
454 ("mps2/an519", "*", "*", "*",
455 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
456 ("musca_a", "*", "*", "*",
457 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
458 ("musca_b1", "*", "*", "*",
459 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
460 ("mps2/an539", "*", "*", "*",
461 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
462 ("mps3/an524", "*", "*", "*",
463 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800464 ]
Dean Birchd6ce2c82020-05-13 13:16:15 +0100465 }
466
Karl Zhangaff558a2020-05-15 14:28:23 +0100467config_tfm_test = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800468 "tfm_platform": ["mps2/an521", "musca_a",
469 "musca_b1", "musca_s1"],
470 "toolchain_file": ["toolchain_ARMCLANG.cmake",
471 "toolchain_GNUARM.cmake"],
472 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800473 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800474 "test_regression": [True, False],
475 "test_psa_api": ["OFF"],
476 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800477 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800478 "with_bl2": [True],
479 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800480 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800481 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800482 },
483 "common_params": _common_tfm_builder_cfg,
484 "invalid": _common_tfm_invalid_configs + []
485 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800486
Karl Zhangaff558a2020-05-15 14:28:23 +0100487config_tfm_test2 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800488 "tfm_platform": ["mps2/an519", "mps3/an524",
489 "mps2/an539", "mps2/sse-200_aws"],
490 "toolchain_file": ["toolchain_ARMCLANG.cmake",
491 "toolchain_GNUARM.cmake"],
492 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800493 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800494 "test_regression": [True, False],
495 "test_psa_api": ["OFF"],
496 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800497 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800498 "with_bl2": [True],
499 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800500 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800501 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800502 },
503 "common_params": _common_tfm_builder_cfg,
504 "invalid": _common_tfm_invalid_configs + [
505 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800506 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800507 ]
508 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100509
Karl Zhang14573bc2020-06-08 09:23:21 +0800510config_tfm_profile = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800511 "tfm_platform": ["mps2/an519", "mps2/an521",
512 "musca_b1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800513 "toolchain_file": ["toolchain_ARMCLANG.cmake",
514 "toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800515 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800516 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800517 "test_regression": [True, False],
518 "test_psa_api": ["OFF"],
519 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800520 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800521 "with_bl2": [True],
522 "with_ns": [True],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800523 "profile": ["profile_small", "profile_medium"],
524 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800525 },
526 "common_params": _common_tfm_builder_cfg,
527 "invalid": _common_tfm_invalid_configs + [
528 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800529 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800530 ]
531 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800532
Karl Zhangaff558a2020-05-15 14:28:23 +0100533config_tfm_test_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800534 "tfm_platform": ["musca_b1"],
535 "toolchain_file": ["toolchain_ARMCLANG.cmake",
536 "toolchain_GNUARM.cmake"],
537 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800538 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800539 "test_regression": [True, False],
540 "test_psa_api": ["OFF"],
541 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800542 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800543 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800544 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800545 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800546 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800547 },
548 "common_params": _common_tfm_builder_cfg,
549 "invalid": _common_tfm_invalid_configs + []
550 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100551
Minos Galanakisea421232019-06-20 17:11:28 +0100552config_MUSCA_A = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800553 "tfm_platform": ["musca_a"],
554 "toolchain_file": ["toolchain_ARMCLANG.cmake",
555 "toolchain_GNUARM.cmake"],
556 "psa_api": [True, False],
557 "isolation_level": ["1", "2"],
558 "test_regression": [True, False],
559 "test_psa_api": ["OFF"],
560 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800561 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800562 "with_bl2": [True],
563 "with_ns": [True, False],
564 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800565 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800566 },
567 "common_params": _common_tfm_builder_cfg,
568 "invalid": _common_tfm_invalid_configs + []
569 }
Minos Galanakisea421232019-06-20 17:11:28 +0100570
571config_MUSCA_B1 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800572 "tfm_platform": ["musca_b1"],
573 "toolchain_file": ["toolchain_ARMCLANG.cmake",
574 "toolchain_GNUARM.cmake"],
575 "psa_api": [True, False],
576 "isolation_level": ["1", "2"],
577 "test_regression": [True, False],
578 "test_psa_api": ["OFF"],
579 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800580 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800581 "with_bl2": [True],
582 "with_ns": [True, False],
583 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800584 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800585 },
586 "common_params": _common_tfm_builder_cfg,
587 "invalid": _common_tfm_invalid_configs + []
588 }
Minos Galanakisea421232019-06-20 17:11:28 +0100589
Karl Zhangeffed972020-06-30 15:48:01 +0800590config_MUSCA_S1 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800591 "tfm_platform": ["musca_s1"],
592 "toolchain_file": ["toolchain_ARMCLANG.cmake",
593 "toolchain_GNUARM.cmake"],
594 "psa_api": [True, False],
595 "isolation_level": ["1", "2"],
596 "test_regression": [True, False],
597 "test_psa_api": ["OFF"],
598 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800599 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800600 "with_bl2": [True],
601 "with_ns": [True, False],
602 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800603 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800604 },
605 "common_params": _common_tfm_builder_cfg,
606 "invalid": _common_tfm_invalid_configs + []
607 }
Karl Zhangeffed972020-06-30 15:48:01 +0800608
Karl Zhangaff558a2020-05-15 14:28:23 +0100609config_release = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800610 "tfm_platform": ["mps2/an521", "mps2/an519",
611 "musca_a", "musca_b1", "musca_s1",
612 "mps3/an524", "mps2/an539"],
613 "toolchain_file": ["toolchain_ARMCLANG.cmake",
614 "toolchain_GNUARM.cmake"],
615 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800616 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800617 "test_regression": [True, False],
618 "test_psa_api": ["OFF"],
619 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800620 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800621 "with_bl2": [True, False],
622 "with_ns": [True, False],
623 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800624 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800625 },
626 "common_params": _common_tfm_builder_cfg,
627 "invalid": _common_tfm_invalid_configs + [
628 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800629 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800630 ]
631 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100632
633# Configure build manager to build several combinations
634config_AN521_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800635 "tfm_platform": ["mps2/an521", "mps2/an519",
636 "musca_b1"],
637 "toolchain_file": ["toolchain_GNUARM.cmake",
638 "toolchain_ARMCLANG.cmake"],
639 "psa_api": [True, False],
640 "isolation_level": ["1", "2"],
641 "test_regression": [False],
642 "test_psa_api": ["IPC",
643 "CRYPTO",
644 "PROTECTED_STORAGE",
645 "INITIAL_ATTESTATION",
646 "INTERNAL_TRUSTED_STORAGE"],
647 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800648 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800649 "with_bl2": [True],
650 "with_ns": [True, False],
651 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800652 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100653 },
654 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800655 "invalid": _common_tfm_invalid_configs + [
656 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800657 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800658 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100659 }
660
Karl Zhangaff558a2020-05-15 14:28:23 +0100661config_AN521_PSA_IPC = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800662 "tfm_platform": ["mps2/an521", "mps2/an519",
663 "musca_b1"],
664 "toolchain_file": ["toolchain_GNUARM.cmake",
665 "toolchain_ARMCLANG.cmake"],
666 "psa_api": [True],
667 "isolation_level": ["1", "2"],
668 "test_regression": [False],
669 "test_psa_api": ["IPC"],
670 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800671 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800672 "with_bl2": [True],
673 "with_ns": [True, False],
674 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800675 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100676 },
677 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800678 "invalid": _common_tfm_invalid_configs + [
679 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800680 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800681 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100682 }
683
Karl Zhang14573bc2020-06-08 09:23:21 +0800684config_nightly = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800685 "tfm_platform": ["mps2/an521", "mps2/an519",
686 "musca_a", "musca_b1", "musca_s1",
687 "mps3/an524", "mps2/an539",
688 "mps2/sse-200_aws", "cypress/psoc64"],
689 "toolchain_file": ["toolchain_GNUARM.cmake",
690 "toolchain_ARMCLANG.cmake"],
691 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800692 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800693 "test_regression": [True, False],
694 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800695 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800696 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800697 "with_bl2": [True, False],
698 "with_ns": [True, False],
699 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800700 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800701 },
702 "common_params": _common_tfm_builder_cfg,
703 "invalid": _common_tfm_invalid_configs + [
704 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800705 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800706 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800707 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800708 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800709 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800710 ("mps2/an521", "*", "*", "*",
711 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
712 ("mps2/an519", "*", "*", "*",
713 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
714 ("musca_a", "*", "*", "*",
715 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
716 ("musca_b1", "*", "*", "*",
717 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
718 ("musca_s1", "*", "*", "*",
719 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
720 ("mps2/an539", "*", "*", "*",
721 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
722 ("mps3/an524", "*", "*", "*",
723 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
724 ("mps2/sse-200_aws", "*", "*", "*",
725 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800726 ]
727 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800728
Karl Zhang14573bc2020-06-08 09:23:21 +0800729config_nightly_profile = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800730 "tfm_platform": ["mps2/an519", "mps2/an521",
731 "musca_b1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800732 "toolchain_file": ["toolchain_ARMCLANG.cmake",
733 "toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800734 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800735 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800736 "test_regression": [True, False],
737 "test_psa_api": ["OFF"],
738 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800739 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800740 "with_bl2": [True, False],
741 "with_ns": [True, False],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800742 "profile": ["profile_small", "profile_medium"],
743 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800744 },
745 "common_params": _common_tfm_builder_cfg,
746 "invalid": _common_tfm_invalid_configs + [
747 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800748 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800749 ]
750 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800751
Karl Zhang14573bc2020-06-08 09:23:21 +0800752config_nightly_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800753 "tfm_platform": ["mps2/an521"],
754 "toolchain_file": ["toolchain_GNUARM.cmake",
755 "toolchain_ARMCLANG.cmake"],
756 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800757 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800758 "test_regression": [False],
759 "test_psa_api": ["CRYPTO",
760 "PROTECTED_STORAGE",
761 "INITIAL_ATTESTATION",
762 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800763 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800764 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800765 "with_bl2": [True],
766 "with_ns": [True, False],
767 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800768 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800769 },
770 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800771 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800772 }
773
Karl Zhang14573bc2020-06-08 09:23:21 +0800774config_nightly_PSA_FF = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800775 "tfm_platform": ["mps2/an521"],
776 "toolchain_file": ["toolchain_GNUARM.cmake",
777 "toolchain_ARMCLANG.cmake"],
778 "psa_api": [True],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800779 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800780 "test_regression": [False],
781 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800782 "cmake_build_type": ["Debug", "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": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800787 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800788 },
789 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800790 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800791 }
792
Karl Zhang14573bc2020-06-08 09:23:21 +0800793config_nightly_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800794 "tfm_platform": ["musca_b1"],
795 "toolchain_file": ["toolchain_GNUARM.cmake",
796 "toolchain_ARMCLANG.cmake"],
797 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800798 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800799 "test_regression": [True],
800 "test_psa_api": ["OFF"],
801 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800802 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800803 "with_bl2": [True],
804 "with_ns": [True, False],
805 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800806 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800807 },
808 "common_params": _common_tfm_builder_cfg,
809 "invalid": _common_tfm_invalid_configs + []
810 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800811
Karl Zhang14573bc2020-06-08 09:23:21 +0800812config_pp_test = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800813 "tfm_platform": ["mps2/an521", "mps2/an519",
814 "musca_b1"],
815 "toolchain_file": ["toolchain_GNUARM.cmake",
816 "toolchain_ARMCLANG.cmake"],
817 "psa_api": [True, False],
818 "isolation_level": ["1", "2"],
819 "test_regression": [True],
820 "test_psa_api": ["OFF"],
821 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800822 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800823 "with_bl2": [True],
824 "with_ns": [True, False],
825 "profile": ["", "profile_small"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800826 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800827 },
828 "common_params": _common_tfm_builder_cfg,
829 "invalid": _common_tfm_invalid_configs + [
830 ("musca_b1", "*", "*", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800831 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800832 ("*", "*", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800833 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800834 ("*", "*", "*", "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800835 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800836 ]
837 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800838
Karl Zhang14573bc2020-06-08 09:23:21 +0800839config_pp_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800840 "tfm_platform": ["musca_b1"],
841 "toolchain_file": ["toolchain_GNUARM.cmake"],
842 "psa_api": [True, False],
843 "isolation_level": ["1", "2"],
844 "test_regression": [True],
845 "test_psa_api": ["OFF"],
846 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800847 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800848 "with_bl2": [True],
849 "with_ns": [True, False],
850 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800851 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800852 },
853 "common_params": _common_tfm_builder_cfg,
854 "invalid": _common_tfm_invalid_configs + []
855 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800856
857# Configure build manager to build several combinations
858config_pp_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800859 "tfm_platform": ["mps2/an521"],
860 "toolchain_file": ["toolchain_GNUARM.cmake"],
861 "psa_api": [True],
862 "isolation_level": ["2"],
863 "test_regression": [False],
864 "test_psa_api": ["IPC",
865 "CRYPTO",
866 "PROTECTED_STORAGE",
867 "INITIAL_ATTESTATION",
868 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800869 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800870 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800871 "with_bl2": [True],
872 "with_ns": [True, False],
873 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800874 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800875 },
876 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800877 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800878 }
879
Karl Zhang14573bc2020-06-08 09:23:21 +0800880config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800881 "tfm_platform": ["cypress/psoc64"],
882 "toolchain_file": ["toolchain_GNUARM.cmake"],
883 "psa_api": [True],
884 "isolation_level": ["1", "2"],
885 "test_regression": [True],
886 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800887 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800888 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800889 "with_bl2": [False],
890 "with_ns": [True, False],
891 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800892 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800893 },
894 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800895 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800896 }
897
Minos Galanakisea421232019-06-20 17:11:28 +0100898# Configruation used for document building
899config_doxygen = {"common_params": {
900 "config_type": "tf-m_documents",
901 "codebase_root_dir": "tf-m",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800902 "build_cmds": {"all": ["-DTFM_PLATFORM=mps2/an521 "
903 "-DCMAKE_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +0100904 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +0100905 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800906 "cmake --build ./ -- docs"]},
907 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
908 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +0100909 r'/(\w+\.(?:html|md|pdf))$',
910 },
Xinyu Zhangb708f572020-09-15 11:43:46 +0800911 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100912 }
913
Karl Zhangaff558a2020-05-15 14:28:23 +0100914# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +0100915config_debug = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800916 "tfm_platform": ["mps2/an521"],
917 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
918 "psa_api": [False],
919 "isolation_level": ["1"],
920 "test_regression": [False],
921 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100922 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800923 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800924 "with_bl2": [True],
925 "with_ns": [True],
926 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800927 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +0100928 },
929 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800930 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100931 }
932
Dean Birch4c6ad622020-03-13 11:28:03 +0000933# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +0800934config_ci = {"seed_params": {
935 "tfm_platform": ["mps2/an521"],
936 "toolchain_file": ["toolchain_ARMCLANG.cmake",
937 "toolchain_GNUARM.cmake"],
938 "psa_api": [True, False],
939 "isolation_level": ["1", "2"],
940 "test_regression": [True, False],
941 "test_psa_api": ["OFF"],
942 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800943 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800944 "with_bl2": [True, False],
945 "with_ns": [True],
946 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800947 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800948 },
949 "common_params": _common_tfm_builder_cfg,
950 "invalid": _common_tfm_invalid_configs + [
951 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800952 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800953 ("*", "toolchain_ARMCLANG.cmake", False, "1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800954 "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800955 ]
956 }
Matthew Hartfb6fd362020-03-04 21:03:59 +0000957
Dean Birchd6ce2c82020-05-13 13:16:15 +0100958# Configuration used in CI if armclang not available
Xinyu Zhangb708f572020-09-15 11:43:46 +0800959config_ci_gnuarm = {"seed_params": {
960 "tfm_platform": ["mps2/an521"],
961 "toolchain_file": ["toolchain_ARMCLANG.cmake",
962 "toolchain_GNUARM.cmake"],
963 "psa_api": [True, False],
964 "isolation_level": ["1", "2"],
965 "test_regression": [True, False],
966 "test_psa_api": ["OFF"],
967 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800968 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800969 "with_bl2": [True, False],
970 "with_ns": [True],
971 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800972 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800973 },
974 "common_params": _common_tfm_builder_cfg,
975 "invalid": _common_tfm_invalid_configs + [
976 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800977 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800978 ("*", "toolchain_ARMCLANG.cmake", False, "1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800979 "*", "*", "False", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800980 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800981 "*", "*", "*", "*", "*", "*") # Disable ARMCLANG for now
Xinyu Zhangb708f572020-09-15 11:43:46 +0800982 ]
983 }
Dean Birchd6ce2c82020-05-13 13:16:15 +0100984
Xinyu Zhangb708f572020-09-15 11:43:46 +0800985config_lava_debug = {"seed_params": {
986 "tfm_platform": ["mps2/an521", "mps2/an519"],
987 "toolchain_file": ["toolchain_GNUARM.cmake"],
988 "psa_api": [True, False],
989 "isolation_level": ["1", "2"],
990 "test_regression": [True],
991 "test_psa_api": ["OFF"],
992 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800993 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800994 "with_bl2": [True, False],
995 "with_ns": [True, False],
996 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800997 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800998 },
999 "common_params": _common_tfm_builder_cfg,
1000 "invalid": _common_tfm_invalid_configs + [
1001 ("mps2/an521", "toolchain_GNUARM.cmake", True, "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001002 "*", "*", True, "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001003 ]
1004 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001005
Karl Zhangeea16ed2020-06-15 15:03:12 +08001006#GNU groups for external CI only
1007# Configure build manager to build the maximum number of configurations
1008config_tfm_test_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001009 "tfm_platform": ["mps2/an521", "musca_a",
1010 "musca_b1", "musca_s1"],
1011 "toolchain_file": ["toolchain_GNUARM.cmake"],
1012 "psa_api": [True, False],
1013 "isolation_level": ["1", "2"],
1014 "test_regression": [True, False],
1015 "test_psa_api": ["OFF"],
1016 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001017 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +08001018 "with_bl2": [True],
1019 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001020 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001021 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001022 },
1023 "common_params": _common_tfm_builder_cfg,
1024 "invalid": _common_tfm_invalid_configs + [
1025 ("musca_a", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001026 "*", "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001027 ("musca_b1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001028 "*", "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001029 ("musca_s1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001030 "*", "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001031 ]
1032 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001033
1034# Configure build manager to build the maximum number of configurations
1035config_tfm_test2_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001036 "tfm_platform": ["mps2/an519", "mps3/an524",
1037 "mps2/an539", "mps2/sse-200_aws"],
1038 "toolchain_file": ["toolchain_GNUARM.cmake"],
1039 "psa_api": [True, False],
1040 "isolation_level": ["1", "2"],
1041 "test_regression": [True, False],
1042 "test_psa_api": ["OFF"],
1043 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001044 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +08001045 "with_bl2": [True],
1046 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001047 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001048 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001049 },
1050 "common_params": _common_tfm_builder_cfg,
1051 "invalid": _common_tfm_invalid_configs + [
1052 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001053 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001054 ]
1055 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001056
1057# Configure build manager to build the maximum number of configurations
1058config_tfm_profile_gnu = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001059 "tfm_platform": ["mps2/an519", "mps2/an521",
1060 "musca_b1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001061 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001062 "psa_api": [True, False],
1063 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001064 "test_regression": [True, False],
1065 "test_psa_api": ["OFF"],
1066 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001067 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +08001068 "with_bl2": [True],
1069 "with_ns": [True],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001070 "profile": ["profile_small", "profile_medium"],
1071 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001072 },
1073 "common_params": _common_tfm_builder_cfg,
1074 "invalid": _common_tfm_invalid_configs + [
1075 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001076 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001077 ]
1078 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001079
1080# Configure build manager to build the maximum number of configurations
1081config_tfm_test_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001082 "tfm_platform": ["musca_b1"],
1083 "toolchain_file": ["toolchain_GNUARM.cmake"],
1084 "psa_api": [True, False],
1085 "isolation_level": ["1", "2"],
1086 "test_regression": [True, False],
1087 "test_psa_api": ["OFF"],
1088 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001089 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001090 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +08001091 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001092 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001093 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001094 },
1095 "common_params": _common_tfm_builder_cfg,
1096 "invalid": _common_tfm_invalid_configs + []
1097 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001098
1099# Configure build manager to build several combinations
1100config_PSA_API_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001101 "tfm_platform": ["mps2/an521", "musca_b1"],
1102 "toolchain_file": ["toolchain_GNUARM.cmake"],
1103 "psa_api": [True, False],
1104 "isolation_level": ["1", "2"],
1105 "test_regression": [False],
1106 "test_psa_api": ["CRYPTO",
1107 "PROTECTED_STORAGE",
1108 "INITIAL_ATTESTATION",
1109 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001110 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001111 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001112 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +08001113 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001114 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001115 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001116 },
1117 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001118 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001119 }
1120
1121# Configure build manager to build several combinations
1122config_PSA_FF_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001123 "tfm_platform": ["mps2/an521", "musca_b1"],
1124 "toolchain_file": ["toolchain_GNUARM.cmake"],
1125 "psa_api": [True],
1126 "isolation_level": ["1", "2"],
1127 "test_regression": [False],
1128 "test_psa_api": ["IPC"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001129 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001130 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001131 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +08001132 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001133 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001134 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001135 },
1136 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001137 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001138 }
1139
1140# Configure build manager to build several combinations
1141config_PSA_API_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001142 "tfm_platform": ["musca_b1"],
1143 "toolchain_file": ["toolchain_GNUARM.cmake"],
1144 "psa_api": [True, False],
1145 "isolation_level": ["1", "2"],
1146 "test_regression": [False],
1147 "test_psa_api": ["CRYPTO",
1148 "PROTECTED_STORAGE",
1149 "INITIAL_ATTESTATION",
1150 "INTERNAL_TRUSTED_STORAGE"],
1151 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001152 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001153 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +08001154 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001155 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001156 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001157 },
1158 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001159 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001160 }
1161
1162# Configure build manager to build several combinations
1163config_PSA_FF_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001164 "tfm_platform": ["musca_b1"],
1165 "toolchain_file": ["toolchain_GNUARM.cmake"],
1166 "psa_api": [True],
1167 "isolation_level": ["1", "2"],
1168 "test_regression": [False],
1169 "test_psa_api": ["IPC"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001170 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001171 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001172 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +08001173 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001174 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001175 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001176 },
1177 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001178 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001179 }
1180
1181# Configure build manager to build several combinations
1182config_PSOC64_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001183 "tfm_platform": ["cypress/psoc64"],
1184 "toolchain_file": ["toolchain_GNUARM.cmake"],
1185 "psa_api": [True],
1186 "isolation_level": ["1", "2"],
1187 "test_regression": [True],
1188 "test_psa_api": ["OFF"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001189 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001190 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001191 "with_bl2": [False],
1192 "with_ns": [True, False],
1193 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001194 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001195 },
1196 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001197 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001198 }
1199
1200# Configure build manager to build the maximum number of configurations
1201config_nightly_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001202 "tfm_platform": ["mps2/an521", "mps2/an519",
1203 "musca_a", "musca_b1", "musca_s1",
1204 "mps3/an524", "mps2/an539",
1205 "mps2/sse-200_aws", "cypress/psoc64"],
1206 "toolchain_file": ["toolchain_GNUARM.cmake"],
1207 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +08001208 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001209 "test_regression": [True, False],
1210 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +08001211 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001212 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001213 "with_bl2": [True, False],
1214 "with_ns": [True, False],
1215 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001216 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001217 },
1218 "common_params": _common_tfm_builder_cfg,
1219 "invalid": _common_tfm_invalid_configs + [
1220 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001221 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001222 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001223 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001224 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001225 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +08001226 ("mps2/an521", "*", "*", "*",
1227 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
1228 ("mps2/an519", "*", "*", "*",
1229 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
1230 ("musca_a", "*", "*", "*",
1231 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
1232 ("musca_b1", "*", "*", "*",
1233 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
1234 ("musca_s1", "*", "*", "*",
1235 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
1236 ("mps2/an539", "*", "*", "*",
1237 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
1238 ("mps3/an524", "*", "*", "*",
1239 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
1240 ("mps2/sse-200_aws", "*", "*", "*",
1241 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001242 ]
1243 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001244
1245# Configure build manager to build the maximum number of configurations
1246config_nightly_profile_gnu = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001247 "tfm_platform": ["mps2/an519", "mps2/an521",
1248 "musca_b1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001249 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001250 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +08001251 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001252 "test_regression": [True, False],
1253 "test_psa_api": ["OFF"],
1254 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001255 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001256 "with_bl2": [True, False],
1257 "with_ns": [True, False],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001258 "profile": ["profile_small", "profile_medium"],
1259 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001260 },
1261 "common_params": _common_tfm_builder_cfg,
1262 "invalid": _common_tfm_invalid_configs + [
1263 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001264 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001265 ]
1266 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001267
1268# Configure build manager to build several combinations
1269config_nightly_PSA_API_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001270 "tfm_platform": ["mps2/an521"],
1271 "toolchain_file": ["toolchain_GNUARM.cmake"],
1272 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +08001273 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001274 "test_regression": [False],
1275 "test_psa_api": ["CRYPTO",
1276 "PROTECTED_STORAGE",
1277 "INITIAL_ATTESTATION",
1278 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001279 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001280 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001281 "with_bl2": [True],
1282 "with_ns": [True, False],
1283 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001284 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001285 },
1286 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001287 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001288 }
1289
1290# Configure build manager to build several combinations
1291config_nightly_PSA_FF_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001292 "tfm_platform": ["mps2/an521"],
1293 "toolchain_file": ["toolchain_GNUARM.cmake"],
1294 "psa_api": [True],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +08001295 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001296 "test_regression": [False],
1297 "test_psa_api": ["IPC"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001298 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001299 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001300 "with_bl2": [True],
1301 "with_ns": [True, False],
1302 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001303 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001304 },
1305 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001306 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001307 }
1308
1309# Configure build manager to build the maximum number of configurations
1310config_nightly_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001311 "tfm_platform": ["musca_b1"],
1312 "toolchain_file": ["toolchain_GNUARM.cmake"],
1313 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +08001314 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001315 "test_regression": [True],
1316 "test_psa_api": ["OFF"],
1317 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001318 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001319 "with_bl2": [True],
1320 "with_ns": [True, False],
1321 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001322 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001323 },
1324 "common_params": _common_tfm_builder_cfg,
1325 "invalid": _common_tfm_invalid_configs + []
1326 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001327
1328# Configure build manager to build the maximum number of configurations
1329config_pp_test_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001330 "tfm_platform": ["mps2/an521", "mps2/an519",
1331 "musca_b1"],
Xinyu Zhangf1025b72020-09-28 17:10:57 +08001332 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001333 "psa_api": [True, False],
1334 "isolation_level": ["1", "2"],
1335 "test_regression": [True],
1336 "test_psa_api": ["OFF"],
1337 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001338 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001339 "with_bl2": [True],
1340 "with_ns": [True, False],
1341 "profile": ["", "profile_small"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001342 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001343 },
1344 "common_params": _common_tfm_builder_cfg,
1345 "invalid": _common_tfm_invalid_configs + [
1346 ("musca_b1", "*", "*", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001347 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001348 ("*", "*", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001349 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001350 ("*", "*", "*", "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001351 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001352 ]
1353 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001354
1355# Configure build manager to build the maximum number of configurations
1356config_pp_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001357 "tfm_platform": ["musca_b1"],
1358 "toolchain_file": ["toolchain_GNUARM.cmake"],
1359 "psa_api": [True, False],
1360 "isolation_level": ["1", "2"],
1361 "test_regression": [True],
1362 "test_psa_api": ["OFF"],
1363 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001364 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001365 "with_bl2": [True],
1366 "with_ns": [True, False],
1367 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001368 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001369 },
1370 "common_params": _common_tfm_builder_cfg,
1371 "invalid": _common_tfm_invalid_configs + []
1372 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001373
1374# Configure build manager to build several combinations
1375config_pp_PSA_API_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001376 "tfm_platform": ["mps2/an521"],
1377 "toolchain_file": ["toolchain_GNUARM.cmake"],
1378 "psa_api": [True],
1379 "isolation_level": ["2"],
1380 "test_regression": [False],
1381 "test_psa_api": ["IPC",
1382 "CRYPTO",
1383 "PROTECTED_STORAGE",
1384 "INITIAL_ATTESTATION",
1385 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001386 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001387 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001388 "with_bl2": [True],
1389 "with_ns": [True, False],
1390 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001391 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001392 },
1393 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001394 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001395 }
1396
1397# Configure build manager to build several combinations
1398config_pp_PSoC64_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001399 "tfm_platform": ["cypress/psoc64"],
1400 "toolchain_file": ["toolchain_GNUARM.cmake"],
1401 "psa_api": [True],
1402 "isolation_level": ["1", "2"],
1403 "test_regression": [True],
1404 "test_psa_api": ["OFF"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001405 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001406 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001407 "with_bl2": [False],
1408 "with_ns": [True, False],
1409 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001410 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001411 },
1412 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001413 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001414 }
1415
Karl Zhangaff558a2020-05-15 14:28:23 +01001416_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001417 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001418 "tfm_test": config_tfm_test,
1419 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001420 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +01001421 "tfm_test_otp": config_tfm_test_OTP,
1422 "psa_api": config_PSA_API,
1423 "psa_api_otp": config_PSA_API_OTP,
1424 "psa_ff": config_PSA_FF,
1425 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001426 "tfm_psoc64": config_PSOC64,
1427
1428 #nightly test group
1429 "nightly_test": config_nightly,
1430 "nightly_profile": config_nightly_profile,
1431 "nightly_psa_api": config_nightly_PSA_API,
1432 "nightly_ff": config_nightly_PSA_FF,
1433 "nightly_otp": config_nightly_OTP,
1434
1435 #per patch test group
1436 "pp_test": config_pp_test,
1437 "pp_OTP": config_pp_OTP,
1438 "pp_PSA_API": config_pp_PSA_API,
1439 "pp_psoc64": config_pp_PSoC64,
1440
Karl Zhangeea16ed2020-06-15 15:03:12 +08001441 #GNU only configs against groups above
1442 #The combinations should be the same except the CLANG ones
1443 #release test group (GNU)
1444 "tfm_test_gnu": config_tfm_test_gnu,
1445 "tfm_test2_gnu": config_tfm_test2_gnu,
1446 "tfm_profile_gnu": config_tfm_profile_gnu,
1447 "tfm_test_otp_gnu": config_tfm_test_OTP_gnu,
1448 "psa_api_gnu": config_PSA_API_gnu,
1449 "psa_api_otp_gnu": config_PSA_API_OTP_gnu,
1450 "psa_ff_gnu": config_PSA_FF_gnu,
1451 "psa_ff_otp_gnu": config_PSA_FF_OTP_gnu,
1452 "tfm_psoc64_gnu": config_PSOC64_gnu,
1453
1454 #nightly test group (GNU)
1455 "nightly_test_gnu": config_nightly_gnu,
1456 "nightly_profile_gnu": config_nightly_profile_gnu,
1457 "nightly_psa_api_gnu": config_nightly_PSA_API_gnu,
1458 "nightly_ff_gnu": config_nightly_PSA_FF_gnu,
1459 "nightly_otp_gnu": config_nightly_OTP_gnu,
1460
1461 #per patch test group (GNU)
1462 "pp_test_gnu": config_pp_test_gnu,
1463 "pp_OTP_gnu": config_pp_OTP_gnu,
1464 "pp_PSA_API_gnu": config_pp_PSA_API_gnu,
1465 "pp_psoc64_gnu": config_pp_PSoC64_gnu,
1466
1467
Karl Zhang14573bc2020-06-08 09:23:21 +08001468 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001469 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001470
1471 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001472 "an539": config_AN539,
1473 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001474 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001475 "an521_psa_api": config_AN521_PSA_API,
1476 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001477 "an519": config_AN519,
1478 "musca_a": config_MUSCA_A,
1479 "musca_b1": config_MUSCA_B1,
Karl Zhangeffed972020-06-30 15:48:01 +08001480 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001481 "psoc64": config_PSOC64,
Minos Galanakisea421232019-06-20 17:11:28 +01001482 "ipc": config_IPC,
1483 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001484 "debug": config_debug,
Karl Zhangaff558a2020-05-15 14:28:23 +01001485 "release": config_release,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001486 "debug": config_debug,
Karl Zhang14573bc2020-06-08 09:23:21 +08001487
1488 #DevOps team test group
1489 "full_gnuarm": config_full_gnuarm,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001490 "lava_debug": config_lava_debug,
Dean Birchd6ce2c82020-05-13 13:16:15 +01001491 "ci": config_ci,
1492 "ci_gnuarm": config_ci_gnuarm}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001493
1494if __name__ == '__main__':
1495 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001496
Minos Galanakisea421232019-06-20 17:11:28 +01001497 # Default behavior is to export refference config when called
1498 _dir = os.getcwd()
1499 from utils import save_json
1500 for _cname, _cfg in _builtin_configs.items():
1501 _fname = os.path.join(_dir, _cname + ".json")
1502 print("Exporting config %s" % _fname)
1503 save_json(_fname, _cfg)