blob: c9b2958f9151a03c8e82fe2f4d957e7ff5e73a9e [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 " + \
50 "-DCMAKE_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(toolchain_file)s " + \
51 "-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 Zhang81a76772020-05-11 18:28:52 +0800428config_full_gnuarm = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800429 "tfm_platform": ["mps2/an521", "mps2/an519",
430 "musca_a", "musca_b1",
431 "mps3/an524", "mps2/an539",
432 "cypress/psoc64"],
433 "toolchain_file": ["toolchain_GNUARM.cmake"],
434 "psa_api": [True, False],
435 "isolation_level": ["1", "2"],
436 "test_regression": [True, False],
437 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800438 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800439 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800440 "with_bl2": [True, False],
441 "with_ns": [True, False],
442 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800443 "partition_ps": ["ON"],
Karl Zhang81a76772020-05-11 18:28:52 +0800444 },
445 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800446 "invalid": _common_tfm_invalid_configs + [
447 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800448 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800449 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800450 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800451 ("mps2/an521", "*", "*", "*",
452 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
453 ("mps2/an519", "*", "*", "*",
454 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
455 ("musca_a", "*", "*", "*",
456 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
457 ("musca_b1", "*", "*", "*",
458 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
459 ("mps2/an539", "*", "*", "*",
460 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
461 ("mps3/an524", "*", "*", "*",
462 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800463 ]
Dean Birchd6ce2c82020-05-13 13:16:15 +0100464 }
465
Karl Zhangaff558a2020-05-15 14:28:23 +0100466config_tfm_test = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800467 "tfm_platform": ["mps2/an521", "musca_a",
468 "musca_b1", "musca_s1"],
469 "toolchain_file": ["toolchain_ARMCLANG.cmake",
470 "toolchain_GNUARM.cmake"],
471 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800472 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800473 "test_regression": [True, False],
474 "test_psa_api": ["OFF"],
475 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800476 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800477 "with_bl2": [True],
478 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800479 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800480 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800481 },
482 "common_params": _common_tfm_builder_cfg,
483 "invalid": _common_tfm_invalid_configs + []
484 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800485
Karl Zhangaff558a2020-05-15 14:28:23 +0100486config_tfm_test2 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800487 "tfm_platform": ["mps2/an519", "mps3/an524",
488 "mps2/an539", "mps2/sse-200_aws"],
489 "toolchain_file": ["toolchain_ARMCLANG.cmake",
490 "toolchain_GNUARM.cmake"],
491 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800492 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800493 "test_regression": [True, False],
494 "test_psa_api": ["OFF"],
495 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800496 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800497 "with_bl2": [True],
498 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800499 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800500 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800501 },
502 "common_params": _common_tfm_builder_cfg,
503 "invalid": _common_tfm_invalid_configs + [
504 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800505 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800506 ]
507 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100508
Karl Zhang14573bc2020-06-08 09:23:21 +0800509config_tfm_profile = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800510 "tfm_platform": ["mps2/an519", "mps2/an521",
511 "musca_b1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800512 "toolchain_file": ["toolchain_ARMCLANG.cmake",
513 "toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800514 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800515 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800516 "test_regression": [True, False],
517 "test_psa_api": ["OFF"],
518 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800519 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800520 "with_bl2": [True],
521 "with_ns": [True],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800522 "profile": ["profile_small", "profile_medium"],
523 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800524 },
525 "common_params": _common_tfm_builder_cfg,
526 "invalid": _common_tfm_invalid_configs + [
527 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800528 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800529 ]
530 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800531
Karl Zhangaff558a2020-05-15 14:28:23 +0100532config_tfm_test_OTP = {"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],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800537 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800538 "test_regression": [True, False],
539 "test_psa_api": ["OFF"],
540 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800541 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800542 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800543 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800544 "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 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100550
Minos Galanakisea421232019-06-20 17:11:28 +0100551config_MUSCA_A = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800552 "tfm_platform": ["musca_a"],
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 }
Minos Galanakisea421232019-06-20 17:11:28 +0100569
570config_MUSCA_B1 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800571 "tfm_platform": ["musca_b1"],
572 "toolchain_file": ["toolchain_ARMCLANG.cmake",
573 "toolchain_GNUARM.cmake"],
574 "psa_api": [True, False],
575 "isolation_level": ["1", "2"],
576 "test_regression": [True, False],
577 "test_psa_api": ["OFF"],
578 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800579 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800580 "with_bl2": [True],
581 "with_ns": [True, False],
582 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800583 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800584 },
585 "common_params": _common_tfm_builder_cfg,
586 "invalid": _common_tfm_invalid_configs + []
587 }
Minos Galanakisea421232019-06-20 17:11:28 +0100588
Karl Zhangeffed972020-06-30 15:48:01 +0800589config_MUSCA_S1 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800590 "tfm_platform": ["musca_s1"],
591 "toolchain_file": ["toolchain_ARMCLANG.cmake",
592 "toolchain_GNUARM.cmake"],
593 "psa_api": [True, False],
594 "isolation_level": ["1", "2"],
595 "test_regression": [True, False],
596 "test_psa_api": ["OFF"],
597 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800598 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800599 "with_bl2": [True],
600 "with_ns": [True, False],
601 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800602 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800603 },
604 "common_params": _common_tfm_builder_cfg,
605 "invalid": _common_tfm_invalid_configs + []
606 }
Karl Zhangeffed972020-06-30 15:48:01 +0800607
Karl Zhangaff558a2020-05-15 14:28:23 +0100608config_release = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800609 "tfm_platform": ["mps2/an521", "mps2/an519",
610 "musca_a", "musca_b1", "musca_s1",
611 "mps3/an524", "mps2/an539"],
612 "toolchain_file": ["toolchain_ARMCLANG.cmake",
613 "toolchain_GNUARM.cmake"],
614 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800615 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800616 "test_regression": [True, False],
617 "test_psa_api": ["OFF"],
618 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800619 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800620 "with_bl2": [True, False],
621 "with_ns": [True, False],
622 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800623 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800624 },
625 "common_params": _common_tfm_builder_cfg,
626 "invalid": _common_tfm_invalid_configs + [
627 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800628 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800629 ]
630 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100631
632# Configure build manager to build several combinations
633config_AN521_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800634 "tfm_platform": ["mps2/an521", "mps2/an519",
635 "musca_b1"],
636 "toolchain_file": ["toolchain_GNUARM.cmake",
637 "toolchain_ARMCLANG.cmake"],
638 "psa_api": [True, False],
639 "isolation_level": ["1", "2"],
640 "test_regression": [False],
641 "test_psa_api": ["IPC",
642 "CRYPTO",
643 "PROTECTED_STORAGE",
644 "INITIAL_ATTESTATION",
645 "INTERNAL_TRUSTED_STORAGE"],
646 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800647 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800648 "with_bl2": [True],
649 "with_ns": [True, False],
650 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800651 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100652 },
653 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800654 "invalid": _common_tfm_invalid_configs + [
655 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800656 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800657 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100658 }
659
Karl Zhangaff558a2020-05-15 14:28:23 +0100660config_AN521_PSA_IPC = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800661 "tfm_platform": ["mps2/an521", "mps2/an519",
662 "musca_b1"],
663 "toolchain_file": ["toolchain_GNUARM.cmake",
664 "toolchain_ARMCLANG.cmake"],
665 "psa_api": [True],
666 "isolation_level": ["1", "2"],
667 "test_regression": [False],
668 "test_psa_api": ["IPC"],
669 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800670 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800671 "with_bl2": [True],
672 "with_ns": [True, False],
673 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800674 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100675 },
676 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800677 "invalid": _common_tfm_invalid_configs + [
678 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800679 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800680 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100681 }
682
Karl Zhang14573bc2020-06-08 09:23:21 +0800683config_nightly = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800684 "tfm_platform": ["mps2/an521", "mps2/an519",
685 "musca_a", "musca_b1", "musca_s1",
686 "mps3/an524", "mps2/an539",
687 "mps2/sse-200_aws", "cypress/psoc64"],
688 "toolchain_file": ["toolchain_GNUARM.cmake",
689 "toolchain_ARMCLANG.cmake"],
690 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800691 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800692 "test_regression": [True, False],
693 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800694 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800695 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800696 "with_bl2": [True, False],
697 "with_ns": [True, False],
698 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800699 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800700 },
701 "common_params": _common_tfm_builder_cfg,
702 "invalid": _common_tfm_invalid_configs + [
703 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800704 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800705 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800706 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800707 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800708 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800709 ("mps2/an521", "*", "*", "*",
710 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
711 ("mps2/an519", "*", "*", "*",
712 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
713 ("musca_a", "*", "*", "*",
714 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
715 ("musca_b1", "*", "*", "*",
716 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
717 ("musca_s1", "*", "*", "*",
718 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
719 ("mps2/an539", "*", "*", "*",
720 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
721 ("mps3/an524", "*", "*", "*",
722 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
723 ("mps2/sse-200_aws", "*", "*", "*",
724 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800725 ]
726 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800727
Karl Zhang14573bc2020-06-08 09:23:21 +0800728config_nightly_profile = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800729 "tfm_platform": ["mps2/an519", "mps2/an521",
730 "musca_b1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800731 "toolchain_file": ["toolchain_ARMCLANG.cmake",
732 "toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800733 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800734 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800735 "test_regression": [True, False],
736 "test_psa_api": ["OFF"],
737 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800738 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800739 "with_bl2": [True, False],
740 "with_ns": [True, False],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800741 "profile": ["profile_small", "profile_medium"],
742 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800743 },
744 "common_params": _common_tfm_builder_cfg,
745 "invalid": _common_tfm_invalid_configs + [
746 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800747 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800748 ]
749 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800750
Karl Zhang14573bc2020-06-08 09:23:21 +0800751config_nightly_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800752 "tfm_platform": ["mps2/an521"],
753 "toolchain_file": ["toolchain_GNUARM.cmake",
754 "toolchain_ARMCLANG.cmake"],
755 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800756 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800757 "test_regression": [False],
758 "test_psa_api": ["CRYPTO",
759 "PROTECTED_STORAGE",
760 "INITIAL_ATTESTATION",
761 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800762 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800763 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800764 "with_bl2": [True],
765 "with_ns": [True, False],
766 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800767 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800768 },
769 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800770 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800771 }
772
Karl Zhang14573bc2020-06-08 09:23:21 +0800773config_nightly_PSA_FF = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800774 "tfm_platform": ["mps2/an521"],
775 "toolchain_file": ["toolchain_GNUARM.cmake",
776 "toolchain_ARMCLANG.cmake"],
777 "psa_api": [True],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800778 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800779 "test_regression": [False],
780 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800781 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800782 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800783 "with_bl2": [True],
784 "with_ns": [True, False],
785 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800786 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800787 },
788 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800789 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800790 }
791
Karl Zhang14573bc2020-06-08 09:23:21 +0800792config_nightly_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800793 "tfm_platform": ["musca_b1"],
794 "toolchain_file": ["toolchain_GNUARM.cmake",
795 "toolchain_ARMCLANG.cmake"],
796 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800797 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800798 "test_regression": [True],
799 "test_psa_api": ["OFF"],
800 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800801 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800802 "with_bl2": [True],
803 "with_ns": [True, False],
804 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800805 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800806 },
807 "common_params": _common_tfm_builder_cfg,
808 "invalid": _common_tfm_invalid_configs + []
809 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800810
Karl Zhang14573bc2020-06-08 09:23:21 +0800811config_pp_test = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800812 "tfm_platform": ["mps2/an521", "mps2/an519",
813 "musca_b1"],
814 "toolchain_file": ["toolchain_GNUARM.cmake",
815 "toolchain_ARMCLANG.cmake"],
816 "psa_api": [True, False],
817 "isolation_level": ["1", "2"],
818 "test_regression": [True],
819 "test_psa_api": ["OFF"],
820 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800821 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800822 "with_bl2": [True],
823 "with_ns": [True, False],
824 "profile": ["", "profile_small"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800825 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800826 },
827 "common_params": _common_tfm_builder_cfg,
828 "invalid": _common_tfm_invalid_configs + [
829 ("musca_b1", "*", "*", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800830 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800831 ("*", "*", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800832 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800833 ("*", "*", "*", "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800834 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800835 ]
836 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800837
Karl Zhang14573bc2020-06-08 09:23:21 +0800838config_pp_OTP = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800839 "tfm_platform": ["musca_b1"],
840 "toolchain_file": ["toolchain_GNUARM.cmake"],
841 "psa_api": [True, False],
842 "isolation_level": ["1", "2"],
843 "test_regression": [True],
844 "test_psa_api": ["OFF"],
845 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800846 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800847 "with_bl2": [True],
848 "with_ns": [True, False],
849 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800850 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800851 },
852 "common_params": _common_tfm_builder_cfg,
853 "invalid": _common_tfm_invalid_configs + []
854 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800855
856# Configure build manager to build several combinations
857config_pp_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800858 "tfm_platform": ["mps2/an521"],
859 "toolchain_file": ["toolchain_GNUARM.cmake"],
860 "psa_api": [True],
861 "isolation_level": ["2"],
862 "test_regression": [False],
863 "test_psa_api": ["IPC",
864 "CRYPTO",
865 "PROTECTED_STORAGE",
866 "INITIAL_ATTESTATION",
867 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800868 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800869 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800870 "with_bl2": [True],
871 "with_ns": [True, False],
872 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800873 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800874 },
875 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800876 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800877 }
878
Karl Zhang14573bc2020-06-08 09:23:21 +0800879config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800880 "tfm_platform": ["cypress/psoc64"],
881 "toolchain_file": ["toolchain_GNUARM.cmake"],
882 "psa_api": [True],
883 "isolation_level": ["1", "2"],
884 "test_regression": [True],
885 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800886 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800887 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800888 "with_bl2": [False],
889 "with_ns": [True, False],
890 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800891 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800892 },
893 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800894 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800895 }
896
Minos Galanakisea421232019-06-20 17:11:28 +0100897# Configruation used for document building
898config_doxygen = {"common_params": {
899 "config_type": "tf-m_documents",
900 "codebase_root_dir": "tf-m",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800901 "build_cmds": {"all": ["-DTFM_PLATFORM=mps2/an521 "
902 "-DCMAKE_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +0100903 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +0100904 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800905 "cmake --build ./ -- docs"]},
906 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
907 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +0100908 r'/(\w+\.(?:html|md|pdf))$',
909 },
Xinyu Zhangb708f572020-09-15 11:43:46 +0800910 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100911 }
912
Karl Zhangaff558a2020-05-15 14:28:23 +0100913# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +0100914config_debug = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800915 "tfm_platform": ["mps2/an521"],
916 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
917 "psa_api": [False],
918 "isolation_level": ["1"],
919 "test_regression": [False],
920 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100921 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800922 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800923 "with_bl2": [True],
924 "with_ns": [True],
925 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800926 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +0100927 },
928 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800929 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100930 }
931
Dean Birch4c6ad622020-03-13 11:28:03 +0000932# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +0800933config_ci = {"seed_params": {
934 "tfm_platform": ["mps2/an521"],
935 "toolchain_file": ["toolchain_ARMCLANG.cmake",
936 "toolchain_GNUARM.cmake"],
937 "psa_api": [True, False],
938 "isolation_level": ["1", "2"],
939 "test_regression": [True, False],
940 "test_psa_api": ["OFF"],
941 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800942 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800943 "with_bl2": [True, False],
944 "with_ns": [True],
945 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800946 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800947 },
948 "common_params": _common_tfm_builder_cfg,
949 "invalid": _common_tfm_invalid_configs + [
950 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800951 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800952 ("*", "toolchain_ARMCLANG.cmake", False, "1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800953 "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800954 ]
955 }
Matthew Hartfb6fd362020-03-04 21:03:59 +0000956
Dean Birchd6ce2c82020-05-13 13:16:15 +0100957# Configuration used in CI if armclang not available
Xinyu Zhangb708f572020-09-15 11:43:46 +0800958config_ci_gnuarm = {"seed_params": {
959 "tfm_platform": ["mps2/an521"],
960 "toolchain_file": ["toolchain_ARMCLANG.cmake",
961 "toolchain_GNUARM.cmake"],
962 "psa_api": [True, False],
963 "isolation_level": ["1", "2"],
964 "test_regression": [True, False],
965 "test_psa_api": ["OFF"],
966 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800967 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800968 "with_bl2": [True, False],
969 "with_ns": [True],
970 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800971 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800972 },
973 "common_params": _common_tfm_builder_cfg,
974 "invalid": _common_tfm_invalid_configs + [
975 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800976 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800977 ("*", "toolchain_ARMCLANG.cmake", False, "1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800978 "*", "*", "False", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800979 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800980 "*", "*", "*", "*", "*", "*") # Disable ARMCLANG for now
Xinyu Zhangb708f572020-09-15 11:43:46 +0800981 ]
982 }
Dean Birchd6ce2c82020-05-13 13:16:15 +0100983
Xinyu Zhangb708f572020-09-15 11:43:46 +0800984config_lava_debug = {"seed_params": {
985 "tfm_platform": ["mps2/an521", "mps2/an519"],
986 "toolchain_file": ["toolchain_GNUARM.cmake"],
987 "psa_api": [True, False],
988 "isolation_level": ["1", "2"],
989 "test_regression": [True],
990 "test_psa_api": ["OFF"],
991 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800992 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800993 "with_bl2": [True, False],
994 "with_ns": [True, False],
995 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800996 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800997 },
998 "common_params": _common_tfm_builder_cfg,
999 "invalid": _common_tfm_invalid_configs + [
1000 ("mps2/an521", "toolchain_GNUARM.cmake", True, "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001001 "*", "*", True, "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001002 ]
1003 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001004
Karl Zhangeea16ed2020-06-15 15:03:12 +08001005#GNU groups for external CI only
1006# Configure build manager to build the maximum number of configurations
1007config_tfm_test_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001008 "tfm_platform": ["mps2/an521", "musca_a",
1009 "musca_b1", "musca_s1"],
1010 "toolchain_file": ["toolchain_GNUARM.cmake"],
1011 "psa_api": [True, False],
1012 "isolation_level": ["1", "2"],
1013 "test_regression": [True, False],
1014 "test_psa_api": ["OFF"],
1015 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001016 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +08001017 "with_bl2": [True],
1018 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001019 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001020 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001021 },
1022 "common_params": _common_tfm_builder_cfg,
1023 "invalid": _common_tfm_invalid_configs + [
1024 ("musca_a", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001025 "*", "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001026 ("musca_b1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001027 "*", "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001028 ("musca_s1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001029 "*", "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001030 ]
1031 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001032
1033# Configure build manager to build the maximum number of configurations
1034config_tfm_test2_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001035 "tfm_platform": ["mps2/an519", "mps3/an524",
1036 "mps2/an539", "mps2/sse-200_aws"],
1037 "toolchain_file": ["toolchain_GNUARM.cmake"],
1038 "psa_api": [True, False],
1039 "isolation_level": ["1", "2"],
1040 "test_regression": [True, False],
1041 "test_psa_api": ["OFF"],
1042 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001043 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +08001044 "with_bl2": [True],
1045 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001046 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001047 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001048 },
1049 "common_params": _common_tfm_builder_cfg,
1050 "invalid": _common_tfm_invalid_configs + [
1051 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001052 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001053 ]
1054 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001055
1056# Configure build manager to build the maximum number of configurations
1057config_tfm_profile_gnu = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001058 "tfm_platform": ["mps2/an519", "mps2/an521",
1059 "musca_b1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001060 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001061 "psa_api": [True, False],
1062 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001063 "test_regression": [True, False],
1064 "test_psa_api": ["OFF"],
1065 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001066 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +08001067 "with_bl2": [True],
1068 "with_ns": [True],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001069 "profile": ["profile_small", "profile_medium"],
1070 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001071 },
1072 "common_params": _common_tfm_builder_cfg,
1073 "invalid": _common_tfm_invalid_configs + [
1074 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001075 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001076 ]
1077 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001078
1079# Configure build manager to build the maximum number of configurations
1080config_tfm_test_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001081 "tfm_platform": ["musca_b1"],
1082 "toolchain_file": ["toolchain_GNUARM.cmake"],
1083 "psa_api": [True, False],
1084 "isolation_level": ["1", "2"],
1085 "test_regression": [True, False],
1086 "test_psa_api": ["OFF"],
1087 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001088 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001089 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +08001090 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001091 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001092 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001093 },
1094 "common_params": _common_tfm_builder_cfg,
1095 "invalid": _common_tfm_invalid_configs + []
1096 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001097
1098# Configure build manager to build several combinations
1099config_PSA_API_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001100 "tfm_platform": ["mps2/an521", "musca_b1"],
1101 "toolchain_file": ["toolchain_GNUARM.cmake"],
1102 "psa_api": [True, False],
1103 "isolation_level": ["1", "2"],
1104 "test_regression": [False],
1105 "test_psa_api": ["CRYPTO",
1106 "PROTECTED_STORAGE",
1107 "INITIAL_ATTESTATION",
1108 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001109 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001110 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001111 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +08001112 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001113 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001114 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001115 },
1116 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001117 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001118 }
1119
1120# Configure build manager to build several combinations
1121config_PSA_FF_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001122 "tfm_platform": ["mps2/an521", "musca_b1"],
1123 "toolchain_file": ["toolchain_GNUARM.cmake"],
1124 "psa_api": [True],
1125 "isolation_level": ["1", "2"],
1126 "test_regression": [False],
1127 "test_psa_api": ["IPC"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001128 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001129 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001130 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +08001131 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001132 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001133 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001134 },
1135 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001136 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001137 }
1138
1139# Configure build manager to build several combinations
1140config_PSA_API_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001141 "tfm_platform": ["musca_b1"],
1142 "toolchain_file": ["toolchain_GNUARM.cmake"],
1143 "psa_api": [True, False],
1144 "isolation_level": ["1", "2"],
1145 "test_regression": [False],
1146 "test_psa_api": ["CRYPTO",
1147 "PROTECTED_STORAGE",
1148 "INITIAL_ATTESTATION",
1149 "INTERNAL_TRUSTED_STORAGE"],
1150 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001151 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001152 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +08001153 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001154 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001155 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001156 },
1157 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001158 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001159 }
1160
1161# Configure build manager to build several combinations
1162config_PSA_FF_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001163 "tfm_platform": ["musca_b1"],
1164 "toolchain_file": ["toolchain_GNUARM.cmake"],
1165 "psa_api": [True],
1166 "isolation_level": ["1", "2"],
1167 "test_regression": [False],
1168 "test_psa_api": ["IPC"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001169 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001170 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001171 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +08001172 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001173 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001174 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001175 },
1176 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001177 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001178 }
1179
1180# Configure build manager to build several combinations
1181config_PSOC64_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001182 "tfm_platform": ["cypress/psoc64"],
1183 "toolchain_file": ["toolchain_GNUARM.cmake"],
1184 "psa_api": [True],
1185 "isolation_level": ["1", "2"],
1186 "test_regression": [True],
1187 "test_psa_api": ["OFF"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001188 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001189 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001190 "with_bl2": [False],
1191 "with_ns": [True, False],
1192 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001193 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001194 },
1195 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001196 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001197 }
1198
1199# Configure build manager to build the maximum number of configurations
1200config_nightly_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001201 "tfm_platform": ["mps2/an521", "mps2/an519",
1202 "musca_a", "musca_b1", "musca_s1",
1203 "mps3/an524", "mps2/an539",
1204 "mps2/sse-200_aws", "cypress/psoc64"],
1205 "toolchain_file": ["toolchain_GNUARM.cmake"],
1206 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +08001207 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001208 "test_regression": [True, False],
1209 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +08001210 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001211 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001212 "with_bl2": [True, False],
1213 "with_ns": [True, False],
1214 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001215 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001216 },
1217 "common_params": _common_tfm_builder_cfg,
1218 "invalid": _common_tfm_invalid_configs + [
1219 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001220 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001221 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001222 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001223 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001224 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +08001225 ("mps2/an521", "*", "*", "*",
1226 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
1227 ("mps2/an519", "*", "*", "*",
1228 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
1229 ("musca_a", "*", "*", "*",
1230 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
1231 ("musca_b1", "*", "*", "*",
1232 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
1233 ("musca_s1", "*", "*", "*",
1234 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
1235 ("mps2/an539", "*", "*", "*",
1236 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
1237 ("mps3/an524", "*", "*", "*",
1238 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
1239 ("mps2/sse-200_aws", "*", "*", "*",
1240 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001241 ]
1242 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001243
1244# Configure build manager to build the maximum number of configurations
1245config_nightly_profile_gnu = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001246 "tfm_platform": ["mps2/an519", "mps2/an521",
1247 "musca_b1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001248 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001249 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +08001250 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001251 "test_regression": [True, False],
1252 "test_psa_api": ["OFF"],
1253 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001254 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001255 "with_bl2": [True, False],
1256 "with_ns": [True, False],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001257 "profile": ["profile_small", "profile_medium"],
1258 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001259 },
1260 "common_params": _common_tfm_builder_cfg,
1261 "invalid": _common_tfm_invalid_configs + [
1262 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001263 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001264 ]
1265 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001266
1267# Configure build manager to build several combinations
1268config_nightly_PSA_API_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001269 "tfm_platform": ["mps2/an521"],
1270 "toolchain_file": ["toolchain_GNUARM.cmake"],
1271 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +08001272 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001273 "test_regression": [False],
1274 "test_psa_api": ["CRYPTO",
1275 "PROTECTED_STORAGE",
1276 "INITIAL_ATTESTATION",
1277 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001278 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001279 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001280 "with_bl2": [True],
1281 "with_ns": [True, False],
1282 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001283 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001284 },
1285 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001286 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001287 }
1288
1289# Configure build manager to build several combinations
1290config_nightly_PSA_FF_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001291 "tfm_platform": ["mps2/an521"],
1292 "toolchain_file": ["toolchain_GNUARM.cmake"],
1293 "psa_api": [True],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +08001294 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001295 "test_regression": [False],
1296 "test_psa_api": ["IPC"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001297 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001298 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001299 "with_bl2": [True],
1300 "with_ns": [True, False],
1301 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001302 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001303 },
1304 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001305 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001306 }
1307
1308# Configure build manager to build the maximum number of configurations
1309config_nightly_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001310 "tfm_platform": ["musca_b1"],
1311 "toolchain_file": ["toolchain_GNUARM.cmake"],
1312 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +08001313 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001314 "test_regression": [True],
1315 "test_psa_api": ["OFF"],
1316 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001317 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001318 "with_bl2": [True],
1319 "with_ns": [True, False],
1320 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001321 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001322 },
1323 "common_params": _common_tfm_builder_cfg,
1324 "invalid": _common_tfm_invalid_configs + []
1325 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001326
1327# Configure build manager to build the maximum number of configurations
1328config_pp_test_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001329 "tfm_platform": ["mps2/an521", "mps2/an519",
1330 "musca_b1"],
Xinyu Zhangf1025b72020-09-28 17:10:57 +08001331 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001332 "psa_api": [True, False],
1333 "isolation_level": ["1", "2"],
1334 "test_regression": [True],
1335 "test_psa_api": ["OFF"],
1336 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001337 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001338 "with_bl2": [True],
1339 "with_ns": [True, False],
1340 "profile": ["", "profile_small"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001341 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001342 },
1343 "common_params": _common_tfm_builder_cfg,
1344 "invalid": _common_tfm_invalid_configs + [
1345 ("musca_b1", "*", "*", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001346 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001347 ("*", "*", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001348 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001349 ("*", "*", "*", "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001350 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001351 ]
1352 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001353
1354# Configure build manager to build the maximum number of configurations
1355config_pp_OTP_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001356 "tfm_platform": ["musca_b1"],
1357 "toolchain_file": ["toolchain_GNUARM.cmake"],
1358 "psa_api": [True, False],
1359 "isolation_level": ["1", "2"],
1360 "test_regression": [True],
1361 "test_psa_api": ["OFF"],
1362 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001363 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001364 "with_bl2": [True],
1365 "with_ns": [True, False],
1366 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001367 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001368 },
1369 "common_params": _common_tfm_builder_cfg,
1370 "invalid": _common_tfm_invalid_configs + []
1371 }
Karl Zhangeea16ed2020-06-15 15:03:12 +08001372
1373# Configure build manager to build several combinations
1374config_pp_PSA_API_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001375 "tfm_platform": ["mps2/an521"],
1376 "toolchain_file": ["toolchain_GNUARM.cmake"],
1377 "psa_api": [True],
1378 "isolation_level": ["2"],
1379 "test_regression": [False],
1380 "test_psa_api": ["IPC",
1381 "CRYPTO",
1382 "PROTECTED_STORAGE",
1383 "INITIAL_ATTESTATION",
1384 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001385 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001386 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001387 "with_bl2": [True],
1388 "with_ns": [True, False],
1389 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001390 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001391 },
1392 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001393 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001394 }
1395
1396# Configure build manager to build several combinations
1397config_pp_PSoC64_gnu = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001398 "tfm_platform": ["cypress/psoc64"],
1399 "toolchain_file": ["toolchain_GNUARM.cmake"],
1400 "psa_api": [True],
1401 "isolation_level": ["1", "2"],
1402 "test_regression": [True],
1403 "test_psa_api": ["OFF"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001404 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001405 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001406 "with_bl2": [False],
1407 "with_ns": [True, False],
1408 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001409 "partition_ps": ["ON"],
Karl Zhangeea16ed2020-06-15 15:03:12 +08001410 },
1411 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001412 "invalid": _common_tfm_invalid_configs + []
Karl Zhangeea16ed2020-06-15 15:03:12 +08001413 }
1414
Karl Zhangaff558a2020-05-15 14:28:23 +01001415_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001416 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001417 "tfm_test": config_tfm_test,
1418 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001419 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +01001420 "tfm_test_otp": config_tfm_test_OTP,
1421 "psa_api": config_PSA_API,
1422 "psa_api_otp": config_PSA_API_OTP,
1423 "psa_ff": config_PSA_FF,
1424 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001425 "tfm_psoc64": config_PSOC64,
1426
1427 #nightly test group
1428 "nightly_test": config_nightly,
1429 "nightly_profile": config_nightly_profile,
1430 "nightly_psa_api": config_nightly_PSA_API,
1431 "nightly_ff": config_nightly_PSA_FF,
1432 "nightly_otp": config_nightly_OTP,
1433
1434 #per patch test group
1435 "pp_test": config_pp_test,
1436 "pp_OTP": config_pp_OTP,
1437 "pp_PSA_API": config_pp_PSA_API,
1438 "pp_psoc64": config_pp_PSoC64,
1439
Karl Zhangeea16ed2020-06-15 15:03:12 +08001440 #GNU only configs against groups above
1441 #The combinations should be the same except the CLANG ones
1442 #release test group (GNU)
1443 "tfm_test_gnu": config_tfm_test_gnu,
1444 "tfm_test2_gnu": config_tfm_test2_gnu,
1445 "tfm_profile_gnu": config_tfm_profile_gnu,
1446 "tfm_test_otp_gnu": config_tfm_test_OTP_gnu,
1447 "psa_api_gnu": config_PSA_API_gnu,
1448 "psa_api_otp_gnu": config_PSA_API_OTP_gnu,
1449 "psa_ff_gnu": config_PSA_FF_gnu,
1450 "psa_ff_otp_gnu": config_PSA_FF_OTP_gnu,
1451 "tfm_psoc64_gnu": config_PSOC64_gnu,
1452
1453 #nightly test group (GNU)
1454 "nightly_test_gnu": config_nightly_gnu,
1455 "nightly_profile_gnu": config_nightly_profile_gnu,
1456 "nightly_psa_api_gnu": config_nightly_PSA_API_gnu,
1457 "nightly_ff_gnu": config_nightly_PSA_FF_gnu,
1458 "nightly_otp_gnu": config_nightly_OTP_gnu,
1459
1460 #per patch test group (GNU)
1461 "pp_test_gnu": config_pp_test_gnu,
1462 "pp_OTP_gnu": config_pp_OTP_gnu,
1463 "pp_PSA_API_gnu": config_pp_PSA_API_gnu,
1464 "pp_psoc64_gnu": config_pp_PSoC64_gnu,
1465
1466
Karl Zhang14573bc2020-06-08 09:23:21 +08001467 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001468 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001469
1470 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001471 "an539": config_AN539,
1472 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001473 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001474 "an521_psa_api": config_AN521_PSA_API,
1475 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001476 "an519": config_AN519,
1477 "musca_a": config_MUSCA_A,
1478 "musca_b1": config_MUSCA_B1,
Karl Zhangeffed972020-06-30 15:48:01 +08001479 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001480 "psoc64": config_PSOC64,
Minos Galanakisea421232019-06-20 17:11:28 +01001481 "ipc": config_IPC,
1482 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001483 "debug": config_debug,
Karl Zhangaff558a2020-05-15 14:28:23 +01001484 "release": config_release,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001485 "debug": config_debug,
Karl Zhang14573bc2020-06-08 09:23:21 +08001486
1487 #DevOps team test group
1488 "full_gnuarm": config_full_gnuarm,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001489 "lava_debug": config_lava_debug,
Dean Birchd6ce2c82020-05-13 13:16:15 +01001490 "ci": config_ci,
1491 "ci_gnuarm": config_ci_gnuarm}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001492
1493if __name__ == '__main__':
1494 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001495
Minos Galanakisea421232019-06-20 17:11:28 +01001496 # Default behavior is to export refference config when called
1497 _dir = os.getcwd()
1498 from utils import save_json
1499 for _cname, _cfg in _builtin_configs.items():
1500 _fname = os.path.join(_dir, _cname + ".json")
1501 print("Exporting config %s" % _fname)
1502 save_json(_fname, _cfg)