blob: 072d364bb0365fe121ee6f8b0b2ba265a7105e6f [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
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800219 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "ON"),
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 Zhangbbc04132021-11-02 16:02:18 +0800354 "isolation_level": ["1", "2"],
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],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800360 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800361 "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",
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800739 "arm/mps3/an524", "stm/stm32l562e_dk",
740 "arm/musca_b1/secure_enclave"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800741 "toolchain_file": ["toolchain_GNUARM.cmake",
742 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800743 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800744 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800745 "test_regression": [True, False],
746 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800747 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800748 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800749 "with_bl2": [True],
750 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800751 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800752 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800753 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800754 },
755 "common_params": _common_tfm_builder_cfg,
756 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800757 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800758 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800759 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800760 "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800761 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800762 "*", "*", "*", "*", True, True, "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800763 ("arm/mps2/an521", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800764 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800765 ("arm/mps2/an519", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800766 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800767 ("arm/musca_b1/sse_200", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800768 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800769 ("arm/musca_s1", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800770 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800771 ("arm/mps3/an524", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800772 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800773 ]
774 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800775
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800776config_nightly_nsce = {"seed_params": {
777 "tfm_platform": ["arm/mps2/an521"],
778 "toolchain_file": ["toolchain_GNUARM.cmake",
779 "toolchain_ARMCLANG.cmake"],
780 "lib_model": [True, False],
781 "isolation_level": ["1", "2", "3"],
782 "test_regression": [True],
783 "test_psa_api": ["OFF"],
784 "cmake_build_type": ["Debug"],
785 "with_otp": ["off"],
786 "with_bl2": [True],
787 "with_ns": [True],
788 "profile": [""],
789 "partition_ps": ["ON"],
790 "nsce": ["ON"],
791 },
792 "common_params": _common_tfm_builder_cfg,
793 "invalid": _common_tfm_invalid_configs + []
794 }
795
Karl Zhang14573bc2020-06-08 09:23:21 +0800796config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800797 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
798 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800799 "toolchain_file": ["toolchain_ARMCLANG.cmake",
800 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800801 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800802 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800803 "test_regression": [True, False],
804 "test_psa_api": ["OFF"],
805 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800806 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800807 "with_bl2": [True],
808 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800809 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800810 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800811 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800812 },
813 "common_params": _common_tfm_builder_cfg,
814 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800815 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800816 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800817 # Profile Large is only supported by AN521
Summer Qin3c2b5722021-05-26 10:43:45 +0800818 ("arm/mps2/an519", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800819 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800820 ("arm/musca_b1/sse_200", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800821 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800822 ]
823 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800824
Karl Zhang14573bc2020-06-08 09:23:21 +0800825config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800826 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
827 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800828 "toolchain_file": ["toolchain_GNUARM.cmake",
829 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800830 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800831 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800832 "test_regression": [False],
833 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800834 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800835 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800836 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800837 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800838 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800839 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800840 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800841 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800842 "nsce": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800843 },
844 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800845 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800846 }
847
Karl Zhang14573bc2020-06-08 09:23:21 +0800848config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800849 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
850 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800851 "toolchain_file": ["toolchain_GNUARM.cmake",
852 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800853 "lib_model": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800854 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800855 "test_regression": [False],
856 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800857 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800858 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800859 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800860 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800861 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800862 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800863 "nsce": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800864 },
865 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800866 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800867 }
868
Karl Zhang14573bc2020-06-08 09:23:21 +0800869config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800870 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800871 "toolchain_file": ["toolchain_GNUARM.cmake",
872 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800873 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800874 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800875 "test_regression": [True],
876 "test_psa_api": ["OFF"],
877 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800878 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800879 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800880 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800881 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800882 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800883 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800884 },
885 "common_params": _common_tfm_builder_cfg,
886 "invalid": _common_tfm_invalid_configs + []
887 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800888
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800889config_nightly_psoc64 = {"seed_params": {
890 "tfm_platform": ["cypress/psoc64"],
891 "toolchain_file": ["toolchain_GNUARM.cmake",
892 "toolchain_ARMCLANG.cmake"],
893 "lib_model": [False],
894 "isolation_level": ["1", "2"],
895 "test_regression": [True],
896 "test_psa_api": ["OFF"],
897 "cmake_build_type": ["Release"],
898 "with_otp": ["off"],
899 "with_bl2": [False],
900 "with_ns": [True],
901 "profile": [""],
902 "partition_ps": ["ON"],
903 "nsce": ["OFF"],
904 },
905 "common_params": _common_tfm_builder_cfg,
906 "invalid": _common_tfm_invalid_configs + []
907 }
908
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800909config_nightly_STM32L562E_DK = {"seed_params": {
910 "tfm_platform": ["stm/stm32l562e_dk"],
911 "toolchain_file": ["toolchain_GNUARM.cmake",
912 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800913 "lib_model": [True, False],
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800914 "isolation_level": ["1", "2", "3"],
915 "test_regression": [True],
916 "test_psa_api": ["OFF"],
917 "cmake_build_type": ["Release"],
918 "with_otp": ["off"],
919 "with_bl2": [True],
920 "with_ns": [True],
921 "profile": [""],
922 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800923 "nsce": ["OFF"],
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800924 },
925 "common_params": _common_tfm_builder_cfg,
926 "invalid": _common_tfm_invalid_configs + []
927 }
928
Arthur Shef3657742021-09-07 14:23:18 -0700929config_nightly_LPCXPRESSO55S69 = {"seed_params": {
930 "tfm_platform": ["nxp/lpcxpresso55s69"],
931 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800932 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700933 "isolation_level": ["2"],
934 "test_regression": [True, False],
935 "test_psa_api": ["OFF"],
936 "cmake_build_type": ["Relwithdebinfo"],
937 "with_otp": ["off"],
938 "with_bl2": [True, False],
939 "with_ns": [True],
940 "profile": ["profile_medium"],
941 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800942 "nsce": ["OFF"],
Arthur Shef3657742021-09-07 14:23:18 -0700943 },
944 "common_params": _common_tfm_builder_cfg,
945 "invalid": _common_tfm_invalid_configs + []
946 }
947
Karl Zhang14573bc2020-06-08 09:23:21 +0800948config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800949 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +0800950 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800951 "toolchain_file": ["toolchain_GNUARM.cmake",
952 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800953 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +0800954 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800955 "test_regression": [True],
956 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +0800957 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800958 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800959 "with_bl2": [True],
960 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +0800961 "profile": ["", "profile_small", "profile_medium"],
962 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800963 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800964 },
965 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +0800966 "valid": [
Summer Qin3c2b5722021-05-26 10:43:45 +0800967 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800968 True, "1", False, "OFF", "Debug",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800969 "off", True, True, "", "ON", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800970 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800971 False, "2", False, "OFF", "Debug",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800972 "off", True, True, "", "ON", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800973 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800974 False, "3", False, "OFF", "Release",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800975 "off", True, True, "", "ON", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800976 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800977 False, "2", False, "OFF", "Debug",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800978 "off", True, True, "profile_medium", "ON", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800979 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800980 False, "3", False, "OFF", "Debug",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800981 "off", True, True, "profile_large", "ON", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800982 # AN521_GNUARM_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800983 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
984 False, "2", True, "OFF", "Release",
985 "off", True, True, "profile_medium", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800986 # MUSCA_B1_GNUARM_LIB_1_REG_Minsizerel_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800987 ("arm/musca_b1/sse_200", "toolchain_GNUARM.cmake",
988 True, "1", True, "OFF", "Minsizerel",
989 "off", True, True, "", "ON", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800990 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800991 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake",
992 False, "1", True, "OFF", "Release",
993 "off", True, True, "", "ON", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800994 # stm32l562e_dk_GNUARM_IPC_2_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800995 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
996 False, "2", True, "OFF", "Release",
997 "off", True, True, "", "ON", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800998 # stm32l562e_dk_GNUARM_IPC_3_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800999 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
1000 False, "3", True, "OFF", "Release",
1001 "off", True, True, "", "ON", "OFF"),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001002 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001003 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001004 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +08001005 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001006 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001007 # valid configs supported by TF-M but not needed in per-patch
1008 ("*", "*", "*", "1", "*", "*", "Release",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001009 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001010 ("*", "*", "*", "1", "*", "*", "Minsizerel",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001011 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001012 ("*", "*", "*", "2", "*", "*", "Debug",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001013 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001014 ("*", "*", "*", "2", "*", "*", "Minsizerel",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001015 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001016 ("*", "*", "*", "3", "*", "*", "Debug",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001017 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001018 ("*", "*", "*", "3", "*", "*", "Release",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001019 "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001020 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001021 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001022 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001023 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001024 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001025 "*", "*", "*", "*", "profile_medium", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001026 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001027 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001028 ("*", "toolchain_GNUARM.cmake", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001029 "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001030 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001031 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001032 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001033 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001034 ]
1035 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001036
Karl Zhang14573bc2020-06-08 09:23:21 +08001037config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001038 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001039 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001040 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001041 "isolation_level": ["1", "2"],
1042 "test_regression": [True],
1043 "test_psa_api": ["OFF"],
1044 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001045 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001046 "with_bl2": [True],
1047 "with_ns": [True, False],
1048 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001049 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001050 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001051 },
1052 "common_params": _common_tfm_builder_cfg,
1053 "invalid": _common_tfm_invalid_configs + []
1054 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001055
1056# Configure build manager to build several combinations
1057config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001058 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001059 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001060 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001061 "isolation_level": ["2"],
1062 "test_regression": [False],
1063 "test_psa_api": ["IPC",
1064 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001065 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +08001066 "STORAGE"],
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": [True],
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
Karl Zhang14573bc2020-06-08 09:23:21 +08001079config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001080 "tfm_platform": ["cypress/psoc64"],
1081 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001082 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001083 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001084 "test_regression": [True],
1085 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001086 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001087 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001088 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001089 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001090 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001091 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001092 "nsce": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001093 },
1094 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001095 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001096 }
1097
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001098config_cov_an519 = {"seed_params": {
1099 "tfm_platform": ["arm/mps2/an519"],
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"],
1106 "with_otp": ["off"],
1107 "with_bl2": [True],
1108 "with_ns": [True],
1109 "profile": ["", "profile_small", "profile_medium"],
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
1117config_cov_an521 = {"seed_params": {
1118 "tfm_platform": ["arm/mps2/an521"],
1119 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001120 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001121 "isolation_level": ["1", "2", "3"],
1122 "test_regression": [True, False],
1123 "test_psa_api": ["OFF"],
1124 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1125 "with_otp": ["off"],
1126 "with_bl2": [True],
1127 "with_ns": [True],
1128 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1129 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001130 "nsce": ["OFF"],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001131 },
1132 "common_params": _common_tfm_builder_cfg,
1133 "invalid": _common_tfm_invalid_configs + []
1134 }
1135
Minos Galanakisea421232019-06-20 17:11:28 +01001136# Configruation used for document building
1137config_doxygen = {"common_params": {
1138 "config_type": "tf-m_documents",
1139 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001140 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001141 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001142 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001143 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001144 "cmake --build ./ -- docs"]},
1145 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1146 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001147 r'/(\w+\.(?:html|md|pdf))$',
1148 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001149 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001150 }
1151
Karl Zhangaff558a2020-05-15 14:28:23 +01001152# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +01001153config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001154 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001155 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001156 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001157 "isolation_level": ["1"],
1158 "test_regression": [False],
1159 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001160 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001161 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001162 "with_bl2": [True],
1163 "with_ns": [True],
1164 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001165 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001166 "nsce": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001167 },
1168 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001169 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001170 }
1171
Dean Birch4c6ad622020-03-13 11:28:03 +00001172# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001173config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001174 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001175 "toolchain_file": ["toolchain_ARMCLANG.cmake",
1176 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001177 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001178 "isolation_level": ["1", "2"],
1179 "test_regression": [True, False],
1180 "test_psa_api": ["OFF"],
1181 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001182 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001183 "with_bl2": [True, False],
1184 "with_ns": [True],
1185 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001186 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001187 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001188 },
1189 "common_params": _common_tfm_builder_cfg,
1190 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001191 ("*", "toolchain_ARMCLANG.cmake", False, "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001192 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001193 ("*", "toolchain_ARMCLANG.cmake", True, "1", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001194 "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001195 ]
1196 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001197
Xinyu Zhangb708f572020-09-15 11:43:46 +08001198config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001199 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001200 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001201 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001202 "isolation_level": ["1", "2"],
1203 "test_regression": [True],
1204 "test_psa_api": ["OFF"],
1205 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001206 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001207 "with_bl2": [True, False],
1208 "with_ns": [True, False],
1209 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001210 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001211 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001212 },
1213 "common_params": _common_tfm_builder_cfg,
1214 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001215 ("arm/mps2/an521", "toolchain_GNUARM.cmake", False, "2", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001216 "*", "*", True, "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001217 ]
1218 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001219
Karl Zhangaff558a2020-05-15 14:28:23 +01001220_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001221 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001222 "tfm_test": config_tfm_test,
1223 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001224 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +01001225 "tfm_test_otp": config_tfm_test_OTP,
1226 "psa_api": config_PSA_API,
1227 "psa_api_otp": config_PSA_API_OTP,
1228 "psa_ff": config_PSA_FF,
1229 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001230 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001231 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001232 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Karl Zhang14573bc2020-06-08 09:23:21 +08001233
1234 #nightly test group
1235 "nightly_test": config_nightly,
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001236 "nightly_nsce": config_nightly_nsce,
Karl Zhang14573bc2020-06-08 09:23:21 +08001237 "nightly_profile": config_nightly_profile,
1238 "nightly_psa_api": config_nightly_PSA_API,
1239 "nightly_ff": config_nightly_PSA_FF,
1240 "nightly_otp": config_nightly_OTP,
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001241 "nightly_psoc64": config_nightly_psoc64,
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +08001242 "nightly_stm32l562e_dk": config_nightly_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001243 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Karl Zhang14573bc2020-06-08 09:23:21 +08001244
1245 #per patch test group
1246 "pp_test": config_pp_test,
1247 "pp_OTP": config_pp_OTP,
1248 "pp_PSA_API": config_pp_PSA_API,
1249 "pp_psoc64": config_pp_PSoC64,
1250
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001251 #code coverage test group
1252 "coverage_an519": config_cov_an519,
1253 "coverage_an521": config_cov_an521,
1254
Karl Zhang14573bc2020-06-08 09:23:21 +08001255 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001256 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001257
1258 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001259 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001260 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001261 "an521_psa_api": config_AN521_PSA_API,
1262 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001263 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001264 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001265 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001266 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001267 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001268 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001269 "ipc": config_IPC,
1270 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001271 "debug": config_debug,
Karl Zhangaff558a2020-05-15 14:28:23 +01001272 "release": config_release,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001273 "debug": config_debug,
Karl Zhang14573bc2020-06-08 09:23:21 +08001274
1275 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001276 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001277 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001278
1279if __name__ == '__main__':
1280 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001281
Minos Galanakisea421232019-06-20 17:11:28 +01001282 # Default behavior is to export refference config when called
1283 _dir = os.getcwd()
1284 from utils import save_json
1285 for _cname, _cfg in _builtin_configs.items():
1286 _fname = os.path.join(_dir, _cname + ".json")
1287 print("Exporting config %s" % _fname)
1288 save_json(_fname, _cfg)