blob: bef04cdcb5931b90a2c757af3983fb40fa464174 [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 Zhang8258a5e2021-11-08 15:43:29 +0800169 # Musca b1 SSE 200 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", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800183 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800184 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800185 # PARTITION_PS could be OFF only for Profile S and M
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800186 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF", "*"),
187 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "OFF", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800188 # PARTITION_PS should be OFF for Profile S
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800189 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800190 # Proile M only support for IPC model
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800191 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800192 # Profile M only support for Isolation Level 2
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800193 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
194 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800195 # Profile L only support for Isolation Level 3
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800196 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
197 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800198 # Profile S does not support IPC model
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800199 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800200 # Profile S only supports Isolation Level 1
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800201 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800202 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800203 # Only AN521 and MUSCA_B1 support Isolation Level 3
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800204 ("arm/mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
205 ("arm/mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
206 ("arm/musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
207 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
208 ("arm/musca_b1/secure_enclave", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700209 # stm/stm32l562e_dk uses BL2
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800210 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700211 # stm/stm32l562e_dk does not support Debug build type
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800212 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700213 # nxp/lpcxpresso55s69 only build with GCC
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800214 ("nxp/lpcxpresso55s69", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700215 # nxp/lpcxpresso55s69 only build Profile M
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800216 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
217 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700218 # nxp/lpcxpresso55s69 have to turn off BL2 when build regression test
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800219 ("nxp/lpcxpresso55s69", "*", "*", "*", "True", "*", "*", "*", "True", "*", "*", "*", "*"),
220 # NSID does not support multi core
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800221 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "ON"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800222 ]
223
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100224# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100225config_AN524 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800226 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800227 "toolchain_file": ["toolchain_GNUARM.cmake",
228 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800229 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800230 "isolation_level": ["1", "2"],
231 "test_regression": [True, False],
232 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100233 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800234 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800235 "with_bl2": [True, False],
236 "with_ns": [True, False],
237 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800238 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800239 "nsce": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100240 },
241 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800242 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100243 }
244
Karl Zhangaff558a2020-05-15 14:28:23 +0100245config_AN521 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800246 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800247 "toolchain_file": ["toolchain_GNUARM.cmake",
248 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800249 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800250 "isolation_level": ["1", "2"],
251 "test_regression": [True, False],
252 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100253 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800254 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800255 "with_bl2": [True, False],
256 "with_ns": [True, False],
257 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800258 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800259 "nsce": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100260 },
261 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800262 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100263 }
264
Karl Zhangaff558a2020-05-15 14:28:23 +0100265config_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800266 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
267 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800268 "toolchain_file": ["toolchain_GNUARM.cmake",
269 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800270 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800271 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800272 "test_regression": [False],
273 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800274 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800275 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100276 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800277 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800278 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800279 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800280 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800281 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800282 "nsce": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100283 },
284 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800285 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100286 }
287
Karl Zhangaff558a2020-05-15 14:28:23 +0100288config_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800289 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
290 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800291 "toolchain_file": ["toolchain_GNUARM.cmake",
292 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800293 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800294 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800295 "test_regression": [False],
296 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100297 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800298 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800299 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800300 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800301 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800302 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800303 "nsce": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100304 },
305 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800306 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100307 }
308
Karl Zhangaff558a2020-05-15 14:28:23 +0100309config_PSA_API_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800310 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800311 "toolchain_file": ["toolchain_GNUARM.cmake",
312 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800313 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800314 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800315 "test_regression": [False],
316 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800317 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800318 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100319 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800320 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800321 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800322 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800323 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800324 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800325 "nsce": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100326 },
327 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800328 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100329 }
Minos Galanakisea421232019-06-20 17:11:28 +0100330
Xinyu Zhangb708f572020-09-15 11:43:46 +0800331config_PSA_FF_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800332 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800333 "toolchain_file": ["toolchain_GNUARM.cmake",
334 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800335 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800336 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800337 "test_regression": [False],
338 "test_psa_api": ["IPC"],
339 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800340 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800341 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800342 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800343 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800344 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800345 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800346 },
347 "common_params": _common_tfm_builder_cfg,
348 "invalid": _common_tfm_invalid_configs + []
349 }
350
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800351config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800352 "tfm_platform": ["cypress/psoc64"],
353 "toolchain_file": ["toolchain_GNUARM.cmake",
354 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800355 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800356 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800357 "test_regression": [True],
358 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800359 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800360 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800361 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800362 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800363 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800364 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800365 "nsce": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800366 },
367 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800368 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800369 }
370
Arthur She19c0e1a2021-06-02 11:06:19 -0700371config_STM32L562E_DK = {"seed_params": {
372 "tfm_platform": ["stm/stm32l562e_dk"],
373 "toolchain_file": ["toolchain_GNUARM.cmake",
374 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800375 "lib_model": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700376 "isolation_level": ["1", "2", "3"],
377 "test_regression": [True],
378 "test_psa_api": ["OFF"],
379 "cmake_build_type": ["Release"],
380 "with_otp": ["off"],
381 "with_bl2": [True],
382 "with_ns": [True],
383 "profile": [""],
384 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800385 "nsce": ["OFF"],
Arthur She19c0e1a2021-06-02 11:06:19 -0700386 },
387 "common_params": _common_tfm_builder_cfg,
388 "invalid": _common_tfm_invalid_configs + []
389 }
390
Arthur Shef3657742021-09-07 14:23:18 -0700391config_LPCXPRESSO55S69 = {"seed_params": {
392 "tfm_platform": ["nxp/lpcxpresso55s69"],
393 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800394 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700395 "isolation_level": ["2"],
396 "test_regression": [True, False],
397 "test_psa_api": ["OFF"],
398 "cmake_build_type": ["Relwithdebinfo"],
399 "with_otp": ["off"],
400 "with_bl2": [True, False],
401 "with_ns": [True],
402 "profile": ["profile_medium"],
403 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800404 "nsce": ["OFF"],
Arthur Shef3657742021-09-07 14:23:18 -0700405 },
406 "common_params": _common_tfm_builder_cfg,
407 "invalid": _common_tfm_invalid_configs + []
408 }
409
Xinyu Zhang6afdd612021-10-12 17:07:32 +0800410config_corstone1000 = {"seed_params": {
411 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800412 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800413 "lib_model": [False],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800414 "isolation_level": ["1"],
415 "test_regression": [False],
416 "test_psa_api": ["OFF"],
417 "cmake_build_type": ["Debug"],
418 "with_otp": ["off"],
419 "with_bl2": [True],
420 "with_ns": [False],
421 "profile": [""],
422 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800423 "nsce": ["OFF"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800424 },
425 "common_params": _common_tfm_builder_cfg,
426 "invalid": _common_tfm_invalid_configs + []
427 }
428
Minos Galanakisea421232019-06-20 17:11:28 +0100429config_AN519 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800430 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800431 "toolchain_file": ["toolchain_GNUARM.cmake",
432 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800433 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800434 "isolation_level": ["1", "2"],
435 "test_regression": [True, False],
436 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100437 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800438 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800439 "with_bl2": [True, False],
440 "with_ns": [True, False],
441 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800442 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800443 "nsce": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100444 },
445 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800446 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100447 }
448
Xinyu Zhangb708f572020-09-15 11:43:46 +0800449config_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800450 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
451 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800452 "toolchain_file": ["toolchain_GNUARM.cmake",
453 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800454 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800455 "isolation_level": ["1", "2"],
456 "test_regression": [True, False],
457 "test_psa_api": ["OFF"],
458 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800459 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800460 "with_bl2": [True, False],
461 "with_ns": [True, False],
462 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800463 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800464 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800465 },
Minos Galanakisea421232019-06-20 17:11:28 +0100466 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800467 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100468 }
469
Minos Galanakisea421232019-06-20 17:11:28 +0100470config_full = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800471 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
472 "arm/musca_b1/sse_200",
473 "arm/mps3/an524", "cypress/psoc64",
Arthur She19c0e1a2021-06-02 11:06:19 -0700474 "arm/musca_b1/secure_enclave",
Arthur Shef3657742021-09-07 14:23:18 -0700475 "stm/stm32l562e_dk",
476 "nxp/lpcxpresso55s69"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800477 "toolchain_file": ["toolchain_GNUARM.cmake",
478 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800479 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800480 "isolation_level": ["1", "2"],
481 "test_regression": [True, False],
482 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800483 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800484 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800485 "with_bl2": [True, False],
486 "with_ns": [True, False],
487 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800488 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800489 "nsce": ["OFF"],
Dean Birchd6ce2c82020-05-13 13:16:15 +0100490 },
491 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800492 "invalid": _common_tfm_invalid_configs + [
493 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800494 "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800495 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800496 "*", "*", "*", "*", True, True, "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800497 ("arm/mps2/an521", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800498 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800499 ("arm/mps2/an519", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800500 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800501 ("arm/musca_b1/sse_200", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800502 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800503 ("arm/mps3/an524", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800504 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800505 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800506 }
507
Karl Zhangaff558a2020-05-15 14:28:23 +0100508config_tfm_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800509 "tfm_platform": ["arm/mps2/an521",
510 "arm/musca_b1/sse_200", "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800511 "toolchain_file": ["toolchain_ARMCLANG.cmake",
512 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800513 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800514 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800515 "test_regression": [True, False],
516 "test_psa_api": ["OFF"],
517 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800518 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800519 "with_bl2": [True],
520 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800521 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800522 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800523 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800524 },
525 "common_params": _common_tfm_builder_cfg,
526 "invalid": _common_tfm_invalid_configs + []
527 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800528
Karl Zhangaff558a2020-05-15 14:28:23 +0100529config_tfm_test2 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800530 "tfm_platform": ["arm/mps2/an519", "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800531 "toolchain_file": ["toolchain_ARMCLANG.cmake",
532 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800533 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800534 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800535 "test_regression": [True, False],
536 "test_psa_api": ["OFF"],
537 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800538 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800539 "with_bl2": [True],
540 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800541 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800542 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800543 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800544 },
545 "common_params": _common_tfm_builder_cfg,
546 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800547 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800548 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800549 ]
550 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100551
Karl Zhang14573bc2020-06-08 09:23:21 +0800552config_tfm_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800553 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
554 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800555 "toolchain_file": ["toolchain_ARMCLANG.cmake",
556 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800557 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800558 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800559 "test_regression": [True, False],
560 "test_psa_api": ["OFF"],
561 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800562 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800563 "with_bl2": [True],
564 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800565 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800566 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800567 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800568 },
569 "common_params": _common_tfm_builder_cfg,
570 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800571 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800572 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800573 # Profile Large is only supported by AN521
Summer Qin3c2b5722021-05-26 10:43:45 +0800574 ("arm/mps2/an519", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800575 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800576 ("arm/musca_b1/sse_200", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800577 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800578 ]
579 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800580
Karl Zhangaff558a2020-05-15 14:28:23 +0100581config_tfm_test_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800582 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800583 "toolchain_file": ["toolchain_ARMCLANG.cmake",
584 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800585 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800586 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800587 "test_regression": [True, False],
588 "test_psa_api": ["OFF"],
589 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800590 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800591 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800592 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800593 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800594 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800595 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800596 },
597 "common_params": _common_tfm_builder_cfg,
598 "invalid": _common_tfm_invalid_configs + []
599 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100600
Minos Galanakisea421232019-06-20 17:11:28 +0100601config_MUSCA_B1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800602 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800603 "toolchain_file": ["toolchain_ARMCLANG.cmake",
604 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800605 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800606 "isolation_level": ["1", "2"],
607 "test_regression": [True, False],
608 "test_psa_api": ["OFF"],
609 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800610 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800611 "with_bl2": [True],
612 "with_ns": [True, False],
613 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800614 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800615 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800616 },
617 "common_params": _common_tfm_builder_cfg,
618 "invalid": _common_tfm_invalid_configs + []
619 }
Minos Galanakisea421232019-06-20 17:11:28 +0100620
Mark Horvath8d281cd2020-12-07 15:20:26 +0100621config_MUSCA_B1_SE = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800622 "tfm_platform": ["arm/musca_b1/secure_enclave"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100623 "toolchain_file": ["toolchain_ARMCLANG.cmake",
624 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800625 "lib_model": [False],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100626 "isolation_level": ["1"],
627 "test_regression": [False],
628 "test_psa_api": ["OFF"],
629 "cmake_build_type": ["Debug", "Release"],
630 "with_otp": ["off"],
631 "with_bl2": [True],
632 "with_ns": [False],
633 "profile": [""],
634 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800635 "nsce": ["OFF"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100636 },
637 "common_params": _common_tfm_builder_cfg,
638 "invalid": _common_tfm_invalid_configs + []
639 }
640
Karl Zhangeffed972020-06-30 15:48:01 +0800641config_MUSCA_S1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800642 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800643 "toolchain_file": ["toolchain_ARMCLANG.cmake",
644 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800645 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800646 "isolation_level": ["1", "2"],
647 "test_regression": [True, False],
648 "test_psa_api": ["OFF"],
649 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800650 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800651 "with_bl2": [True],
652 "with_ns": [True, False],
653 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800654 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800655 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800656 },
657 "common_params": _common_tfm_builder_cfg,
658 "invalid": _common_tfm_invalid_configs + []
659 }
Karl Zhangeffed972020-06-30 15:48:01 +0800660
Karl Zhangaff558a2020-05-15 14:28:23 +0100661config_release = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800662 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
663 "arm/musca_b1/sse_200", "arm/musca_s1",
664 "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800665 "toolchain_file": ["toolchain_ARMCLANG.cmake",
666 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800667 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800668 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800669 "test_regression": [True, False],
670 "test_psa_api": ["OFF"],
671 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800672 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800673 "with_bl2": [True, False],
674 "with_ns": [True, False],
675 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800676 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800677 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800678 },
679 "common_params": _common_tfm_builder_cfg,
680 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800681 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800682 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800683 ]
684 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100685
686# Configure build manager to build several combinations
687config_AN521_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800688 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
689 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800690 "toolchain_file": ["toolchain_GNUARM.cmake",
691 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800692 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800693 "isolation_level": ["1", "2"],
694 "test_regression": [False],
695 "test_psa_api": ["IPC",
696 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800697 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800698 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800699 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800700 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800701 "with_bl2": [True],
702 "with_ns": [True, False],
703 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800704 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800705 "nsce": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100706 },
707 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800708 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800709 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800710 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800711 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100712 }
713
Karl Zhangaff558a2020-05-15 14:28:23 +0100714config_AN521_PSA_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800715 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
716 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800717 "toolchain_file": ["toolchain_GNUARM.cmake",
718 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800719 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800720 "isolation_level": ["1", "2"],
721 "test_regression": [False],
722 "test_psa_api": ["IPC"],
723 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800724 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800725 "with_bl2": [True],
726 "with_ns": [True, False],
727 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800728 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800729 "nsce": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100730 },
731 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800732 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800733 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800734 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800735 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100736 }
737
Karl Zhang14573bc2020-06-08 09:23:21 +0800738config_nightly = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800739 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
740 "arm/musca_b1/sse_200", "arm/musca_s1",
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800741 "arm/mps3/an524", "stm/stm32l562e_dk",
742 "arm/musca_b1/secure_enclave"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800743 "toolchain_file": ["toolchain_GNUARM.cmake",
744 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800745 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800746 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800747 "test_regression": [True, False],
748 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800749 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800750 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800751 "with_bl2": [True],
752 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800753 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800754 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800755 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800756 },
757 "common_params": _common_tfm_builder_cfg,
758 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800759 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800760 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800761 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800762 "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800763 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800764 "*", "*", "*", "*", True, True, "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800765 ("arm/mps2/an521", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800766 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800767 ("arm/mps2/an519", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800768 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800769 ("arm/musca_b1/sse_200", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800770 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800771 ("arm/musca_s1", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800772 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800773 ("arm/mps3/an524", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800774 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800775 ]
776 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800777
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800778config_nightly_nsce = {"seed_params": {
779 "tfm_platform": ["arm/mps2/an521"],
780 "toolchain_file": ["toolchain_GNUARM.cmake",
781 "toolchain_ARMCLANG.cmake"],
782 "lib_model": [True, False],
783 "isolation_level": ["1", "2", "3"],
784 "test_regression": [True],
785 "test_psa_api": ["OFF"],
786 "cmake_build_type": ["Debug"],
787 "with_otp": ["off"],
788 "with_bl2": [True],
789 "with_ns": [True],
790 "profile": [""],
791 "partition_ps": ["ON"],
792 "nsce": ["ON"],
793 },
794 "common_params": _common_tfm_builder_cfg,
795 "invalid": _common_tfm_invalid_configs + []
796 }
797
Karl Zhang14573bc2020-06-08 09:23:21 +0800798config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800799 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
800 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800801 "toolchain_file": ["toolchain_ARMCLANG.cmake",
802 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800803 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800804 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800805 "test_regression": [True, False],
806 "test_psa_api": ["OFF"],
807 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800808 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800809 "with_bl2": [True],
810 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800811 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800812 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800813 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800814 },
815 "common_params": _common_tfm_builder_cfg,
816 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800817 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800818 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800819 # Profile Large is only supported by AN521
Summer Qin3c2b5722021-05-26 10:43:45 +0800820 ("arm/mps2/an519", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800821 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800822 ("arm/musca_b1/sse_200", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800823 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800824 ]
825 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800826
Karl Zhang14573bc2020-06-08 09:23:21 +0800827config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800828 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
829 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800830 "toolchain_file": ["toolchain_GNUARM.cmake",
831 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800832 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800833 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800834 "test_regression": [False],
835 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800836 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800837 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800838 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800839 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800840 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800841 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800842 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800843 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800844 "nsce": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800845 },
846 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800847 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800848 }
849
Karl Zhang14573bc2020-06-08 09:23:21 +0800850config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800851 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
852 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800853 "toolchain_file": ["toolchain_GNUARM.cmake",
854 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800855 "lib_model": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800856 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800857 "test_regression": [False],
858 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800859 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800860 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800861 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800862 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800863 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800864 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800865 "nsce": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800866 },
867 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800868 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800869 }
870
Karl Zhang14573bc2020-06-08 09:23:21 +0800871config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800872 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800873 "toolchain_file": ["toolchain_GNUARM.cmake",
874 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800875 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800876 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800877 "test_regression": [True],
878 "test_psa_api": ["OFF"],
879 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800880 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800881 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800882 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800883 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800884 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800885 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800886 },
887 "common_params": _common_tfm_builder_cfg,
888 "invalid": _common_tfm_invalid_configs + []
889 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800890
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800891config_nightly_psoc64 = {"seed_params": {
892 "tfm_platform": ["cypress/psoc64"],
893 "toolchain_file": ["toolchain_GNUARM.cmake",
894 "toolchain_ARMCLANG.cmake"],
895 "lib_model": [False],
896 "isolation_level": ["1", "2"],
897 "test_regression": [True],
898 "test_psa_api": ["OFF"],
899 "cmake_build_type": ["Release"],
900 "with_otp": ["off"],
901 "with_bl2": [False],
902 "with_ns": [True],
903 "profile": [""],
904 "partition_ps": ["ON"],
905 "nsce": ["OFF"],
906 },
907 "common_params": _common_tfm_builder_cfg,
908 "invalid": _common_tfm_invalid_configs + []
909 }
910
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800911config_nightly_STM32L562E_DK = {"seed_params": {
912 "tfm_platform": ["stm/stm32l562e_dk"],
913 "toolchain_file": ["toolchain_GNUARM.cmake",
914 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800915 "lib_model": [True, False],
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800916 "isolation_level": ["1", "2", "3"],
917 "test_regression": [True],
918 "test_psa_api": ["OFF"],
919 "cmake_build_type": ["Release"],
920 "with_otp": ["off"],
921 "with_bl2": [True],
922 "with_ns": [True],
923 "profile": [""],
924 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800925 "nsce": ["OFF"],
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800926 },
927 "common_params": _common_tfm_builder_cfg,
928 "invalid": _common_tfm_invalid_configs + []
929 }
930
Arthur Shef3657742021-09-07 14:23:18 -0700931config_nightly_LPCXPRESSO55S69 = {"seed_params": {
932 "tfm_platform": ["nxp/lpcxpresso55s69"],
933 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800934 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700935 "isolation_level": ["2"],
936 "test_regression": [True, False],
937 "test_psa_api": ["OFF"],
938 "cmake_build_type": ["Relwithdebinfo"],
939 "with_otp": ["off"],
940 "with_bl2": [True, False],
941 "with_ns": [True],
942 "profile": ["profile_medium"],
943 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800944 "nsce": ["OFF"],
Arthur Shef3657742021-09-07 14:23:18 -0700945 },
946 "common_params": _common_tfm_builder_cfg,
947 "invalid": _common_tfm_invalid_configs + []
948 }
949
Karl Zhang14573bc2020-06-08 09:23:21 +0800950config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800951 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +0800952 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800953 "toolchain_file": ["toolchain_GNUARM.cmake",
954 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800955 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +0800956 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800957 "test_regression": [True],
958 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +0800959 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800960 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800961 "with_bl2": [True],
962 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +0800963 "profile": ["", "profile_small", "profile_medium"],
964 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800965 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800966 },
967 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +0800968 "valid": [
Summer Qin3c2b5722021-05-26 10:43:45 +0800969 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800970 True, "1", 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, "2", False, "OFF", "Debug",
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_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800976 False, "3", False, "OFF", "Release",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800977 "off", True, True, "", "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, "2", False, "OFF", "Debug",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800980 "off", True, True, "profile_medium", "ON", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800981 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800982 False, "3", False, "OFF", "Debug",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800983 "off", True, True, "profile_large", "ON", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800984 # AN521_GNUARM_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800985 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
986 False, "2", True, "OFF", "Release",
987 "off", True, True, "profile_medium", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800988 # MUSCA_B1_GNUARM_LIB_1_REG_Minsizerel_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800989 ("arm/musca_b1/sse_200", "toolchain_GNUARM.cmake",
990 True, "1", True, "OFF", "Minsizerel",
991 "off", True, True, "", "ON", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800992 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800993 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake",
994 False, "1", True, "OFF", "Release",
995 "off", True, True, "", "ON", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800996 # stm32l562e_dk_GNUARM_IPC_2_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800997 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
998 False, "2", True, "OFF", "Release",
999 "off", True, True, "", "ON", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001000 # stm32l562e_dk_GNUARM_IPC_3_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001001 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
1002 False, "3", True, "OFF", "Release",
1003 "off", True, True, "", "ON", "OFF"),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001004 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001005 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001006 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +08001007 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001008 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001009 # valid configs supported by TF-M but not needed in per-patch
1010 ("*", "*", "*", "1", "*", "*", "Release",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001011 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001012 ("*", "*", "*", "1", "*", "*", "Minsizerel",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001013 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001014 ("*", "*", "*", "2", "*", "*", "Debug",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001015 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001016 ("*", "*", "*", "2", "*", "*", "Minsizerel",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001017 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001018 ("*", "*", "*", "3", "*", "*", "Debug",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001019 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001020 ("*", "*", "*", "3", "*", "*", "Release",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001021 "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001022 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001023 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001024 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001025 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001026 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001027 "*", "*", "*", "*", "profile_medium", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001028 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001029 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001030 ("*", "toolchain_GNUARM.cmake", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001031 "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001032 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001033 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001034 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001035 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001036 ]
1037 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001038
Karl Zhang14573bc2020-06-08 09:23:21 +08001039config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001040 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001041 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001042 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001043 "isolation_level": ["1", "2"],
1044 "test_regression": [True],
1045 "test_psa_api": ["OFF"],
1046 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001047 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001048 "with_bl2": [True],
1049 "with_ns": [True, False],
1050 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001051 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001052 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001053 },
1054 "common_params": _common_tfm_builder_cfg,
1055 "invalid": _common_tfm_invalid_configs + []
1056 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001057
1058# Configure build manager to build several combinations
1059config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001060 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001061 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001062 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001063 "isolation_level": ["2"],
1064 "test_regression": [False],
1065 "test_psa_api": ["IPC",
1066 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001067 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +08001068 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001069 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001070 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001071 "with_bl2": [True],
1072 "with_ns": [True, False],
1073 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001074 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001075 "nsce": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001076 },
1077 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001078 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001079 }
1080
Karl Zhang14573bc2020-06-08 09:23:21 +08001081config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001082 "tfm_platform": ["cypress/psoc64"],
1083 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001084 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001085 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001086 "test_regression": [True],
1087 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001088 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001089 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001090 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001091 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001092 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001093 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001094 "nsce": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001095 },
1096 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001097 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001098 }
1099
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001100config_cov_an519 = {"seed_params": {
1101 "tfm_platform": ["arm/mps2/an519"],
1102 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001103 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001104 "isolation_level": ["1", "2", "3"],
1105 "test_regression": [True, False],
1106 "test_psa_api": ["OFF"],
1107 "cmake_build_type": ["Debug", "Release"],
1108 "with_otp": ["off"],
1109 "with_bl2": [True],
1110 "with_ns": [True],
1111 "profile": ["", "profile_small", "profile_medium"],
1112 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001113 "nsce": ["OFF"],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001114 },
1115 "common_params": _common_tfm_builder_cfg,
1116 "invalid": _common_tfm_invalid_configs + []
1117 }
1118
1119config_cov_an521 = {"seed_params": {
1120 "tfm_platform": ["arm/mps2/an521"],
1121 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001122 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001123 "isolation_level": ["1", "2", "3"],
1124 "test_regression": [True, False],
1125 "test_psa_api": ["OFF"],
1126 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1127 "with_otp": ["off"],
1128 "with_bl2": [True],
1129 "with_ns": [True],
1130 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1131 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001132 "nsce": ["OFF"],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001133 },
1134 "common_params": _common_tfm_builder_cfg,
1135 "invalid": _common_tfm_invalid_configs + []
1136 }
1137
Minos Galanakisea421232019-06-20 17:11:28 +01001138# Configruation used for document building
1139config_doxygen = {"common_params": {
1140 "config_type": "tf-m_documents",
1141 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001142 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001143 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001144 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001145 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001146 "cmake --build ./ -- docs"]},
1147 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1148 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001149 r'/(\w+\.(?:html|md|pdf))$',
1150 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001151 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001152 }
1153
Karl Zhangaff558a2020-05-15 14:28:23 +01001154# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +01001155config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001156 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001157 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001158 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001159 "isolation_level": ["1"],
1160 "test_regression": [False],
1161 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001162 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001163 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001164 "with_bl2": [True],
1165 "with_ns": [True],
1166 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001167 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001168 "nsce": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001169 },
1170 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001171 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001172 }
1173
Dean Birch4c6ad622020-03-13 11:28:03 +00001174# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001175config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001176 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001177 "toolchain_file": ["toolchain_ARMCLANG.cmake",
1178 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001179 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001180 "isolation_level": ["1", "2"],
1181 "test_regression": [True, False],
1182 "test_psa_api": ["OFF"],
1183 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001184 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001185 "with_bl2": [True, False],
1186 "with_ns": [True],
1187 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001188 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001189 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001190 },
1191 "common_params": _common_tfm_builder_cfg,
1192 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001193 ("*", "toolchain_ARMCLANG.cmake", False, "*", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001194 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001195 ("*", "toolchain_ARMCLANG.cmake", True, "1", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001196 "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001197 ]
1198 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001199
Xinyu Zhangb708f572020-09-15 11:43:46 +08001200config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001201 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001202 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001203 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001204 "isolation_level": ["1", "2"],
1205 "test_regression": [True],
1206 "test_psa_api": ["OFF"],
1207 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001208 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001209 "with_bl2": [True, False],
1210 "with_ns": [True, False],
1211 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001212 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001213 "nsce": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001214 },
1215 "common_params": _common_tfm_builder_cfg,
1216 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001217 ("arm/mps2/an521", "toolchain_GNUARM.cmake", False, "2", "*", "*",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001218 "*", "*", True, "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001219 ]
1220 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001221
Karl Zhangaff558a2020-05-15 14:28:23 +01001222_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001223 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001224 "tfm_test": config_tfm_test,
1225 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001226 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +01001227 "tfm_test_otp": config_tfm_test_OTP,
1228 "psa_api": config_PSA_API,
1229 "psa_api_otp": config_PSA_API_OTP,
1230 "psa_ff": config_PSA_FF,
1231 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001232 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001233 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001234 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Karl Zhang14573bc2020-06-08 09:23:21 +08001235
1236 #nightly test group
1237 "nightly_test": config_nightly,
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001238 "nightly_nsce": config_nightly_nsce,
Karl Zhang14573bc2020-06-08 09:23:21 +08001239 "nightly_profile": config_nightly_profile,
1240 "nightly_psa_api": config_nightly_PSA_API,
1241 "nightly_ff": config_nightly_PSA_FF,
1242 "nightly_otp": config_nightly_OTP,
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001243 "nightly_psoc64": config_nightly_psoc64,
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +08001244 "nightly_stm32l562e_dk": config_nightly_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001245 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Karl Zhang14573bc2020-06-08 09:23:21 +08001246
1247 #per patch test group
1248 "pp_test": config_pp_test,
1249 "pp_OTP": config_pp_OTP,
1250 "pp_PSA_API": config_pp_PSA_API,
1251 "pp_psoc64": config_pp_PSoC64,
1252
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001253 #code coverage test group
1254 "coverage_an519": config_cov_an519,
1255 "coverage_an521": config_cov_an521,
1256
Karl Zhang14573bc2020-06-08 09:23:21 +08001257 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001258 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001259
1260 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001261 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001262 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001263 "an521_psa_api": config_AN521_PSA_API,
1264 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001265 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001266 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001267 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001268 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001269 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001270 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001271 "ipc": config_IPC,
1272 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001273 "debug": config_debug,
Karl Zhangaff558a2020-05-15 14:28:23 +01001274 "release": config_release,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001275 "debug": config_debug,
Karl Zhang14573bc2020-06-08 09:23:21 +08001276
1277 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001278 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001279 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001280
1281if __name__ == '__main__':
1282 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001283
Minos Galanakisea421232019-06-20 17:11:28 +01001284 # Default behavior is to export refference config when called
1285 _dir = os.getcwd()
1286 from utils import save_json
1287 for _cname, _cfg in _builtin_configs.items():
1288 _fname = os.path.join(_dir, _cname + ".json")
1289 print("Exporting config %s" % _fname)
1290 save_json(_fname, _cfg)