blob: ba90a69410498a2efc42f8cde736e7505e2e3588 [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 Zhang5d2778b2021-01-25 11:11:39 +080065 "-DTFM_SPM_LOG_LEVEL=TFM_SPM_LOG_LEVEL_DEBUG "
Xinyu Zhangb708f572020-09-15 11:43:46 +080066 "%(codebase_root_dir)s",
Karl Zhangaff558a2020-05-15 14:28:23 +010067
Minos Galanakisea421232019-06-20 17:11:28 +010068 # A small subset of string substitution params is allowed in commands.
69 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
70 # _tbm_target_platform_ with the paths set when building
71
Xinyu Zhangb708f572020-09-15 11:43:46 +080072 "artifact_capture_rex": (r'%(_tbm_build_dir_)s/bin'
Minos Galanakisea421232019-06-20 17:11:28 +010073 r'/(\w+\.(?:axf|bin|hex))$'),
74
75 # ALL commands will be executed for every build.
76 # Other keys will append extra commands when matching target_platform
Fathi Boudra83e4f292020-12-04 22:33:40 +010077 "build_cmds": {"all": ["cmake --build ./ -- install"],
Xinyu Zhang694eb492020-11-04 18:29:08 +080078 "musca_a": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080079 "%(_tbm_build_dir_)s/bin/"
80 "bl2.bin "
Minos Galanakisea421232019-06-20 17:11:28 +010081 "-Binary -offset 0x200000 "
Raef Coles543aab32020-12-03 11:12:02 +000082 "-fill 0xFF 0x200000 0x220000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080083 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080084 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +000085 "-Binary -offset 0x220000 "
86 "-fill 0xFF 0x220000 0xA00000 "
87 "-o %(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080088 "tfm.hex -Intel")],
Mark Horvath8d281cd2020-12-07 15:20:26 +010089 "musca_b1/sse_200": [("srec_cat "
90 "%(_tbm_build_dir_)s/bin/"
91 "bl2.bin "
92 "-Binary -offset 0xA000000 "
93 "-fill 0xFF 0xA000000 0xA020000 "
94 "%(_tbm_build_dir_)s/bin/"
95 "tfm_s_ns_signed.bin "
96 "-Binary -offset 0xA020000 "
97 "-fill 0xFF 0xA020000 0xA200000 "
98 "-o %(_tbm_build_dir_)s/bin/"
99 "tfm.hex -Intel")],
Xinyu Zhang694eb492020-11-04 18:29:08 +0800100 "musca_s1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +0800101 "%(_tbm_build_dir_)s/bin/"
102 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +0800103 "-Binary -offset 0xA000000 "
Raef Coles543aab32020-12-03 11:12:02 +0000104 "-fill 0xFF 0xA000000 0xA020000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +0800105 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800106 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +0000107 "-Binary -offset 0xA020000 "
108 "-fill 0xFF 0xA020000 0xA200000 "
109 "-o %(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800110 "tfm.hex -Intel")]
Minos Galanakisea421232019-06-20 17:11:28 +0100111 },
112
113 # (Optional) If set will fail if those artefacts are missing post build
114 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800115 "%(_tbm_build_dir_)s/bin/"
116 "tfm_s.bin",
117 "%(_tbm_build_dir_)s/bin/"
118 "tfm_ns.bin"],
Xinyu Zhang694eb492020-11-04 18:29:08 +0800119 "musca_a": [
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"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100126 "musca_b1/sse_200": [
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"],
Xinyu Zhang694eb492020-11-04 18:29:08 +0800133 "musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800134 "%(_tbm_build_dir_)s/bin/"
135 "tfm.hex",
136 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800137 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800138 "%(_tbm_build_dir_)s/bin/"
139 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100140 }
141}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100142
Xinyu Zhangb708f572020-09-15 11:43:46 +0800143# List of all build configs that are impossible under all circumstances
144_common_tfm_invalid_configs = [
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800145 # LVL2 and LVL3 requires PSA api
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800146 ("*", "*", False, "2", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800147 ("*", "*", False, "3", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800148 # Regression requires NS
149 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*", "*"),
Xinyu Zhang11d66112020-11-04 15:38:29 +0800150 # psoc64 requires PSA api
151 ("cypress/psoc64", "*", False, "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800152 # No PSA_ACK with regression
153 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*", "*"),
154 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*", "*"),
155 ("*", "*", "*", "*", True, "PROTECTED_STORAGE", "*", "*", "*", "*", "*", "*"),
156 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*"),
157 ("*", "*", "*", "*", True, "INTERNAL_TRUSTED_STORAGE", "*", "*", "*", "*", "*", "*"),
158 # PSA_ACK requires NS
159 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*", "*"),
160 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*", "*"),
161 ("*", "*", "*", "*", "*", "PROTECTED_STORAGE", "*", "*", "*", False, "*", "*"),
162 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*", "*"),
163 ("*", "*", "*", "*", "*", "INTERNAL_TRUSTED_STORAGE", "*", "*", "*", False, "*", "*"),
164 # Musca requires BL2
165 ("musca_a", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100166 ("musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800167 ("musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
168 # psoc64 cannot use BL2
169 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800170 # psoc64 does not support Debug build type
171 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800172 # Musca b1 does not support Profile S
Mark Horvath8d281cd2020-12-07 15:20:26 +0100173 ("musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
174 # Musca B1 Secure Enclave requires PSA api, BL2, and supports only Isolation Level 1
175 ("musca_b1/secure_enclave", "*", False, "*", "*", "*", "*", "*", "*", "*", "*", "*"),
176 ("musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*"),
177 ("musca_b1/secure_enclave", "*", "*", "2", "*", "*", "*", "*", "*", "*", "*", "*"),
178 # Musca B1 Secure Enclave does not support tests, profiles, NS side building
179 ("musca_b1/secure_enclave", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*"),
180 ("musca_b1/secure_enclave", "*", "*", "*", "*", "IPC", "*", "*", "*", "*", "*", "*"),
181 ("musca_b1/secure_enclave", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", "*", "*", "*"),
182 ("musca_b1/secure_enclave", "*", "*", "*", "*", "PROTECTED_STORAGE", "*", "*", "*", "*", "*", "*"),
183 ("musca_b1/secure_enclave", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*"),
184 ("musca_b1/secure_enclave", "*", "*", "*", "*", "INTERNAL_TRUSTED_STORAGE", "*", "*", "*", "*", "*", "*"),
185 ("musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
186 ("musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
187 ("musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", True, "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800188 # PARTITION_PS could be OFF only for Profile S and M
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800189 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800190 # PARTITION_PS should be OFF for Profile S
191 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800192 # Proile M only support for PSA_API
193 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
194 # Profile M only support for Isolation Level 2
195 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
Xinyu Zhange8de4512020-11-13 10:37:56 +0800196 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800197 # Profile S does not support PSA_API
198 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
199 # Profile S only supports Isolation Level 2
200 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800201 # Only AN521 and MUSCA_B1 support Isolation Level 3
202 ("mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800203 ("mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800204 ("musca_a", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
205 ("musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
206 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100207 ("musca_b1/secure_enclave", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800208 ]
209
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100210# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100211config_AN539 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800212 "tfm_platform": ["mps2/an539"],
213 "toolchain_file": ["toolchain_GNUARM.cmake",
214 "toolchain_ARMCLANG.cmake"],
215 "psa_api": [True, False],
216 "isolation_level": ["1", "2"],
217 "test_regression": [True, False],
218 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100219 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800220 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800221 "with_bl2": [True, False],
222 "with_ns": [True, False],
223 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800224 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +0100225 },
226 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800227 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100228 }
229
Karl Zhangaff558a2020-05-15 14:28:23 +0100230config_AN524 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800231 "tfm_platform": ["mps3/an524"],
232 "toolchain_file": ["toolchain_GNUARM.cmake",
233 "toolchain_ARMCLANG.cmake"],
234 "psa_api": [True, False],
235 "isolation_level": ["1", "2"],
236 "test_regression": [True, False],
237 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100238 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800239 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800240 "with_bl2": [True, False],
241 "with_ns": [True, False],
242 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800243 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100244 },
245 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800246 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100247 }
248
Karl Zhangaff558a2020-05-15 14:28:23 +0100249config_AN521 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800250 "tfm_platform": ["mps2/an521"],
251 "toolchain_file": ["toolchain_GNUARM.cmake",
252 "toolchain_ARMCLANG.cmake"],
253 "psa_api": [True, False],
254 "isolation_level": ["1", "2"],
255 "test_regression": [True, False],
256 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100257 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800258 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800259 "with_bl2": [True, False],
260 "with_ns": [True, False],
261 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800262 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100263 },
264 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800265 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100266 }
267
Karl Zhangaff558a2020-05-15 14:28:23 +0100268config_PSA_API = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100269 "tfm_platform": ["mps2/an521", "musca_b1/sse_200", "musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800270 "toolchain_file": ["toolchain_GNUARM.cmake",
271 "toolchain_ARMCLANG.cmake"],
272 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800273 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800274 "test_regression": [False],
275 "test_psa_api": ["CRYPTO",
276 "PROTECTED_STORAGE",
277 "INITIAL_ATTESTATION",
278 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100279 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800280 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800281 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800282 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800283 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800284 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100285 },
286 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800287 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100288 }
289
Karl Zhangaff558a2020-05-15 14:28:23 +0100290config_PSA_FF = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100291 "tfm_platform": ["mps2/an521", "musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800292 "toolchain_file": ["toolchain_GNUARM.cmake",
293 "toolchain_ARMCLANG.cmake"],
294 "psa_api": [True],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800295 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800296 "test_regression": [False],
297 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100298 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800299 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800300 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800301 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800302 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800303 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100304 },
305 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800306 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100307 }
308
Karl Zhangaff558a2020-05-15 14:28:23 +0100309config_PSA_API_OTP = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100310 "tfm_platform": ["musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800311 "toolchain_file": ["toolchain_GNUARM.cmake",
312 "toolchain_ARMCLANG.cmake"],
313 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800314 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800315 "test_regression": [False],
316 "test_psa_api": ["CRYPTO",
317 "PROTECTED_STORAGE",
318 "INITIAL_ATTESTATION",
319 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100320 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800321 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800322 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800323 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800324 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800325 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100326 },
327 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800328 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100329 }
Minos Galanakisea421232019-06-20 17:11:28 +0100330
Xinyu Zhangb708f572020-09-15 11:43:46 +0800331config_PSA_FF_OTP = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100332 "tfm_platform": ["musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800333 "toolchain_file": ["toolchain_GNUARM.cmake",
334 "toolchain_ARMCLANG.cmake"],
335 "psa_api": [True],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800336 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800337 "test_regression": [False],
338 "test_psa_api": ["IPC"],
339 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800340 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800341 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800342 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800343 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800344 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800345 },
346 "common_params": _common_tfm_builder_cfg,
347 "invalid": _common_tfm_invalid_configs + []
348 }
349
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800350config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800351 "tfm_platform": ["cypress/psoc64"],
352 "toolchain_file": ["toolchain_GNUARM.cmake",
353 "toolchain_ARMCLANG.cmake"],
354 "psa_api": [True],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800355 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800356 "test_regression": [True],
357 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800358 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800359 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800360 "with_bl2": [False],
361 "with_ns": [True, False],
362 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800363 "partition_ps": ["ON"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800364 },
365 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800366 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800367 }
368
Minos Galanakisea421232019-06-20 17:11:28 +0100369config_AN519 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800370 "tfm_platform": ["mps2/an519"],
371 "toolchain_file": ["toolchain_GNUARM.cmake",
372 "toolchain_ARMCLANG.cmake"],
373 "psa_api": [True, False],
374 "isolation_level": ["1", "2"],
375 "test_regression": [True, False],
376 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100377 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800378 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800379 "with_bl2": [True, False],
380 "with_ns": [True, False],
381 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800382 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +0100383 },
384 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800385 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100386 }
387
Xinyu Zhangb708f572020-09-15 11:43:46 +0800388config_IPC = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100389 "tfm_platform": ["mps2/an521", "mps2/an519", "musca_a",
390 "musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800391 "toolchain_file": ["toolchain_GNUARM.cmake",
392 "toolchain_ARMCLANG.cmake"],
393 "psa_api": [True],
394 "isolation_level": ["1", "2"],
395 "test_regression": [True, False],
396 "test_psa_api": ["OFF"],
397 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800398 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800399 "with_bl2": [True, False],
400 "with_ns": [True, False],
401 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800402 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800403 },
Minos Galanakisea421232019-06-20 17:11:28 +0100404 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800405 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100406 }
407
Minos Galanakisea421232019-06-20 17:11:28 +0100408config_full = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800409 "tfm_platform": ["mps2/an521", "mps2/an519",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100410 "musca_a", "musca_b1/sse_200",
Karl Zhang6919ff62021-01-05 14:17:44 +0800411 "mps3/an524", "cypress/psoc64",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100412 "musca_b1/secure_enclave"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800413 "toolchain_file": ["toolchain_GNUARM.cmake",
414 "toolchain_ARMCLANG.cmake"],
415 "psa_api": [True, False],
416 "isolation_level": ["1", "2"],
417 "test_regression": [True, False],
418 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800419 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800420 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800421 "with_bl2": [True, False],
422 "with_ns": [True, False],
423 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800424 "partition_ps": ["ON"],
Dean Birchd6ce2c82020-05-13 13:16:15 +0100425 },
426 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800427 "invalid": _common_tfm_invalid_configs + [
428 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800429 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800430 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800431 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800432 ("mps2/an521", "*", "*", "*",
433 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
434 ("mps2/an519", "*", "*", "*",
435 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
436 ("musca_a", "*", "*", "*",
437 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100438 ("musca_b1/sse_200", "*", "*", "*",
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800439 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800440 ("mps3/an524", "*", "*", "*",
441 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800442 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800443 }
444
Karl Zhangaff558a2020-05-15 14:28:23 +0100445config_tfm_test = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800446 "tfm_platform": ["mps2/an521", "musca_a",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100447 "musca_b1/sse_200", "musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800448 "toolchain_file": ["toolchain_ARMCLANG.cmake",
449 "toolchain_GNUARM.cmake"],
450 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800451 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800452 "test_regression": [True, False],
453 "test_psa_api": ["OFF"],
454 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800455 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800456 "with_bl2": [True],
457 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800458 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800459 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800460 },
461 "common_params": _common_tfm_builder_cfg,
462 "invalid": _common_tfm_invalid_configs + []
463 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800464
Karl Zhangaff558a2020-05-15 14:28:23 +0100465config_tfm_test2 = {"seed_params": {
Karl Zhang6919ff62021-01-05 14:17:44 +0800466 "tfm_platform": ["mps2/an519", "mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800467 "toolchain_file": ["toolchain_ARMCLANG.cmake",
468 "toolchain_GNUARM.cmake"],
469 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800470 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800471 "test_regression": [True, False],
472 "test_psa_api": ["OFF"],
473 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800474 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800475 "with_bl2": [True],
476 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800477 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800478 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800479 },
480 "common_params": _common_tfm_builder_cfg,
481 "invalid": _common_tfm_invalid_configs + [
482 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800483 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800484 ]
485 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100486
Karl Zhang14573bc2020-06-08 09:23:21 +0800487config_tfm_profile = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800488 "tfm_platform": ["mps2/an519", "mps2/an521",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100489 "musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800490 "toolchain_file": ["toolchain_ARMCLANG.cmake",
491 "toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800492 "psa_api": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800493 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800494 "test_regression": [True, False],
495 "test_psa_api": ["OFF"],
496 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800497 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800498 "with_bl2": [True],
499 "with_ns": [True],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800500 "profile": ["profile_small", "profile_medium"],
501 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800502 },
503 "common_params": _common_tfm_builder_cfg,
504 "invalid": _common_tfm_invalid_configs + [
505 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800506 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800507 ]
508 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800509
Karl Zhangaff558a2020-05-15 14:28:23 +0100510config_tfm_test_OTP = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100511 "tfm_platform": ["musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800512 "toolchain_file": ["toolchain_ARMCLANG.cmake",
513 "toolchain_GNUARM.cmake"],
514 "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": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800520 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800521 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800522 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800523 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800524 },
525 "common_params": _common_tfm_builder_cfg,
526 "invalid": _common_tfm_invalid_configs + []
527 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100528
Minos Galanakisea421232019-06-20 17:11:28 +0100529config_MUSCA_A = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800530 "tfm_platform": ["musca_a"],
531 "toolchain_file": ["toolchain_ARMCLANG.cmake",
532 "toolchain_GNUARM.cmake"],
533 "psa_api": [True, False],
534 "isolation_level": ["1", "2"],
535 "test_regression": [True, False],
536 "test_psa_api": ["OFF"],
537 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800538 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800539 "with_bl2": [True],
540 "with_ns": [True, False],
541 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800542 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800543 },
544 "common_params": _common_tfm_builder_cfg,
545 "invalid": _common_tfm_invalid_configs + []
546 }
Minos Galanakisea421232019-06-20 17:11:28 +0100547
548config_MUSCA_B1 = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100549 "tfm_platform": ["musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800550 "toolchain_file": ["toolchain_ARMCLANG.cmake",
551 "toolchain_GNUARM.cmake"],
552 "psa_api": [True, False],
553 "isolation_level": ["1", "2"],
554 "test_regression": [True, False],
555 "test_psa_api": ["OFF"],
556 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800557 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800558 "with_bl2": [True],
559 "with_ns": [True, False],
560 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800561 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800562 },
563 "common_params": _common_tfm_builder_cfg,
564 "invalid": _common_tfm_invalid_configs + []
565 }
Minos Galanakisea421232019-06-20 17:11:28 +0100566
Mark Horvath8d281cd2020-12-07 15:20:26 +0100567config_MUSCA_B1_SE = {"seed_params": {
568 "tfm_platform": ["musca_b1/secure_enclave"],
569 "toolchain_file": ["toolchain_ARMCLANG.cmake",
570 "toolchain_GNUARM.cmake"],
571 "psa_api": [True],
572 "isolation_level": ["1"],
573 "test_regression": [False],
574 "test_psa_api": ["OFF"],
575 "cmake_build_type": ["Debug", "Release"],
576 "with_otp": ["off"],
577 "with_bl2": [True],
578 "with_ns": [False],
579 "profile": [""],
580 "partition_ps": ["ON"],
581 },
582 "common_params": _common_tfm_builder_cfg,
583 "invalid": _common_tfm_invalid_configs + []
584 }
585
Karl Zhangeffed972020-06-30 15:48:01 +0800586config_MUSCA_S1 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800587 "tfm_platform": ["musca_s1"],
588 "toolchain_file": ["toolchain_ARMCLANG.cmake",
589 "toolchain_GNUARM.cmake"],
590 "psa_api": [True, False],
591 "isolation_level": ["1", "2"],
592 "test_regression": [True, False],
593 "test_psa_api": ["OFF"],
594 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800595 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800596 "with_bl2": [True],
597 "with_ns": [True, False],
598 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800599 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800600 },
601 "common_params": _common_tfm_builder_cfg,
602 "invalid": _common_tfm_invalid_configs + []
603 }
Karl Zhangeffed972020-06-30 15:48:01 +0800604
Karl Zhangaff558a2020-05-15 14:28:23 +0100605config_release = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800606 "tfm_platform": ["mps2/an521", "mps2/an519",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100607 "musca_a", "musca_b1/sse_200", "musca_s1",
Karl Zhang6919ff62021-01-05 14:17:44 +0800608 "mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800609 "toolchain_file": ["toolchain_ARMCLANG.cmake",
610 "toolchain_GNUARM.cmake"],
611 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800612 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800613 "test_regression": [True, False],
614 "test_psa_api": ["OFF"],
615 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800616 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800617 "with_bl2": [True, False],
618 "with_ns": [True, False],
619 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800620 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800621 },
622 "common_params": _common_tfm_builder_cfg,
623 "invalid": _common_tfm_invalid_configs + [
624 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800625 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800626 ]
627 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100628
629# Configure build manager to build several combinations
630config_AN521_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800631 "tfm_platform": ["mps2/an521", "mps2/an519",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100632 "musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800633 "toolchain_file": ["toolchain_GNUARM.cmake",
634 "toolchain_ARMCLANG.cmake"],
635 "psa_api": [True, False],
636 "isolation_level": ["1", "2"],
637 "test_regression": [False],
638 "test_psa_api": ["IPC",
639 "CRYPTO",
640 "PROTECTED_STORAGE",
641 "INITIAL_ATTESTATION",
642 "INTERNAL_TRUSTED_STORAGE"],
643 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800644 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800645 "with_bl2": [True],
646 "with_ns": [True, False],
647 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800648 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100649 },
650 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800651 "invalid": _common_tfm_invalid_configs + [
652 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800653 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800654 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100655 }
656
Karl Zhangaff558a2020-05-15 14:28:23 +0100657config_AN521_PSA_IPC = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800658 "tfm_platform": ["mps2/an521", "mps2/an519",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100659 "musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800660 "toolchain_file": ["toolchain_GNUARM.cmake",
661 "toolchain_ARMCLANG.cmake"],
662 "psa_api": [True],
663 "isolation_level": ["1", "2"],
664 "test_regression": [False],
665 "test_psa_api": ["IPC"],
666 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800667 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800668 "with_bl2": [True],
669 "with_ns": [True, False],
670 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800671 "partition_ps": ["ON"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100672 },
673 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800674 "invalid": _common_tfm_invalid_configs + [
675 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800676 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800677 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100678 }
679
Karl Zhang14573bc2020-06-08 09:23:21 +0800680config_nightly = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800681 "tfm_platform": ["mps2/an521", "mps2/an519",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100682 "musca_a", "musca_b1/sse_200", "musca_s1",
Karl Zhang6919ff62021-01-05 14:17:44 +0800683 "mps3/an524", "cypress/psoc64",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100684 "musca_b1/secure_enclave"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800685 "toolchain_file": ["toolchain_GNUARM.cmake",
686 "toolchain_ARMCLANG.cmake"],
687 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800688 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800689 "test_regression": [True, False],
690 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800691 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800692 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800693 "with_bl2": [True],
694 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800695 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800696 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800697 },
698 "common_params": _common_tfm_builder_cfg,
699 "invalid": _common_tfm_invalid_configs + [
700 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800701 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800702 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800703 "*", "*", "Debug", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800704 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800705 "*", "*", "*", "*", True, True, "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800706 ("mps2/an521", "*", "*", "*",
707 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
708 ("mps2/an519", "*", "*", "*",
709 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
710 ("musca_a", "*", "*", "*",
711 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100712 ("musca_b1/sse_200", "*", "*", "*",
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800713 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
714 ("musca_s1", "*", "*", "*",
715 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800716 ("mps3/an524", "*", "*", "*",
717 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800718 ]
719 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800720
Karl Zhang14573bc2020-06-08 09:23:21 +0800721config_nightly_profile = {"seed_params": {
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800722 "tfm_platform": ["mps2/an519", "mps2/an521",
Mark Horvath8d281cd2020-12-07 15:20:26 +0100723 "musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800724 "toolchain_file": ["toolchain_ARMCLANG.cmake",
725 "toolchain_GNUARM.cmake"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800726 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800727 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800728 "test_regression": [True, False],
729 "test_psa_api": ["OFF"],
730 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800731 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800732 "with_bl2": [True],
733 "with_ns": [True],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800734 "profile": ["profile_small", "profile_medium"],
735 "partition_ps": ["ON", "OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800736 },
737 "common_params": _common_tfm_builder_cfg,
738 "invalid": _common_tfm_invalid_configs + [
739 ("mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800740 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800741 ]
742 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800743
Karl Zhang14573bc2020-06-08 09:23:21 +0800744config_nightly_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800745 "tfm_platform": ["mps2/an521"],
746 "toolchain_file": ["toolchain_GNUARM.cmake",
747 "toolchain_ARMCLANG.cmake"],
748 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800749 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800750 "test_regression": [False],
751 "test_psa_api": ["CRYPTO",
752 "PROTECTED_STORAGE",
753 "INITIAL_ATTESTATION",
754 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800755 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800756 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800757 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800758 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800759 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800760 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800761 },
762 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800763 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800764 }
765
Karl Zhang14573bc2020-06-08 09:23:21 +0800766config_nightly_PSA_FF = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800767 "tfm_platform": ["mps2/an521"],
768 "toolchain_file": ["toolchain_GNUARM.cmake",
769 "toolchain_ARMCLANG.cmake"],
770 "psa_api": [True],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800771 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800772 "test_regression": [False],
773 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800774 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800775 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800776 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800777 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800778 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800779 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800780 },
781 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800782 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800783 }
784
Karl Zhang14573bc2020-06-08 09:23:21 +0800785config_nightly_OTP = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100786 "tfm_platform": ["musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800787 "toolchain_file": ["toolchain_GNUARM.cmake",
788 "toolchain_ARMCLANG.cmake"],
789 "psa_api": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800790 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800791 "test_regression": [True],
792 "test_psa_api": ["OFF"],
793 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800794 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800795 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800796 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800797 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800798 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800799 },
800 "common_params": _common_tfm_builder_cfg,
801 "invalid": _common_tfm_invalid_configs + []
802 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800803
Karl Zhang14573bc2020-06-08 09:23:21 +0800804config_pp_test = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800805 "tfm_platform": ["mps2/an521", "mps2/an519",
Karl Zhang0d765af2021-01-05 11:32:29 +0800806 "musca_b1/sse_200", "musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800807 "toolchain_file": ["toolchain_GNUARM.cmake",
808 "toolchain_ARMCLANG.cmake"],
809 "psa_api": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +0800810 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800811 "test_regression": [True],
812 "test_psa_api": ["OFF"],
813 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800814 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800815 "with_bl2": [True],
816 "with_ns": [True, False],
817 "profile": ["", "profile_small"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800818 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800819 },
820 "common_params": _common_tfm_builder_cfg,
821 "invalid": _common_tfm_invalid_configs + [
Mark Horvath8d281cd2020-12-07 15:20:26 +0100822 ("musca_b1/sse_200", "*", "*", "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800823 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800824 ("*", "*", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800825 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800826 ("*", "*", "*", "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800827 "*", "*", "*", "*", "profile_small", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800828 ]
829 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800830
Karl Zhang14573bc2020-06-08 09:23:21 +0800831config_pp_OTP = {"seed_params": {
Mark Horvath8d281cd2020-12-07 15:20:26 +0100832 "tfm_platform": ["musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800833 "toolchain_file": ["toolchain_GNUARM.cmake"],
834 "psa_api": [True, False],
835 "isolation_level": ["1", "2"],
836 "test_regression": [True],
837 "test_psa_api": ["OFF"],
838 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800839 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800840 "with_bl2": [True],
841 "with_ns": [True, False],
842 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800843 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800844 },
845 "common_params": _common_tfm_builder_cfg,
846 "invalid": _common_tfm_invalid_configs + []
847 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800848
849# Configure build manager to build several combinations
850config_pp_PSA_API = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800851 "tfm_platform": ["mps2/an521"],
852 "toolchain_file": ["toolchain_GNUARM.cmake"],
853 "psa_api": [True],
854 "isolation_level": ["2"],
855 "test_regression": [False],
856 "test_psa_api": ["IPC",
857 "CRYPTO",
858 "PROTECTED_STORAGE",
859 "INITIAL_ATTESTATION",
860 "INTERNAL_TRUSTED_STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800861 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800862 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800863 "with_bl2": [True],
864 "with_ns": [True, False],
865 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800866 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800867 },
868 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800869 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800870 }
871
Karl Zhang14573bc2020-06-08 09:23:21 +0800872config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800873 "tfm_platform": ["cypress/psoc64"],
874 "toolchain_file": ["toolchain_GNUARM.cmake"],
875 "psa_api": [True],
876 "isolation_level": ["1", "2"],
877 "test_regression": [True],
878 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800879 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800880 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800881 "with_bl2": [False],
882 "with_ns": [True, False],
883 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800884 "partition_ps": ["ON"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800885 },
886 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800887 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800888 }
889
Minos Galanakisea421232019-06-20 17:11:28 +0100890# Configruation used for document building
891config_doxygen = {"common_params": {
892 "config_type": "tf-m_documents",
893 "codebase_root_dir": "tf-m",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800894 "build_cmds": {"all": ["-DTFM_PLATFORM=mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +0100895 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +0100896 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +0100897 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800898 "cmake --build ./ -- docs"]},
899 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
900 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +0100901 r'/(\w+\.(?:html|md|pdf))$',
902 },
Xinyu Zhangb708f572020-09-15 11:43:46 +0800903 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100904 }
905
Karl Zhangaff558a2020-05-15 14:28:23 +0100906# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +0100907config_debug = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800908 "tfm_platform": ["mps2/an521"],
909 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
910 "psa_api": [False],
911 "isolation_level": ["1"],
912 "test_regression": [False],
913 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100914 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800915 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800916 "with_bl2": [True],
917 "with_ns": [True],
918 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800919 "partition_ps": ["ON"],
Minos Galanakisea421232019-06-20 17:11:28 +0100920 },
921 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800922 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100923 }
924
Dean Birch4c6ad622020-03-13 11:28:03 +0000925# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +0800926config_ci = {"seed_params": {
927 "tfm_platform": ["mps2/an521"],
928 "toolchain_file": ["toolchain_ARMCLANG.cmake",
929 "toolchain_GNUARM.cmake"],
930 "psa_api": [True, False],
931 "isolation_level": ["1", "2"],
932 "test_regression": [True, False],
933 "test_psa_api": ["OFF"],
934 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800935 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800936 "with_bl2": [True, False],
937 "with_ns": [True],
938 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800939 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800940 },
941 "common_params": _common_tfm_builder_cfg,
942 "invalid": _common_tfm_invalid_configs + [
943 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800944 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800945 ("*", "toolchain_ARMCLANG.cmake", False, "1", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800946 "*", "*", False, "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800947 ]
948 }
Matthew Hartfb6fd362020-03-04 21:03:59 +0000949
Xinyu Zhangb708f572020-09-15 11:43:46 +0800950config_lava_debug = {"seed_params": {
951 "tfm_platform": ["mps2/an521", "mps2/an519"],
952 "toolchain_file": ["toolchain_GNUARM.cmake"],
953 "psa_api": [True, False],
954 "isolation_level": ["1", "2"],
955 "test_regression": [True],
956 "test_psa_api": ["OFF"],
957 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800958 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800959 "with_bl2": [True, False],
960 "with_ns": [True, False],
961 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800962 "partition_ps": ["ON"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800963 },
964 "common_params": _common_tfm_builder_cfg,
965 "invalid": _common_tfm_invalid_configs + [
966 ("mps2/an521", "toolchain_GNUARM.cmake", True, "2", "*", "*",
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800967 "*", "*", True, "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +0800968 ]
969 }
Dean Birch4c6ad622020-03-13 11:28:03 +0000970
Karl Zhangaff558a2020-05-15 14:28:23 +0100971_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +0800972 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +0100973 "tfm_test": config_tfm_test,
974 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +0800975 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +0100976 "tfm_test_otp": config_tfm_test_OTP,
977 "psa_api": config_PSA_API,
978 "psa_api_otp": config_PSA_API_OTP,
979 "psa_ff": config_PSA_FF,
980 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +0800981 "tfm_psoc64": config_PSOC64,
982
983 #nightly test group
984 "nightly_test": config_nightly,
985 "nightly_profile": config_nightly_profile,
986 "nightly_psa_api": config_nightly_PSA_API,
987 "nightly_ff": config_nightly_PSA_FF,
988 "nightly_otp": config_nightly_OTP,
989
990 #per patch test group
991 "pp_test": config_pp_test,
992 "pp_OTP": config_pp_OTP,
993 "pp_PSA_API": config_pp_PSA_API,
994 "pp_psoc64": config_pp_PSoC64,
995
996 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +0100997 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +0800998
999 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001000 "an539": config_AN539,
1001 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001002 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001003 "an521_psa_api": config_AN521_PSA_API,
1004 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001005 "an519": config_AN519,
1006 "musca_a": config_MUSCA_A,
1007 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001008 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001009 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001010 "psoc64": config_PSOC64,
Minos Galanakisea421232019-06-20 17:11:28 +01001011 "ipc": config_IPC,
1012 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001013 "debug": config_debug,
Karl Zhangaff558a2020-05-15 14:28:23 +01001014 "release": config_release,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001015 "debug": config_debug,
Karl Zhang14573bc2020-06-08 09:23:21 +08001016
1017 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001018 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001019 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001020
1021if __name__ == '__main__':
1022 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001023
Minos Galanakisea421232019-06-20 17:11:28 +01001024 # Default behavior is to export refference config when called
1025 _dir = os.getcwd()
1026 from utils import save_json
1027 for _cname, _cfg in _builtin_configs.items():
1028 _fname = os.path.join(_dir, _cname + ".json")
1029 print("Exporting config %s" % _fname)
1030 save_json(_fname, _cfg)