blob: ef51e73ed4acc1558fcbf38526c7551e4fceadb4 [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/*
Xinyu Zhangeb442a12021-02-01 15:16:19 +080011 * Copyright (c) 2018-2021, 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"
Xinyu Zhang06286a92021-07-22 14:00:51 +080020__version__ = "1.4.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",
Xinyu Zhang73ed2992021-09-15 11:38:23 +080034 "lib_model",
Xinyu Zhangb708f572020-09-15 11:43:46 +080035 "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",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +080043 "partition_ps",
44 "nsce"],
Minos Galanakisea421232019-06-20 17:11:28 +010045
46 # Keys for the templace will come from the combinations of parameters
47 # provided in the seed dictionary.
48
Xinyu Zhangb708f572020-09-15 11:43:46 +080049 "config_template": "cmake " + \
50 "-DTFM_PLATFORM=%(tfm_platform)s " + \
Fathi Boudra324fee72020-11-20 10:31:12 +010051 "-DTFM_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(toolchain_file)s " + \
Xinyu Zhang73ed2992021-09-15 11:38:23 +080052 "-DTFM_LIB_MODEL=%(lib_model)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080053 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
54 "-DTEST_NS=%(test_regression)s -DTEST_S=%(test_regression)s " + \
55 "-DTEST_PSA_API=%(test_psa_api)s " + \
56 "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \
57 "-DCRYPTO_HW_ACCELERATOR_OTP_STATE=%(with_otp)s " + \
58 "-DBL2=%(with_bl2)s " + \
59 "-DNS=%(with_ns)s " + \
60 "-DTFM_TEST_REPO_PATH=%(codebase_root_dir)s/../tf-m-tests " + \
61 "-DMBEDCRYPTO_PATH=%(codebase_root_dir)s/../mbedtls " + \
62 "-DPSA_ARCH_TESTS_PATH=%(codebase_root_dir)s/../psa-arch-tests " + \
63 "-DMCUBOOT_PATH=%(codebase_root_dir)s/../mcuboot " + \
64 "-DTFM_PROFILE=%(profile)s " + \
Xinyu Zhangb5bbb692020-10-26 10:14:33 +080065 "-DTFM_PARTITION_PROTECTED_STORAGE=%(partition_ps)s " + \
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +080066 "-DTFM_NS_MANAGE_NSID=%(nsce)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080067 "%(codebase_root_dir)s",
Karl Zhangaff558a2020-05-15 14:28:23 +010068
Minos Galanakisea421232019-06-20 17:11:28 +010069 # A small subset of string substitution params is allowed in commands.
70 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
71 # _tbm_target_platform_ with the paths set when building
72
Xinyu Zhangb708f572020-09-15 11:43:46 +080073 "artifact_capture_rex": (r'%(_tbm_build_dir_)s/bin'
Minos Galanakisea421232019-06-20 17:11:28 +010074 r'/(\w+\.(?:axf|bin|hex))$'),
75
76 # ALL commands will be executed for every build.
77 # Other keys will append extra commands when matching target_platform
Fathi Boudra83e4f292020-12-04 22:33:40 +010078 "build_cmds": {"all": ["cmake --build ./ -- install"],
Summer Qin3c2b5722021-05-26 10:43:45 +080079 "arm/musca_b1/sse_200": [("srec_cat "
Mark Horvath8d281cd2020-12-07 15:20:26 +010080 "%(_tbm_build_dir_)s/bin/"
81 "bl2.bin "
82 "-Binary -offset 0xA000000 "
83 "-fill 0xFF 0xA000000 0xA020000 "
84 "%(_tbm_build_dir_)s/bin/"
85 "tfm_s_ns_signed.bin "
86 "-Binary -offset 0xA020000 "
87 "-fill 0xFF 0xA020000 0xA200000 "
88 "-o %(_tbm_build_dir_)s/bin/"
89 "tfm.hex -Intel")],
Summer Qin3c2b5722021-05-26 10:43:45 +080090 "arm/musca_s1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080091 "%(_tbm_build_dir_)s/bin/"
92 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +080093 "-Binary -offset 0xA000000 "
Raef Coles543aab32020-12-03 11:12:02 +000094 "-fill 0xFF 0xA000000 0xA020000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080095 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080096 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +000097 "-Binary -offset 0xA020000 "
98 "-fill 0xFF 0xA020000 0xA200000 "
99 "-o %(_tbm_build_dir_)s/bin/"
Arthur She19c0e1a2021-06-02 11:06:19 -0700100 "tfm.hex -Intel")],
101 "stm/stm32l562e_dk": [("echo 'STM32L562E-DK board post process';"
102 "%(_tbm_build_dir_)s/postbuild.sh;"
103 "pushd %(_tbm_build_dir_)s;"
Arthur She07c91b52021-07-15 15:03:10 -0700104 "BIN_FILES=$(grep -o '\/.*\.bin' TFM_UPDATE.sh | sed 's/^/bin/');"
105 "tar jcf ./bin/stm32l562e-dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh ${BIN_FILES};"
106 "popd")]
Minos Galanakisea421232019-06-20 17:11:28 +0100107 },
108
109 # (Optional) If set will fail if those artefacts are missing post build
110 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800111 "%(_tbm_build_dir_)s/bin/"
112 "tfm_s.bin",
113 "%(_tbm_build_dir_)s/bin/"
114 "tfm_ns.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800115 "arm/musca_b1/sse_200": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800116 "%(_tbm_build_dir_)s/bin/"
117 "tfm.hex",
118 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800119 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800120 "%(_tbm_build_dir_)s/bin/"
121 "tfm_sign.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800122 "arm/musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800123 "%(_tbm_build_dir_)s/bin/"
124 "tfm.hex",
125 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800126 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800127 "%(_tbm_build_dir_)s/bin/"
128 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100129 }
130}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100131
Xinyu Zhangb708f572020-09-15 11:43:46 +0800132# List of all build configs that are impossible under all circumstances
133_common_tfm_invalid_configs = [
Xinyu Zhang459a1982021-07-21 22:34:49 +0800134 # LR_CODE size exceeds limit on MUSCA_B1 & MUSCA_S1 with regression tests in Debug mode built with ARMCLANG
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800135 ("arm/musca_b1/sse_200", "toolchain_ARMCLANG.cmake", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*"),
136 ("arm/musca_s1", "toolchain_ARMCLANG.cmake", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800137 # Load range overlap on Musca for IPC Debug type: T895
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800138 ("arm/musca_b1/sse_200", "toolchain_ARMCLANG.cmake", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*"),
139 ("arm/musca_s1", "toolchain_ARMCLANG.cmake", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800140 # LVL2 and LVL3 requires IPC model
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800141 ("*", "*", True, "2", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
142 ("*", "*", True, "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800143 # Regression requires NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800144 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800145 # psoc64 requires IPC model
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800146 ("cypress/psoc64", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800147 # No PSA_ACK with regression
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800148 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*", "*", "*"),
149 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*", "*", "*"),
150 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*"),
151 ("*", "*", "*", "*", True, "STORAGE", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800152 # PSA_ACK requires NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800153 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*", "*", "*"),
154 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*", "*", "*"),
155 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*", "*", "*"),
156 ("*", "*", "*", "*", "*", "STORAGE", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhang3227da42021-03-19 17:37:17 +0800157 # PSA_ACK does not support LVL3
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800158 ("*", "*", "*", "3", "*", "IPC", "*", "*", "*", "*", "*", "*", "*"),
159 ("*", "*", "*", "3", "*", "CRYPTO", "*", "*", "*", "*", "*", "*", "*"),
160 ("*", "*", "*", "3", "*", "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*"),
161 ("*", "*", "*", "3", "*", "STORAGE", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800162 # Musca requires BL2
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800163 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
164 ("arm/musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800165 # psoc64 cannot use BL2
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800166 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800167 # psoc64 does not support Debug build type
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800168 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800169 # Musca b1 does not support Profile S
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800170 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800171 # Musca B1 Secure Enclave requires IPC model, BL2, and supports only Isolation Level 1
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800172 ("arm/musca_b1/secure_enclave", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
173 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
174 ("arm/musca_b1/secure_enclave", "*", "*", "2", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100175 # Musca B1 Secure Enclave does not support tests, profiles, NS side building
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800176 ("arm/musca_b1/secure_enclave", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*", "*"),
177 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "IPC", "*", "*", "*", "*", "*", "*", "*"),
178 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", "*", "*", "*", "*"),
179 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*"),
180 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "STORAGE", "*", "*", "*", "*", "*", "*", "*"),
181 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
182 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
183 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800184 # PARTITION_PS could be OFF only for Profile S and M
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800185 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF", "*"),
186 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "OFF", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800187 # PARTITION_PS should be OFF for Profile S
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800188 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800189 # Proile M only support for IPC model
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800190 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800191 # Profile M only support for Isolation Level 2
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800192 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
193 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800194 # Profile L only support for Isolation Level 3
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800195 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
196 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800197 # Profile S does not support IPC model
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800198 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800199 # Profile S only supports Isolation Level 2
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800200 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800201 # Only AN521 and MUSCA_B1 support Isolation Level 3
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800202 ("arm/mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
203 ("arm/mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
204 ("arm/musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
205 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
206 ("arm/musca_b1/secure_enclave", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700207 # stm/stm32l562e_dk uses BL2
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800208 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700209 # stm/stm32l562e_dk does not support Debug build type
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800210 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700211 # nxp/lpcxpresso55s69 only build with GCC
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800212 ("nxp/lpcxpresso55s69", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700213 # nxp/lpcxpresso55s69 only build Profile M
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800214 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
215 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700216 # nxp/lpcxpresso55s69 have to turn off BL2 when build regression test
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800217 ("nxp/lpcxpresso55s69", "*", "*", "*", "True", "*", "*", "*", "True", "*", "*", "*", "*"),
218 # NSID does not support multi core
219 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "OFF"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800220 ]
221
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100222# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100223config_AN524 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800224 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800225 "toolchain_file": ["toolchain_GNUARM.cmake",
226 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800227 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800228 "isolation_level": ["1", "2"],
229 "test_regression": [True, False],
230 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100231 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800232 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800233 "with_bl2": [True, False],
234 "with_ns": [True, False],
235 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800236 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800237 "nsce": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100238 },
239 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800240 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100241 }
242
Karl Zhangaff558a2020-05-15 14:28:23 +0100243config_AN521 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800244 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800245 "toolchain_file": ["toolchain_GNUARM.cmake",
246 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800247 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800248 "isolation_level": ["1", "2"],
249 "test_regression": [True, False],
250 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100251 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800252 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800253 "with_bl2": [True, False],
254 "with_ns": [True, False],
255 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800256 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800257 "nsce": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100258 },
259 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800260 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100261 }
262
Karl Zhangaff558a2020-05-15 14:28:23 +0100263config_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800264 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
265 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800266 "toolchain_file": ["toolchain_GNUARM.cmake",
267 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800268 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800269 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800270 "test_regression": [False],
271 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800272 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800273 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100274 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800275 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800276 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800277 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800278 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800279 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800280 "nsce": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100281 },
282 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800283 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100284 }
285
Karl Zhangaff558a2020-05-15 14:28:23 +0100286config_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800287 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
288 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800289 "toolchain_file": ["toolchain_GNUARM.cmake",
290 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800291 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800292 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800293 "test_regression": [False],
294 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100295 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800296 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800297 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800298 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800299 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800300 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800301 "nsce": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100302 },
303 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800304 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100305 }
306
Karl Zhangaff558a2020-05-15 14:28:23 +0100307config_PSA_API_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800308 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800309 "toolchain_file": ["toolchain_GNUARM.cmake",
310 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800311 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800312 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800313 "test_regression": [False],
314 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800315 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800316 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100317 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800318 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800319 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800320 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800321 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800322 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800323 "nsce": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100324 },
325 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800326 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100327 }
Minos Galanakisea421232019-06-20 17:11:28 +0100328
Xinyu Zhangb708f572020-09-15 11:43:46 +0800329config_PSA_FF_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800330 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800331 "toolchain_file": ["toolchain_GNUARM.cmake",
332 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800333 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800334 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800335 "test_regression": [False],
336 "test_psa_api": ["IPC"],
337 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800338 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800339 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800340 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800341 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800342 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800343 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800344 },
345 "common_params": _common_tfm_builder_cfg,
346 "invalid": _common_tfm_invalid_configs + []
347 }
348
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800349config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800350 "tfm_platform": ["cypress/psoc64"],
351 "toolchain_file": ["toolchain_GNUARM.cmake",
352 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800353 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800354 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800355 "test_regression": [True],
356 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800357 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800358 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800359 "with_bl2": [False],
360 "with_ns": [True, False],
361 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800362 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800363 "nsce": ["OFF"],
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
Arthur She19c0e1a2021-06-02 11:06:19 -0700369config_STM32L562E_DK = {"seed_params": {
370 "tfm_platform": ["stm/stm32l562e_dk"],
371 "toolchain_file": ["toolchain_GNUARM.cmake",
372 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800373 "lib_model": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700374 "isolation_level": ["1", "2", "3"],
375 "test_regression": [True],
376 "test_psa_api": ["OFF"],
377 "cmake_build_type": ["Release"],
378 "with_otp": ["off"],
379 "with_bl2": [True],
380 "with_ns": [True],
381 "profile": [""],
382 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800383 "nsce": ["OFF"],
Arthur She19c0e1a2021-06-02 11:06:19 -0700384 },
385 "common_params": _common_tfm_builder_cfg,
386 "invalid": _common_tfm_invalid_configs + []
387 }
388
Arthur Shef3657742021-09-07 14:23:18 -0700389config_LPCXPRESSO55S69 = {"seed_params": {
390 "tfm_platform": ["nxp/lpcxpresso55s69"],
391 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800392 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700393 "isolation_level": ["2"],
394 "test_regression": [True, False],
395 "test_psa_api": ["OFF"],
396 "cmake_build_type": ["Relwithdebinfo"],
397 "with_otp": ["off"],
398 "with_bl2": [True, False],
399 "with_ns": [True],
400 "profile": ["profile_medium"],
401 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800402 "nsce": ["OFF"],
Arthur Shef3657742021-09-07 14:23:18 -0700403 },
404 "common_params": _common_tfm_builder_cfg,
405 "invalid": _common_tfm_invalid_configs + []
406 }
407
Xinyu Zhang6afdd612021-10-12 17:07:32 +0800408config_corstone1000 = {"seed_params": {
409 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800410 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800411 "lib_model": [False],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800412 "isolation_level": ["1"],
413 "test_regression": [False],
414 "test_psa_api": ["OFF"],
415 "cmake_build_type": ["Debug"],
416 "with_otp": ["off"],
417 "with_bl2": [True],
418 "with_ns": [False],
419 "profile": [""],
420 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800421 "nsce": ["OFF"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800422 },
423 "common_params": _common_tfm_builder_cfg,
424 "invalid": _common_tfm_invalid_configs + []
425 }
426
Minos Galanakisea421232019-06-20 17:11:28 +0100427config_AN519 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800428 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800429 "toolchain_file": ["toolchain_GNUARM.cmake",
430 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800431 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800432 "isolation_level": ["1", "2"],
433 "test_regression": [True, False],
434 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100435 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800436 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800437 "with_bl2": [True, False],
438 "with_ns": [True, False],
439 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800440 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800441 "nsce": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100442 },
443 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800444 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100445 }
446
Xinyu Zhangb708f572020-09-15 11:43:46 +0800447config_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800448 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
449 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800450 "toolchain_file": ["toolchain_GNUARM.cmake",
451 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800452 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800453 "isolation_level": ["1", "2"],
454 "test_regression": [True, False],
455 "test_psa_api": ["OFF"],
456 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800457 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800458 "with_bl2": [True, False],
459 "with_ns": [True, False],
460 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800461 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800462 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800463 },
Minos Galanakisea421232019-06-20 17:11:28 +0100464 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800465 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100466 }
467
Minos Galanakisea421232019-06-20 17:11:28 +0100468config_full = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800469 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
470 "arm/musca_b1/sse_200",
471 "arm/mps3/an524", "cypress/psoc64",
Arthur She19c0e1a2021-06-02 11:06:19 -0700472 "arm/musca_b1/secure_enclave",
Arthur Shef3657742021-09-07 14:23:18 -0700473 "stm/stm32l562e_dk",
474 "nxp/lpcxpresso55s69"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800475 "toolchain_file": ["toolchain_GNUARM.cmake",
476 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800477 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800478 "isolation_level": ["1", "2"],
479 "test_regression": [True, False],
480 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800481 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800482 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800483 "with_bl2": [True, False],
484 "with_ns": [True, False],
485 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800486 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800487 "nsce": ["OFF"],
Dean Birchd6ce2c82020-05-13 13:16:15 +0100488 },
489 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800490 "invalid": _common_tfm_invalid_configs + [
491 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800492 "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800493 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800494 "*", "*", "*", "*", True, True, "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800495 ("arm/mps2/an521", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800496 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800497 ("arm/mps2/an519", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800498 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800499 ("arm/musca_b1/sse_200", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800500 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800501 ("arm/mps3/an524", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800502 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800503 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800504 }
505
Karl Zhangaff558a2020-05-15 14:28:23 +0100506config_tfm_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800507 "tfm_platform": ["arm/mps2/an521",
508 "arm/musca_b1/sse_200", "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800509 "toolchain_file": ["toolchain_ARMCLANG.cmake",
510 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800511 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800512 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800513 "test_regression": [True, False],
514 "test_psa_api": ["OFF"],
515 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800516 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800517 "with_bl2": [True],
518 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800519 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800520 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800521 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800522 },
523 "common_params": _common_tfm_builder_cfg,
524 "invalid": _common_tfm_invalid_configs + []
525 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800526
Karl Zhangaff558a2020-05-15 14:28:23 +0100527config_tfm_test2 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800528 "tfm_platform": ["arm/mps2/an519", "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800529 "toolchain_file": ["toolchain_ARMCLANG.cmake",
530 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800531 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800532 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800533 "test_regression": [True, False],
534 "test_psa_api": ["OFF"],
535 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800536 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800537 "with_bl2": [True],
538 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800539 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800540 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800541 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800542 },
543 "common_params": _common_tfm_builder_cfg,
544 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800545 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800546 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800547 ]
548 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100549
Karl Zhang14573bc2020-06-08 09:23:21 +0800550config_tfm_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800551 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
552 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800553 "toolchain_file": ["toolchain_ARMCLANG.cmake",
554 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800555 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800556 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800557 "test_regression": [True, False],
558 "test_psa_api": ["OFF"],
559 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800560 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800561 "with_bl2": [True],
562 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800563 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800564 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800565 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800566 },
567 "common_params": _common_tfm_builder_cfg,
568 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800569 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800570 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800571 # Profile Large is only supported by AN521
Summer Qin3c2b5722021-05-26 10:43:45 +0800572 ("arm/mps2/an519", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800573 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800574 ("arm/musca_b1/sse_200", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800575 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800576 ]
577 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800578
Karl Zhangaff558a2020-05-15 14:28:23 +0100579config_tfm_test_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800580 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800581 "toolchain_file": ["toolchain_ARMCLANG.cmake",
582 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800583 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800584 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800585 "test_regression": [True, False],
586 "test_psa_api": ["OFF"],
587 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800588 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800589 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800590 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800591 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800592 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800593 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800594 },
595 "common_params": _common_tfm_builder_cfg,
596 "invalid": _common_tfm_invalid_configs + []
597 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100598
Minos Galanakisea421232019-06-20 17:11:28 +0100599config_MUSCA_B1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800600 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800601 "toolchain_file": ["toolchain_ARMCLANG.cmake",
602 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800603 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800604 "isolation_level": ["1", "2"],
605 "test_regression": [True, False],
606 "test_psa_api": ["OFF"],
607 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800608 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800609 "with_bl2": [True],
610 "with_ns": [True, False],
611 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800612 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800613 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800614 },
615 "common_params": _common_tfm_builder_cfg,
616 "invalid": _common_tfm_invalid_configs + []
617 }
Minos Galanakisea421232019-06-20 17:11:28 +0100618
Mark Horvath8d281cd2020-12-07 15:20:26 +0100619config_MUSCA_B1_SE = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800620 "tfm_platform": ["arm/musca_b1/secure_enclave"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100621 "toolchain_file": ["toolchain_ARMCLANG.cmake",
622 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800623 "lib_model": [False],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100624 "isolation_level": ["1"],
625 "test_regression": [False],
626 "test_psa_api": ["OFF"],
627 "cmake_build_type": ["Debug", "Release"],
628 "with_otp": ["off"],
629 "with_bl2": [True],
630 "with_ns": [False],
631 "profile": [""],
632 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800633 "nsce": ["OFF"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100634 },
635 "common_params": _common_tfm_builder_cfg,
636 "invalid": _common_tfm_invalid_configs + []
637 }
638
Karl Zhangeffed972020-06-30 15:48:01 +0800639config_MUSCA_S1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800640 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800641 "toolchain_file": ["toolchain_ARMCLANG.cmake",
642 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800643 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800644 "isolation_level": ["1", "2"],
645 "test_regression": [True, False],
646 "test_psa_api": ["OFF"],
647 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800648 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800649 "with_bl2": [True],
650 "with_ns": [True, False],
651 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800652 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800653 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800654 },
655 "common_params": _common_tfm_builder_cfg,
656 "invalid": _common_tfm_invalid_configs + []
657 }
Karl Zhangeffed972020-06-30 15:48:01 +0800658
Karl Zhangaff558a2020-05-15 14:28:23 +0100659config_release = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800660 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
661 "arm/musca_b1/sse_200", "arm/musca_s1",
662 "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800663 "toolchain_file": ["toolchain_ARMCLANG.cmake",
664 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800665 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800666 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800667 "test_regression": [True, False],
668 "test_psa_api": ["OFF"],
669 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800670 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800671 "with_bl2": [True, False],
672 "with_ns": [True, False],
673 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800674 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800675 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800676 },
677 "common_params": _common_tfm_builder_cfg,
678 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800679 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800680 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800681 ]
682 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100683
684# Configure build manager to build several combinations
685config_AN521_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800686 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
687 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800688 "toolchain_file": ["toolchain_GNUARM.cmake",
689 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800690 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800691 "isolation_level": ["1", "2"],
692 "test_regression": [False],
693 "test_psa_api": ["IPC",
694 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800695 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800696 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800697 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800698 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800699 "with_bl2": [True],
700 "with_ns": [True, False],
701 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800702 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800703 "nsce": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100704 },
705 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800706 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800707 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800708 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800709 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100710 }
711
Karl Zhangaff558a2020-05-15 14:28:23 +0100712config_AN521_PSA_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800713 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
714 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800715 "toolchain_file": ["toolchain_GNUARM.cmake",
716 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800717 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800718 "isolation_level": ["1", "2"],
719 "test_regression": [False],
720 "test_psa_api": ["IPC"],
721 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800722 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800723 "with_bl2": [True],
724 "with_ns": [True, False],
725 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800726 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800727 "nsce": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100728 },
729 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800730 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800731 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800732 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800733 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100734 }
735
Karl Zhang14573bc2020-06-08 09:23:21 +0800736config_nightly = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800737 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
738 "arm/musca_b1/sse_200", "arm/musca_s1",
739 "arm/mps3/an524", "cypress/psoc64",
Arthur She19c0e1a2021-06-02 11:06:19 -0700740 "arm/musca_b1/secure_enclave",
741 "stm/stm32l562e_dk"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800742 "toolchain_file": ["toolchain_GNUARM.cmake",
743 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800744 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800745 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800746 "test_regression": [True, False],
747 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800748 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800749 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800750 "with_bl2": [True],
751 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800752 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800753 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800754 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800755 },
756 "common_params": _common_tfm_builder_cfg,
757 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800758 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800759 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800760 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800761 "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800762 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800763 "*", "*", "*", "*", True, True, "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800764 ("arm/mps2/an521", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800765 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800766 ("arm/mps2/an519", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800767 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800768 ("arm/musca_b1/sse_200", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800769 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800770 ("arm/musca_s1", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800771 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800772 ("arm/mps3/an524", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800773 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800774 ]
775 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800776
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800777config_nightly_nsce = {"seed_params": {
778 "tfm_platform": ["arm/mps2/an521"],
779 "toolchain_file": ["toolchain_GNUARM.cmake",
780 "toolchain_ARMCLANG.cmake"],
781 "lib_model": [True, False],
782 "isolation_level": ["1", "2", "3"],
783 "test_regression": [True],
784 "test_psa_api": ["OFF"],
785 "cmake_build_type": ["Debug"],
786 "with_otp": ["off"],
787 "with_bl2": [True],
788 "with_ns": [True],
789 "profile": [""],
790 "partition_ps": ["ON"],
791 "nsce": ["ON"],
792 },
793 "common_params": _common_tfm_builder_cfg,
794 "invalid": _common_tfm_invalid_configs + []
795 }
796
Karl Zhang14573bc2020-06-08 09:23:21 +0800797config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800798 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
799 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800800 "toolchain_file": ["toolchain_ARMCLANG.cmake",
801 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800802 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800803 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800804 "test_regression": [True, False],
805 "test_psa_api": ["OFF"],
806 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800807 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800808 "with_bl2": [True],
809 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800810 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800811 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800812 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800813 },
814 "common_params": _common_tfm_builder_cfg,
815 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800816 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800817 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800818 # Profile Large is only supported by AN521
Summer Qin3c2b5722021-05-26 10:43:45 +0800819 ("arm/mps2/an519", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800820 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800821 ("arm/musca_b1/sse_200", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800822 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800823 ]
824 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800825
Karl Zhang14573bc2020-06-08 09:23:21 +0800826config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800827 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
828 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800829 "toolchain_file": ["toolchain_GNUARM.cmake",
830 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800831 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800832 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800833 "test_regression": [False],
834 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800835 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800836 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800837 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800838 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800839 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800840 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800841 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800842 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800843 "nsce": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800844 },
845 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800846 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800847 }
848
Karl Zhang14573bc2020-06-08 09:23:21 +0800849config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800850 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
851 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800852 "toolchain_file": ["toolchain_GNUARM.cmake",
853 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800854 "lib_model": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800855 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800856 "test_regression": [False],
857 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800858 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800859 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800860 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800861 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800862 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800863 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800864 "nsce": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800865 },
866 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800867 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800868 }
869
Karl Zhang14573bc2020-06-08 09:23:21 +0800870config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800871 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800872 "toolchain_file": ["toolchain_GNUARM.cmake",
873 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800874 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800875 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800876 "test_regression": [True],
877 "test_psa_api": ["OFF"],
878 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800879 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800880 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800881 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800882 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800883 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800884 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800885 },
886 "common_params": _common_tfm_builder_cfg,
887 "invalid": _common_tfm_invalid_configs + []
888 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800889
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800890config_nightly_STM32L562E_DK = {"seed_params": {
891 "tfm_platform": ["stm/stm32l562e_dk"],
892 "toolchain_file": ["toolchain_GNUARM.cmake",
893 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800894 "lib_model": [True, False],
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800895 "isolation_level": ["1", "2", "3"],
896 "test_regression": [True],
897 "test_psa_api": ["OFF"],
898 "cmake_build_type": ["Release"],
899 "with_otp": ["off"],
900 "with_bl2": [True],
901 "with_ns": [True],
902 "profile": [""],
903 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800904 "nsce": ["OFF"],
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800905 },
906 "common_params": _common_tfm_builder_cfg,
907 "invalid": _common_tfm_invalid_configs + []
908 }
909
Arthur Shef3657742021-09-07 14:23:18 -0700910config_nightly_LPCXPRESSO55S69 = {"seed_params": {
911 "tfm_platform": ["nxp/lpcxpresso55s69"],
912 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800913 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700914 "isolation_level": ["2"],
915 "test_regression": [True, False],
916 "test_psa_api": ["OFF"],
917 "cmake_build_type": ["Relwithdebinfo"],
918 "with_otp": ["off"],
919 "with_bl2": [True, False],
920 "with_ns": [True],
921 "profile": ["profile_medium"],
922 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800923 "nsce": ["OFF"],
Arthur Shef3657742021-09-07 14:23:18 -0700924 },
925 "common_params": _common_tfm_builder_cfg,
926 "invalid": _common_tfm_invalid_configs + []
927 }
928
Karl Zhang14573bc2020-06-08 09:23:21 +0800929config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800930 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +0800931 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800932 "toolchain_file": ["toolchain_GNUARM.cmake",
933 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800934 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +0800935 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800936 "test_regression": [True],
937 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +0800938 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800939 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800940 "with_bl2": [True],
941 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +0800942 "profile": ["", "profile_small", "profile_medium"],
943 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800944 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800945 },
946 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +0800947 "valid": [
Summer Qin3c2b5722021-05-26 10:43:45 +0800948 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800949 True, "1", False, "OFF", "Debug",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800950 "off", True, True, "", "ON", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800951 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800952 False, "2", False, "OFF", "Debug",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800953 "off", True, True, "", "ON", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800954 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800955 False, "3", False, "OFF", "Release",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800956 "off", True, True, "", "ON", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800957 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800958 False, "2", False, "OFF", "Debug",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800959 "off", True, True, "profile_medium", "ON", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800960 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800961 False, "3", False, "OFF", "Debug",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800962 "off", True, True, "profile_large", "ON", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800963 # AN521_GNUARM_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800964 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
965 False, "2", True, "OFF", "Release",
966 "off", True, True, "profile_medium", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800967 # MUSCA_B1_GNUARM_LIB_1_REG_Minsizerel_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800968 ("arm/musca_b1/sse_200", "toolchain_GNUARM.cmake",
969 True, "1", True, "OFF", "Minsizerel",
970 "off", True, True, "", "ON", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800971 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800972 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake",
973 False, "1", True, "OFF", "Release",
974 "off", True, True, "", "ON", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800975 # stm32l562e_dk_GNUARM_IPC_2_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800976 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
977 False, "2", True, "OFF", "Release",
978 "off", True, True, "", "ON", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800979 # stm32l562e_dk_GNUARM_IPC_3_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800980 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
981 False, "3", True, "OFF", "Release",
982 "off", True, True, "", "ON", "OFF"),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +0800983 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800984 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +0800985 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +0800986 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800987 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +0800988 # valid configs supported by TF-M but not needed in per-patch
989 ("*", "*", "*", "1", "*", "*", "Release",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800990 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +0800991 ("*", "*", "*", "1", "*", "*", "Minsizerel",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800992 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +0800993 ("*", "*", "*", "2", "*", "*", "Debug",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800994 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +0800995 ("*", "*", "*", "2", "*", "*", "Minsizerel",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800996 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +0800997 ("*", "*", "*", "3", "*", "*", "Debug",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800998 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +0800999 ("*", "*", "*", "3", "*", "*", "Release",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001000 "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001001 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001002 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001003 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001004 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001005 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001006 "*", "*", "*", "*", "profile_medium", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001007 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001008 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001009 ("*", "toolchain_GNUARM.cmake", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001010 "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001011 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001012 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001013 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001014 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001015 ]
1016 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001017
Karl Zhang14573bc2020-06-08 09:23:21 +08001018config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001019 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001020 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001021 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001022 "isolation_level": ["1", "2"],
1023 "test_regression": [True],
1024 "test_psa_api": ["OFF"],
1025 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001026 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001027 "with_bl2": [True],
1028 "with_ns": [True, False],
1029 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001030 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001031 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001032 },
1033 "common_params": _common_tfm_builder_cfg,
1034 "invalid": _common_tfm_invalid_configs + []
1035 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001036
1037# Configure build manager to build several combinations
1038config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001039 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001040 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001041 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001042 "isolation_level": ["2"],
1043 "test_regression": [False],
1044 "test_psa_api": ["IPC",
1045 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001046 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +08001047 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001048 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001049 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001050 "with_bl2": [True],
1051 "with_ns": [True, False],
1052 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001053 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001054 "nsce": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001055 },
1056 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001057 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001058 }
1059
Karl Zhang14573bc2020-06-08 09:23:21 +08001060config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001061 "tfm_platform": ["cypress/psoc64"],
1062 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001063 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001064 "isolation_level": ["1", "2"],
1065 "test_regression": [True],
1066 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001067 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001068 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001069 "with_bl2": [False],
1070 "with_ns": [True, False],
1071 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001072 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001073 "nsce": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001074 },
1075 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001076 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001077 }
1078
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001079config_cov_an519 = {"seed_params": {
1080 "tfm_platform": ["arm/mps2/an519"],
1081 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001082 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001083 "isolation_level": ["1", "2", "3"],
1084 "test_regression": [True, False],
1085 "test_psa_api": ["OFF"],
1086 "cmake_build_type": ["Debug", "Release"],
1087 "with_otp": ["off"],
1088 "with_bl2": [True],
1089 "with_ns": [True],
1090 "profile": ["", "profile_small", "profile_medium"],
1091 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001092 "nsce": ["OFF"],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001093 },
1094 "common_params": _common_tfm_builder_cfg,
1095 "invalid": _common_tfm_invalid_configs + []
1096 }
1097
1098config_cov_an521 = {"seed_params": {
1099 "tfm_platform": ["arm/mps2/an521"],
1100 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001101 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001102 "isolation_level": ["1", "2", "3"],
1103 "test_regression": [True, False],
1104 "test_psa_api": ["OFF"],
1105 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1106 "with_otp": ["off"],
1107 "with_bl2": [True],
1108 "with_ns": [True],
1109 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1110 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001111 "nsce": ["OFF"],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001112 },
1113 "common_params": _common_tfm_builder_cfg,
1114 "invalid": _common_tfm_invalid_configs + []
1115 }
1116
Minos Galanakisea421232019-06-20 17:11:28 +01001117# Configruation used for document building
1118config_doxygen = {"common_params": {
1119 "config_type": "tf-m_documents",
1120 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001121 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001122 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001123 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001124 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001125 "cmake --build ./ -- docs"]},
1126 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1127 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001128 r'/(\w+\.(?:html|md|pdf))$',
1129 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001130 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001131 }
1132
Karl Zhangaff558a2020-05-15 14:28:23 +01001133# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +01001134config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001135 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001136 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001137 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001138 "isolation_level": ["1"],
1139 "test_regression": [False],
1140 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001141 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001142 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001143 "with_bl2": [True],
1144 "with_ns": [True],
1145 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001146 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001147 "nsce": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001148 },
1149 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001150 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001151 }
1152
Dean Birch4c6ad622020-03-13 11:28:03 +00001153# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001154config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001155 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001156 "toolchain_file": ["toolchain_ARMCLANG.cmake",
1157 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001158 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001159 "isolation_level": ["1", "2"],
1160 "test_regression": [True, False],
1161 "test_psa_api": ["OFF"],
1162 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001163 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001164 "with_bl2": [True, False],
1165 "with_ns": [True],
1166 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001167 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001168 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001169 },
1170 "common_params": _common_tfm_builder_cfg,
1171 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001172 ("*", "toolchain_ARMCLANG.cmake", False, "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001173 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001174 ("*", "toolchain_ARMCLANG.cmake", True, "1", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001175 "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001176 ]
1177 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001178
Xinyu Zhangb708f572020-09-15 11:43:46 +08001179config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001180 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001181 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001182 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001183 "isolation_level": ["1", "2"],
1184 "test_regression": [True],
1185 "test_psa_api": ["OFF"],
1186 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001187 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001188 "with_bl2": [True, False],
1189 "with_ns": [True, False],
1190 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001191 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001192 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001193 },
1194 "common_params": _common_tfm_builder_cfg,
1195 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001196 ("arm/mps2/an521", "toolchain_GNUARM.cmake", False, "2", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001197 "*", "*", True, "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001198 ]
1199 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001200
Karl Zhangaff558a2020-05-15 14:28:23 +01001201_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001202 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001203 "tfm_test": config_tfm_test,
1204 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001205 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +01001206 "tfm_test_otp": config_tfm_test_OTP,
1207 "psa_api": config_PSA_API,
1208 "psa_api_otp": config_PSA_API_OTP,
1209 "psa_ff": config_PSA_FF,
1210 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001211 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001212 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001213 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Karl Zhang14573bc2020-06-08 09:23:21 +08001214
1215 #nightly test group
1216 "nightly_test": config_nightly,
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001217 "nightly_nsce": config_nightly_nsce,
Karl Zhang14573bc2020-06-08 09:23:21 +08001218 "nightly_profile": config_nightly_profile,
1219 "nightly_psa_api": config_nightly_PSA_API,
1220 "nightly_ff": config_nightly_PSA_FF,
1221 "nightly_otp": config_nightly_OTP,
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +08001222 "nightly_stm32l562e_dk": config_nightly_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001223 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Karl Zhang14573bc2020-06-08 09:23:21 +08001224
1225 #per patch test group
1226 "pp_test": config_pp_test,
1227 "pp_OTP": config_pp_OTP,
1228 "pp_PSA_API": config_pp_PSA_API,
1229 "pp_psoc64": config_pp_PSoC64,
1230
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001231 #code coverage test group
1232 "coverage_an519": config_cov_an519,
1233 "coverage_an521": config_cov_an521,
1234
Karl Zhang14573bc2020-06-08 09:23:21 +08001235 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001236 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001237
1238 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001239 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001240 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001241 "an521_psa_api": config_AN521_PSA_API,
1242 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001243 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001244 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001245 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001246 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001247 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001248 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001249 "ipc": config_IPC,
1250 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001251 "debug": config_debug,
Karl Zhangaff558a2020-05-15 14:28:23 +01001252 "release": config_release,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001253 "debug": config_debug,
Karl Zhang14573bc2020-06-08 09:23:21 +08001254
1255 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001256 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001257 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001258
1259if __name__ == '__main__':
1260 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001261
Minos Galanakisea421232019-06-20 17:11:28 +01001262 # Default behavior is to export refference config when called
1263 _dir = os.getcwd()
1264 from utils import save_json
1265 for _cname, _cfg in _builtin_configs.items():
1266 _fname = os.path.join(_dir, _cname + ".json")
1267 print("Exporting config %s" % _fname)
1268 save_json(_fname, _cfg)