blob: f0e3d725ec196e15cdb101028b550b3b6abfae90 [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 Zhang73ed2992021-09-15 11:38:23 +0800142 # LVL2 and LVL3 requires IPC model
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800143 ("*", "*", True, "2", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
144 ("*", "*", True, "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800145 # Regression requires NS
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800146 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800147 # psoc64 requires IPC model
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800148 ("cypress/psoc64", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800149 # No PSA_ACK with regression
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800150 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*", "*", "*", "*"),
151 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*", "*", "*", "*"),
152 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*", "*"),
153 ("*", "*", "*", "*", True, "STORAGE", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800154 # PSA_ACK requires NS
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800155 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*", "*", "*", "*"),
156 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*", "*", "*", "*"),
157 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*", "*", "*", "*"),
158 ("*", "*", "*", "*", "*", "STORAGE", "*", "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhangc0aad0a2021-11-10 16:07:28 +0800159 # PSA_ACK IPC (FF) does not support LVL3
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800160 ("*", "*", "*", "3", "*", "IPC", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800161 # Musca requires BL2
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800162 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*"),
163 ("arm/musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800164 # psoc64 cannot use BL2
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800165 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800166 # psoc64 does not support Debug build type
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800167 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800168 # Musca b1 SSE 200 does not support Profile S
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800169 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800170 # Musca B1 Secure Enclave requires IPC model, BL2, and supports only Isolation Level 1
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800171 ("arm/musca_b1/secure_enclave", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
172 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*"),
173 ("arm/musca_b1/secure_enclave", "*", "*", "2", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100174 # Musca B1 Secure Enclave does not support tests, profiles, NS side building
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800175 ("arm/musca_b1/secure_enclave", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*"),
176 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "IPC", "*", "*", "*", "*", "*", "*", "*", "*"),
177 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", "*", "*", "*", "*", "*"),
178 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*", "*"),
179 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "STORAGE", "*", "*", "*", "*", "*", "*", "*", "*"),
180 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*"),
181 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
182 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
183 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800184 # PARTITION_PS could be OFF only for Profile S and M
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800185 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF", "*", "*"),
186 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "OFF", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800187 # PARTITION_PS should be OFF for Profile S
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800188 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800189 # Proile M only support for IPC model
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800190 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800191 # Profile M only support for Isolation Level 2
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800192 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
193 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800194 # Profile L only support for Isolation Level 3
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800195 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
196 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800197 # Profile S does not support IPC model
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800198 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800199 # Profile S only supports Isolation Level 1
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800200 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*"),
201 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800202 # Only AN521 and MUSCA_B1 support Isolation Level 3
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800203 ("arm/mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
204 ("arm/mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
205 ("arm/musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
206 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
207 ("arm/musca_b1/secure_enclave", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700208 # stm/stm32l562e_dk uses BL2
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800209 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700210 # stm/stm32l562e_dk does not support Debug build type
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800211 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700212 # nxp/lpcxpresso55s69 only build with GCC
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800213 ("nxp/lpcxpresso55s69", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700214 # nxp/lpcxpresso55s69 only build Profile M
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800215 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*"),
216 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700217 # nxp/lpcxpresso55s69 have to turn off BL2 when build regression test
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800218 ("nxp/lpcxpresso55s69", "*", "*", "*", "True", "*", "*", "*", "True", "*", "*", "*", "*", "*"),
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800219 # NSID does not support multi core
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800220 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "ON", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800221 ]
222
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100223# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100224config_AN524 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800225 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800226 "toolchain_file": ["toolchain_GNUARM.cmake",
227 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800228 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800229 "isolation_level": ["1", "2"],
230 "test_regression": [True, False],
231 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100232 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800233 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800234 "with_bl2": [True, False],
235 "with_ns": [True, False],
236 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800237 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800238 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800239 "mmio": ["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"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800260 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100261 },
262 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800263 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100264 }
265
Karl Zhangaff558a2020-05-15 14:28:23 +0100266config_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800267 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
268 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800269 "toolchain_file": ["toolchain_GNUARM.cmake",
270 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800271 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800272 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800273 "test_regression": [False],
274 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800275 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800276 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100277 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800278 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800279 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800280 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800281 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800282 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800283 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800284 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100285 },
286 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800287 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100288 }
289
Karl Zhangaff558a2020-05-15 14:28:23 +0100290config_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800291 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
292 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800293 "toolchain_file": ["toolchain_GNUARM.cmake",
294 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800295 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800296 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800297 "test_regression": [False],
298 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100299 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800300 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800301 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800302 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800303 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800304 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800305 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800306 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100307 },
308 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800309 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100310 }
311
Karl Zhangaff558a2020-05-15 14:28:23 +0100312config_PSA_API_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800313 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800314 "toolchain_file": ["toolchain_GNUARM.cmake",
315 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800316 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800317 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800318 "test_regression": [False],
319 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800320 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800321 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100322 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800323 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800324 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800325 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800326 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800327 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800328 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800329 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100330 },
331 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800332 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100333 }
Minos Galanakisea421232019-06-20 17:11:28 +0100334
Xinyu Zhangb708f572020-09-15 11:43:46 +0800335config_PSA_FF_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800336 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800337 "toolchain_file": ["toolchain_GNUARM.cmake",
338 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800339 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800340 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800341 "test_regression": [False],
342 "test_psa_api": ["IPC"],
343 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800344 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800345 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800346 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800347 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800348 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800349 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800350 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800351 },
352 "common_params": _common_tfm_builder_cfg,
353 "invalid": _common_tfm_invalid_configs + []
354 }
355
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800356config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800357 "tfm_platform": ["cypress/psoc64"],
358 "toolchain_file": ["toolchain_GNUARM.cmake",
359 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800360 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800361 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800362 "test_regression": [True],
363 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800364 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800365 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800366 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800367 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800368 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800369 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800370 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800371 "mmio": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800372 },
373 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800374 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800375 }
376
Arthur She19c0e1a2021-06-02 11:06:19 -0700377config_STM32L562E_DK = {"seed_params": {
378 "tfm_platform": ["stm/stm32l562e_dk"],
379 "toolchain_file": ["toolchain_GNUARM.cmake",
380 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800381 "lib_model": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700382 "isolation_level": ["1", "2", "3"],
383 "test_regression": [True],
384 "test_psa_api": ["OFF"],
385 "cmake_build_type": ["Release"],
386 "with_otp": ["off"],
387 "with_bl2": [True],
388 "with_ns": [True],
389 "profile": [""],
390 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800391 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800392 "mmio": ["OFF"],
Arthur She19c0e1a2021-06-02 11:06:19 -0700393 },
394 "common_params": _common_tfm_builder_cfg,
395 "invalid": _common_tfm_invalid_configs + []
396 }
397
Arthur Shef3657742021-09-07 14:23:18 -0700398config_LPCXPRESSO55S69 = {"seed_params": {
399 "tfm_platform": ["nxp/lpcxpresso55s69"],
400 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800401 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700402 "isolation_level": ["2"],
403 "test_regression": [True, False],
404 "test_psa_api": ["OFF"],
405 "cmake_build_type": ["Relwithdebinfo"],
406 "with_otp": ["off"],
407 "with_bl2": [True, False],
408 "with_ns": [True],
409 "profile": ["profile_medium"],
410 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800411 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800412 "mmio": ["OFF"],
Arthur Shef3657742021-09-07 14:23:18 -0700413 },
414 "common_params": _common_tfm_builder_cfg,
415 "invalid": _common_tfm_invalid_configs + []
416 }
417
Xinyu Zhang6afdd612021-10-12 17:07:32 +0800418config_corstone1000 = {"seed_params": {
419 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800420 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800421 "lib_model": [False],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800422 "isolation_level": ["1"],
423 "test_regression": [False],
424 "test_psa_api": ["OFF"],
425 "cmake_build_type": ["Debug"],
426 "with_otp": ["off"],
427 "with_bl2": [True],
428 "with_ns": [False],
429 "profile": [""],
430 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800431 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800432 "mmio": ["OFF"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800433 },
434 "common_params": _common_tfm_builder_cfg,
435 "invalid": _common_tfm_invalid_configs + []
436 }
437
Minos Galanakisea421232019-06-20 17:11:28 +0100438config_AN519 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800439 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800440 "toolchain_file": ["toolchain_GNUARM.cmake",
441 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800442 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800443 "isolation_level": ["1", "2"],
444 "test_regression": [True, False],
445 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100446 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800447 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800448 "with_bl2": [True, False],
449 "with_ns": [True, False],
450 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800451 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800452 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800453 "mmio": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100454 },
455 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800456 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100457 }
458
Xinyu Zhangb708f572020-09-15 11:43:46 +0800459config_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800460 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
461 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800462 "toolchain_file": ["toolchain_GNUARM.cmake",
463 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800464 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800465 "isolation_level": ["1", "2"],
466 "test_regression": [True, False],
467 "test_psa_api": ["OFF"],
468 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800469 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800470 "with_bl2": [True, False],
471 "with_ns": [True, False],
472 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800473 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800474 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800475 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800476 },
Minos Galanakisea421232019-06-20 17:11:28 +0100477 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800478 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100479 }
480
Minos Galanakisea421232019-06-20 17:11:28 +0100481config_full = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800482 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
483 "arm/musca_b1/sse_200",
484 "arm/mps3/an524", "cypress/psoc64",
Arthur She19c0e1a2021-06-02 11:06:19 -0700485 "arm/musca_b1/secure_enclave",
Arthur Shef3657742021-09-07 14:23:18 -0700486 "stm/stm32l562e_dk",
487 "nxp/lpcxpresso55s69"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800488 "toolchain_file": ["toolchain_GNUARM.cmake",
489 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800490 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800491 "isolation_level": ["1", "2"],
492 "test_regression": [True, False],
493 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800494 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800495 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800496 "with_bl2": [True, False],
497 "with_ns": [True, False],
498 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800499 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800500 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800501 "mmio": ["OFF"],
Dean Birchd6ce2c82020-05-13 13:16:15 +0100502 },
503 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800504 "invalid": _common_tfm_invalid_configs + [
505 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800506 "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800507 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800508 "*", "*", "*", "*", True, True, "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800509 ("arm/mps2/an521", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800510 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800511 ("arm/mps2/an519", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800512 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800513 ("arm/musca_b1/sse_200", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800514 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800515 ("arm/mps3/an524", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800516 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800517 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800518 }
519
Karl Zhangaff558a2020-05-15 14:28:23 +0100520config_tfm_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800521 "tfm_platform": ["arm/mps2/an521",
522 "arm/musca_b1/sse_200", "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800523 "toolchain_file": ["toolchain_ARMCLANG.cmake",
524 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800525 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800526 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800527 "test_regression": [True, False],
528 "test_psa_api": ["OFF"],
529 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800530 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800531 "with_bl2": [True],
532 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800533 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800534 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800535 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800536 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800537 },
538 "common_params": _common_tfm_builder_cfg,
539 "invalid": _common_tfm_invalid_configs + []
540 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800541
Karl Zhangaff558a2020-05-15 14:28:23 +0100542config_tfm_test2 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800543 "tfm_platform": ["arm/mps2/an519", "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800544 "toolchain_file": ["toolchain_ARMCLANG.cmake",
545 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800546 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800547 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800548 "test_regression": [True, False],
549 "test_psa_api": ["OFF"],
550 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800551 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800552 "with_bl2": [True],
553 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800554 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800555 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800556 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800557 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800558 },
559 "common_params": _common_tfm_builder_cfg,
560 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800561 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800562 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800563 ]
564 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100565
Karl Zhang14573bc2020-06-08 09:23:21 +0800566config_tfm_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800567 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
568 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800569 "toolchain_file": ["toolchain_ARMCLANG.cmake",
570 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800571 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800572 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800573 "test_regression": [True, False],
574 "test_psa_api": ["OFF"],
575 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800576 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800577 "with_bl2": [True],
578 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800579 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800580 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800581 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800582 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800583 },
584 "common_params": _common_tfm_builder_cfg,
585 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800586 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800587 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800588 # Profile Large is only supported by AN521
Summer Qin3c2b5722021-05-26 10:43:45 +0800589 ("arm/mps2/an519", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800590 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800591 ("arm/musca_b1/sse_200", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800592 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800593 ]
594 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800595
Karl Zhangaff558a2020-05-15 14:28:23 +0100596config_tfm_test_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800597 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800598 "toolchain_file": ["toolchain_ARMCLANG.cmake",
599 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800600 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800601 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800602 "test_regression": [True, False],
603 "test_psa_api": ["OFF"],
604 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800605 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800606 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800607 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800608 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800609 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800610 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800611 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800612 },
613 "common_params": _common_tfm_builder_cfg,
614 "invalid": _common_tfm_invalid_configs + []
615 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100616
Minos Galanakisea421232019-06-20 17:11:28 +0100617config_MUSCA_B1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800618 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800619 "toolchain_file": ["toolchain_ARMCLANG.cmake",
620 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800621 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800622 "isolation_level": ["1", "2"],
623 "test_regression": [True, False],
624 "test_psa_api": ["OFF"],
625 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800626 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800627 "with_bl2": [True],
628 "with_ns": [True, False],
629 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800630 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800631 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800632 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800633 },
634 "common_params": _common_tfm_builder_cfg,
635 "invalid": _common_tfm_invalid_configs + []
636 }
Minos Galanakisea421232019-06-20 17:11:28 +0100637
Mark Horvath8d281cd2020-12-07 15:20:26 +0100638config_MUSCA_B1_SE = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800639 "tfm_platform": ["arm/musca_b1/secure_enclave"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100640 "toolchain_file": ["toolchain_ARMCLANG.cmake",
641 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800642 "lib_model": [False],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100643 "isolation_level": ["1"],
644 "test_regression": [False],
645 "test_psa_api": ["OFF"],
646 "cmake_build_type": ["Debug", "Release"],
647 "with_otp": ["off"],
648 "with_bl2": [True],
649 "with_ns": [False],
650 "profile": [""],
651 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800652 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800653 "mmio": ["OFF"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100654 },
655 "common_params": _common_tfm_builder_cfg,
656 "invalid": _common_tfm_invalid_configs + []
657 }
658
Karl Zhangeffed972020-06-30 15:48:01 +0800659config_MUSCA_S1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800660 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800661 "toolchain_file": ["toolchain_ARMCLANG.cmake",
662 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800663 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800664 "isolation_level": ["1", "2"],
665 "test_regression": [True, False],
666 "test_psa_api": ["OFF"],
667 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800668 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800669 "with_bl2": [True],
670 "with_ns": [True, False],
671 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800672 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800673 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800674 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800675 },
676 "common_params": _common_tfm_builder_cfg,
677 "invalid": _common_tfm_invalid_configs + []
678 }
Karl Zhangeffed972020-06-30 15:48:01 +0800679
Karl Zhangaff558a2020-05-15 14:28:23 +0100680config_release = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800681 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
682 "arm/musca_b1/sse_200", "arm/musca_s1",
683 "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800684 "toolchain_file": ["toolchain_ARMCLANG.cmake",
685 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800686 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800687 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800688 "test_regression": [True, False],
689 "test_psa_api": ["OFF"],
690 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800691 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800692 "with_bl2": [True, False],
693 "with_ns": [True, False],
694 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800695 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800696 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800697 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800698 },
699 "common_params": _common_tfm_builder_cfg,
700 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800701 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800702 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800703 ]
704 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100705
706# Configure build manager to build several combinations
707config_AN521_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800708 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
709 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800710 "toolchain_file": ["toolchain_GNUARM.cmake",
711 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800712 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800713 "isolation_level": ["1", "2"],
714 "test_regression": [False],
715 "test_psa_api": ["IPC",
716 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800717 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800718 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800719 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800720 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800721 "with_bl2": [True],
722 "with_ns": [True, False],
723 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800724 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800725 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800726 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100727 },
728 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800729 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800730 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800731 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800732 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100733 }
734
Karl Zhangaff558a2020-05-15 14:28:23 +0100735config_AN521_PSA_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800736 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
737 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800738 "toolchain_file": ["toolchain_GNUARM.cmake",
739 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800740 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800741 "isolation_level": ["1", "2"],
742 "test_regression": [False],
743 "test_psa_api": ["IPC"],
744 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800745 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800746 "with_bl2": [True],
747 "with_ns": [True, False],
748 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800749 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800750 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800751 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100752 },
753 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800754 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800755 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800756 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800757 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100758 }
759
Karl Zhang14573bc2020-06-08 09:23:21 +0800760config_nightly = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800761 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
762 "arm/musca_b1/sse_200", "arm/musca_s1",
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800763 "arm/mps3/an524", "stm/stm32l562e_dk",
764 "arm/musca_b1/secure_enclave"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800765 "toolchain_file": ["toolchain_GNUARM.cmake",
766 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800767 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800768 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800769 "test_regression": [True, False],
770 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800771 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800772 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800773 "with_bl2": [True],
774 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800775 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800776 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800777 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800778 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800779 },
780 "common_params": _common_tfm_builder_cfg,
781 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800782 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800783 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800784 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800785 "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800786 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800787 "*", "*", "*", "*", True, True, "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800788 ("arm/mps2/an521", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800789 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800790 ("arm/mps2/an519", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800791 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800792 ("arm/musca_b1/sse_200", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800793 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800794 ("arm/musca_s1", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800795 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800796 ("arm/mps3/an524", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800797 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800798 ]
799 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800800
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800801config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800802 "tfm_platform": ["arm/mps2/an521"],
803 "toolchain_file": ["toolchain_GNUARM.cmake",
804 "toolchain_ARMCLANG.cmake"],
805 "lib_model": [True, False],
806 "isolation_level": ["1", "2", "3"],
807 "test_regression": [True],
808 "test_psa_api": ["OFF"],
809 "cmake_build_type": ["Debug"],
810 "with_otp": ["off"],
811 "with_bl2": [True],
812 "with_ns": [True],
813 "profile": [""],
814 "partition_ps": ["ON"],
815 "nsce": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800816 "mmio": ["OFF"],
817 },
818 "common_params": _common_tfm_builder_cfg,
819 "invalid": _common_tfm_invalid_configs + []
820 }
821
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800822config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800823 "tfm_platform": ["arm/mps2/an521"],
824 "toolchain_file": ["toolchain_GNUARM.cmake",
825 "toolchain_ARMCLANG.cmake"],
826 "lib_model": [False],
827 "isolation_level": ["1"],
828 "test_regression": [True],
829 "test_psa_api": ["OFF"],
830 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
831 "with_otp": ["off"],
832 "with_bl2": [True],
833 "with_ns": [True],
834 "profile": [""],
835 "partition_ps": ["ON"],
836 "nsce": ["OFF"],
837 "mmio": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800838 },
839 "common_params": _common_tfm_builder_cfg,
840 "invalid": _common_tfm_invalid_configs + []
841 }
842
Karl Zhang14573bc2020-06-08 09:23:21 +0800843config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800844 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
845 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800846 "toolchain_file": ["toolchain_ARMCLANG.cmake",
847 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800848 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800849 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800850 "test_regression": [True, False],
851 "test_psa_api": ["OFF"],
852 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800853 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800854 "with_bl2": [True],
855 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800856 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800857 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800858 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800859 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800860 },
861 "common_params": _common_tfm_builder_cfg,
862 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800863 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800864 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800865 # Profile Large is only supported by AN521
Summer Qin3c2b5722021-05-26 10:43:45 +0800866 ("arm/mps2/an519", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800867 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800868 ("arm/musca_b1/sse_200", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800869 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800870 ]
871 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800872
Karl Zhang14573bc2020-06-08 09:23:21 +0800873config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800874 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
875 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800876 "toolchain_file": ["toolchain_GNUARM.cmake",
877 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800878 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800879 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800880 "test_regression": [False],
881 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800882 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800883 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800884 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800885 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800886 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800887 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800888 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800889 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800890 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800891 "mmio": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800892 },
893 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800894 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800895 }
896
Karl Zhang14573bc2020-06-08 09:23:21 +0800897config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800898 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
899 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800900 "toolchain_file": ["toolchain_GNUARM.cmake",
901 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800902 "lib_model": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800903 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800904 "test_regression": [False],
905 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800906 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800907 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800908 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800909 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800910 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800911 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800912 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800913 "mmio": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800914 },
915 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800916 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800917 }
918
Karl Zhang14573bc2020-06-08 09:23:21 +0800919config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800920 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800921 "toolchain_file": ["toolchain_GNUARM.cmake",
922 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800923 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800924 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800925 "test_regression": [True],
926 "test_psa_api": ["OFF"],
927 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800928 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800929 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800930 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800931 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800932 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800933 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800934 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800935 },
936 "common_params": _common_tfm_builder_cfg,
937 "invalid": _common_tfm_invalid_configs + []
938 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800939
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800940config_nightly_psoc64 = {"seed_params": {
941 "tfm_platform": ["cypress/psoc64"],
942 "toolchain_file": ["toolchain_GNUARM.cmake",
943 "toolchain_ARMCLANG.cmake"],
944 "lib_model": [False],
945 "isolation_level": ["1", "2"],
946 "test_regression": [True],
947 "test_psa_api": ["OFF"],
948 "cmake_build_type": ["Release"],
949 "with_otp": ["off"],
950 "with_bl2": [False],
951 "with_ns": [True],
952 "profile": [""],
953 "partition_ps": ["ON"],
954 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800955 "mmio": ["OFF"],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800956 },
957 "common_params": _common_tfm_builder_cfg,
958 "invalid": _common_tfm_invalid_configs + []
959 }
960
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800961config_nightly_STM32L562E_DK = {"seed_params": {
962 "tfm_platform": ["stm/stm32l562e_dk"],
963 "toolchain_file": ["toolchain_GNUARM.cmake",
964 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800965 "lib_model": [True, False],
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800966 "isolation_level": ["1", "2", "3"],
967 "test_regression": [True],
968 "test_psa_api": ["OFF"],
969 "cmake_build_type": ["Release"],
970 "with_otp": ["off"],
971 "with_bl2": [True],
972 "with_ns": [True],
973 "profile": [""],
974 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800975 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800976 "mmio": ["OFF"],
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800977 },
978 "common_params": _common_tfm_builder_cfg,
979 "invalid": _common_tfm_invalid_configs + []
980 }
981
Arthur Shef3657742021-09-07 14:23:18 -0700982config_nightly_LPCXPRESSO55S69 = {"seed_params": {
983 "tfm_platform": ["nxp/lpcxpresso55s69"],
984 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800985 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700986 "isolation_level": ["2"],
987 "test_regression": [True, False],
988 "test_psa_api": ["OFF"],
989 "cmake_build_type": ["Relwithdebinfo"],
990 "with_otp": ["off"],
991 "with_bl2": [True, False],
992 "with_ns": [True],
993 "profile": ["profile_medium"],
994 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800995 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800996 "mmio": ["OFF"],
Arthur Shef3657742021-09-07 14:23:18 -0700997 },
998 "common_params": _common_tfm_builder_cfg,
999 "invalid": _common_tfm_invalid_configs + []
1000 }
1001
Karl Zhang14573bc2020-06-08 09:23:21 +08001002config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001003 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +08001004 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001005 "toolchain_file": ["toolchain_GNUARM.cmake",
1006 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001007 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +08001008 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001009 "test_regression": [True],
1010 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001011 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001012 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001013 "with_bl2": [True],
1014 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001015 "profile": ["", "profile_small", "profile_medium"],
1016 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001017 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001018 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001019 },
1020 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001021 "valid": [
Summer Qin3c2b5722021-05-26 10:43:45 +08001022 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001023 True, "1", False, "OFF", "Debug",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001024 "off", True, True, "", "ON", "OFF", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001025 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001026 False, "2", False, "OFF", "Debug",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001027 "off", True, True, "", "ON", "OFF", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001028 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001029 False, "3", False, "OFF", "Release",
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_GNUARM.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, "profile_medium", "ON", "OFF", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001034 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001035 False, "3", False, "OFF", "Debug",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001036 "off", True, True, "profile_large", "ON", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001037 # AN521_GNUARM_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001038 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
1039 False, "2", True, "OFF", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001040 "off", True, True, "profile_medium", "OFF", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001041 # MUSCA_B1_GNUARM_LIB_1_REG_Minsizerel_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001042 ("arm/musca_b1/sse_200", "toolchain_GNUARM.cmake",
1043 True, "1", True, "OFF", "Minsizerel",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001044 "off", True, True, "", "ON", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001045 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001046 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake",
1047 False, "1", True, "OFF", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001048 "off", True, True, "", "ON", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001049 # stm32l562e_dk_GNUARM_IPC_2_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001050 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
1051 False, "2", True, "OFF", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001052 "off", True, True, "", "ON", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001053 # stm32l562e_dk_GNUARM_IPC_3_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001054 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
1055 False, "3", True, "OFF", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001056 "off", True, True, "", "ON", "OFF", "OFF"),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001057 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001058 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001059 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +08001060 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001061 "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001062 # valid configs supported by TF-M but not needed in per-patch
1063 ("*", "*", "*", "1", "*", "*", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001064 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001065 ("*", "*", "*", "1", "*", "*", "Minsizerel",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001066 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001067 ("*", "*", "*", "2", "*", "*", "Debug",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001068 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001069 ("*", "*", "*", "2", "*", "*", "Minsizerel",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001070 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001071 ("*", "*", "*", "3", "*", "*", "Debug",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001072 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001073 ("*", "*", "*", "3", "*", "*", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001074 "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001075 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001076 "*", "*", "*", "*", "profile_small", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001077 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001078 "*", "*", "*", "*", "profile_small", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001079 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001080 "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001081 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001082 "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001083 ("*", "toolchain_GNUARM.cmake", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001084 "*", "*", "*", "*", "profile_small", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001085 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001086 "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001087 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001088 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001089 ]
1090 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001091
Karl Zhang14573bc2020-06-08 09:23:21 +08001092config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001093 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001094 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001095 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001096 "isolation_level": ["1", "2"],
1097 "test_regression": [True],
1098 "test_psa_api": ["OFF"],
1099 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001100 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001101 "with_bl2": [True],
1102 "with_ns": [True, False],
1103 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001104 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001105 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001106 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001107 },
1108 "common_params": _common_tfm_builder_cfg,
1109 "invalid": _common_tfm_invalid_configs + []
1110 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001111
1112# Configure build manager to build several combinations
1113config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001114 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001115 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001116 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001117 "isolation_level": ["2"],
1118 "test_regression": [False],
1119 "test_psa_api": ["IPC",
1120 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001121 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +08001122 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001123 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001124 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001125 "with_bl2": [True],
1126 "with_ns": [True, False],
1127 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001128 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001129 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001130 "mmio": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001131 },
1132 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001133 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001134 }
1135
Karl Zhang14573bc2020-06-08 09:23:21 +08001136config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001137 "tfm_platform": ["cypress/psoc64"],
1138 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001139 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001140 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001141 "test_regression": [True],
1142 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001143 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001144 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001145 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001146 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001147 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001148 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001149 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001150 "mmio": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001151 },
1152 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001153 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001154 }
1155
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001156config_cov_an519 = {"seed_params": {
1157 "tfm_platform": ["arm/mps2/an519"],
1158 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001159 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001160 "isolation_level": ["1", "2", "3"],
1161 "test_regression": [True, False],
1162 "test_psa_api": ["OFF"],
1163 "cmake_build_type": ["Debug", "Release"],
1164 "with_otp": ["off"],
1165 "with_bl2": [True],
1166 "with_ns": [True],
1167 "profile": ["", "profile_small", "profile_medium"],
1168 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001169 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001170 "mmio": ["OFF"],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001171 },
1172 "common_params": _common_tfm_builder_cfg,
1173 "invalid": _common_tfm_invalid_configs + []
1174 }
1175
1176config_cov_an521 = {"seed_params": {
1177 "tfm_platform": ["arm/mps2/an521"],
1178 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001179 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001180 "isolation_level": ["1", "2", "3"],
1181 "test_regression": [True, False],
1182 "test_psa_api": ["OFF"],
1183 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1184 "with_otp": ["off"],
1185 "with_bl2": [True],
1186 "with_ns": [True],
1187 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1188 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001189 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001190 "mmio": ["OFF"],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001191 },
1192 "common_params": _common_tfm_builder_cfg,
1193 "invalid": _common_tfm_invalid_configs + []
1194 }
1195
Minos Galanakisea421232019-06-20 17:11:28 +01001196# Configruation used for document building
1197config_doxygen = {"common_params": {
1198 "config_type": "tf-m_documents",
1199 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001200 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001201 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001202 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001203 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001204 "cmake --build ./ -- docs"]},
1205 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1206 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001207 r'/(\w+\.(?:html|md|pdf))$',
1208 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001209 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001210 }
1211
Karl Zhangaff558a2020-05-15 14:28:23 +01001212# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +01001213config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001214 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001215 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001216 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001217 "isolation_level": ["1"],
1218 "test_regression": [False],
1219 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001220 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001221 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001222 "with_bl2": [True],
1223 "with_ns": [True],
1224 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001225 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001226 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001227 "mmio": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001228 },
1229 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001230 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001231 }
1232
Dean Birch4c6ad622020-03-13 11:28:03 +00001233# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001234config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001235 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001236 "toolchain_file": ["toolchain_ARMCLANG.cmake",
1237 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001238 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001239 "isolation_level": ["1", "2"],
1240 "test_regression": [True, False],
1241 "test_psa_api": ["OFF"],
1242 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001243 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001244 "with_bl2": [True, False],
1245 "with_ns": [True],
1246 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001247 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001248 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001249 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001250 },
1251 "common_params": _common_tfm_builder_cfg,
1252 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001253 ("*", "toolchain_ARMCLANG.cmake", False, "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001254 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001255 ("*", "toolchain_ARMCLANG.cmake", True, "1", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001256 "*", "*", False, "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001257 ]
1258 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001259
Xinyu Zhangb708f572020-09-15 11:43:46 +08001260config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001261 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001262 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001263 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001264 "isolation_level": ["1", "2"],
1265 "test_regression": [True],
1266 "test_psa_api": ["OFF"],
1267 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001268 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001269 "with_bl2": [True, False],
1270 "with_ns": [True, False],
1271 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001272 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001273 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001274 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001275 },
1276 "common_params": _common_tfm_builder_cfg,
1277 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001278 ("arm/mps2/an521", "toolchain_GNUARM.cmake", False, "2", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001279 "*", "*", True, "*", "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001280 ]
1281 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001282
Karl Zhangaff558a2020-05-15 14:28:23 +01001283_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001284 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001285 "tfm_test": config_tfm_test,
1286 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001287 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +01001288 "tfm_test_otp": config_tfm_test_OTP,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001289 "tfm_nsce": config_nsce,
1290 "tfm_mmio": config_mmio,
Karl Zhangaff558a2020-05-15 14:28:23 +01001291 "psa_api": config_PSA_API,
1292 "psa_api_otp": config_PSA_API_OTP,
1293 "psa_ff": config_PSA_FF,
1294 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001295 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001296 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001297 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Karl Zhang14573bc2020-06-08 09:23:21 +08001298
1299 #nightly test group
1300 "nightly_test": config_nightly,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001301 "nightly_nsce": config_nsce,
1302 "nightly_mmio": config_mmio,
Karl Zhang14573bc2020-06-08 09:23:21 +08001303 "nightly_profile": config_nightly_profile,
1304 "nightly_psa_api": config_nightly_PSA_API,
1305 "nightly_ff": config_nightly_PSA_FF,
1306 "nightly_otp": config_nightly_OTP,
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001307 "nightly_psoc64": config_nightly_psoc64,
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +08001308 "nightly_stm32l562e_dk": config_nightly_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001309 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Karl Zhang14573bc2020-06-08 09:23:21 +08001310
1311 #per patch test group
1312 "pp_test": config_pp_test,
1313 "pp_OTP": config_pp_OTP,
1314 "pp_PSA_API": config_pp_PSA_API,
1315 "pp_psoc64": config_pp_PSoC64,
1316
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001317 #code coverage test group
1318 "coverage_an519": config_cov_an519,
1319 "coverage_an521": config_cov_an521,
1320
Karl Zhang14573bc2020-06-08 09:23:21 +08001321 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001322 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001323
1324 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001325 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001326 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001327 "an521_psa_api": config_AN521_PSA_API,
1328 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001329 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001330 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001331 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001332 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001333 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001334 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001335 "ipc": config_IPC,
1336 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001337 "debug": config_debug,
Karl Zhangaff558a2020-05-15 14:28:23 +01001338 "release": config_release,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001339 "debug": config_debug,
Karl Zhang14573bc2020-06-08 09:23:21 +08001340
1341 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001342 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001343 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001344
1345if __name__ == '__main__':
1346 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001347
Minos Galanakisea421232019-06-20 17:11:28 +01001348 # Default behavior is to export refference config when called
1349 _dir = os.getcwd()
1350 from utils import save_json
1351 for _cname, _cfg in _builtin_configs.items():
1352 _fname = os.path.join(_dir, _cname + ".json")
1353 print("Exporting config %s" % _fname)
1354 save_json(_fname, _cfg)