blob: 3f8099680025484f720d793ad3fb3b5e7cf568ba [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 Zhangc0aad0a2021-11-10 16:07:28 +0800157 # PSA_ACK IPC (FF) does not support LVL3
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800158 ("*", "*", "*", "3", "*", "IPC", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800159 # Musca requires BL2
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800160 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
161 ("arm/musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800162 # psoc64 cannot use BL2
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800163 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800164 # psoc64 does not support Debug build type
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800165 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800166 # Musca b1 SSE 200 does not support Profile S
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800167 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800168 # Musca B1 Secure Enclave requires IPC model, BL2, and supports only Isolation Level 1
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800169 ("arm/musca_b1/secure_enclave", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
170 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
171 ("arm/musca_b1/secure_enclave", "*", "*", "2", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100172 # Musca B1 Secure Enclave does not support tests, profiles, NS side building
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800173 ("arm/musca_b1/secure_enclave", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*", "*"),
174 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "IPC", "*", "*", "*", "*", "*", "*", "*"),
175 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", "*", "*", "*", "*"),
176 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*"),
177 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "STORAGE", "*", "*", "*", "*", "*", "*", "*"),
178 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
179 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800180 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800181 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800182 # PARTITION_PS could be OFF only for Profile S and M
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800183 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF", "*"),
184 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "OFF", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800185 # PARTITION_PS should be OFF for Profile S
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800186 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800187 # Proile M only support for IPC model
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800188 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800189 # Profile M only support for Isolation Level 2
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800190 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
191 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800192 # Profile L only support for Isolation Level 3
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800193 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
194 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800195 # Profile S does not support IPC model
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800196 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800197 # Profile S only supports Isolation Level 1
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800198 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800199 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800200 # Only AN521 and MUSCA_B1 support Isolation Level 3
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800201 ("arm/mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
202 ("arm/mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
203 ("arm/musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
204 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
205 ("arm/musca_b1/secure_enclave", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700206 # stm/stm32l562e_dk uses BL2
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800207 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700208 # stm/stm32l562e_dk does not support Debug build type
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800209 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700210 # nxp/lpcxpresso55s69 only build with GCC
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800211 ("nxp/lpcxpresso55s69", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700212 # nxp/lpcxpresso55s69 only build Profile M
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800213 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
214 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700215 # nxp/lpcxpresso55s69 have to turn off BL2 when build regression test
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800216 ("nxp/lpcxpresso55s69", "*", "*", "*", "True", "*", "*", "*", "True", "*", "*", "*", "*"),
217 # NSID does not support multi core
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800218 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "ON"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800219 ]
220
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100221# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100222config_AN524 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800223 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800224 "toolchain_file": ["toolchain_GNUARM.cmake",
225 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800226 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800227 "isolation_level": ["1", "2"],
228 "test_regression": [True, False],
229 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100230 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800231 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800232 "with_bl2": [True, False],
233 "with_ns": [True, False],
234 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800235 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800236 "nsce": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100237 },
238 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800239 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100240 }
241
Karl Zhangaff558a2020-05-15 14:28:23 +0100242config_AN521 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800243 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800244 "toolchain_file": ["toolchain_GNUARM.cmake",
245 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800246 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800247 "isolation_level": ["1", "2"],
248 "test_regression": [True, False],
249 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100250 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800251 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800252 "with_bl2": [True, False],
253 "with_ns": [True, False],
254 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800255 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800256 "nsce": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100257 },
258 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800259 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100260 }
261
Karl Zhangaff558a2020-05-15 14:28:23 +0100262config_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800263 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
264 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800265 "toolchain_file": ["toolchain_GNUARM.cmake",
266 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800267 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800268 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800269 "test_regression": [False],
270 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800271 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800272 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100273 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800274 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800275 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800276 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800277 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800278 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800279 "nsce": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100280 },
281 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800282 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100283 }
284
Karl Zhangaff558a2020-05-15 14:28:23 +0100285config_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800286 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
287 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800288 "toolchain_file": ["toolchain_GNUARM.cmake",
289 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800290 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800291 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800292 "test_regression": [False],
293 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100294 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800295 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800296 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800297 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800298 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800299 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800300 "nsce": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100301 },
302 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800303 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100304 }
305
Karl Zhangaff558a2020-05-15 14:28:23 +0100306config_PSA_API_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800307 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800308 "toolchain_file": ["toolchain_GNUARM.cmake",
309 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800310 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800311 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800312 "test_regression": [False],
313 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800314 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800315 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100316 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800317 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800318 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800319 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800320 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800321 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800322 "nsce": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100323 },
324 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800325 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100326 }
Minos Galanakisea421232019-06-20 17:11:28 +0100327
Xinyu Zhangb708f572020-09-15 11:43:46 +0800328config_PSA_FF_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800329 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800330 "toolchain_file": ["toolchain_GNUARM.cmake",
331 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800332 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800333 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800334 "test_regression": [False],
335 "test_psa_api": ["IPC"],
336 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800337 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800338 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800339 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800340 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800341 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800342 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800343 },
344 "common_params": _common_tfm_builder_cfg,
345 "invalid": _common_tfm_invalid_configs + []
346 }
347
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800348config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800349 "tfm_platform": ["cypress/psoc64"],
350 "toolchain_file": ["toolchain_GNUARM.cmake",
351 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800352 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800353 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800354 "test_regression": [True],
355 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800356 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800357 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800358 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800359 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800360 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800361 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800362 "nsce": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800363 },
364 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800365 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800366 }
367
Arthur She19c0e1a2021-06-02 11:06:19 -0700368config_STM32L562E_DK = {"seed_params": {
369 "tfm_platform": ["stm/stm32l562e_dk"],
370 "toolchain_file": ["toolchain_GNUARM.cmake",
371 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800372 "lib_model": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700373 "isolation_level": ["1", "2", "3"],
374 "test_regression": [True],
375 "test_psa_api": ["OFF"],
376 "cmake_build_type": ["Release"],
377 "with_otp": ["off"],
378 "with_bl2": [True],
379 "with_ns": [True],
380 "profile": [""],
381 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800382 "nsce": ["OFF"],
Arthur She19c0e1a2021-06-02 11:06:19 -0700383 },
384 "common_params": _common_tfm_builder_cfg,
385 "invalid": _common_tfm_invalid_configs + []
386 }
387
Arthur Shef3657742021-09-07 14:23:18 -0700388config_LPCXPRESSO55S69 = {"seed_params": {
389 "tfm_platform": ["nxp/lpcxpresso55s69"],
390 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800391 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700392 "isolation_level": ["2"],
393 "test_regression": [True, False],
394 "test_psa_api": ["OFF"],
395 "cmake_build_type": ["Relwithdebinfo"],
396 "with_otp": ["off"],
397 "with_bl2": [True, False],
398 "with_ns": [True],
399 "profile": ["profile_medium"],
400 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800401 "nsce": ["OFF"],
Arthur Shef3657742021-09-07 14:23:18 -0700402 },
403 "common_params": _common_tfm_builder_cfg,
404 "invalid": _common_tfm_invalid_configs + []
405 }
406
Xinyu Zhang6afdd612021-10-12 17:07:32 +0800407config_corstone1000 = {"seed_params": {
408 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800409 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800410 "lib_model": [False],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800411 "isolation_level": ["1"],
412 "test_regression": [False],
413 "test_psa_api": ["OFF"],
414 "cmake_build_type": ["Debug"],
415 "with_otp": ["off"],
416 "with_bl2": [True],
417 "with_ns": [False],
418 "profile": [""],
419 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800420 "nsce": ["OFF"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800421 },
422 "common_params": _common_tfm_builder_cfg,
423 "invalid": _common_tfm_invalid_configs + []
424 }
425
Minos Galanakisea421232019-06-20 17:11:28 +0100426config_AN519 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800427 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800428 "toolchain_file": ["toolchain_GNUARM.cmake",
429 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800430 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800431 "isolation_level": ["1", "2"],
432 "test_regression": [True, False],
433 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100434 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800435 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800436 "with_bl2": [True, False],
437 "with_ns": [True, False],
438 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800439 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800440 "nsce": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100441 },
442 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800443 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100444 }
445
Xinyu Zhangb708f572020-09-15 11:43:46 +0800446config_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800447 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
448 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800449 "toolchain_file": ["toolchain_GNUARM.cmake",
450 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800451 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800452 "isolation_level": ["1", "2"],
453 "test_regression": [True, False],
454 "test_psa_api": ["OFF"],
455 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800456 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800457 "with_bl2": [True, False],
458 "with_ns": [True, False],
459 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800460 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800461 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800462 },
Minos Galanakisea421232019-06-20 17:11:28 +0100463 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800464 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100465 }
466
Minos Galanakisea421232019-06-20 17:11:28 +0100467config_full = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800468 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
469 "arm/musca_b1/sse_200",
470 "arm/mps3/an524", "cypress/psoc64",
Arthur She19c0e1a2021-06-02 11:06:19 -0700471 "arm/musca_b1/secure_enclave",
Arthur Shef3657742021-09-07 14:23:18 -0700472 "stm/stm32l562e_dk",
473 "nxp/lpcxpresso55s69"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800474 "toolchain_file": ["toolchain_GNUARM.cmake",
475 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800476 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800477 "isolation_level": ["1", "2"],
478 "test_regression": [True, False],
479 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800480 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800481 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800482 "with_bl2": [True, False],
483 "with_ns": [True, False],
484 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800485 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800486 "nsce": ["OFF"],
Dean Birchd6ce2c82020-05-13 13:16:15 +0100487 },
488 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800489 "invalid": _common_tfm_invalid_configs + [
490 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800491 "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800492 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800493 "*", "*", "*", "*", True, True, "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800494 ("arm/mps2/an521", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800495 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800496 ("arm/mps2/an519", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800497 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800498 ("arm/musca_b1/sse_200", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800499 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800500 ("arm/mps3/an524", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800501 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800502 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800503 }
504
Karl Zhangaff558a2020-05-15 14:28:23 +0100505config_tfm_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800506 "tfm_platform": ["arm/mps2/an521",
507 "arm/musca_b1/sse_200", "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800508 "toolchain_file": ["toolchain_ARMCLANG.cmake",
509 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800510 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800511 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800512 "test_regression": [True, False],
513 "test_psa_api": ["OFF"],
514 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800515 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800516 "with_bl2": [True],
517 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800518 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800519 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800520 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800521 },
522 "common_params": _common_tfm_builder_cfg,
523 "invalid": _common_tfm_invalid_configs + []
524 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800525
Karl Zhangaff558a2020-05-15 14:28:23 +0100526config_tfm_test2 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800527 "tfm_platform": ["arm/mps2/an519", "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800528 "toolchain_file": ["toolchain_ARMCLANG.cmake",
529 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800530 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800531 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800532 "test_regression": [True, False],
533 "test_psa_api": ["OFF"],
534 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800535 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800536 "with_bl2": [True],
537 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800538 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800539 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800540 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800541 },
542 "common_params": _common_tfm_builder_cfg,
543 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800544 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800545 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800546 ]
547 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100548
Karl Zhang14573bc2020-06-08 09:23:21 +0800549config_tfm_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800550 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
551 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800552 "toolchain_file": ["toolchain_ARMCLANG.cmake",
553 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800554 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800555 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800556 "test_regression": [True, False],
557 "test_psa_api": ["OFF"],
558 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800559 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800560 "with_bl2": [True],
561 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800562 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800563 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800564 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800565 },
566 "common_params": _common_tfm_builder_cfg,
567 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800568 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800569 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800570 # Profile Large is only supported by AN521
Summer Qin3c2b5722021-05-26 10:43:45 +0800571 ("arm/mps2/an519", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800572 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800573 ("arm/musca_b1/sse_200", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800574 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800575 ]
576 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800577
Karl Zhangaff558a2020-05-15 14:28:23 +0100578config_tfm_test_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800579 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800580 "toolchain_file": ["toolchain_ARMCLANG.cmake",
581 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800582 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800583 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800584 "test_regression": [True, False],
585 "test_psa_api": ["OFF"],
586 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800587 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800588 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800589 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800590 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800591 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800592 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800593 },
594 "common_params": _common_tfm_builder_cfg,
595 "invalid": _common_tfm_invalid_configs + []
596 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100597
Minos Galanakisea421232019-06-20 17:11:28 +0100598config_MUSCA_B1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800599 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800600 "toolchain_file": ["toolchain_ARMCLANG.cmake",
601 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800602 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800603 "isolation_level": ["1", "2"],
604 "test_regression": [True, False],
605 "test_psa_api": ["OFF"],
606 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800607 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800608 "with_bl2": [True],
609 "with_ns": [True, False],
610 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800611 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800612 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800613 },
614 "common_params": _common_tfm_builder_cfg,
615 "invalid": _common_tfm_invalid_configs + []
616 }
Minos Galanakisea421232019-06-20 17:11:28 +0100617
Mark Horvath8d281cd2020-12-07 15:20:26 +0100618config_MUSCA_B1_SE = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800619 "tfm_platform": ["arm/musca_b1/secure_enclave"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100620 "toolchain_file": ["toolchain_ARMCLANG.cmake",
621 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800622 "lib_model": [False],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100623 "isolation_level": ["1"],
624 "test_regression": [False],
625 "test_psa_api": ["OFF"],
626 "cmake_build_type": ["Debug", "Release"],
627 "with_otp": ["off"],
628 "with_bl2": [True],
629 "with_ns": [False],
630 "profile": [""],
631 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800632 "nsce": ["OFF"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100633 },
634 "common_params": _common_tfm_builder_cfg,
635 "invalid": _common_tfm_invalid_configs + []
636 }
637
Karl Zhangeffed972020-06-30 15:48:01 +0800638config_MUSCA_S1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800639 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800640 "toolchain_file": ["toolchain_ARMCLANG.cmake",
641 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800642 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800643 "isolation_level": ["1", "2"],
644 "test_regression": [True, False],
645 "test_psa_api": ["OFF"],
646 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800647 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800648 "with_bl2": [True],
649 "with_ns": [True, False],
650 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800651 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800652 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800653 },
654 "common_params": _common_tfm_builder_cfg,
655 "invalid": _common_tfm_invalid_configs + []
656 }
Karl Zhangeffed972020-06-30 15:48:01 +0800657
Karl Zhangaff558a2020-05-15 14:28:23 +0100658config_release = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800659 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
660 "arm/musca_b1/sse_200", "arm/musca_s1",
661 "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800662 "toolchain_file": ["toolchain_ARMCLANG.cmake",
663 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800664 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800665 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800666 "test_regression": [True, False],
667 "test_psa_api": ["OFF"],
668 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800669 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800670 "with_bl2": [True, False],
671 "with_ns": [True, False],
672 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800673 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800674 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800675 },
676 "common_params": _common_tfm_builder_cfg,
677 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800678 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800679 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800680 ]
681 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100682
683# Configure build manager to build several combinations
684config_AN521_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800685 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
686 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800687 "toolchain_file": ["toolchain_GNUARM.cmake",
688 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800689 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800690 "isolation_level": ["1", "2"],
691 "test_regression": [False],
692 "test_psa_api": ["IPC",
693 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800694 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800695 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800696 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800697 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800698 "with_bl2": [True],
699 "with_ns": [True, False],
700 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800701 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800702 "nsce": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100703 },
704 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800705 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800706 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800707 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800708 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100709 }
710
Karl Zhangaff558a2020-05-15 14:28:23 +0100711config_AN521_PSA_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800712 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
713 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800714 "toolchain_file": ["toolchain_GNUARM.cmake",
715 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800716 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800717 "isolation_level": ["1", "2"],
718 "test_regression": [False],
719 "test_psa_api": ["IPC"],
720 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800721 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800722 "with_bl2": [True],
723 "with_ns": [True, False],
724 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800725 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800726 "nsce": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100727 },
728 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800729 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800730 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800731 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800732 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100733 }
734
Karl Zhang14573bc2020-06-08 09:23:21 +0800735config_nightly = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800736 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
737 "arm/musca_b1/sse_200", "arm/musca_s1",
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800738 "arm/mps3/an524", "stm/stm32l562e_dk",
739 "arm/musca_b1/secure_enclave"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800740 "toolchain_file": ["toolchain_GNUARM.cmake",
741 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800742 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800743 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800744 "test_regression": [True, False],
745 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800746 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800747 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800748 "with_bl2": [True],
749 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800750 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800751 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800752 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800753 },
754 "common_params": _common_tfm_builder_cfg,
755 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800756 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800757 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800758 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800759 "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800760 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800761 "*", "*", "*", "*", True, True, "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800762 ("arm/mps2/an521", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800763 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800764 ("arm/mps2/an519", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800765 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800766 ("arm/musca_b1/sse_200", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800767 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800768 ("arm/musca_s1", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800769 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800770 ("arm/mps3/an524", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800771 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800772 ]
773 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800774
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800775config_nightly_nsce = {"seed_params": {
776 "tfm_platform": ["arm/mps2/an521"],
777 "toolchain_file": ["toolchain_GNUARM.cmake",
778 "toolchain_ARMCLANG.cmake"],
779 "lib_model": [True, False],
780 "isolation_level": ["1", "2", "3"],
781 "test_regression": [True],
782 "test_psa_api": ["OFF"],
783 "cmake_build_type": ["Debug"],
784 "with_otp": ["off"],
785 "with_bl2": [True],
786 "with_ns": [True],
787 "profile": [""],
788 "partition_ps": ["ON"],
789 "nsce": ["ON"],
790 },
791 "common_params": _common_tfm_builder_cfg,
792 "invalid": _common_tfm_invalid_configs + []
793 }
794
Karl Zhang14573bc2020-06-08 09:23:21 +0800795config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800796 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
797 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800798 "toolchain_file": ["toolchain_ARMCLANG.cmake",
799 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800800 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800801 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800802 "test_regression": [True, False],
803 "test_psa_api": ["OFF"],
804 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800805 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800806 "with_bl2": [True],
807 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800808 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800809 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800810 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800811 },
812 "common_params": _common_tfm_builder_cfg,
813 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800814 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800815 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800816 # Profile Large is only supported by AN521
Summer Qin3c2b5722021-05-26 10:43:45 +0800817 ("arm/mps2/an519", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800818 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800819 ("arm/musca_b1/sse_200", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800820 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800821 ]
822 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800823
Karl Zhang14573bc2020-06-08 09:23:21 +0800824config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800825 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
826 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800827 "toolchain_file": ["toolchain_GNUARM.cmake",
828 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800829 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800830 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800831 "test_regression": [False],
832 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800833 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800834 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800835 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800836 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800837 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800838 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800839 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800840 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800841 "nsce": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800842 },
843 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800844 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800845 }
846
Karl Zhang14573bc2020-06-08 09:23:21 +0800847config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800848 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
849 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800850 "toolchain_file": ["toolchain_GNUARM.cmake",
851 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800852 "lib_model": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800853 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800854 "test_regression": [False],
855 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800856 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800857 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800858 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800859 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800860 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800861 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800862 "nsce": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800863 },
864 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800865 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800866 }
867
Karl Zhang14573bc2020-06-08 09:23:21 +0800868config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800869 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800870 "toolchain_file": ["toolchain_GNUARM.cmake",
871 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800872 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800873 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800874 "test_regression": [True],
875 "test_psa_api": ["OFF"],
876 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800877 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800878 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800879 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800880 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800881 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800882 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800883 },
884 "common_params": _common_tfm_builder_cfg,
885 "invalid": _common_tfm_invalid_configs + []
886 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800887
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800888config_nightly_psoc64 = {"seed_params": {
889 "tfm_platform": ["cypress/psoc64"],
890 "toolchain_file": ["toolchain_GNUARM.cmake",
891 "toolchain_ARMCLANG.cmake"],
892 "lib_model": [False],
893 "isolation_level": ["1", "2"],
894 "test_regression": [True],
895 "test_psa_api": ["OFF"],
896 "cmake_build_type": ["Release"],
897 "with_otp": ["off"],
898 "with_bl2": [False],
899 "with_ns": [True],
900 "profile": [""],
901 "partition_ps": ["ON"],
902 "nsce": ["OFF"],
903 },
904 "common_params": _common_tfm_builder_cfg,
905 "invalid": _common_tfm_invalid_configs + []
906 }
907
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800908config_nightly_STM32L562E_DK = {"seed_params": {
909 "tfm_platform": ["stm/stm32l562e_dk"],
910 "toolchain_file": ["toolchain_GNUARM.cmake",
911 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800912 "lib_model": [True, False],
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800913 "isolation_level": ["1", "2", "3"],
914 "test_regression": [True],
915 "test_psa_api": ["OFF"],
916 "cmake_build_type": ["Release"],
917 "with_otp": ["off"],
918 "with_bl2": [True],
919 "with_ns": [True],
920 "profile": [""],
921 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800922 "nsce": ["OFF"],
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800923 },
924 "common_params": _common_tfm_builder_cfg,
925 "invalid": _common_tfm_invalid_configs + []
926 }
927
Arthur Shef3657742021-09-07 14:23:18 -0700928config_nightly_LPCXPRESSO55S69 = {"seed_params": {
929 "tfm_platform": ["nxp/lpcxpresso55s69"],
930 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800931 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700932 "isolation_level": ["2"],
933 "test_regression": [True, False],
934 "test_psa_api": ["OFF"],
935 "cmake_build_type": ["Relwithdebinfo"],
936 "with_otp": ["off"],
937 "with_bl2": [True, False],
938 "with_ns": [True],
939 "profile": ["profile_medium"],
940 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800941 "nsce": ["OFF"],
Arthur Shef3657742021-09-07 14:23:18 -0700942 },
943 "common_params": _common_tfm_builder_cfg,
944 "invalid": _common_tfm_invalid_configs + []
945 }
946
Karl Zhang14573bc2020-06-08 09:23:21 +0800947config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800948 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +0800949 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800950 "toolchain_file": ["toolchain_GNUARM.cmake",
951 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800952 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +0800953 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800954 "test_regression": [True],
955 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +0800956 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800957 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800958 "with_bl2": [True],
959 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +0800960 "profile": ["", "profile_small", "profile_medium"],
961 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800962 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800963 },
964 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +0800965 "valid": [
Summer Qin3c2b5722021-05-26 10:43:45 +0800966 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800967 True, "1", False, "OFF", "Debug",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800968 "off", True, True, "", "ON", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800969 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800970 False, "2", False, "OFF", "Debug",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800971 "off", True, True, "", "ON", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800972 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800973 False, "3", False, "OFF", "Release",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800974 "off", True, True, "", "ON", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800975 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800976 False, "2", False, "OFF", "Debug",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800977 "off", True, True, "profile_medium", "ON", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800978 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800979 False, "3", False, "OFF", "Debug",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800980 "off", True, True, "profile_large", "ON", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800981 # AN521_GNUARM_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800982 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
983 False, "2", True, "OFF", "Release",
984 "off", True, True, "profile_medium", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800985 # MUSCA_B1_GNUARM_LIB_1_REG_Minsizerel_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800986 ("arm/musca_b1/sse_200", "toolchain_GNUARM.cmake",
987 True, "1", True, "OFF", "Minsizerel",
988 "off", True, True, "", "ON", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800989 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800990 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake",
991 False, "1", True, "OFF", "Release",
992 "off", True, True, "", "ON", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800993 # stm32l562e_dk_GNUARM_IPC_2_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800994 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
995 False, "2", True, "OFF", "Release",
996 "off", True, True, "", "ON", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800997 # stm32l562e_dk_GNUARM_IPC_3_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800998 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
999 False, "3", True, "OFF", "Release",
1000 "off", True, True, "", "ON", "OFF"),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001001 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001002 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001003 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +08001004 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001005 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001006 # valid configs supported by TF-M but not needed in per-patch
1007 ("*", "*", "*", "1", "*", "*", "Release",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001008 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001009 ("*", "*", "*", "1", "*", "*", "Minsizerel",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001010 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001011 ("*", "*", "*", "2", "*", "*", "Debug",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001012 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001013 ("*", "*", "*", "2", "*", "*", "Minsizerel",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001014 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001015 ("*", "*", "*", "3", "*", "*", "Debug",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001016 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001017 ("*", "*", "*", "3", "*", "*", "Release",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001018 "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001019 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001020 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001021 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001022 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001023 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001024 "*", "*", "*", "*", "profile_medium", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001025 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001026 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001027 ("*", "toolchain_GNUARM.cmake", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001028 "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001029 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001030 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001031 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001032 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001033 ]
1034 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001035
Karl Zhang14573bc2020-06-08 09:23:21 +08001036config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001037 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001038 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001039 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001040 "isolation_level": ["1", "2"],
1041 "test_regression": [True],
1042 "test_psa_api": ["OFF"],
1043 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001044 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001045 "with_bl2": [True],
1046 "with_ns": [True, False],
1047 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001048 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001049 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001050 },
1051 "common_params": _common_tfm_builder_cfg,
1052 "invalid": _common_tfm_invalid_configs + []
1053 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001054
1055# Configure build manager to build several combinations
1056config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001057 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001058 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001059 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001060 "isolation_level": ["2"],
1061 "test_regression": [False],
1062 "test_psa_api": ["IPC",
1063 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001064 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +08001065 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001066 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001067 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001068 "with_bl2": [True],
1069 "with_ns": [True, False],
1070 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001071 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001072 "nsce": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001073 },
1074 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001075 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001076 }
1077
Karl Zhang14573bc2020-06-08 09:23:21 +08001078config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001079 "tfm_platform": ["cypress/psoc64"],
1080 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001081 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001082 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001083 "test_regression": [True],
1084 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001085 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001086 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001087 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001088 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001089 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001090 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001091 "nsce": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001092 },
1093 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001094 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001095 }
1096
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001097config_cov_an519 = {"seed_params": {
1098 "tfm_platform": ["arm/mps2/an519"],
1099 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001100 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001101 "isolation_level": ["1", "2", "3"],
1102 "test_regression": [True, False],
1103 "test_psa_api": ["OFF"],
1104 "cmake_build_type": ["Debug", "Release"],
1105 "with_otp": ["off"],
1106 "with_bl2": [True],
1107 "with_ns": [True],
1108 "profile": ["", "profile_small", "profile_medium"],
1109 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001110 "nsce": ["OFF"],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001111 },
1112 "common_params": _common_tfm_builder_cfg,
1113 "invalid": _common_tfm_invalid_configs + []
1114 }
1115
1116config_cov_an521 = {"seed_params": {
1117 "tfm_platform": ["arm/mps2/an521"],
1118 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001119 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001120 "isolation_level": ["1", "2", "3"],
1121 "test_regression": [True, False],
1122 "test_psa_api": ["OFF"],
1123 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1124 "with_otp": ["off"],
1125 "with_bl2": [True],
1126 "with_ns": [True],
1127 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1128 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001129 "nsce": ["OFF"],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001130 },
1131 "common_params": _common_tfm_builder_cfg,
1132 "invalid": _common_tfm_invalid_configs + []
1133 }
1134
Minos Galanakisea421232019-06-20 17:11:28 +01001135# Configruation used for document building
1136config_doxygen = {"common_params": {
1137 "config_type": "tf-m_documents",
1138 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001139 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001140 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001141 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001142 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001143 "cmake --build ./ -- docs"]},
1144 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1145 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001146 r'/(\w+\.(?:html|md|pdf))$',
1147 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001148 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001149 }
1150
Karl Zhangaff558a2020-05-15 14:28:23 +01001151# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +01001152config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001153 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001154 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001155 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001156 "isolation_level": ["1"],
1157 "test_regression": [False],
1158 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001159 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001160 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001161 "with_bl2": [True],
1162 "with_ns": [True],
1163 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001164 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001165 "nsce": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001166 },
1167 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001168 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001169 }
1170
Dean Birch4c6ad622020-03-13 11:28:03 +00001171# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001172config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001173 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001174 "toolchain_file": ["toolchain_ARMCLANG.cmake",
1175 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001176 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001177 "isolation_level": ["1", "2"],
1178 "test_regression": [True, False],
1179 "test_psa_api": ["OFF"],
1180 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001181 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001182 "with_bl2": [True, False],
1183 "with_ns": [True],
1184 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001185 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001186 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001187 },
1188 "common_params": _common_tfm_builder_cfg,
1189 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001190 ("*", "toolchain_ARMCLANG.cmake", False, "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001191 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001192 ("*", "toolchain_ARMCLANG.cmake", True, "1", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001193 "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001194 ]
1195 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001196
Xinyu Zhangb708f572020-09-15 11:43:46 +08001197config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001198 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001199 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001200 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001201 "isolation_level": ["1", "2"],
1202 "test_regression": [True],
1203 "test_psa_api": ["OFF"],
1204 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001205 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001206 "with_bl2": [True, False],
1207 "with_ns": [True, False],
1208 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001209 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001210 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001211 },
1212 "common_params": _common_tfm_builder_cfg,
1213 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001214 ("arm/mps2/an521", "toolchain_GNUARM.cmake", False, "2", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001215 "*", "*", True, "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001216 ]
1217 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001218
Karl Zhangaff558a2020-05-15 14:28:23 +01001219_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001220 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001221 "tfm_test": config_tfm_test,
1222 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001223 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +01001224 "tfm_test_otp": config_tfm_test_OTP,
1225 "psa_api": config_PSA_API,
1226 "psa_api_otp": config_PSA_API_OTP,
1227 "psa_ff": config_PSA_FF,
1228 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001229 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001230 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001231 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Karl Zhang14573bc2020-06-08 09:23:21 +08001232
1233 #nightly test group
1234 "nightly_test": config_nightly,
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001235 "nightly_nsce": config_nightly_nsce,
Karl Zhang14573bc2020-06-08 09:23:21 +08001236 "nightly_profile": config_nightly_profile,
1237 "nightly_psa_api": config_nightly_PSA_API,
1238 "nightly_ff": config_nightly_PSA_FF,
1239 "nightly_otp": config_nightly_OTP,
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001240 "nightly_psoc64": config_nightly_psoc64,
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +08001241 "nightly_stm32l562e_dk": config_nightly_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001242 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Karl Zhang14573bc2020-06-08 09:23:21 +08001243
1244 #per patch test group
1245 "pp_test": config_pp_test,
1246 "pp_OTP": config_pp_OTP,
1247 "pp_PSA_API": config_pp_PSA_API,
1248 "pp_psoc64": config_pp_PSoC64,
1249
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001250 #code coverage test group
1251 "coverage_an519": config_cov_an519,
1252 "coverage_an521": config_cov_an521,
1253
Karl Zhang14573bc2020-06-08 09:23:21 +08001254 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001255 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001256
1257 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001258 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001259 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001260 "an521_psa_api": config_AN521_PSA_API,
1261 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001262 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001263 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001264 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001265 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001266 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001267 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001268 "ipc": config_IPC,
1269 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001270 "debug": config_debug,
Karl Zhangaff558a2020-05-15 14:28:23 +01001271 "release": config_release,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001272 "debug": config_debug,
Karl Zhang14573bc2020-06-08 09:23:21 +08001273
1274 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001275 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001276 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001277
1278if __name__ == '__main__':
1279 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001280
Minos Galanakisea421232019-06-20 17:11:28 +01001281 # Default behavior is to export refference config when called
1282 _dir = os.getcwd()
1283 from utils import save_json
1284 for _cname, _cfg in _builtin_configs.items():
1285 _fname = os.path.join(_dir, _cname + ".json")
1286 print("Exporting config %s" % _fname)
1287 save_json(_fname, _cfg)