blob: 6e76fd42f1b28681b62764abbbf859a48e6621a1 [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",
Xinyu Zhanga1088e22021-11-11 18:02:45 +080044 "nsce",
45 "mmio"],
Minos Galanakisea421232019-06-20 17:11:28 +010046
47 # Keys for the templace will come from the combinations of parameters
48 # provided in the seed dictionary.
49
Xinyu Zhangb708f572020-09-15 11:43:46 +080050 "config_template": "cmake " + \
51 "-DTFM_PLATFORM=%(tfm_platform)s " + \
Fathi Boudra324fee72020-11-20 10:31:12 +010052 "-DTFM_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(toolchain_file)s " + \
Xinyu Zhang73ed2992021-09-15 11:38:23 +080053 "-DTFM_LIB_MODEL=%(lib_model)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080054 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
55 "-DTEST_NS=%(test_regression)s -DTEST_S=%(test_regression)s " + \
56 "-DTEST_PSA_API=%(test_psa_api)s " + \
57 "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \
58 "-DCRYPTO_HW_ACCELERATOR_OTP_STATE=%(with_otp)s " + \
59 "-DBL2=%(with_bl2)s " + \
60 "-DNS=%(with_ns)s " + \
61 "-DTFM_TEST_REPO_PATH=%(codebase_root_dir)s/../tf-m-tests " + \
62 "-DMBEDCRYPTO_PATH=%(codebase_root_dir)s/../mbedtls " + \
63 "-DPSA_ARCH_TESTS_PATH=%(codebase_root_dir)s/../psa-arch-tests " + \
64 "-DMCUBOOT_PATH=%(codebase_root_dir)s/../mcuboot " + \
65 "-DTFM_PROFILE=%(profile)s " + \
Xinyu Zhangb5bbb692020-10-26 10:14:33 +080066 "-DTFM_PARTITION_PROTECTED_STORAGE=%(partition_ps)s " + \
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +080067 "-DTFM_NS_MANAGE_NSID=%(nsce)s " + \
Xinyu Zhangfa3f9c42021-11-16 14:30:45 +080068 "-DPSA_FRAMEWORK_HAS_MM_IOVEC=%(mmio)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080069 "%(codebase_root_dir)s",
Karl Zhangaff558a2020-05-15 14:28:23 +010070
Minos Galanakisea421232019-06-20 17:11:28 +010071 # A small subset of string substitution params is allowed in commands.
72 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
73 # _tbm_target_platform_ with the paths set when building
74
Xinyu Zhangb708f572020-09-15 11:43:46 +080075 "artifact_capture_rex": (r'%(_tbm_build_dir_)s/bin'
Minos Galanakisea421232019-06-20 17:11:28 +010076 r'/(\w+\.(?:axf|bin|hex))$'),
77
78 # ALL commands will be executed for every build.
79 # Other keys will append extra commands when matching target_platform
Fathi Boudra83e4f292020-12-04 22:33:40 +010080 "build_cmds": {"all": ["cmake --build ./ -- install"],
Summer Qin3c2b5722021-05-26 10:43:45 +080081 "arm/musca_b1/sse_200": [("srec_cat "
Mark Horvath8d281cd2020-12-07 15:20:26 +010082 "%(_tbm_build_dir_)s/bin/"
83 "bl2.bin "
84 "-Binary -offset 0xA000000 "
85 "-fill 0xFF 0xA000000 0xA020000 "
86 "%(_tbm_build_dir_)s/bin/"
87 "tfm_s_ns_signed.bin "
88 "-Binary -offset 0xA020000 "
89 "-fill 0xFF 0xA020000 0xA200000 "
90 "-o %(_tbm_build_dir_)s/bin/"
91 "tfm.hex -Intel")],
Summer Qin3c2b5722021-05-26 10:43:45 +080092 "arm/musca_s1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080093 "%(_tbm_build_dir_)s/bin/"
94 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +080095 "-Binary -offset 0xA000000 "
Raef Coles543aab32020-12-03 11:12:02 +000096 "-fill 0xFF 0xA000000 0xA020000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080097 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080098 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +000099 "-Binary -offset 0xA020000 "
100 "-fill 0xFF 0xA020000 0xA200000 "
101 "-o %(_tbm_build_dir_)s/bin/"
Arthur She19c0e1a2021-06-02 11:06:19 -0700102 "tfm.hex -Intel")],
103 "stm/stm32l562e_dk": [("echo 'STM32L562E-DK board post process';"
104 "%(_tbm_build_dir_)s/postbuild.sh;"
105 "pushd %(_tbm_build_dir_)s;"
Arthur She07c91b52021-07-15 15:03:10 -0700106 "BIN_FILES=$(grep -o '\/.*\.bin' TFM_UPDATE.sh | sed 's/^/bin/');"
107 "tar jcf ./bin/stm32l562e-dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh ${BIN_FILES};"
108 "popd")]
Minos Galanakisea421232019-06-20 17:11:28 +0100109 },
110
111 # (Optional) If set will fail if those artefacts are missing post build
112 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800113 "%(_tbm_build_dir_)s/bin/"
114 "tfm_s.bin",
115 "%(_tbm_build_dir_)s/bin/"
116 "tfm_ns.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800117 "arm/musca_b1/sse_200": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800118 "%(_tbm_build_dir_)s/bin/"
119 "tfm.hex",
120 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800121 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800122 "%(_tbm_build_dir_)s/bin/"
123 "tfm_sign.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800124 "arm/musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800125 "%(_tbm_build_dir_)s/bin/"
126 "tfm.hex",
127 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800128 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800129 "%(_tbm_build_dir_)s/bin/"
130 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100131 }
132}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100133
Xinyu Zhangb708f572020-09-15 11:43:46 +0800134# List of all build configs that are impossible under all circumstances
135_common_tfm_invalid_configs = [
Xinyu Zhang459a1982021-07-21 22:34:49 +0800136 # LR_CODE size exceeds limit on MUSCA_B1 & MUSCA_S1 with regression tests in Debug mode built with ARMCLANG
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800137 ("arm/musca_b1/sse_200", "toolchain_ARMCLANG.cmake", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*", "*"),
138 ("arm/musca_s1", "toolchain_ARMCLANG.cmake", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800139 # Load range overlap on Musca for IPC Debug type: T895
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800140 ("arm/musca_b1/sse_200", "toolchain_ARMCLANG.cmake", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*", "*"),
141 ("arm/musca_s1", "toolchain_ARMCLANG.cmake", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang65683e42021-12-10 15:42:02 +0800142 # Oversize issue on config lpcxpresso55s69_GNUARM_IPC_2_Relwithdebinfo_BL2_NS_MEDIUM
143 ("nxp/lpcxpresso55s69", "toolchain_GNUARM.cmake", False, "2", False, "OFF",
144 "Relwithdebinfo", "off", True, True, "profile_medium", "ON", "OFF", "OFF"),
145 # Oversize issue on config stm32l562e_dk_ARMCLANG_LIB_1_REG_Release_BL2_NS
146 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake", True, "1", True, "OFF",
147 "Release", "off", True, True, "", "ON", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800148 # LVL2 and LVL3 requires IPC model
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800149 ("*", "*", True, "2", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
150 ("*", "*", True, "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800151 # Regression requires NS
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800152 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800153 # psoc64 requires IPC model
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800154 ("cypress/psoc64", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800155 # No PSA_ACK with regression
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800156 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*", "*", "*", "*"),
157 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*", "*", "*", "*"),
158 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*", "*"),
159 ("*", "*", "*", "*", True, "STORAGE", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800160 # PSA_ACK requires NS
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800161 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*", "*", "*", "*"),
162 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*", "*", "*", "*"),
163 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*", "*", "*", "*"),
164 ("*", "*", "*", "*", "*", "STORAGE", "*", "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhangc0aad0a2021-11-10 16:07:28 +0800165 # PSA_ACK IPC (FF) does not support LVL3
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800166 ("*", "*", "*", "3", "*", "IPC", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800167 # Musca requires BL2
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800168 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*"),
169 ("arm/musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800170 # psoc64 cannot use BL2
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800171 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800172 # psoc64 does not support Debug build type
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800173 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800174 # Musca b1 SSE 200 does not support Profile S
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800175 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800176 # Musca B1 Secure Enclave requires IPC model, BL2, and supports only Isolation Level 1
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800177 ("arm/musca_b1/secure_enclave", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
178 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*"),
179 ("arm/musca_b1/secure_enclave", "*", "*", "2", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100180 # Musca B1 Secure Enclave does not support tests, profiles, NS side building
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800181 ("arm/musca_b1/secure_enclave", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*"),
182 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "IPC", "*", "*", "*", "*", "*", "*", "*", "*"),
183 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", "*", "*", "*", "*", "*"),
184 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*", "*"),
185 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "STORAGE", "*", "*", "*", "*", "*", "*", "*", "*"),
186 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*"),
187 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
188 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
189 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800190 # PARTITION_PS could be OFF only for Profile S and M
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800191 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF", "*", "*"),
192 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "OFF", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800193 # PARTITION_PS should be OFF for Profile S
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800194 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800195 # Proile M only support for IPC model
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800196 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800197 # Profile M only support for Isolation Level 2
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800198 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
199 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800200 # Profile L only support for Isolation Level 3
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800201 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
202 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800203 # Profile S does not support IPC model
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800204 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800205 # Profile S only supports Isolation Level 1
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800206 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*"),
207 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800208 # Only AN521 and MUSCA_B1 support Isolation Level 3
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800209 ("arm/mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
210 ("arm/mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
211 ("arm/musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
212 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
213 ("arm/musca_b1/secure_enclave", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700214 # stm/stm32l562e_dk uses BL2
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800215 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700216 # stm/stm32l562e_dk does not support Debug build type
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800217 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700218 # nxp/lpcxpresso55s69 only build with GCC
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800219 ("nxp/lpcxpresso55s69", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700220 # nxp/lpcxpresso55s69 only build Profile M
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800221 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*"),
222 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700223 # nxp/lpcxpresso55s69 have to turn off BL2 when build regression test
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800224 ("nxp/lpcxpresso55s69", "*", "*", "*", "True", "*", "*", "*", "True", "*", "*", "*", "*", "*"),
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800225 # NSID does not support multi core
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800226 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "ON", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800227 ]
228
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100229# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100230config_AN524 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800231 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800232 "toolchain_file": ["toolchain_GNUARM.cmake",
233 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800234 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800235 "isolation_level": ["1", "2"],
236 "test_regression": [True, False],
237 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100238 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800239 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800240 "with_bl2": [True, False],
241 "with_ns": [True, False],
242 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800243 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800244 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800245 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100246 },
247 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800248 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100249 }
250
Karl Zhangaff558a2020-05-15 14:28:23 +0100251config_AN521 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800252 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800253 "toolchain_file": ["toolchain_GNUARM.cmake",
254 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800255 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800256 "isolation_level": ["1", "2"],
257 "test_regression": [True, False],
258 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100259 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800260 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800261 "with_bl2": [True, False],
262 "with_ns": [True, False],
263 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800264 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800265 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800266 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100267 },
268 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800269 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100270 }
271
Karl Zhangaff558a2020-05-15 14:28:23 +0100272config_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800273 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
274 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800275 "toolchain_file": ["toolchain_GNUARM.cmake",
276 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800277 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800278 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800279 "test_regression": [False],
280 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800281 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800282 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100283 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800284 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800285 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800286 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800287 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800288 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800289 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800290 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100291 },
292 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800293 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100294 }
295
Karl Zhangaff558a2020-05-15 14:28:23 +0100296config_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800297 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
298 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800299 "toolchain_file": ["toolchain_GNUARM.cmake",
300 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800301 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800302 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800303 "test_regression": [False],
304 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100305 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800306 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800307 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800308 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800309 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800310 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800311 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800312 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100313 },
314 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800315 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100316 }
317
Karl Zhangaff558a2020-05-15 14:28:23 +0100318config_PSA_API_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800319 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800320 "toolchain_file": ["toolchain_GNUARM.cmake",
321 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800322 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800323 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800324 "test_regression": [False],
325 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800326 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800327 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100328 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800329 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800330 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800331 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800332 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800333 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800334 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800335 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100336 },
337 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800338 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100339 }
Minos Galanakisea421232019-06-20 17:11:28 +0100340
Xinyu Zhangb708f572020-09-15 11:43:46 +0800341config_PSA_FF_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800342 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800343 "toolchain_file": ["toolchain_GNUARM.cmake",
344 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800345 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800346 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800347 "test_regression": [False],
348 "test_psa_api": ["IPC"],
349 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800350 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800351 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800352 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800353 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800354 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800355 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800356 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800357 },
358 "common_params": _common_tfm_builder_cfg,
359 "invalid": _common_tfm_invalid_configs + []
360 }
361
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800362config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800363 "tfm_platform": ["cypress/psoc64"],
364 "toolchain_file": ["toolchain_GNUARM.cmake",
365 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800366 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800367 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800368 "test_regression": [True],
369 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800370 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800371 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800372 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800373 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800374 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800375 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800376 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800377 "mmio": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800378 },
379 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800380 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800381 }
382
Arthur She19c0e1a2021-06-02 11:06:19 -0700383config_STM32L562E_DK = {"seed_params": {
384 "tfm_platform": ["stm/stm32l562e_dk"],
385 "toolchain_file": ["toolchain_GNUARM.cmake",
386 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800387 "lib_model": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700388 "isolation_level": ["1", "2", "3"],
389 "test_regression": [True],
390 "test_psa_api": ["OFF"],
391 "cmake_build_type": ["Release"],
392 "with_otp": ["off"],
393 "with_bl2": [True],
394 "with_ns": [True],
395 "profile": [""],
396 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800397 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800398 "mmio": ["OFF"],
Arthur She19c0e1a2021-06-02 11:06:19 -0700399 },
400 "common_params": _common_tfm_builder_cfg,
401 "invalid": _common_tfm_invalid_configs + []
402 }
403
Arthur Shef3657742021-09-07 14:23:18 -0700404config_LPCXPRESSO55S69 = {"seed_params": {
405 "tfm_platform": ["nxp/lpcxpresso55s69"],
406 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800407 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700408 "isolation_level": ["2"],
409 "test_regression": [True, False],
410 "test_psa_api": ["OFF"],
411 "cmake_build_type": ["Relwithdebinfo"],
412 "with_otp": ["off"],
413 "with_bl2": [True, False],
414 "with_ns": [True],
415 "profile": ["profile_medium"],
416 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800417 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800418 "mmio": ["OFF"],
Arthur Shef3657742021-09-07 14:23:18 -0700419 },
420 "common_params": _common_tfm_builder_cfg,
421 "invalid": _common_tfm_invalid_configs + []
422 }
423
Xinyu Zhang6afdd612021-10-12 17:07:32 +0800424config_corstone1000 = {"seed_params": {
425 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800426 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800427 "lib_model": [False],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800428 "isolation_level": ["1"],
429 "test_regression": [False],
430 "test_psa_api": ["OFF"],
431 "cmake_build_type": ["Debug"],
432 "with_otp": ["off"],
433 "with_bl2": [True],
434 "with_ns": [False],
435 "profile": [""],
436 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800437 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800438 "mmio": ["OFF"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800439 },
440 "common_params": _common_tfm_builder_cfg,
441 "invalid": _common_tfm_invalid_configs + []
442 }
443
Minos Galanakisea421232019-06-20 17:11:28 +0100444config_AN519 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800445 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800446 "toolchain_file": ["toolchain_GNUARM.cmake",
447 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800448 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800449 "isolation_level": ["1", "2"],
450 "test_regression": [True, False],
451 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100452 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800453 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800454 "with_bl2": [True, False],
455 "with_ns": [True, False],
456 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800457 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800458 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800459 "mmio": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100460 },
461 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800462 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100463 }
464
Xinyu Zhangb708f572020-09-15 11:43:46 +0800465config_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800466 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
467 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800468 "toolchain_file": ["toolchain_GNUARM.cmake",
469 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800470 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800471 "isolation_level": ["1", "2"],
472 "test_regression": [True, False],
473 "test_psa_api": ["OFF"],
474 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800475 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800476 "with_bl2": [True, False],
477 "with_ns": [True, False],
478 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800479 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800480 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800481 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800482 },
Minos Galanakisea421232019-06-20 17:11:28 +0100483 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800484 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100485 }
486
Minos Galanakisea421232019-06-20 17:11:28 +0100487config_full = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800488 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
489 "arm/musca_b1/sse_200",
490 "arm/mps3/an524", "cypress/psoc64",
Arthur She19c0e1a2021-06-02 11:06:19 -0700491 "arm/musca_b1/secure_enclave",
Arthur Shef3657742021-09-07 14:23:18 -0700492 "stm/stm32l562e_dk",
493 "nxp/lpcxpresso55s69"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800494 "toolchain_file": ["toolchain_GNUARM.cmake",
495 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800496 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800497 "isolation_level": ["1", "2"],
498 "test_regression": [True, False],
499 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800500 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800501 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800502 "with_bl2": [True, False],
503 "with_ns": [True, False],
504 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800505 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800506 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800507 "mmio": ["OFF"],
Dean Birchd6ce2c82020-05-13 13:16:15 +0100508 },
509 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800510 "invalid": _common_tfm_invalid_configs + [
511 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800512 "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800513 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800514 "*", "*", "*", "*", True, True, "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800515 ("arm/mps2/an521", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800516 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800517 ("arm/mps2/an519", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800518 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800519 ("arm/musca_b1/sse_200", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800520 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800521 ("arm/mps3/an524", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800522 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800523 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800524 }
525
Karl Zhangaff558a2020-05-15 14:28:23 +0100526config_tfm_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800527 "tfm_platform": ["arm/mps2/an521",
528 "arm/musca_b1/sse_200", "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800529 "toolchain_file": ["toolchain_ARMCLANG.cmake",
530 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800531 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800532 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800533 "test_regression": [True, False],
534 "test_psa_api": ["OFF"],
535 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800536 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800537 "with_bl2": [True],
538 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800539 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800540 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800541 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800542 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800543 },
544 "common_params": _common_tfm_builder_cfg,
545 "invalid": _common_tfm_invalid_configs + []
546 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800547
Karl Zhangaff558a2020-05-15 14:28:23 +0100548config_tfm_test2 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800549 "tfm_platform": ["arm/mps2/an519", "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800550 "toolchain_file": ["toolchain_ARMCLANG.cmake",
551 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800552 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800553 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800554 "test_regression": [True, False],
555 "test_psa_api": ["OFF"],
556 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800557 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800558 "with_bl2": [True],
559 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800560 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800561 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800562 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800563 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800564 },
565 "common_params": _common_tfm_builder_cfg,
566 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800567 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800568 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800569 ]
570 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100571
Karl Zhang14573bc2020-06-08 09:23:21 +0800572config_tfm_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800573 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
574 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800575 "toolchain_file": ["toolchain_ARMCLANG.cmake",
576 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800577 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800578 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800579 "test_regression": [True, False],
580 "test_psa_api": ["OFF"],
581 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800582 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800583 "with_bl2": [True],
584 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800585 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800586 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800587 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800588 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800589 },
590 "common_params": _common_tfm_builder_cfg,
591 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800592 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800593 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800594 # Profile Large is only supported by AN521
Summer Qin3c2b5722021-05-26 10:43:45 +0800595 ("arm/mps2/an519", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800596 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800597 ("arm/musca_b1/sse_200", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800598 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800599 ]
600 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800601
Karl Zhangaff558a2020-05-15 14:28:23 +0100602config_tfm_test_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800603 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800604 "toolchain_file": ["toolchain_ARMCLANG.cmake",
605 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800606 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800607 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800608 "test_regression": [True, False],
609 "test_psa_api": ["OFF"],
610 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800611 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800612 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800613 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800614 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800615 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800616 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800617 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800618 },
619 "common_params": _common_tfm_builder_cfg,
620 "invalid": _common_tfm_invalid_configs + []
621 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100622
Minos Galanakisea421232019-06-20 17:11:28 +0100623config_MUSCA_B1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800624 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800625 "toolchain_file": ["toolchain_ARMCLANG.cmake",
626 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800627 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800628 "isolation_level": ["1", "2"],
629 "test_regression": [True, False],
630 "test_psa_api": ["OFF"],
631 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800632 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800633 "with_bl2": [True],
634 "with_ns": [True, False],
635 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800636 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800637 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800638 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800639 },
640 "common_params": _common_tfm_builder_cfg,
641 "invalid": _common_tfm_invalid_configs + []
642 }
Minos Galanakisea421232019-06-20 17:11:28 +0100643
Mark Horvath8d281cd2020-12-07 15:20:26 +0100644config_MUSCA_B1_SE = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800645 "tfm_platform": ["arm/musca_b1/secure_enclave"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100646 "toolchain_file": ["toolchain_ARMCLANG.cmake",
647 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800648 "lib_model": [False],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100649 "isolation_level": ["1"],
650 "test_regression": [False],
651 "test_psa_api": ["OFF"],
652 "cmake_build_type": ["Debug", "Release"],
653 "with_otp": ["off"],
654 "with_bl2": [True],
655 "with_ns": [False],
656 "profile": [""],
657 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800658 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800659 "mmio": ["OFF"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100660 },
661 "common_params": _common_tfm_builder_cfg,
662 "invalid": _common_tfm_invalid_configs + []
663 }
664
Karl Zhangeffed972020-06-30 15:48:01 +0800665config_MUSCA_S1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800666 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800667 "toolchain_file": ["toolchain_ARMCLANG.cmake",
668 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800669 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800670 "isolation_level": ["1", "2"],
671 "test_regression": [True, False],
672 "test_psa_api": ["OFF"],
673 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800674 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800675 "with_bl2": [True],
676 "with_ns": [True, False],
677 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800678 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800679 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800680 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800681 },
682 "common_params": _common_tfm_builder_cfg,
683 "invalid": _common_tfm_invalid_configs + []
684 }
Karl Zhangeffed972020-06-30 15:48:01 +0800685
Karl Zhangaff558a2020-05-15 14:28:23 +0100686config_release = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800687 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
688 "arm/musca_b1/sse_200", "arm/musca_s1",
689 "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800690 "toolchain_file": ["toolchain_ARMCLANG.cmake",
691 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800692 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800693 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800694 "test_regression": [True, False],
695 "test_psa_api": ["OFF"],
696 "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, False],
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"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800703 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800704 },
705 "common_params": _common_tfm_builder_cfg,
706 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800707 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800708 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800709 ]
710 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100711
712# Configure build manager to build several combinations
713config_AN521_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800714 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
715 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800716 "toolchain_file": ["toolchain_GNUARM.cmake",
717 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800718 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800719 "isolation_level": ["1", "2"],
720 "test_regression": [False],
721 "test_psa_api": ["IPC",
722 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800723 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800724 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800725 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800726 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800727 "with_bl2": [True],
728 "with_ns": [True, False],
729 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800730 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800731 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800732 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100733 },
734 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800735 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800736 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800737 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800738 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100739 }
740
Karl Zhangaff558a2020-05-15 14:28:23 +0100741config_AN521_PSA_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800742 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
743 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800744 "toolchain_file": ["toolchain_GNUARM.cmake",
745 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800746 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800747 "isolation_level": ["1", "2"],
748 "test_regression": [False],
749 "test_psa_api": ["IPC"],
750 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800751 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800752 "with_bl2": [True],
753 "with_ns": [True, False],
754 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800755 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800756 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800757 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100758 },
759 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800760 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800761 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800762 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800763 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100764 }
765
Karl Zhang14573bc2020-06-08 09:23:21 +0800766config_nightly = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800767 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
768 "arm/musca_b1/sse_200", "arm/musca_s1",
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800769 "arm/mps3/an524", "stm/stm32l562e_dk",
770 "arm/musca_b1/secure_enclave"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800771 "toolchain_file": ["toolchain_GNUARM.cmake",
772 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800773 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800774 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800775 "test_regression": [True, False],
776 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800777 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800778 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800779 "with_bl2": [True],
780 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800781 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800782 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800783 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800784 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800785 },
786 "common_params": _common_tfm_builder_cfg,
787 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800788 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800789 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800790 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800791 "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800792 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800793 "*", "*", "*", "*", True, True, "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800794 ("arm/mps2/an521", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800795 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800796 ("arm/mps2/an519", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800797 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800798 ("arm/musca_b1/sse_200", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800799 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800800 ("arm/musca_s1", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800801 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800802 ("arm/mps3/an524", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800803 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800804 ]
805 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800806
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800807config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800808 "tfm_platform": ["arm/mps2/an521"],
809 "toolchain_file": ["toolchain_GNUARM.cmake",
810 "toolchain_ARMCLANG.cmake"],
811 "lib_model": [True, False],
812 "isolation_level": ["1", "2", "3"],
813 "test_regression": [True],
814 "test_psa_api": ["OFF"],
815 "cmake_build_type": ["Debug"],
816 "with_otp": ["off"],
817 "with_bl2": [True],
818 "with_ns": [True],
819 "profile": [""],
820 "partition_ps": ["ON"],
821 "nsce": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800822 "mmio": ["OFF"],
823 },
824 "common_params": _common_tfm_builder_cfg,
825 "invalid": _common_tfm_invalid_configs + []
826 }
827
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800828config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800829 "tfm_platform": ["arm/mps2/an521"],
830 "toolchain_file": ["toolchain_GNUARM.cmake",
831 "toolchain_ARMCLANG.cmake"],
832 "lib_model": [False],
833 "isolation_level": ["1"],
834 "test_regression": [True],
835 "test_psa_api": ["OFF"],
836 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
837 "with_otp": ["off"],
838 "with_bl2": [True],
839 "with_ns": [True],
840 "profile": [""],
841 "partition_ps": ["ON"],
842 "nsce": ["OFF"],
843 "mmio": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800844 },
845 "common_params": _common_tfm_builder_cfg,
846 "invalid": _common_tfm_invalid_configs + []
847 }
848
Karl Zhang14573bc2020-06-08 09:23:21 +0800849config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800850 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
851 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800852 "toolchain_file": ["toolchain_ARMCLANG.cmake",
853 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800854 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800855 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800856 "test_regression": [True, False],
857 "test_psa_api": ["OFF"],
858 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800859 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800860 "with_bl2": [True],
861 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800862 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800863 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800864 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800865 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800866 },
867 "common_params": _common_tfm_builder_cfg,
868 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800869 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800870 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800871 # Profile Large is only supported by AN521
Summer Qin3c2b5722021-05-26 10:43:45 +0800872 ("arm/mps2/an519", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800873 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800874 ("arm/musca_b1/sse_200", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800875 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800876 ]
877 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800878
Karl Zhang14573bc2020-06-08 09:23:21 +0800879config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800880 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
881 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800882 "toolchain_file": ["toolchain_GNUARM.cmake",
883 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800884 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800885 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800886 "test_regression": [False],
887 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800888 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800889 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800890 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800891 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800892 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800893 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800894 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800895 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800896 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800897 "mmio": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800898 },
899 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800900 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800901 }
902
Karl Zhang14573bc2020-06-08 09:23:21 +0800903config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800904 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
905 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800906 "toolchain_file": ["toolchain_GNUARM.cmake",
907 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800908 "lib_model": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800909 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800910 "test_regression": [False],
911 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800912 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800913 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800914 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800915 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800916 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800917 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800918 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800919 "mmio": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800920 },
921 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800922 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800923 }
924
Karl Zhang14573bc2020-06-08 09:23:21 +0800925config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800926 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800927 "toolchain_file": ["toolchain_GNUARM.cmake",
928 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800929 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800930 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800931 "test_regression": [True],
932 "test_psa_api": ["OFF"],
933 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800934 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800935 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800936 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800937 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800938 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800939 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800940 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800941 },
942 "common_params": _common_tfm_builder_cfg,
943 "invalid": _common_tfm_invalid_configs + []
944 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800945
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800946config_nightly_psoc64 = {"seed_params": {
947 "tfm_platform": ["cypress/psoc64"],
948 "toolchain_file": ["toolchain_GNUARM.cmake",
949 "toolchain_ARMCLANG.cmake"],
950 "lib_model": [False],
951 "isolation_level": ["1", "2"],
952 "test_regression": [True],
953 "test_psa_api": ["OFF"],
954 "cmake_build_type": ["Release"],
955 "with_otp": ["off"],
956 "with_bl2": [False],
957 "with_ns": [True],
958 "profile": [""],
959 "partition_ps": ["ON"],
960 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800961 "mmio": ["OFF"],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800962 },
963 "common_params": _common_tfm_builder_cfg,
964 "invalid": _common_tfm_invalid_configs + []
965 }
966
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800967config_nightly_STM32L562E_DK = {"seed_params": {
968 "tfm_platform": ["stm/stm32l562e_dk"],
969 "toolchain_file": ["toolchain_GNUARM.cmake",
970 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800971 "lib_model": [True, False],
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800972 "isolation_level": ["1", "2", "3"],
973 "test_regression": [True],
974 "test_psa_api": ["OFF"],
975 "cmake_build_type": ["Release"],
976 "with_otp": ["off"],
977 "with_bl2": [True],
978 "with_ns": [True],
979 "profile": [""],
980 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800981 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800982 "mmio": ["OFF"],
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800983 },
984 "common_params": _common_tfm_builder_cfg,
985 "invalid": _common_tfm_invalid_configs + []
986 }
987
Arthur Shef3657742021-09-07 14:23:18 -0700988config_nightly_LPCXPRESSO55S69 = {"seed_params": {
989 "tfm_platform": ["nxp/lpcxpresso55s69"],
990 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800991 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700992 "isolation_level": ["2"],
993 "test_regression": [True, False],
994 "test_psa_api": ["OFF"],
995 "cmake_build_type": ["Relwithdebinfo"],
996 "with_otp": ["off"],
997 "with_bl2": [True, False],
998 "with_ns": [True],
999 "profile": ["profile_medium"],
1000 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001001 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001002 "mmio": ["OFF"],
Arthur Shef3657742021-09-07 14:23:18 -07001003 },
1004 "common_params": _common_tfm_builder_cfg,
1005 "invalid": _common_tfm_invalid_configs + []
1006 }
1007
Karl Zhang14573bc2020-06-08 09:23:21 +08001008config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001009 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +08001010 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001011 "toolchain_file": ["toolchain_GNUARM.cmake",
1012 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001013 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +08001014 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001015 "test_regression": [True],
1016 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001017 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001018 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001019 "with_bl2": [True],
1020 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001021 "profile": ["", "profile_small", "profile_medium"],
1022 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001023 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001024 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001025 },
1026 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001027 "valid": [
Summer Qin3c2b5722021-05-26 10:43:45 +08001028 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001029 True, "1", False, "OFF", "Debug",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001030 "off", True, True, "", "ON", "OFF", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001031 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001032 False, "2", False, "OFF", "Debug",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001033 "off", True, True, "", "ON", "OFF", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001034 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001035 False, "3", False, "OFF", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001036 "off", True, True, "", "ON", "OFF", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001037 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001038 False, "2", False, "OFF", "Debug",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001039 "off", True, True, "profile_medium", "ON", "OFF", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001040 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001041 False, "3", False, "OFF", "Debug",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001042 "off", True, True, "profile_large", "ON", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001043 # AN521_GNUARM_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001044 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
1045 False, "2", True, "OFF", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001046 "off", True, True, "profile_medium", "OFF", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001047 # MUSCA_B1_GNUARM_LIB_1_REG_Minsizerel_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001048 ("arm/musca_b1/sse_200", "toolchain_GNUARM.cmake",
1049 True, "1", True, "OFF", "Minsizerel",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001050 "off", True, True, "", "ON", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001051 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001052 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake",
1053 False, "1", True, "OFF", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001054 "off", True, True, "", "ON", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001055 # stm32l562e_dk_GNUARM_IPC_2_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001056 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
1057 False, "2", True, "OFF", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001058 "off", True, True, "", "ON", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001059 # stm32l562e_dk_GNUARM_IPC_3_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001060 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
1061 False, "3", True, "OFF", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001062 "off", True, True, "", "ON", "OFF", "OFF"),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001063 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001064 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001065 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +08001066 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001067 "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001068 # valid configs supported by TF-M but not needed in per-patch
1069 ("*", "*", "*", "1", "*", "*", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001070 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001071 ("*", "*", "*", "1", "*", "*", "Minsizerel",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001072 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001073 ("*", "*", "*", "2", "*", "*", "Debug",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001074 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001075 ("*", "*", "*", "2", "*", "*", "Minsizerel",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001076 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001077 ("*", "*", "*", "3", "*", "*", "Debug",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001078 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001079 ("*", "*", "*", "3", "*", "*", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001080 "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001081 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001082 "*", "*", "*", "*", "profile_small", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001083 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001084 "*", "*", "*", "*", "profile_small", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001085 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001086 "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001087 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001088 "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001089 ("*", "toolchain_GNUARM.cmake", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001090 "*", "*", "*", "*", "profile_small", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001091 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001092 "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001093 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001094 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001095 ]
1096 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001097
Karl Zhang14573bc2020-06-08 09:23:21 +08001098config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001099 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001100 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001101 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001102 "isolation_level": ["1", "2"],
1103 "test_regression": [True],
1104 "test_psa_api": ["OFF"],
1105 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001106 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001107 "with_bl2": [True],
1108 "with_ns": [True, False],
1109 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001110 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001111 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001112 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001113 },
1114 "common_params": _common_tfm_builder_cfg,
1115 "invalid": _common_tfm_invalid_configs + []
1116 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001117
1118# Configure build manager to build several combinations
1119config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001120 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001121 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001122 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001123 "isolation_level": ["2"],
1124 "test_regression": [False],
1125 "test_psa_api": ["IPC",
1126 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001127 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +08001128 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001129 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001130 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001131 "with_bl2": [True],
1132 "with_ns": [True, False],
1133 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001134 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001135 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001136 "mmio": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001137 },
1138 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001139 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001140 }
1141
Karl Zhang14573bc2020-06-08 09:23:21 +08001142config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001143 "tfm_platform": ["cypress/psoc64"],
1144 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001145 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001146 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001147 "test_regression": [True],
1148 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001149 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001150 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001151 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001152 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001153 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001154 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001155 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001156 "mmio": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001157 },
1158 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001159 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001160 }
1161
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001162config_cov_an519 = {"seed_params": {
1163 "tfm_platform": ["arm/mps2/an519"],
1164 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001165 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001166 "isolation_level": ["1", "2", "3"],
1167 "test_regression": [True, False],
1168 "test_psa_api": ["OFF"],
1169 "cmake_build_type": ["Debug", "Release"],
1170 "with_otp": ["off"],
1171 "with_bl2": [True],
1172 "with_ns": [True],
1173 "profile": ["", "profile_small", "profile_medium"],
1174 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001175 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001176 "mmio": ["OFF"],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001177 },
1178 "common_params": _common_tfm_builder_cfg,
1179 "invalid": _common_tfm_invalid_configs + []
1180 }
1181
1182config_cov_an521 = {"seed_params": {
1183 "tfm_platform": ["arm/mps2/an521"],
1184 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001185 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001186 "isolation_level": ["1", "2", "3"],
1187 "test_regression": [True, False],
1188 "test_psa_api": ["OFF"],
1189 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1190 "with_otp": ["off"],
1191 "with_bl2": [True],
1192 "with_ns": [True],
1193 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1194 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001195 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001196 "mmio": ["OFF"],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001197 },
1198 "common_params": _common_tfm_builder_cfg,
1199 "invalid": _common_tfm_invalid_configs + []
1200 }
1201
Minos Galanakisea421232019-06-20 17:11:28 +01001202# Configruation used for document building
1203config_doxygen = {"common_params": {
1204 "config_type": "tf-m_documents",
1205 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001206 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001207 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001208 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001209 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001210 "cmake --build ./ -- docs"]},
1211 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1212 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001213 r'/(\w+\.(?:html|md|pdf))$',
1214 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001215 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001216 }
1217
Karl Zhangaff558a2020-05-15 14:28:23 +01001218# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +01001219config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001220 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001221 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001222 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001223 "isolation_level": ["1"],
1224 "test_regression": [False],
1225 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001226 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001227 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001228 "with_bl2": [True],
1229 "with_ns": [True],
1230 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001231 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001232 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001233 "mmio": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001234 },
1235 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001236 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001237 }
1238
Dean Birch4c6ad622020-03-13 11:28:03 +00001239# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001240config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001241 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001242 "toolchain_file": ["toolchain_ARMCLANG.cmake",
1243 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001244 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001245 "isolation_level": ["1", "2"],
1246 "test_regression": [True, False],
1247 "test_psa_api": ["OFF"],
1248 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001249 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001250 "with_bl2": [True, False],
1251 "with_ns": [True],
1252 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001253 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001254 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001255 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001256 },
1257 "common_params": _common_tfm_builder_cfg,
1258 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001259 ("*", "toolchain_ARMCLANG.cmake", False, "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001260 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001261 ("*", "toolchain_ARMCLANG.cmake", True, "1", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001262 "*", "*", False, "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001263 ]
1264 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001265
Xinyu Zhangb708f572020-09-15 11:43:46 +08001266config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001267 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001268 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001269 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001270 "isolation_level": ["1", "2"],
1271 "test_regression": [True],
1272 "test_psa_api": ["OFF"],
1273 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001274 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001275 "with_bl2": [True, False],
1276 "with_ns": [True, False],
1277 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001278 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001279 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001280 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001281 },
1282 "common_params": _common_tfm_builder_cfg,
1283 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001284 ("arm/mps2/an521", "toolchain_GNUARM.cmake", False, "2", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001285 "*", "*", True, "*", "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001286 ]
1287 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001288
Xinyu Zhang38b76742021-11-11 13:57:56 +08001289config_an547 = {"seed_params": {
1290 "tfm_platform": ["arm/mps3/an547"],
1291 "toolchain_file": ["toolchain_GNUARM.cmake"],
1292 "lib_model": [False],
1293 "isolation_level": ["1"],
1294 "test_regression": [False],
1295 "test_psa_api": ["OFF"],
1296 "cmake_build_type": ["Debug"],
1297 "with_otp": ["off"],
1298 "with_bl2": [True],
1299 "with_ns": [False],
1300 "profile": [""],
1301 "partition_ps": ["ON"],
1302 "nsce": ["OFF"],
1303 "mmio": ["OFF"],
1304 },
1305 "common_params": _common_tfm_builder_cfg,
1306 "invalid": _common_tfm_invalid_configs + []
1307 }
1308
1309config_corstone_polaris = {"seed_params": {
1310 "tfm_platform": ["arm/mps3/corstone_polaris"],
1311 "toolchain_file": ["toolchain_GNUARM.cmake"],
1312 "lib_model": [False],
1313 "isolation_level": ["1"],
1314 "test_regression": [False],
1315 "test_psa_api": ["OFF"],
1316 "cmake_build_type": ["Debug"],
1317 "with_otp": ["off"],
1318 "with_bl2": [True],
1319 "with_ns": [False],
1320 "profile": [""],
1321 "partition_ps": ["ON"],
1322 "nsce": ["OFF"],
1323 "mmio": ["OFF"],
1324 },
1325 "common_params": _common_tfm_builder_cfg,
1326 "invalid": _common_tfm_invalid_configs + []
1327 }
1328
1329config_bl5340 = {"seed_params": {
1330 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
1331 "toolchain_file": ["toolchain_GNUARM.cmake"],
1332 "lib_model": [False],
1333 "isolation_level": ["1"],
1334 "test_regression": [False],
1335 "test_psa_api": ["OFF"],
1336 "cmake_build_type": ["Debug"],
1337 "with_otp": ["off"],
1338 "with_bl2": [True],
1339 "with_ns": [False],
1340 "profile": [""],
1341 "partition_ps": ["ON"],
1342 "nsce": ["OFF"],
1343 "mmio": ["OFF"],
1344 },
1345 "common_params": _common_tfm_builder_cfg,
1346 "invalid": _common_tfm_invalid_configs + []
1347 }
1348
1349config_nrf5340dk = {"seed_params": {
1350 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
1351 "toolchain_file": ["toolchain_GNUARM.cmake"],
1352 "lib_model": [False],
1353 "isolation_level": ["1"],
1354 "test_regression": [False],
1355 "test_psa_api": ["OFF"],
1356 "cmake_build_type": ["Debug"],
1357 "with_otp": ["off"],
1358 "with_bl2": [True],
1359 "with_ns": [False],
1360 "profile": [""],
1361 "partition_ps": ["ON"],
1362 "nsce": ["OFF"],
1363 "mmio": ["OFF"],
1364 },
1365 "common_params": _common_tfm_builder_cfg,
1366 "invalid": _common_tfm_invalid_configs + []
1367 }
1368
1369config_nrf9160dk = {"seed_params": {
1370 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
1371 "toolchain_file": ["toolchain_GNUARM.cmake"],
1372 "lib_model": [False],
1373 "isolation_level": ["1"],
1374 "test_regression": [False],
1375 "test_psa_api": ["OFF"],
1376 "cmake_build_type": ["Debug"],
1377 "with_otp": ["off"],
1378 "with_bl2": [True],
1379 "with_ns": [False],
1380 "profile": [""],
1381 "partition_ps": ["ON"],
1382 "nsce": ["OFF"],
1383 "mmio": ["OFF"],
1384 },
1385 "common_params": _common_tfm_builder_cfg,
1386 "invalid": _common_tfm_invalid_configs + []
1387 }
1388
1389config_m2351 = {"seed_params": {
1390 "tfm_platform": ["nuvoton/m2351"],
1391 "toolchain_file": ["toolchain_GNUARM.cmake"],
1392 "lib_model": [False],
1393 "isolation_level": ["1"],
1394 "test_regression": [False],
1395 "test_psa_api": ["OFF"],
1396 "cmake_build_type": ["Release"],
1397 "with_otp": ["off"],
1398 "with_bl2": [True],
1399 "with_ns": [False],
1400 "profile": [""],
1401 "partition_ps": ["ON"],
1402 "nsce": ["OFF"],
1403 "mmio": ["OFF"],
1404 },
1405 "common_params": _common_tfm_builder_cfg,
1406 "invalid": _common_tfm_invalid_configs + []
1407 }
1408
1409config_m2354 = {"seed_params": {
1410 "tfm_platform": ["nuvoton/m2354"],
1411 "toolchain_file": ["toolchain_GNUARM.cmake"],
1412 "lib_model": [False],
1413 "isolation_level": ["1"],
1414 "test_regression": [False],
1415 "test_psa_api": ["OFF"],
1416 "cmake_build_type": ["Debug"],
1417 "with_otp": ["off"],
1418 "with_bl2": [True],
1419 "with_ns": [False],
1420 "profile": [""],
1421 "partition_ps": ["ON"],
1422 "nsce": ["OFF"],
1423 "mmio": ["OFF"],
1424 },
1425 "common_params": _common_tfm_builder_cfg,
1426 "invalid": _common_tfm_invalid_configs + []
1427 }
1428
1429config_b_u585i_iot02a = {"seed_params": {
1430 "tfm_platform": ["stm/b_u585i_iot02a"],
1431 "toolchain_file": ["toolchain_GNUARM.cmake"],
1432 "lib_model": [False],
1433 "isolation_level": ["1"],
1434 "test_regression": [False],
1435 "test_psa_api": ["OFF"],
1436 "cmake_build_type": ["Release"],
1437 "with_otp": ["off"],
1438 "with_bl2": [True],
1439 "with_ns": [False],
1440 "profile": [""],
1441 "partition_ps": ["ON"],
1442 "nsce": ["OFF"],
1443 "mmio": ["OFF"],
1444 },
1445 "common_params": _common_tfm_builder_cfg,
1446 "invalid": _common_tfm_invalid_configs + []
1447 }
1448
1449config_nucleo_l552ze_q = {"seed_params": {
1450 "tfm_platform": ["stm/nucleo_l552ze_q"],
1451 "toolchain_file": ["toolchain_GNUARM.cmake"],
1452 "lib_model": [False],
1453 "isolation_level": ["1"],
1454 "test_regression": [False],
1455 "test_psa_api": ["OFF"],
1456 "cmake_build_type": ["Release"],
1457 "with_otp": ["off"],
1458 "with_bl2": [True],
1459 "with_ns": [False],
1460 "profile": [""],
1461 "partition_ps": ["ON"],
1462 "nsce": ["OFF"],
1463 "mmio": ["OFF"],
1464 },
1465 "common_params": _common_tfm_builder_cfg,
1466 "invalid": _common_tfm_invalid_configs + []
1467 }
1468
Karl Zhangaff558a2020-05-15 14:28:23 +01001469_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001470 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001471 "tfm_test": config_tfm_test,
1472 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001473 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +01001474 "tfm_test_otp": config_tfm_test_OTP,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001475 "tfm_nsce": config_nsce,
1476 "tfm_mmio": config_mmio,
Karl Zhangaff558a2020-05-15 14:28:23 +01001477 "psa_api": config_PSA_API,
1478 "psa_api_otp": config_PSA_API_OTP,
1479 "psa_ff": config_PSA_FF,
1480 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001481 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001482 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001483 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Karl Zhang14573bc2020-06-08 09:23:21 +08001484
1485 #nightly test group
1486 "nightly_test": config_nightly,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001487 "nightly_nsce": config_nsce,
1488 "nightly_mmio": config_mmio,
Karl Zhang14573bc2020-06-08 09:23:21 +08001489 "nightly_profile": config_nightly_profile,
1490 "nightly_psa_api": config_nightly_PSA_API,
1491 "nightly_ff": config_nightly_PSA_FF,
1492 "nightly_otp": config_nightly_OTP,
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001493 "nightly_psoc64": config_nightly_psoc64,
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +08001494 "nightly_stm32l562e_dk": config_nightly_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001495 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Karl Zhang14573bc2020-06-08 09:23:21 +08001496
1497 #per patch test group
1498 "pp_test": config_pp_test,
1499 "pp_OTP": config_pp_OTP,
1500 "pp_PSA_API": config_pp_PSA_API,
1501 "pp_psoc64": config_pp_PSoC64,
1502
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001503 #code coverage test group
1504 "coverage_an519": config_cov_an519,
1505 "coverage_an521": config_cov_an521,
1506
Xinyu Zhang38b76742021-11-11 13:57:56 +08001507 #extra build group
1508 "arm_corstone1000": config_corstone1000,
1509 "arm_an547": config_an547,
1510 "arm_corstone_polaris": config_corstone_polaris,
1511 "cypress_psoc64": config_PSOC64,
1512 "laird_bl5340": config_bl5340,
1513 "nordic_nrf5340dk": config_nrf5340dk,
1514 "nordic_nrf9160dk": config_nrf9160dk,
1515 "nuvoton_m2351": config_m2351,
1516 "nuvoton_m2354": config_m2354,
1517 "nxp_lpcxpresso55s69": config_LPCXPRESSO55S69,
1518 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1519 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1520 "stm_stm32l562e_dk": config_STM32L562E_DK,
1521
Karl Zhang14573bc2020-06-08 09:23:21 +08001522 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001523 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001524
1525 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001526 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001527 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001528 "an521_psa_api": config_AN521_PSA_API,
1529 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001530 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001531 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001532 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001533 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001534 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001535 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001536 "ipc": config_IPC,
1537 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001538 "debug": config_debug,
Karl Zhangaff558a2020-05-15 14:28:23 +01001539 "release": config_release,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001540 "debug": config_debug,
Karl Zhang14573bc2020-06-08 09:23:21 +08001541
1542 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001543 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001544 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001545
1546if __name__ == '__main__':
1547 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001548
Minos Galanakisea421232019-06-20 17:11:28 +01001549 # Default behavior is to export refference config when called
1550 _dir = os.getcwd()
1551 from utils import save_json
1552 for _cname, _cfg in _builtin_configs.items():
1553 _fname = os.path.join(_dir, _cname + ".json")
1554 print("Exporting config %s" % _fname)
1555 save_json(_fname, _cfg)