blob: 1502376c5bbbf134c1939064cedb0d404039ca8b [file] [log] [blame]
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001#!/usr/bin/env python3
2
3""" builtin_configs.py:
4
5 Default configuration files used as reference """
6
7from __future__ import print_function
8
9__copyright__ = """
10/*
Karl Zhangaff558a2020-05-15 14:28:23 +010011 * Copyright (c) 2018-2020, Arm Limited. All rights reserved.
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010012 *
13 * SPDX-License-Identifier: BSD-3-Clause
14 *
15 */
16 """
Karl Zhang08681e62020-10-30 13:56:03 +080017
18__author__ = "tf-m@lists.trustedfirmware.org"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010019__project__ = "Trusted Firmware-M Open CI"
Karl Zhang08681e62020-10-30 13:56:03 +080020__version__ = "1.2.0"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010021
Minos Galanakisea421232019-06-20 17:11:28 +010022# common parameters for tf-m build system
23# This configuration template will be passed into the tfm-builder module after
24# the template evaluation is converted to a command
25
26_common_tfm_builder_cfg = {
27 "config_type": "tf-m",
28 "codebase_root_dir": "tf-m",
29 # Order to which the variants are evaluated. This affects the name of
30 # variant configuration and the wildcard replacement logic in invalid
31 # configuration tuples
Xinyu Zhangb708f572020-09-15 11:43:46 +080032 "sort_order": ["tfm_platform",
33 "toolchain_file",
34 "psa_api",
35 "isolation_level",
36 "test_regression",
37 "test_psa_api",
Minos Galanakisea421232019-06-20 17:11:28 +010038 "cmake_build_type",
Xinyu Zhangb708f572020-09-15 11:43:46 +080039 "with_otp",
40 "with_bl2",
41 "with_ns",
Xinyu Zhang9fd74242020-10-22 11:30:50 +080042 "profile",
43 "partition_ps"],
Minos Galanakisea421232019-06-20 17:11:28 +010044
45 # Keys for the templace will come from the combinations of parameters
46 # provided in the seed dictionary.
47
Xinyu Zhangb708f572020-09-15 11:43:46 +080048 "config_template": "cmake " + \
49 "-DTFM_PLATFORM=%(tfm_platform)s " + \
Fathi Boudra324fee72020-11-20 10:31:12 +010050 "-DTFM_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(toolchain_file)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080051 "-DTFM_PSA_API=%(psa_api)s " + \
52 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
53 "-DTEST_NS=%(test_regression)s -DTEST_S=%(test_regression)s " + \
54 "-DTEST_PSA_API=%(test_psa_api)s " + \
55 "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \
56 "-DCRYPTO_HW_ACCELERATOR_OTP_STATE=%(with_otp)s " + \
57 "-DBL2=%(with_bl2)s " + \
58 "-DNS=%(with_ns)s " + \
59 "-DTFM_TEST_REPO_PATH=%(codebase_root_dir)s/../tf-m-tests " + \
60 "-DMBEDCRYPTO_PATH=%(codebase_root_dir)s/../mbedtls " + \
61 "-DPSA_ARCH_TESTS_PATH=%(codebase_root_dir)s/../psa-arch-tests " + \
62 "-DMCUBOOT_PATH=%(codebase_root_dir)s/../mcuboot " + \
63 "-DTFM_PROFILE=%(profile)s " + \
Xinyu Zhangb5bbb692020-10-26 10:14:33 +080064 "-DTFM_PARTITION_PROTECTED_STORAGE=%(partition_ps)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080065 "%(codebase_root_dir)s",
Karl Zhangaff558a2020-05-15 14:28:23 +010066
Minos Galanakisea421232019-06-20 17:11:28 +010067 # A small subset of string substitution params is allowed in commands.
68 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
69 # _tbm_target_platform_ with the paths set when building
70
Xinyu Zhangb708f572020-09-15 11:43:46 +080071 "artifact_capture_rex": (r'%(_tbm_build_dir_)s/bin'
Minos Galanakisea421232019-06-20 17:11:28 +010072 r'/(\w+\.(?:axf|bin|hex))$'),
73
74 # ALL commands will be executed for every build.
75 # Other keys will append extra commands when matching target_platform
Fathi Boudra83e4f292020-12-04 22:33:40 +010076 "build_cmds": {"all": ["cmake --build ./ -- install"],
Xinyu Zhang694eb492020-11-04 18:29:08 +080077 "musca_a": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080078 "%(_tbm_build_dir_)s/bin/"
79 "bl2.bin "
Minos Galanakisea421232019-06-20 17:11:28 +010080 "-Binary -offset 0x200000 "
Raef Coles543aab32020-12-03 11:12:02 +000081 "-fill 0xFF 0x200000 0x220000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080082 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080083 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +000084 "-Binary -offset 0x220000 "
85 "-fill 0xFF 0x220000 0xA00000 "
86 "-o %(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080087 "tfm.hex -Intel")],
Mark Horvath8d281cd2020-12-07 15:20:26 +010088 "musca_b1/sse_200": [("srec_cat "
89 "%(_tbm_build_dir_)s/bin/"
90 "bl2.bin "
91 "-Binary -offset 0xA000000 "
92 "-fill 0xFF 0xA000000 0xA020000 "
93 "%(_tbm_build_dir_)s/bin/"
94 "tfm_s_ns_signed.bin "
95 "-Binary -offset 0xA020000 "
96 "-fill 0xFF 0xA020000 0xA200000 "
97 "-o %(_tbm_build_dir_)s/bin/"
98 "tfm.hex -Intel")],
Xinyu Zhang694eb492020-11-04 18:29:08 +080099 "musca_s1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +0800100 "%(_tbm_build_dir_)s/bin/"
101 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +0800102 "-Binary -offset 0xA000000 "
Raef Coles543aab32020-12-03 11:12:02 +0000103 "-fill 0xFF 0xA000000 0xA020000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +0800104 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800105 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +0000106 "-Binary -offset 0xA020000 "
107 "-fill 0xFF 0xA020000 0xA200000 "
108 "-o %(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800109 "tfm.hex -Intel")]
Minos Galanakisea421232019-06-20 17:11:28 +0100110 },
111
112 # (Optional) If set will fail if those artefacts are missing post build
113 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800114 "%(_tbm_build_dir_)s/bin/"
115 "tfm_s.bin",
116 "%(_tbm_build_dir_)s/bin/"
117 "tfm_ns.bin"],
Xinyu Zhang694eb492020-11-04 18:29:08 +0800118 "musca_a": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800119 "%(_tbm_build_dir_)s/bin/"
120 "tfm.hex",
121 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800122 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800123 "%(_tbm_build_dir_)s/bin/"
124 "tfm_sign.bin"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100125 "musca_b1/sse_200": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800126 "%(_tbm_build_dir_)s/bin/"
127 "tfm.hex",
128 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800129 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800130 "%(_tbm_build_dir_)s/bin/"
131 "tfm_sign.bin"],
Xinyu Zhang694eb492020-11-04 18:29:08 +0800132 "musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800133 "%(_tbm_build_dir_)s/bin/"
134 "tfm.hex",
135 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800136 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800137 "%(_tbm_build_dir_)s/bin/"
138 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100139 }
140}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100141
Xinyu Zhangb708f572020-09-15 11:43:46 +0800142# List of all build configs that are impossible under all circumstances
143_common_tfm_invalid_configs = [
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800144 # LVL2 and LVL3 requires PSA api
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800145 ("*", "*", False, "2", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800146 ("*", "*", False, "3", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800147 # Regression requires NS
148 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*", "*"),
Xinyu Zhang11d66112020-11-04 15:38:29 +0800149 # psoc64 requires PSA api
150 ("cypress/psoc64", "*", False, "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800151 # No PSA_ACK with regression
152 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*", "*"),
153 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*", "*"),
154 ("*", "*", "*", "*", True, "PROTECTED_STORAGE", "*", "*", "*", "*", "*", "*"),
155 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*"),
156 ("*", "*", "*", "*", True, "INTERNAL_TRUSTED_STORAGE", "*", "*", "*", "*", "*", "*"),
157 # PSA_ACK requires NS
158 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*", "*"),
159 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*", "*"),
160 ("*", "*", "*", "*", "*", "PROTECTED_STORAGE", "*", "*", "*", False, "*", "*"),
161 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*", "*"),
162 ("*", "*", "*", "*", "*", "INTERNAL_TRUSTED_STORAGE", "*", "*", "*", False, "*", "*"),
163 # Musca requires BL2
164 ("musca_a", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100165 ("musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800166 ("musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
167 # psoc64 cannot use BL2
168 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800169 # psoc64 does not support Debug build type
170 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800171 # Musca b1 does not support Profile S
Mark Horvath8d281cd2020-12-07 15:20:26 +0100172 ("musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
173 # Musca B1 Secure Enclave requires PSA api, BL2, and supports only Isolation Level 1
174 ("musca_b1/secure_enclave", "*", False, "*", "*", "*", "*", "*", "*", "*", "*", "*"),
175 ("musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
176 ("musca_b1/secure_enclave", "*", "*", "2", "*", "*", "*", "*", "*", "*", "*", "*"),
177 # Musca B1 Secure Enclave does not support tests, profiles, NS side building
178 ("musca_b1/secure_enclave", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*"),
179 ("musca_b1/secure_enclave", "*", "*", "*", "*", "IPC", "*", "*", "*", "*", "*", "*"),
180 ("musca_b1/secure_enclave", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", "*", "*", "*"),
181 ("musca_b1/secure_enclave", "*", "*", "*", "*", "PROTECTED_STORAGE", "*", "*", "*", "*", "*", "*"),
182 ("musca_b1/secure_enclave", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*"),
183 ("musca_b1/secure_enclave", "*", "*", "*", "*", "INTERNAL_TRUSTED_STORAGE", "*", "*", "*", "*", "*", "*"),
184 ("musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
185 ("musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
186 ("musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", True, "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800187 # PARTITION_PS could be OFF only for Profile S and M
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800188 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800189 # PARTITION_PS should be OFF for Profile S
190 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800191 # Proile M only support for PSA_API
192 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
193 # Profile M only support for Isolation Level 2
194 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
Xinyu Zhange8de4512020-11-13 10:37:56 +0800195 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800196 # Profile S does not support PSA_API
197 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
198 # Profile S only supports Isolation Level 2
199 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800200 # Only AN521 and MUSCA_B1 support Isolation Level 3
201 ("mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
202 ("mps2/an539", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
203 ("mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
204 ("mps2/sse-200_aws", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
205 ("musca_a", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
206 ("musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
207 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100208 ("musca_b1/secure_enclave", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800209 ]
210
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100211# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100212config_AN539 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800213 "tfm_platform": ["mps2/an539"],
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"],
Minos Galanakisea421232019-06-20 17:11:28 +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"],
Minos Galanakisea421232019-06-20 17:11:28 +0100226 },
227 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800228 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100229 }
230
Karl Zhangaff558a2020-05-15 14:28:23 +0100231config_AN524 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800232 "tfm_platform": ["mps3/an524"],
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_AN521 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800251 "tfm_platform": ["mps2/an521"],
252 "toolchain_file": ["toolchain_GNUARM.cmake",
253 "toolchain_ARMCLANG.cmake"],
254 "psa_api": [True, False],
255 "isolation_level": ["1", "2"],
256 "test_regression": [True, False],
257 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100258 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800259 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800260 "with_bl2": [True, False],
261 "with_ns": [True, False],
262 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800263 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100264 },
265 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800266 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100267 }
268
Karl Zhangaff558a2020-05-15 14:28:23 +0100269config_PSA_API = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100270 "tfm_platform": ["mps2/an521", "musca_b1/sse_200", "musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800271 "toolchain_file": ["toolchain_GNUARM.cmake",
272 "toolchain_ARMCLANG.cmake"],
273 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800274 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800275 "test_regression": [False],
276 "test_psa_api": ["CRYPTO",
277 "PROTECTED_STORAGE",
278 "INITIAL_ATTESTATION",
279 "INTERNAL_TRUSTED_STORAGE"],
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_FF = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100292 "tfm_platform": ["mps2/an521", "musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800293 "toolchain_file": ["toolchain_GNUARM.cmake",
294 "toolchain_ARMCLANG.cmake"],
295 "psa_api": [True],
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": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100299 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800300 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800301 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800302 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800303 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800304 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100305 },
306 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800307 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100308 }
309
Karl Zhangaff558a2020-05-15 14:28:23 +0100310config_PSA_API_OTP = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100311 "tfm_platform": ["musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800312 "toolchain_file": ["toolchain_GNUARM.cmake",
313 "toolchain_ARMCLANG.cmake"],
314 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800315 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800316 "test_regression": [False],
317 "test_psa_api": ["CRYPTO",
318 "PROTECTED_STORAGE",
319 "INITIAL_ATTESTATION",
320 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100321 "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"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100327 },
328 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800329 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100330 }
Minos Galanakisea421232019-06-20 17:11:28 +0100331
Xinyu Zhangb708f572020-09-15 11:43:46 +0800332config_PSA_FF_OTP = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100333 "tfm_platform": ["musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800334 "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": [False],
339 "test_psa_api": ["IPC"],
340 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800341 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800342 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800343 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800344 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800345 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800346 },
347 "common_params": _common_tfm_builder_cfg,
348 "invalid": _common_tfm_invalid_configs + []
349 }
350
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800351config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800352 "tfm_platform": ["cypress/psoc64"],
353 "toolchain_file": ["toolchain_GNUARM.cmake",
354 "toolchain_ARMCLANG.cmake"],
355 "psa_api": [True],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800356 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800357 "test_regression": [True],
358 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800359 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800360 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800361 "with_bl2": [False],
362 "with_ns": [True, False],
363 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800364 "partition_ps": ["ON"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800365 },
366 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800367 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800368 }
369
Minos Galanakisea421232019-06-20 17:11:28 +0100370config_AN519 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800371 "tfm_platform": ["mps2/an519"],
372 "toolchain_file": ["toolchain_GNUARM.cmake",
373 "toolchain_ARMCLANG.cmake"],
374 "psa_api": [True, False],
375 "isolation_level": ["1", "2"],
376 "test_regression": [True, False],
377 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100378 "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"],
Minos Galanakisea421232019-06-20 17:11:28 +0100384 },
385 "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
Xinyu Zhangb708f572020-09-15 11:43:46 +0800389config_IPC = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100390 "tfm_platform": ["mps2/an521", "mps2/an519", "musca_a",
391 "musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800392 "toolchain_file": ["toolchain_GNUARM.cmake",
393 "toolchain_ARMCLANG.cmake"],
394 "psa_api": [True],
395 "isolation_level": ["1", "2"],
396 "test_regression": [True, False],
397 "test_psa_api": ["OFF"],
398 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800399 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800400 "with_bl2": [True, False],
401 "with_ns": [True, False],
402 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800403 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800404 },
Minos Galanakisea421232019-06-20 17:11:28 +0100405 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800406 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100407 }
408
Minos Galanakisea421232019-06-20 17:11:28 +0100409config_full = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800410 "tfm_platform": ["mps2/an521", "mps2/an519",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100411 "musca_a", "musca_b1/sse_200",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800412 "mps2/an539", "mps3/an524",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100413 "cypress/psoc64",
414 "musca_b1/secure_enclave"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800415 "toolchain_file": ["toolchain_GNUARM.cmake",
416 "toolchain_ARMCLANG.cmake"],
417 "psa_api": [True, False],
418 "isolation_level": ["1", "2"],
419 "test_regression": [True, False],
420 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800421 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800422 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800423 "with_bl2": [True, False],
424 "with_ns": [True, False],
425 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800426 "partition_ps": ["ON"],
Dean Birchd6ce2c82020-05-13 13:16:15 +0100427 },
428 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800429 "invalid": _common_tfm_invalid_configs + [
430 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800431 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800432 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800433 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800434 ("mps2/an521", "*", "*", "*",
435 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
436 ("mps2/an519", "*", "*", "*",
437 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
438 ("musca_a", "*", "*", "*",
439 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100440 ("musca_b1/sse_200", "*", "*", "*",
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800441 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
442 ("mps2/an539", "*", "*", "*",
443 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
444 ("mps3/an524", "*", "*", "*",
445 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800446 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800447 }
448
Karl Zhangaff558a2020-05-15 14:28:23 +0100449config_tfm_test = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800450 "tfm_platform": ["mps2/an521", "musca_a",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100451 "musca_b1/sse_200", "musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800452 "toolchain_file": ["toolchain_ARMCLANG.cmake",
453 "toolchain_GNUARM.cmake"],
454 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800455 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800456 "test_regression": [True, False],
457 "test_psa_api": ["OFF"],
458 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800459 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800460 "with_bl2": [True],
461 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800462 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800463 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800464 },
465 "common_params": _common_tfm_builder_cfg,
466 "invalid": _common_tfm_invalid_configs + []
467 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800468
Karl Zhangaff558a2020-05-15 14:28:23 +0100469config_tfm_test2 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800470 "tfm_platform": ["mps2/an519", "mps3/an524",
471 "mps2/an539", "mps2/sse-200_aws"],
472 "toolchain_file": ["toolchain_ARMCLANG.cmake",
473 "toolchain_GNUARM.cmake"],
474 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800475 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800476 "test_regression": [True, False],
477 "test_psa_api": ["OFF"],
478 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800479 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800480 "with_bl2": [True],
481 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800482 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800483 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800484 },
485 "common_params": _common_tfm_builder_cfg,
486 "invalid": _common_tfm_invalid_configs + [
487 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800488 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800489 ]
490 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100491
Karl Zhang14573bc2020-06-08 09:23:21 +0800492config_tfm_profile = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800493 "tfm_platform": ["mps2/an519", "mps2/an521",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100494 "musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800495 "toolchain_file": ["toolchain_ARMCLANG.cmake",
496 "toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800497 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800498 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800499 "test_regression": [True, False],
500 "test_psa_api": ["OFF"],
501 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800502 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800503 "with_bl2": [True],
504 "with_ns": [True],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800505 "profile": ["profile_small", "profile_medium"],
506 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800507 },
508 "common_params": _common_tfm_builder_cfg,
509 "invalid": _common_tfm_invalid_configs + [
510 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800511 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800512 ]
513 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800514
Karl Zhangaff558a2020-05-15 14:28:23 +0100515config_tfm_test_OTP = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100516 "tfm_platform": ["musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800517 "toolchain_file": ["toolchain_ARMCLANG.cmake",
518 "toolchain_GNUARM.cmake"],
519 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800520 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800521 "test_regression": [True, False],
522 "test_psa_api": ["OFF"],
523 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800524 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800525 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800526 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800527 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800528 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800529 },
530 "common_params": _common_tfm_builder_cfg,
531 "invalid": _common_tfm_invalid_configs + []
532 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100533
Minos Galanakisea421232019-06-20 17:11:28 +0100534config_MUSCA_A = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800535 "tfm_platform": ["musca_a"],
536 "toolchain_file": ["toolchain_ARMCLANG.cmake",
537 "toolchain_GNUARM.cmake"],
538 "psa_api": [True, False],
539 "isolation_level": ["1", "2"],
540 "test_regression": [True, False],
541 "test_psa_api": ["OFF"],
542 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800543 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800544 "with_bl2": [True],
545 "with_ns": [True, False],
546 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800547 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800548 },
549 "common_params": _common_tfm_builder_cfg,
550 "invalid": _common_tfm_invalid_configs + []
551 }
Minos Galanakisea421232019-06-20 17:11:28 +0100552
553config_MUSCA_B1 = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100554 "tfm_platform": ["musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800555 "toolchain_file": ["toolchain_ARMCLANG.cmake",
556 "toolchain_GNUARM.cmake"],
557 "psa_api": [True, False],
558 "isolation_level": ["1", "2"],
559 "test_regression": [True, False],
560 "test_psa_api": ["OFF"],
561 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800562 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800563 "with_bl2": [True],
564 "with_ns": [True, False],
565 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800566 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800567 },
568 "common_params": _common_tfm_builder_cfg,
569 "invalid": _common_tfm_invalid_configs + []
570 }
Minos Galanakisea421232019-06-20 17:11:28 +0100571
Mark Horvath8d281cd2020-12-07 15:20:26 +0100572config_MUSCA_B1_SE = {"seed_params": {
573 "tfm_platform": ["musca_b1/secure_enclave"],
574 "toolchain_file": ["toolchain_ARMCLANG.cmake",
575 "toolchain_GNUARM.cmake"],
576 "psa_api": [True],
577 "isolation_level": ["1"],
578 "test_regression": [False],
579 "test_psa_api": ["OFF"],
580 "cmake_build_type": ["Debug", "Release"],
581 "with_otp": ["off"],
582 "with_bl2": [True],
583 "with_ns": [False],
584 "profile": [""],
585 "partition_ps": ["ON"],
586 },
587 "common_params": _common_tfm_builder_cfg,
588 "invalid": _common_tfm_invalid_configs + []
589 }
590
Karl Zhangeffed972020-06-30 15:48:01 +0800591config_MUSCA_S1 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800592 "tfm_platform": ["musca_s1"],
593 "toolchain_file": ["toolchain_ARMCLANG.cmake",
594 "toolchain_GNUARM.cmake"],
595 "psa_api": [True, False],
596 "isolation_level": ["1", "2"],
597 "test_regression": [True, False],
598 "test_psa_api": ["OFF"],
599 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800600 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800601 "with_bl2": [True],
602 "with_ns": [True, False],
603 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800604 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800605 },
606 "common_params": _common_tfm_builder_cfg,
607 "invalid": _common_tfm_invalid_configs + []
608 }
Karl Zhangeffed972020-06-30 15:48:01 +0800609
Karl Zhangaff558a2020-05-15 14:28:23 +0100610config_release = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800611 "tfm_platform": ["mps2/an521", "mps2/an519",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100612 "musca_a", "musca_b1/sse_200", "musca_s1",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800613 "mps3/an524", "mps2/an539"],
614 "toolchain_file": ["toolchain_ARMCLANG.cmake",
615 "toolchain_GNUARM.cmake"],
616 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800617 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800618 "test_regression": [True, False],
619 "test_psa_api": ["OFF"],
620 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800621 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800622 "with_bl2": [True, False],
623 "with_ns": [True, False],
624 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800625 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800626 },
627 "common_params": _common_tfm_builder_cfg,
628 "invalid": _common_tfm_invalid_configs + [
629 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800630 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800631 ]
632 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100633
634# Configure build manager to build several combinations
635config_AN521_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800636 "tfm_platform": ["mps2/an521", "mps2/an519",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100637 "musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800638 "toolchain_file": ["toolchain_GNUARM.cmake",
639 "toolchain_ARMCLANG.cmake"],
640 "psa_api": [True, False],
641 "isolation_level": ["1", "2"],
642 "test_regression": [False],
643 "test_psa_api": ["IPC",
644 "CRYPTO",
645 "PROTECTED_STORAGE",
646 "INITIAL_ATTESTATION",
647 "INTERNAL_TRUSTED_STORAGE"],
648 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800649 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800650 "with_bl2": [True],
651 "with_ns": [True, False],
652 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800653 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100654 },
655 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800656 "invalid": _common_tfm_invalid_configs + [
657 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800658 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800659 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100660 }
661
Karl Zhangaff558a2020-05-15 14:28:23 +0100662config_AN521_PSA_IPC = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800663 "tfm_platform": ["mps2/an521", "mps2/an519",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100664 "musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800665 "toolchain_file": ["toolchain_GNUARM.cmake",
666 "toolchain_ARMCLANG.cmake"],
667 "psa_api": [True],
668 "isolation_level": ["1", "2"],
669 "test_regression": [False],
670 "test_psa_api": ["IPC"],
671 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800672 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800673 "with_bl2": [True],
674 "with_ns": [True, False],
675 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800676 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100677 },
678 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800679 "invalid": _common_tfm_invalid_configs + [
680 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800681 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800682 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100683 }
684
Karl Zhang14573bc2020-06-08 09:23:21 +0800685config_nightly = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800686 "tfm_platform": ["mps2/an521", "mps2/an519",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100687 "musca_a", "musca_b1/sse_200", "musca_s1",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800688 "mps3/an524", "mps2/an539",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100689 "mps2/sse-200_aws", "cypress/psoc64",
690 "musca_b1/secure_enclave"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800691 "toolchain_file": ["toolchain_GNUARM.cmake",
692 "toolchain_ARMCLANG.cmake"],
693 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800694 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800695 "test_regression": [True, False],
696 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800697 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800698 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800699 "with_bl2": [True],
700 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800701 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800702 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800703 },
704 "common_params": _common_tfm_builder_cfg,
705 "invalid": _common_tfm_invalid_configs + [
706 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800707 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800708 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800709 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800710 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800711 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800712 ("mps2/an521", "*", "*", "*",
713 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
714 ("mps2/an519", "*", "*", "*",
715 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
716 ("musca_a", "*", "*", "*",
717 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100718 ("musca_b1/sse_200", "*", "*", "*",
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800719 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
720 ("musca_s1", "*", "*", "*",
721 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
722 ("mps2/an539", "*", "*", "*",
723 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
724 ("mps3/an524", "*", "*", "*",
725 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
726 ("mps2/sse-200_aws", "*", "*", "*",
727 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800728 ]
729 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800730
Karl Zhang14573bc2020-06-08 09:23:21 +0800731config_nightly_profile = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800732 "tfm_platform": ["mps2/an519", "mps2/an521",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100733 "musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800734 "toolchain_file": ["toolchain_ARMCLANG.cmake",
735 "toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800736 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800737 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800738 "test_regression": [True, False],
739 "test_psa_api": ["OFF"],
740 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800741 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800742 "with_bl2": [True],
743 "with_ns": [True],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800744 "profile": ["profile_small", "profile_medium"],
745 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800746 },
747 "common_params": _common_tfm_builder_cfg,
748 "invalid": _common_tfm_invalid_configs + [
749 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800750 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800751 ]
752 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800753
Karl Zhang14573bc2020-06-08 09:23:21 +0800754config_nightly_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800755 "tfm_platform": ["mps2/an521"],
756 "toolchain_file": ["toolchain_GNUARM.cmake",
757 "toolchain_ARMCLANG.cmake"],
758 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800759 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800760 "test_regression": [False],
761 "test_psa_api": ["CRYPTO",
762 "PROTECTED_STORAGE",
763 "INITIAL_ATTESTATION",
764 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800765 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800766 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800767 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800768 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800769 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800770 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800771 },
772 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800773 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800774 }
775
Karl Zhang14573bc2020-06-08 09:23:21 +0800776config_nightly_PSA_FF = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800777 "tfm_platform": ["mps2/an521"],
778 "toolchain_file": ["toolchain_GNUARM.cmake",
779 "toolchain_ARMCLANG.cmake"],
780 "psa_api": [True],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800781 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800782 "test_regression": [False],
783 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800784 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800785 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800786 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800787 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800788 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800789 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800790 },
791 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800792 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800793 }
794
Karl Zhang14573bc2020-06-08 09:23:21 +0800795config_nightly_OTP = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100796 "tfm_platform": ["musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800797 "toolchain_file": ["toolchain_GNUARM.cmake",
798 "toolchain_ARMCLANG.cmake"],
799 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800800 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800801 "test_regression": [True],
802 "test_psa_api": ["OFF"],
803 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800804 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800805 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800806 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800807 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800808 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800809 },
810 "common_params": _common_tfm_builder_cfg,
811 "invalid": _common_tfm_invalid_configs + []
812 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800813
Karl Zhang14573bc2020-06-08 09:23:21 +0800814config_pp_test = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800815 "tfm_platform": ["mps2/an521", "mps2/an519",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100816 "musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800817 "toolchain_file": ["toolchain_GNUARM.cmake",
818 "toolchain_ARMCLANG.cmake"],
819 "psa_api": [True, False],
820 "isolation_level": ["1", "2"],
821 "test_regression": [True],
822 "test_psa_api": ["OFF"],
823 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800824 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800825 "with_bl2": [True],
826 "with_ns": [True, False],
827 "profile": ["", "profile_small"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800828 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800829 },
830 "common_params": _common_tfm_builder_cfg,
831 "invalid": _common_tfm_invalid_configs + [
Mark Horvath8d281cd2020-12-07 15:20:26 +0100832 ("musca_b1/sse_200", "*", "*", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800833 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800834 ("*", "*", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800835 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800836 ("*", "*", "*", "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800837 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800838 ]
839 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800840
Karl Zhang14573bc2020-06-08 09:23:21 +0800841config_pp_OTP = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100842 "tfm_platform": ["musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800843 "toolchain_file": ["toolchain_GNUARM.cmake"],
844 "psa_api": [True, False],
845 "isolation_level": ["1", "2"],
846 "test_regression": [True],
847 "test_psa_api": ["OFF"],
848 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800849 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800850 "with_bl2": [True],
851 "with_ns": [True, False],
852 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800853 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800854 },
855 "common_params": _common_tfm_builder_cfg,
856 "invalid": _common_tfm_invalid_configs + []
857 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800858
859# Configure build manager to build several combinations
860config_pp_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800861 "tfm_platform": ["mps2/an521"],
862 "toolchain_file": ["toolchain_GNUARM.cmake"],
863 "psa_api": [True],
864 "isolation_level": ["2"],
865 "test_regression": [False],
866 "test_psa_api": ["IPC",
867 "CRYPTO",
868 "PROTECTED_STORAGE",
869 "INITIAL_ATTESTATION",
870 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800871 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800872 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800873 "with_bl2": [True],
874 "with_ns": [True, False],
875 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800876 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800877 },
878 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800879 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800880 }
881
Karl Zhang14573bc2020-06-08 09:23:21 +0800882config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800883 "tfm_platform": ["cypress/psoc64"],
884 "toolchain_file": ["toolchain_GNUARM.cmake"],
885 "psa_api": [True],
886 "isolation_level": ["1", "2"],
887 "test_regression": [True],
888 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800889 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800890 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800891 "with_bl2": [False],
892 "with_ns": [True, False],
893 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800894 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800895 },
896 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800897 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800898 }
899
Minos Galanakisea421232019-06-20 17:11:28 +0100900# Configruation used for document building
901config_doxygen = {"common_params": {
902 "config_type": "tf-m_documents",
903 "codebase_root_dir": "tf-m",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800904 "build_cmds": {"all": ["-DTFM_PLATFORM=mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +0100905 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +0100906 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +0100907 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800908 "cmake --build ./ -- docs"]},
909 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
910 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +0100911 r'/(\w+\.(?:html|md|pdf))$',
912 },
Xinyu Zhangb708f572020-09-15 11:43:46 +0800913 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100914 }
915
Karl Zhangaff558a2020-05-15 14:28:23 +0100916# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +0100917config_debug = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800918 "tfm_platform": ["mps2/an521"],
919 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
920 "psa_api": [False],
921 "isolation_level": ["1"],
922 "test_regression": [False],
923 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100924 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800925 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800926 "with_bl2": [True],
927 "with_ns": [True],
928 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800929 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +0100930 },
931 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800932 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100933 }
934
Dean Birch4c6ad622020-03-13 11:28:03 +0000935# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +0800936config_ci = {"seed_params": {
937 "tfm_platform": ["mps2/an521"],
938 "toolchain_file": ["toolchain_ARMCLANG.cmake",
939 "toolchain_GNUARM.cmake"],
940 "psa_api": [True, False],
941 "isolation_level": ["1", "2"],
942 "test_regression": [True, False],
943 "test_psa_api": ["OFF"],
944 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800945 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800946 "with_bl2": [True, False],
947 "with_ns": [True],
948 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800949 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800950 },
951 "common_params": _common_tfm_builder_cfg,
952 "invalid": _common_tfm_invalid_configs + [
953 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800954 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800955 ("*", "toolchain_ARMCLANG.cmake", False, "1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800956 "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800957 ]
958 }
Matthew Hartfb6fd362020-03-04 21:03:59 +0000959
Xinyu Zhangb708f572020-09-15 11:43:46 +0800960config_lava_debug = {"seed_params": {
961 "tfm_platform": ["mps2/an521", "mps2/an519"],
962 "toolchain_file": ["toolchain_GNUARM.cmake"],
963 "psa_api": [True, False],
964 "isolation_level": ["1", "2"],
965 "test_regression": [True],
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, False],
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 ("mps2/an521", "toolchain_GNUARM.cmake", True, "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800977 "*", "*", True, "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +0800978 ]
979 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000980
Karl Zhangaff558a2020-05-15 14:28:23 +0100981_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +0800982 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +0100983 "tfm_test": config_tfm_test,
984 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +0800985 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +0100986 "tfm_test_otp": config_tfm_test_OTP,
987 "psa_api": config_PSA_API,
988 "psa_api_otp": config_PSA_API_OTP,
989 "psa_ff": config_PSA_FF,
990 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +0800991 "tfm_psoc64": config_PSOC64,
992
993 #nightly test group
994 "nightly_test": config_nightly,
995 "nightly_profile": config_nightly_profile,
996 "nightly_psa_api": config_nightly_PSA_API,
997 "nightly_ff": config_nightly_PSA_FF,
998 "nightly_otp": config_nightly_OTP,
999
1000 #per patch test group
1001 "pp_test": config_pp_test,
1002 "pp_OTP": config_pp_OTP,
1003 "pp_PSA_API": config_pp_PSA_API,
1004 "pp_psoc64": config_pp_PSoC64,
1005
1006 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001007 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001008
1009 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001010 "an539": config_AN539,
1011 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001012 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001013 "an521_psa_api": config_AN521_PSA_API,
1014 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001015 "an519": config_AN519,
1016 "musca_a": config_MUSCA_A,
1017 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001018 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001019 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001020 "psoc64": config_PSOC64,
Minos Galanakisea421232019-06-20 17:11:28 +01001021 "ipc": config_IPC,
1022 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001023 "debug": config_debug,
Karl Zhangaff558a2020-05-15 14:28:23 +01001024 "release": config_release,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001025 "debug": config_debug,
Karl Zhang14573bc2020-06-08 09:23:21 +08001026
1027 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001028 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001029 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001030
1031if __name__ == '__main__':
1032 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001033
Minos Galanakisea421232019-06-20 17:11:28 +01001034 # Default behavior is to export refference config when called
1035 _dir = os.getcwd()
1036 from utils import save_json
1037 for _cname, _cfg in _builtin_configs.items():
1038 _fname = os.path.join(_dir, _cname + ".json")
1039 print("Exporting config %s" % _fname)
1040 save_json(_fname, _cfg)