blob: dae3a6390b9b1cf4056aa111fd19498d0e23c14a [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/*
Raef Coles61b43a42022-01-12 11:42:57 +000011 * Copyright (c) 2018-2022, 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 Zhangfd2e1152021-12-17 18:09:01 +080044 "extra_params"],
Minos Galanakisea421232019-06-20 17:11:28 +010045
46 # Keys for the templace will come from the combinations of parameters
47 # provided in the seed dictionary.
48
Xinyu Zhangf3e19482022-01-11 15:48:13 +080049 "config_template": "cmake -G Ninja " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080050 "-DTFM_PLATFORM=%(tfm_platform)s " + \
Fathi Boudra324fee72020-11-20 10:31:12 +010051 "-DTFM_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(toolchain_file)s " + \
Xinyu Zhang73ed2992021-09-15 11:38:23 +080052 "-DTFM_LIB_MODEL=%(lib_model)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080053 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
54 "-DTEST_NS=%(test_regression)s -DTEST_S=%(test_regression)s " + \
Raef Coles61b43a42022-01-12 11:42:57 +000055 "-DTEST_BL2=%(test_regression)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080056 "-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 Zhangfd2e1152021-12-17 18:09:01 +080067 "%(extra_params)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080068 "%(codebase_root_dir)s",
Karl Zhangaff558a2020-05-15 14:28:23 +010069
Minos Galanakisea421232019-06-20 17:11:28 +010070 # A small subset of string substitution params is allowed in commands.
71 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
72 # _tbm_target_platform_ with the paths set when building
73
Xinyu Zhangb708f572020-09-15 11:43:46 +080074 "artifact_capture_rex": (r'%(_tbm_build_dir_)s/bin'
Minos Galanakisea421232019-06-20 17:11:28 +010075 r'/(\w+\.(?:axf|bin|hex))$'),
76
77 # ALL commands will be executed for every build.
78 # Other keys will append extra commands when matching target_platform
Fathi Boudra83e4f292020-12-04 22:33:40 +010079 "build_cmds": {"all": ["cmake --build ./ -- install"],
Summer Qin3c2b5722021-05-26 10:43:45 +080080 "arm/musca_b1/sse_200": [("srec_cat "
Mark Horvath8d281cd2020-12-07 15:20:26 +010081 "%(_tbm_build_dir_)s/bin/"
82 "bl2.bin "
83 "-Binary -offset 0xA000000 "
84 "-fill 0xFF 0xA000000 0xA020000 "
85 "%(_tbm_build_dir_)s/bin/"
86 "tfm_s_ns_signed.bin "
87 "-Binary -offset 0xA020000 "
88 "-fill 0xFF 0xA020000 0xA200000 "
89 "-o %(_tbm_build_dir_)s/bin/"
90 "tfm.hex -Intel")],
Summer Qin3c2b5722021-05-26 10:43:45 +080091 "arm/musca_s1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080092 "%(_tbm_build_dir_)s/bin/"
93 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +080094 "-Binary -offset 0xA000000 "
Raef Coles543aab32020-12-03 11:12:02 +000095 "-fill 0xFF 0xA000000 0xA020000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080096 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080097 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +000098 "-Binary -offset 0xA020000 "
99 "-fill 0xFF 0xA020000 0xA200000 "
100 "-o %(_tbm_build_dir_)s/bin/"
Arthur She19c0e1a2021-06-02 11:06:19 -0700101 "tfm.hex -Intel")],
102 "stm/stm32l562e_dk": [("echo 'STM32L562E-DK board post process';"
103 "%(_tbm_build_dir_)s/postbuild.sh;"
104 "pushd %(_tbm_build_dir_)s;"
Arthur She07c91b52021-07-15 15:03:10 -0700105 "BIN_FILES=$(grep -o '\/.*\.bin' TFM_UPDATE.sh | sed 's/^/bin/');"
106 "tar jcf ./bin/stm32l562e-dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh ${BIN_FILES};"
Arthur She3c0dadd2021-11-18 21:17:48 -0800107 "popd")],
108 "nxp/lpcxpresso55s69": [("echo 'LPCXpresso55S69 board post process\n';"
109 "if [ -f \"%(_tbm_build_dir_)s/bin/bl2.hex\" ]; then FLASH_FILE='flash_bl2_JLink.py'; else FLASH_FILE='flash_JLink.py'; fi;"
110 "pushd %(_tbm_build_dir_)s/../platform/ext/target/nxp/lpcxpresso55s69/scripts;"
111 "LN=$(grep -n 'JLinkExe' ${FLASH_FILE}|awk -F: '{print $1}');"
112 "sed -i \"${LN}s/.*/ print('flash.jlink generated')/\" ${FLASH_FILE};"
113 "python3 ./${FLASH_FILE};"
114 "cd %(_tbm_build_dir_)s/bin;"
115 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"
116 "tar jcf lpcxpresso55s69-tfm.tar.bz2 flash.jlink ${BIN_FILES};"
117 "popd")]
Minos Galanakisea421232019-06-20 17:11:28 +0100118 },
119
120 # (Optional) If set will fail if those artefacts are missing post build
121 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800122 "%(_tbm_build_dir_)s/bin/"
123 "tfm_s.bin",
124 "%(_tbm_build_dir_)s/bin/"
125 "tfm_ns.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800126 "arm/musca_b1/sse_200": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800127 "%(_tbm_build_dir_)s/bin/"
128 "tfm.hex",
129 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800130 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800131 "%(_tbm_build_dir_)s/bin/"
132 "tfm_sign.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800133 "arm/musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800134 "%(_tbm_build_dir_)s/bin/"
135 "tfm.hex",
136 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800137 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800138 "%(_tbm_build_dir_)s/bin/"
139 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100140 }
141}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100142
Xinyu Zhangb708f572020-09-15 11:43:46 +0800143# List of all build configs that are impossible under all circumstances
144_common_tfm_invalid_configs = [
Xinyu Zhang797d19b2022-03-01 12:23:45 +0800145 # AN521_ARMCLANG_IPC_1_STORAGE_Debug_BL2_NS does not work as expected with ARMCLANG v6.13
146 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake", False, "1", False, "STORAGE",
147 "Debug", "off", True, True, "", "ON", ""),
Xinyu Zhang459a1982021-07-21 22:34:49 +0800148 # LR_CODE size exceeds limit on MUSCA_B1 & MUSCA_S1 with regression tests in Debug mode built with ARMCLANG
Feder Liang357b1602022-01-11 16:47:49 +0800149 ("arm/musca_b1/sse_200", "toolchain_ARMCLANG.cmake", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*"),
150 ("arm/musca_s1", "toolchain_ARMCLANG.cmake", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800151 # Load range overlap on Musca for IPC Debug type: T895
Feder Liang357b1602022-01-11 16:47:49 +0800152 ("arm/musca_b1/sse_200", "toolchain_ARMCLANG.cmake", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*"),
153 ("arm/musca_s1", "toolchain_ARMCLANG.cmake", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang65683e42021-12-10 15:42:02 +0800154 # Oversize issue on config lpcxpresso55s69_GNUARM_IPC_2_Relwithdebinfo_BL2_NS_MEDIUM
155 ("nxp/lpcxpresso55s69", "toolchain_GNUARM.cmake", False, "2", False, "OFF",
Feder Liang357b1602022-01-11 16:47:49 +0800156 "Relwithdebinfo", "off", True, True, "profile_medium", "ON", "*"),
Xinyu Zhang65683e42021-12-10 15:42:02 +0800157 # Oversize issue on config stm32l562e_dk_ARMCLANG_LIB_1_REG_Release_BL2_NS
158 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake", True, "1", True, "OFF",
Feder Liang357b1602022-01-11 16:47:49 +0800159 "Release", "off", True, True, "", "ON", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800160 # LVL2 and LVL3 requires IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800161 ("*", "*", True, "2", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
162 ("*", "*", True, "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800163 # Regression requires NS
Feder Liang357b1602022-01-11 16:47:49 +0800164 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800165 # psoc64 requires IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800166 ("cypress/psoc64", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800167 # No PSA_ACK with regression
Feder Liang357b1602022-01-11 16:47:49 +0800168 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*", "*", "*"),
169 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*", "*", "*"),
170 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*"),
171 ("*", "*", "*", "*", True, "STORAGE", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800172 # PSA_ACK requires NS
Feder Liang357b1602022-01-11 16:47:49 +0800173 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*", "*", "*"),
174 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*", "*", "*"),
175 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*", "*", "*"),
176 ("*", "*", "*", "*", "*", "STORAGE", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhangc0aad0a2021-11-10 16:07:28 +0800177 # PSA_ACK IPC (FF) does not support LVL3
Feder Liang357b1602022-01-11 16:47:49 +0800178 ("*", "*", "*", "3", "*", "IPC", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800179 # Musca requires BL2
Feder Liang357b1602022-01-11 16:47:49 +0800180 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
181 ("arm/musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800182 # psoc64 cannot use BL2
Feder Liang357b1602022-01-11 16:47:49 +0800183 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800184 # psoc64 does not support Debug build type
Feder Liang357b1602022-01-11 16:47:49 +0800185 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Arthur She3397faf2022-03-02 13:30:28 -0800186 # PSoC64 platform got issue on regression level one test with GNUARM toolchain, disable it as a workaround
187 ("cypress/psoc64", "toolchain_GNUARM.cmake", "*", "1", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800188 # Musca b1 SSE 200 does not support Profile S
Feder Liang357b1602022-01-11 16:47:49 +0800189 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800190 # Musca B1 Secure Enclave requires IPC model, BL2, and supports only Isolation Level 1
Feder Liang357b1602022-01-11 16:47:49 +0800191 ("arm/musca_b1/secure_enclave", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
192 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
193 ("arm/musca_b1/secure_enclave", "*", "*", "2", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100194 # Musca B1 Secure Enclave does not support tests, profiles, NS side building
Feder Liang357b1602022-01-11 16:47:49 +0800195 ("arm/musca_b1/secure_enclave", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*", "*"),
196 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "IPC", "*", "*", "*", "*", "*", "*", "*"),
197 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", "*", "*", "*", "*"),
198 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*"),
199 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "STORAGE", "*", "*", "*", "*", "*", "*", "*"),
200 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
201 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
202 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
203 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800204 # PARTITION_PS could be OFF only for Profile S and M
Feder Liang357b1602022-01-11 16:47:49 +0800205 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF", "*"),
206 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "OFF", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800207 # PARTITION_PS should be OFF for Profile S
Feder Liang357b1602022-01-11 16:47:49 +0800208 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800209 # Proile M only support for IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800210 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800211 # Profile M only support for Isolation Level 2
Feder Liang357b1602022-01-11 16:47:49 +0800212 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
213 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800214 # Profile L only support for Isolation Level 3
Feder Liang357b1602022-01-11 16:47:49 +0800215 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
216 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800217 # Profile S does not support IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800218 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800219 # Profile S only supports Isolation Level 1
Feder Liang357b1602022-01-11 16:47:49 +0800220 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
221 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800222 # Only AN521 and MUSCA_B1 support Isolation Level 3
Feder Liang357b1602022-01-11 16:47:49 +0800223 ("arm/mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
224 ("arm/mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
225 ("arm/musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
226 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
227 ("arm/musca_b1/secure_enclave", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700228 # stm/stm32l562e_dk uses BL2
Feder Liang357b1602022-01-11 16:47:49 +0800229 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700230 # stm/stm32l562e_dk does not support Debug build type
Feder Liang357b1602022-01-11 16:47:49 +0800231 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700232 # nxp/lpcxpresso55s69 only build with GCC
Feder Liang357b1602022-01-11 16:47:49 +0800233 ("nxp/lpcxpresso55s69", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700234 # nxp/lpcxpresso55s69 only build Profile M
Feder Liang357b1602022-01-11 16:47:49 +0800235 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
236 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700237 # nxp/lpcxpresso55s69 have to turn off BL2 when build regression test
Feder Liang357b1602022-01-11 16:47:49 +0800238 ("nxp/lpcxpresso55s69", "*", "*", "*", True, "*", "*", "*", True, "*", "*", "*", "*"),
Arthur She0ce327e2021-11-16 23:11:34 -0800239 # nxp/lpcxpresso55s69 turn off BL2 temporary, due to the oversize error
Feder Liang357b1602022-01-11 16:47:49 +0800240 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +0800241 ]
242
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100243# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100244config_AN524 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800245 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800246 "toolchain_file": ["toolchain_GNUARM.cmake",
247 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800248 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800249 "isolation_level": ["1", "2"],
250 "test_regression": [True, False],
251 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100252 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800253 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800254 "with_bl2": [True, False],
255 "with_ns": [True, False],
256 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800257 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800258 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100259 },
260 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800261 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100262 }
263
Karl Zhangaff558a2020-05-15 14:28:23 +0100264config_AN521 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800265 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800266 "toolchain_file": ["toolchain_GNUARM.cmake",
267 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800268 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800269 "isolation_level": ["1", "2"],
270 "test_regression": [True, False],
271 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100272 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800273 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800274 "with_bl2": [True, False],
275 "with_ns": [True, False],
276 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800277 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800278 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100279 },
280 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800281 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100282 }
283
Karl Zhangaff558a2020-05-15 14:28:23 +0100284config_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800285 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
286 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800287 "toolchain_file": ["toolchain_GNUARM.cmake",
288 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800289 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800290 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800291 "test_regression": [False],
292 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800293 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800294 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100295 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800296 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800297 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800298 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800299 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800300 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800301 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100302 },
303 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800304 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100305 }
306
Karl Zhangaff558a2020-05-15 14:28:23 +0100307config_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800308 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
309 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800310 "toolchain_file": ["toolchain_GNUARM.cmake",
311 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800312 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800313 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800314 "test_regression": [False],
315 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100316 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800317 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800318 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800319 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800320 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800321 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800322 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100323 },
324 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800325 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100326 }
327
Karl Zhangaff558a2020-05-15 14:28:23 +0100328config_PSA_API_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800329 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800330 "toolchain_file": ["toolchain_GNUARM.cmake",
331 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800332 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800333 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800334 "test_regression": [False],
335 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800336 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800337 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100338 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800339 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800340 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800341 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800342 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800343 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800344 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100345 },
346 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800347 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100348 }
Minos Galanakisea421232019-06-20 17:11:28 +0100349
Xinyu Zhangb708f572020-09-15 11:43:46 +0800350config_PSA_FF_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800351 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800352 "toolchain_file": ["toolchain_GNUARM.cmake",
353 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800354 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800355 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800356 "test_regression": [False],
357 "test_psa_api": ["IPC"],
358 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800359 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800360 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800361 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800362 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800363 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800364 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800365 },
366 "common_params": _common_tfm_builder_cfg,
367 "invalid": _common_tfm_invalid_configs + []
368 }
369
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800370config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800371 "tfm_platform": ["cypress/psoc64"],
372 "toolchain_file": ["toolchain_GNUARM.cmake",
373 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800374 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800375 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800376 "test_regression": [True],
377 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800378 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800379 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800380 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800381 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800382 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800383 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800384 "extra_params": [""]
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800385 },
386 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800387 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800388 }
389
Arthur She19c0e1a2021-06-02 11:06:19 -0700390config_STM32L562E_DK = {"seed_params": {
391 "tfm_platform": ["stm/stm32l562e_dk"],
392 "toolchain_file": ["toolchain_GNUARM.cmake",
393 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800394 "lib_model": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700395 "isolation_level": ["1", "2", "3"],
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800396 "test_regression": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700397 "test_psa_api": ["OFF"],
398 "cmake_build_type": ["Release"],
399 "with_otp": ["off"],
400 "with_bl2": [True],
401 "with_ns": [True],
402 "profile": [""],
403 "partition_ps": ["ON"],
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800404 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
Arthur She19c0e1a2021-06-02 11:06:19 -0700405 },
406 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800407 "invalid": _common_tfm_invalid_configs + [
408 # all other tests are off when CRYPTO is ON
409 ("stm/stm32l562e_dk", "*", "*", "*", True, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800410 "*", "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800411 # all other tests are ON when CRYPTO is OFF
412 ("stm/stm32l562e_dk", "*", "*", "*", False, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800413 "*", "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800414 ]
Arthur She19c0e1a2021-06-02 11:06:19 -0700415 }
416
Arthur Shef3657742021-09-07 14:23:18 -0700417config_LPCXPRESSO55S69 = {"seed_params": {
418 "tfm_platform": ["nxp/lpcxpresso55s69"],
419 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800420 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700421 "isolation_level": ["2"],
422 "test_regression": [True, False],
423 "test_psa_api": ["OFF"],
424 "cmake_build_type": ["Relwithdebinfo"],
425 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -0800426 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700427 "with_ns": [True],
428 "profile": ["profile_medium"],
429 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800430 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +0800431 },
432 "common_params": _common_tfm_builder_cfg,
433 "invalid": _common_tfm_invalid_configs + []
434 }
435
436config_FP = {"seed_params": {
437 "tfm_platform": ["arm/musca_s1"],
Feder Liang357b1602022-01-11 16:47:49 +0800438 "toolchain_file": ["toolchain_GNUARM.cmake"],
Feder Liang567e8c22021-10-26 14:16:21 +0800439 "lib_model": [False],
440 "isolation_level": ["1", "2"],
441 "test_regression": [True],
442 "test_psa_api": ["OFF"],
443 "cmake_build_type": ["Release"],
444 "with_otp": ["off"],
445 "with_bl2": [True],
446 "with_ns": [True],
447 "profile": [""],
448 "partition_ps": ["ON"],
Feder Liang357b1602022-01-11 16:47:49 +0800449 "extra_params": ["FPSOFT", "FPHARD", "FPHARD_LOFF"]
Arthur Shef3657742021-09-07 14:23:18 -0700450 },
451 "common_params": _common_tfm_builder_cfg,
452 "invalid": _common_tfm_invalid_configs + []
453 }
454
Xinyu Zhang6afdd612021-10-12 17:07:32 +0800455config_corstone1000 = {"seed_params": {
456 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800457 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800458 "lib_model": [False],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800459 "isolation_level": ["1"],
460 "test_regression": [False],
461 "test_psa_api": ["OFF"],
462 "cmake_build_type": ["Debug"],
463 "with_otp": ["off"],
464 "with_bl2": [True],
465 "with_ns": [False],
466 "profile": [""],
467 "partition_ps": ["ON"],
Xinyu Zhang6071f962022-02-07 15:56:39 +0800468 "extra_params": ["FVP", "FPGA"]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800469 },
470 "common_params": _common_tfm_builder_cfg,
471 "invalid": _common_tfm_invalid_configs + []
472 }
473
Minos Galanakisea421232019-06-20 17:11:28 +0100474config_AN519 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800475 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800476 "toolchain_file": ["toolchain_GNUARM.cmake",
477 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800478 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800479 "isolation_level": ["1", "2"],
480 "test_regression": [True, False],
481 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100482 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800483 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800484 "with_bl2": [True, False],
485 "with_ns": [True, False],
486 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800487 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800488 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100489 },
490 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800491 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100492 }
493
Xinyu Zhangb708f572020-09-15 11:43:46 +0800494config_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800495 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
496 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800497 "toolchain_file": ["toolchain_GNUARM.cmake",
498 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800499 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800500 "isolation_level": ["1", "2"],
501 "test_regression": [True, False],
502 "test_psa_api": ["OFF"],
503 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800504 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800505 "with_bl2": [True, False],
506 "with_ns": [True, False],
507 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800508 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800509 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800510 },
Minos Galanakisea421232019-06-20 17:11:28 +0100511 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800512 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100513 }
514
Minos Galanakisea421232019-06-20 17:11:28 +0100515config_full = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800516 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
517 "arm/musca_b1/sse_200",
518 "arm/mps3/an524", "cypress/psoc64",
Arthur She19c0e1a2021-06-02 11:06:19 -0700519 "arm/musca_b1/secure_enclave",
Arthur Shef3657742021-09-07 14:23:18 -0700520 "stm/stm32l562e_dk",
521 "nxp/lpcxpresso55s69"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800522 "toolchain_file": ["toolchain_GNUARM.cmake",
523 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800524 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800525 "isolation_level": ["1", "2"],
526 "test_regression": [True, False],
527 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800528 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800529 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800530 "with_bl2": [True, False],
531 "with_ns": [True, False],
532 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800533 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800534 "extra_params": [""]
Dean Birchd6ce2c82020-05-13 13:16:15 +0100535 },
536 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800537 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800538 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800539 "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800540 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Feder Liang357b1602022-01-11 16:47:49 +0800541 True, "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800542 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800543 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800544 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800545 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800546 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800547 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800548 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800549 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800550 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800551 }
552
Karl Zhangaff558a2020-05-15 14:28:23 +0100553config_tfm_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800554 "tfm_platform": ["arm/mps2/an521",
555 "arm/musca_b1/sse_200", "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800556 "toolchain_file": ["toolchain_ARMCLANG.cmake",
557 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800558 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800559 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800560 "test_regression": [True, False],
561 "test_psa_api": ["OFF"],
562 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800563 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800564 "with_bl2": [True],
565 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800566 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800567 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800568 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800569 },
570 "common_params": _common_tfm_builder_cfg,
571 "invalid": _common_tfm_invalid_configs + []
572 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800573
Karl Zhangaff558a2020-05-15 14:28:23 +0100574config_tfm_test2 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800575 "tfm_platform": ["arm/mps2/an519", "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800576 "toolchain_file": ["toolchain_ARMCLANG.cmake",
577 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800578 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800579 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800580 "test_regression": [True, False],
581 "test_psa_api": ["OFF"],
582 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800583 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800584 "with_bl2": [True],
585 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800586 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800587 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800588 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800589 },
590 "common_params": _common_tfm_builder_cfg,
591 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800592 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800593 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800594 ]
595 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100596
Karl Zhang14573bc2020-06-08 09:23:21 +0800597config_tfm_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800598 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
599 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800600 "toolchain_file": ["toolchain_ARMCLANG.cmake",
601 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800602 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800603 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800604 "test_regression": [True, False],
605 "test_psa_api": ["OFF"],
606 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800607 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800608 "with_bl2": [True],
609 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800610 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800611 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800612 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800613 },
614 "common_params": _common_tfm_builder_cfg,
615 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800616 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800617 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800618 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800619 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800620 "*", "profile_large", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800621 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800622 "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800623 ]
624 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800625
Karl Zhangaff558a2020-05-15 14:28:23 +0100626config_tfm_test_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800627 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800628 "toolchain_file": ["toolchain_ARMCLANG.cmake",
629 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800630 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800631 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800632 "test_regression": [True, False],
633 "test_psa_api": ["OFF"],
634 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800635 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800636 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800637 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800638 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800639 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800640 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800641 },
642 "common_params": _common_tfm_builder_cfg,
643 "invalid": _common_tfm_invalid_configs + []
644 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100645
Minos Galanakisea421232019-06-20 17:11:28 +0100646config_MUSCA_B1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800647 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800648 "toolchain_file": ["toolchain_ARMCLANG.cmake",
649 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800650 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800651 "isolation_level": ["1", "2"],
652 "test_regression": [True, False],
653 "test_psa_api": ["OFF"],
654 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800655 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800656 "with_bl2": [True],
657 "with_ns": [True, False],
658 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800659 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800660 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800661 },
662 "common_params": _common_tfm_builder_cfg,
663 "invalid": _common_tfm_invalid_configs + []
664 }
Minos Galanakisea421232019-06-20 17:11:28 +0100665
Mark Horvath8d281cd2020-12-07 15:20:26 +0100666config_MUSCA_B1_SE = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800667 "tfm_platform": ["arm/musca_b1/secure_enclave"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100668 "toolchain_file": ["toolchain_ARMCLANG.cmake",
669 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800670 "lib_model": [False],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100671 "isolation_level": ["1"],
672 "test_regression": [False],
673 "test_psa_api": ["OFF"],
674 "cmake_build_type": ["Debug", "Release"],
675 "with_otp": ["off"],
676 "with_bl2": [True],
677 "with_ns": [False],
678 "profile": [""],
679 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800680 "extra_params": [""]
Mark Horvath8d281cd2020-12-07 15:20:26 +0100681 },
682 "common_params": _common_tfm_builder_cfg,
683 "invalid": _common_tfm_invalid_configs + []
684 }
685
Karl Zhangeffed972020-06-30 15:48:01 +0800686config_MUSCA_S1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800687 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800688 "toolchain_file": ["toolchain_ARMCLANG.cmake",
689 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800690 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800691 "isolation_level": ["1", "2"],
692 "test_regression": [True, False],
693 "test_psa_api": ["OFF"],
694 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800695 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800696 "with_bl2": [True],
697 "with_ns": [True, False],
698 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800699 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800700 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800701 },
702 "common_params": _common_tfm_builder_cfg,
703 "invalid": _common_tfm_invalid_configs + []
704 }
Karl Zhangeffed972020-06-30 15:48:01 +0800705
Karl Zhangaff558a2020-05-15 14:28:23 +0100706config_release = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800707 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
708 "arm/musca_b1/sse_200", "arm/musca_s1",
709 "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800710 "toolchain_file": ["toolchain_ARMCLANG.cmake",
711 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800712 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800713 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800714 "test_regression": [True, False],
715 "test_psa_api": ["OFF"],
716 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800717 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800718 "with_bl2": [True, False],
719 "with_ns": [True, False],
720 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800721 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800722 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800723 },
724 "common_params": _common_tfm_builder_cfg,
725 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800726 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800727 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800728 ]
729 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100730
731# Configure build manager to build several combinations
732config_AN521_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800733 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
734 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800735 "toolchain_file": ["toolchain_GNUARM.cmake",
736 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800737 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800738 "isolation_level": ["1", "2"],
739 "test_regression": [False],
740 "test_psa_api": ["IPC",
741 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800742 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800743 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800744 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800745 "with_otp": ["off"],
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 Zhangfd2e1152021-12-17 18:09:01 +0800750 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100751 },
752 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800753 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800754 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800755 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800756 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100757 }
758
Karl Zhangaff558a2020-05-15 14:28:23 +0100759config_AN521_PSA_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800760 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
761 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800762 "toolchain_file": ["toolchain_GNUARM.cmake",
763 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800764 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800765 "isolation_level": ["1", "2"],
766 "test_regression": [False],
767 "test_psa_api": ["IPC"],
768 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800769 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800770 "with_bl2": [True],
771 "with_ns": [True, False],
772 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800773 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800774 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100775 },
776 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800777 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800778 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800779 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800780 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100781 }
782
Karl Zhang14573bc2020-06-08 09:23:21 +0800783config_nightly = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800784 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
785 "arm/musca_b1/sse_200", "arm/musca_s1",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800786 "arm/mps3/an524", "arm/musca_b1/secure_enclave"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800787 "toolchain_file": ["toolchain_GNUARM.cmake",
788 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800789 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800790 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800791 "test_regression": [True, False],
792 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800793 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800794 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800795 "with_bl2": [True],
796 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800797 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800798 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800799 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800800 },
801 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang6d2dd7c2022-02-07 17:22:55 +0800802 "valid": [
803 # MUSCA_B1_GNUARM_IPC_1_REG_Release_BL2_NS_CC_DRIVER_PSA
804 ("arm/musca_b1/sse_200", "toolchain_GNUARM.cmake",
805 False, "1", True, "OFF", "Release",
806 "off", True, True, "", "ON", "CC_DRIVER_PSA"),
807 # MUSCA_S1_GNUARM_IPC_1_REG_Release_BL2_NS_CC_DRIVER_PSA
808 ("arm/musca_s1", "toolchain_GNUARM.cmake",
809 False, "1", True, "OFF", "Release",
810 "off", True, True, "", "ON", "CC_DRIVER_PSA"),
811 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800812 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800813 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800814 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800815 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800816 "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800817 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Feder Liang357b1602022-01-11 16:47:49 +0800818 True, "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800819 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800820 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800821 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800822 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800823 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800824 "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800825 ("arm/musca_s1", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800826 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800827 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800828 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800829 ]
830 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800831
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800832config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800833 "tfm_platform": ["arm/mps2/an521"],
834 "toolchain_file": ["toolchain_GNUARM.cmake",
835 "toolchain_ARMCLANG.cmake"],
836 "lib_model": [True, False],
837 "isolation_level": ["1", "2", "3"],
838 "test_regression": [True],
839 "test_psa_api": ["OFF"],
840 "cmake_build_type": ["Debug"],
841 "with_otp": ["off"],
842 "with_bl2": [True],
843 "with_ns": [True],
844 "profile": [""],
845 "partition_ps": ["ON"],
Xinyu Zhang67612992021-12-20 14:11:27 +0800846 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800847 },
848 "common_params": _common_tfm_builder_cfg,
849 "invalid": _common_tfm_invalid_configs + []
850 }
851
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800852config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800853 "tfm_platform": ["arm/mps2/an521"],
854 "toolchain_file": ["toolchain_GNUARM.cmake",
855 "toolchain_ARMCLANG.cmake"],
856 "lib_model": [False],
857 "isolation_level": ["1"],
858 "test_regression": [True],
859 "test_psa_api": ["OFF"],
860 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
861 "with_otp": ["off"],
862 "with_bl2": [True],
863 "with_ns": [True],
864 "profile": [""],
865 "partition_ps": ["ON"],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800866 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800867 },
868 "common_params": _common_tfm_builder_cfg,
869 "invalid": _common_tfm_invalid_configs + []
870 }
871
Karl Zhang14573bc2020-06-08 09:23:21 +0800872config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800873 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
874 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800875 "toolchain_file": ["toolchain_ARMCLANG.cmake",
876 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800877 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800878 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800879 "test_regression": [True, False],
880 "test_psa_api": ["OFF"],
881 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800882 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800883 "with_bl2": [True],
884 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800885 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800886 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800887 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800888 },
889 "common_params": _common_tfm_builder_cfg,
890 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800891 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800892 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800893 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800894 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800895 "*", "profile_large", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800896 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800897 "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800898 ]
899 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800900
Karl Zhang14573bc2020-06-08 09:23:21 +0800901config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800902 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
903 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800904 "toolchain_file": ["toolchain_GNUARM.cmake",
905 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800906 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800907 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800908 "test_regression": [False],
909 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800910 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800911 "STORAGE"],
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 Zhangfd2e1152021-12-17 18:09:01 +0800918 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800919 },
920 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800921 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800922 }
923
Karl Zhang14573bc2020-06-08 09:23:21 +0800924config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800925 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
926 "arm/musca_s1"],
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": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800930 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800931 "test_regression": [False],
932 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800933 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800934 "with_otp": ["off"],
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 Zhangfd2e1152021-12-17 18:09:01 +0800939 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800940 },
941 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800942 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800943 }
944
Karl Zhang14573bc2020-06-08 09:23:21 +0800945config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800946 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800947 "toolchain_file": ["toolchain_GNUARM.cmake",
948 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800949 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800950 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800951 "test_regression": [True],
952 "test_psa_api": ["OFF"],
953 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800954 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800955 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800956 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800957 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800958 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800959 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800960 },
961 "common_params": _common_tfm_builder_cfg,
962 "invalid": _common_tfm_invalid_configs + []
963 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800964
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800965config_nightly_psoc64 = {"seed_params": {
966 "tfm_platform": ["cypress/psoc64"],
967 "toolchain_file": ["toolchain_GNUARM.cmake",
968 "toolchain_ARMCLANG.cmake"],
969 "lib_model": [False],
970 "isolation_level": ["1", "2"],
971 "test_regression": [True],
972 "test_psa_api": ["OFF"],
973 "cmake_build_type": ["Release"],
974 "with_otp": ["off"],
975 "with_bl2": [False],
976 "with_ns": [True],
977 "profile": [""],
978 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800979 "extra_params": [""]
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800980 },
981 "common_params": _common_tfm_builder_cfg,
982 "invalid": _common_tfm_invalid_configs + []
983 }
984
Arthur Shef3657742021-09-07 14:23:18 -0700985config_nightly_LPCXPRESSO55S69 = {"seed_params": {
986 "tfm_platform": ["nxp/lpcxpresso55s69"],
987 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800988 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700989 "isolation_level": ["2"],
990 "test_regression": [True, False],
991 "test_psa_api": ["OFF"],
992 "cmake_build_type": ["Relwithdebinfo"],
993 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -0800994 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700995 "with_ns": [True],
996 "profile": ["profile_medium"],
997 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800998 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +0800999 },
1000 "common_params": _common_tfm_builder_cfg,
1001 "invalid": _common_tfm_invalid_configs + []
1002 }
1003
1004config_nightly_FP = {"seed_params": {
1005 "tfm_platform": ["arm/musca_s1"],
Feder Liang357b1602022-01-11 16:47:49 +08001006 "toolchain_file": ["toolchain_GNUARM.cmake"],
Feder Liang567e8c22021-10-26 14:16:21 +08001007 "lib_model": [False],
1008 "isolation_level": ["1", "2"],
1009 "test_regression": [True],
1010 "test_psa_api": ["OFF"],
1011 "cmake_build_type": ["Debug"],
1012 "with_otp": ["off"],
1013 "with_bl2": [True],
1014 "with_ns": [True],
1015 "profile": [""],
1016 "partition_ps": ["ON"],
Feder Liang357b1602022-01-11 16:47:49 +08001017 "extra_params": ["FPSOFT", "FPHARD", "FPHARD_LOFF"]
Arthur Shef3657742021-09-07 14:23:18 -07001018 },
1019 "common_params": _common_tfm_builder_cfg,
1020 "invalid": _common_tfm_invalid_configs + []
1021 }
1022
Karl Zhang14573bc2020-06-08 09:23:21 +08001023config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001024 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +08001025 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001026 "toolchain_file": ["toolchain_GNUARM.cmake",
1027 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001028 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +08001029 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001030 "test_regression": [True],
1031 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001032 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001033 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001034 "with_bl2": [True],
1035 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001036 "profile": ["", "profile_small", "profile_medium"],
1037 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001038 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001039 },
1040 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001041 "valid": [
Summer Qin3c2b5722021-05-26 10:43:45 +08001042 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001043 True, "1", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001044 "off", True, True, "", "ON", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001045 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001046 False, "2", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001047 "off", True, True, "", "ON", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001048 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001049 False, "3", False, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001050 "off", True, True, "", "ON", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001051 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001052 False, "2", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001053 "off", True, True, "profile_medium", "ON", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001054 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001055 False, "3", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001056 "off", True, True, "profile_large", "ON", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001057 # AN521_GNUARM_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001058 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
1059 False, "2", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001060 "off", True, True, "profile_medium", "OFF", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001061 # MUSCA_B1_GNUARM_LIB_1_REG_Minsizerel_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001062 ("arm/musca_b1/sse_200", "toolchain_GNUARM.cmake",
1063 True, "1", True, "OFF", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001064 "off", True, True, "", "ON", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001065 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001066 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake",
1067 False, "1", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001068 "off", True, True, "", "ON", "CRYPTO_OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001069 # stm32l562e_dk_GNUARM_IPC_2_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001070 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
Xinyu Zhang7c8d3372021-12-22 11:15:42 +08001071 False, "2", False, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001072 "off", True, True, "", "ON", "CRYPTO_ON"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001073 # stm32l562e_dk_GNUARM_IPC_3_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001074 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
1075 False, "3", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001076 "off", True, True, "", "ON", "CRYPTO_OFF"),
1077 # MUSCA_S1_GNUARM_IPC_2_REG_Release_BL2_NS_FPHARD
Feder Liang567e8c22021-10-26 14:16:21 +08001078 ("arm/musca_s1", "toolchain_GNUARM.cmake",
1079 False, "2", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001080 "off", True, True, "", "ON", "FPHARD"),
Xinyu Zhangce8eb082022-02-09 16:28:54 +08001081 # MUSCA_S1_GNUARM_IPC_1_REG_Release_BL2_NS_CC_DRIVER_PSA
1082 ("arm/musca_s1", "toolchain_GNUARM.cmake",
1083 False, "1", True, "OFF", "Release",
1084 "off", True, True, "", "ON", "CC_DRIVER_PSA"),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001085 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001086 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001087 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +08001088 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001089 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001090 # valid configs supported by TF-M but not needed in per-patch
1091 ("*", "*", "*", "1", "*", "*", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001092 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001093 ("*", "*", "*", "1", "*", "*", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001094 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001095 ("*", "*", "*", "2", "*", "*", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001096 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001097 ("*", "*", "*", "2", "*", "*", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001098 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001099 ("*", "*", "*", "3", "*", "*", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001100 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001101 ("*", "*", "*", "3", "*", "*", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001102 "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001103 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001104 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001105 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001106 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001107 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001108 "*", "*", "*", "*", "profile_medium", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001109 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001110 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001111 ("*", "toolchain_GNUARM.cmake", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001112 "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001113 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001114 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001115 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001116 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001117 ]
1118 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001119
Karl Zhang14573bc2020-06-08 09:23:21 +08001120config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001121 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001122 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001123 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001124 "isolation_level": ["1", "2"],
1125 "test_regression": [True],
1126 "test_psa_api": ["OFF"],
1127 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001128 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001129 "with_bl2": [True],
1130 "with_ns": [True, False],
1131 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001132 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001133 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001134 },
1135 "common_params": _common_tfm_builder_cfg,
1136 "invalid": _common_tfm_invalid_configs + []
1137 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001138
1139# Configure build manager to build several combinations
1140config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001141 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001142 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001143 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001144 "isolation_level": ["2"],
1145 "test_regression": [False],
1146 "test_psa_api": ["IPC",
1147 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001148 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +08001149 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001150 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001151 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001152 "with_bl2": [True],
1153 "with_ns": [True, False],
1154 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001155 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001156 "extra_params": [""]
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
Karl Zhang14573bc2020-06-08 09:23:21 +08001162config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001163 "tfm_platform": ["cypress/psoc64"],
1164 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001165 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001166 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001167 "test_regression": [True],
1168 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001169 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001170 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001171 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001172 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001173 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001174 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001175 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001176 },
1177 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001178 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001179 }
1180
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001181config_cov_an519 = {"seed_params": {
1182 "tfm_platform": ["arm/mps2/an519"],
1183 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001184 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001185 "isolation_level": ["1", "2", "3"],
1186 "test_regression": [True, False],
1187 "test_psa_api": ["OFF"],
1188 "cmake_build_type": ["Debug", "Release"],
1189 "with_otp": ["off"],
1190 "with_bl2": [True],
1191 "with_ns": [True],
1192 "profile": ["", "profile_small", "profile_medium"],
1193 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001194 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001195 },
1196 "common_params": _common_tfm_builder_cfg,
1197 "invalid": _common_tfm_invalid_configs + []
1198 }
1199
1200config_cov_an521 = {"seed_params": {
1201 "tfm_platform": ["arm/mps2/an521"],
1202 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001203 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001204 "isolation_level": ["1", "2", "3"],
1205 "test_regression": [True, False],
1206 "test_psa_api": ["OFF"],
1207 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1208 "with_otp": ["off"],
1209 "with_bl2": [True],
1210 "with_ns": [True],
1211 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1212 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001213 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001214 },
1215 "common_params": _common_tfm_builder_cfg,
1216 "invalid": _common_tfm_invalid_configs + []
1217 }
1218
Minos Galanakisea421232019-06-20 17:11:28 +01001219# Configruation used for document building
1220config_doxygen = {"common_params": {
1221 "config_type": "tf-m_documents",
1222 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001223 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001224 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001225 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001226 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001227 "cmake --build ./ -- docs"]},
1228 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1229 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001230 r'/(\w+\.(?:html|md|pdf))$',
1231 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001232 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001233 }
1234
Karl Zhangaff558a2020-05-15 14:28:23 +01001235# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +01001236config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001237 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001238 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001239 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001240 "isolation_level": ["1"],
1241 "test_regression": [False],
1242 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001243 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001244 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001245 "with_bl2": [True],
1246 "with_ns": [True],
1247 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001248 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001249 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +01001250 },
1251 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001252 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001253 }
1254
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001255config_debug_PSA_API = {"seed_params": {
1256 "tfm_platform": ["arm/mps2/an521"],
1257 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
1258 "lib_model": [True],
1259 "isolation_level": ["1"],
1260 "test_regression": [False],
Paul Sokolovsky7bd338c2022-01-30 14:14:39 +03001261 "test_psa_api": ["CRYPTO",
1262 "INITIAL_ATTESTATION",
Paul Sokolovskyb298d7b2022-02-02 23:27:44 +03001263 "STORAGE",
1264 "IPC"],
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001265 "cmake_build_type": ["Debug"],
1266 "with_otp": ["off"],
1267 "with_bl2": [True],
1268 "with_ns": [True],
1269 "profile": [""],
1270 "partition_ps": ["ON"],
1271 "extra_params": [""]
1272 },
1273 "common_params": _common_tfm_builder_cfg,
1274 "invalid": _common_tfm_invalid_configs + []
1275 }
1276
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001277config_debug_PSA_API_nolib = {"seed_params": {
1278 "tfm_platform": ["arm/mps2/an521"],
1279 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
1280 "lib_model": [False],
1281 "isolation_level": ["1"],
1282 "test_regression": [False],
1283 "test_psa_api": ["CRYPTO",
1284 "INITIAL_ATTESTATION",
1285 "STORAGE",
1286 "IPC"],
1287 "cmake_build_type": ["Debug"],
1288 "with_otp": ["off"],
1289 "with_bl2": [True],
1290 "with_ns": [True],
1291 "profile": [""],
1292 "partition_ps": ["ON"],
1293 "extra_params": [""]
1294 },
1295 "common_params": _common_tfm_builder_cfg,
1296 "invalid": _common_tfm_invalid_configs + []
1297 }
1298
Dean Birch4c6ad622020-03-13 11:28:03 +00001299# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001300config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001301 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001302 "toolchain_file": ["toolchain_ARMCLANG.cmake",
1303 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001304 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001305 "isolation_level": ["1", "2"],
1306 "test_regression": [True, False],
1307 "test_psa_api": ["OFF"],
1308 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001309 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001310 "with_bl2": [True, False],
1311 "with_ns": [True],
1312 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001313 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001314 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001315 },
1316 "common_params": _common_tfm_builder_cfg,
1317 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001318 ("*", "toolchain_ARMCLANG.cmake", False, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001319 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001320 ("*", "toolchain_ARMCLANG.cmake", True, "1", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001321 "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001322 ]
1323 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001324
Xinyu Zhangb708f572020-09-15 11:43:46 +08001325config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001326 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001327 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001328 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001329 "isolation_level": ["1", "2"],
1330 "test_regression": [True],
1331 "test_psa_api": ["OFF"],
1332 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001333 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001334 "with_bl2": [True, False],
1335 "with_ns": [True, False],
1336 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001337 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001338 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001339 },
1340 "common_params": _common_tfm_builder_cfg,
1341 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001342 ("arm/mps2/an521", "toolchain_GNUARM.cmake", False, "2", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001343 "*", "*", True, "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001344 ]
1345 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001346
Xinyu Zhang38b76742021-11-11 13:57:56 +08001347config_an547 = {"seed_params": {
1348 "tfm_platform": ["arm/mps3/an547"],
1349 "toolchain_file": ["toolchain_GNUARM.cmake"],
1350 "lib_model": [False],
1351 "isolation_level": ["1"],
1352 "test_regression": [False],
1353 "test_psa_api": ["OFF"],
1354 "cmake_build_type": ["Debug"],
1355 "with_otp": ["off"],
1356 "with_bl2": [True],
1357 "with_ns": [False],
1358 "profile": [""],
1359 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001360 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001361 },
1362 "common_params": _common_tfm_builder_cfg,
1363 "invalid": _common_tfm_invalid_configs + []
1364 }
1365
1366config_corstone_polaris = {"seed_params": {
1367 "tfm_platform": ["arm/mps3/corstone_polaris"],
1368 "toolchain_file": ["toolchain_GNUARM.cmake"],
1369 "lib_model": [False],
1370 "isolation_level": ["1"],
1371 "test_regression": [False],
1372 "test_psa_api": ["OFF"],
1373 "cmake_build_type": ["Debug"],
1374 "with_otp": ["off"],
1375 "with_bl2": [True],
1376 "with_ns": [False],
1377 "profile": [""],
1378 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001379 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001380 },
1381 "common_params": _common_tfm_builder_cfg,
1382 "invalid": _common_tfm_invalid_configs + []
1383 }
1384
1385config_bl5340 = {"seed_params": {
1386 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
1387 "toolchain_file": ["toolchain_GNUARM.cmake"],
1388 "lib_model": [False],
1389 "isolation_level": ["1"],
1390 "test_regression": [False],
1391 "test_psa_api": ["OFF"],
1392 "cmake_build_type": ["Debug"],
1393 "with_otp": ["off"],
1394 "with_bl2": [True],
1395 "with_ns": [False],
1396 "profile": [""],
1397 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001398 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001399 },
1400 "common_params": _common_tfm_builder_cfg,
1401 "invalid": _common_tfm_invalid_configs + []
1402 }
1403
1404config_nrf5340dk = {"seed_params": {
1405 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
1406 "toolchain_file": ["toolchain_GNUARM.cmake"],
1407 "lib_model": [False],
1408 "isolation_level": ["1"],
1409 "test_regression": [False],
1410 "test_psa_api": ["OFF"],
1411 "cmake_build_type": ["Debug"],
1412 "with_otp": ["off"],
1413 "with_bl2": [True],
1414 "with_ns": [False],
1415 "profile": [""],
1416 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001417 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001418 },
1419 "common_params": _common_tfm_builder_cfg,
1420 "invalid": _common_tfm_invalid_configs + []
1421 }
1422
1423config_nrf9160dk = {"seed_params": {
1424 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
1425 "toolchain_file": ["toolchain_GNUARM.cmake"],
1426 "lib_model": [False],
1427 "isolation_level": ["1"],
1428 "test_regression": [False],
1429 "test_psa_api": ["OFF"],
1430 "cmake_build_type": ["Debug"],
1431 "with_otp": ["off"],
1432 "with_bl2": [True],
1433 "with_ns": [False],
1434 "profile": [""],
1435 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001436 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001437 },
1438 "common_params": _common_tfm_builder_cfg,
1439 "invalid": _common_tfm_invalid_configs + []
1440 }
1441
1442config_m2351 = {"seed_params": {
1443 "tfm_platform": ["nuvoton/m2351"],
1444 "toolchain_file": ["toolchain_GNUARM.cmake"],
1445 "lib_model": [False],
1446 "isolation_level": ["1"],
1447 "test_regression": [False],
1448 "test_psa_api": ["OFF"],
1449 "cmake_build_type": ["Release"],
1450 "with_otp": ["off"],
1451 "with_bl2": [True],
1452 "with_ns": [False],
1453 "profile": [""],
1454 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001455 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001456 },
1457 "common_params": _common_tfm_builder_cfg,
1458 "invalid": _common_tfm_invalid_configs + []
1459 }
1460
1461config_m2354 = {"seed_params": {
1462 "tfm_platform": ["nuvoton/m2354"],
1463 "toolchain_file": ["toolchain_GNUARM.cmake"],
1464 "lib_model": [False],
1465 "isolation_level": ["1"],
1466 "test_regression": [False],
1467 "test_psa_api": ["OFF"],
1468 "cmake_build_type": ["Debug"],
1469 "with_otp": ["off"],
1470 "with_bl2": [True],
1471 "with_ns": [False],
1472 "profile": [""],
1473 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001474 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001475 },
1476 "common_params": _common_tfm_builder_cfg,
1477 "invalid": _common_tfm_invalid_configs + []
1478 }
1479
1480config_b_u585i_iot02a = {"seed_params": {
1481 "tfm_platform": ["stm/b_u585i_iot02a"],
1482 "toolchain_file": ["toolchain_GNUARM.cmake"],
1483 "lib_model": [False],
1484 "isolation_level": ["1"],
1485 "test_regression": [False],
1486 "test_psa_api": ["OFF"],
1487 "cmake_build_type": ["Release"],
1488 "with_otp": ["off"],
1489 "with_bl2": [True],
1490 "with_ns": [False],
1491 "profile": [""],
1492 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001493 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001494 },
1495 "common_params": _common_tfm_builder_cfg,
1496 "invalid": _common_tfm_invalid_configs + []
1497 }
1498
1499config_nucleo_l552ze_q = {"seed_params": {
1500 "tfm_platform": ["stm/nucleo_l552ze_q"],
1501 "toolchain_file": ["toolchain_GNUARM.cmake"],
1502 "lib_model": [False],
1503 "isolation_level": ["1"],
1504 "test_regression": [False],
1505 "test_psa_api": ["OFF"],
1506 "cmake_build_type": ["Release"],
1507 "with_otp": ["off"],
1508 "with_bl2": [True],
1509 "with_ns": [False],
1510 "profile": [""],
1511 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001512 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001513 },
1514 "common_params": _common_tfm_builder_cfg,
1515 "invalid": _common_tfm_invalid_configs + []
1516 }
1517
Karl Zhangaff558a2020-05-15 14:28:23 +01001518_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001519 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001520 "tfm_test": config_tfm_test,
1521 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001522 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +01001523 "tfm_test_otp": config_tfm_test_OTP,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001524 "tfm_nsce": config_nsce,
1525 "tfm_mmio": config_mmio,
Karl Zhangaff558a2020-05-15 14:28:23 +01001526 "psa_api": config_PSA_API,
1527 "psa_api_otp": config_PSA_API_OTP,
1528 "psa_ff": config_PSA_FF,
1529 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001530 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001531 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001532 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001533 "tfm_fp": config_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001534
1535 #nightly test group
1536 "nightly_test": config_nightly,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001537 "nightly_nsce": config_nsce,
1538 "nightly_mmio": config_mmio,
Karl Zhang14573bc2020-06-08 09:23:21 +08001539 "nightly_profile": config_nightly_profile,
1540 "nightly_psa_api": config_nightly_PSA_API,
1541 "nightly_ff": config_nightly_PSA_FF,
1542 "nightly_otp": config_nightly_OTP,
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001543 "nightly_psoc64": config_nightly_psoc64,
Xinyu Zhang331c47c2021-12-24 10:18:02 +08001544 "nightly_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001545 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001546 "nightly_fp":config_nightly_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001547
1548 #per patch test group
1549 "pp_test": config_pp_test,
1550 "pp_OTP": config_pp_OTP,
1551 "pp_PSA_API": config_pp_PSA_API,
1552 "pp_psoc64": config_pp_PSoC64,
1553
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001554 #code coverage test group
1555 "coverage_an519": config_cov_an519,
1556 "coverage_an521": config_cov_an521,
1557
Xinyu Zhang38b76742021-11-11 13:57:56 +08001558 #extra build group
1559 "arm_corstone1000": config_corstone1000,
1560 "arm_an547": config_an547,
1561 "arm_corstone_polaris": config_corstone_polaris,
1562 "cypress_psoc64": config_PSOC64,
1563 "laird_bl5340": config_bl5340,
1564 "nordic_nrf5340dk": config_nrf5340dk,
1565 "nordic_nrf9160dk": config_nrf9160dk,
1566 "nuvoton_m2351": config_m2351,
1567 "nuvoton_m2354": config_m2354,
1568 "nxp_lpcxpresso55s69": config_LPCXPRESSO55S69,
1569 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1570 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1571 "stm_stm32l562e_dk": config_STM32L562E_DK,
1572
Karl Zhang14573bc2020-06-08 09:23:21 +08001573 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001574 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001575
1576 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001577 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001578 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001579 "an521_psa_api": config_AN521_PSA_API,
1580 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001581 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001582 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001583 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001584 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001585 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001586 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001587 "ipc": config_IPC,
1588 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001589 "debug": config_debug,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001590 "debug_PSA_API": config_debug_PSA_API,
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001591 "debug_PSA_API_nolib": config_debug_PSA_API_nolib,
Karl Zhangaff558a2020-05-15 14:28:23 +01001592 "release": config_release,
Karl Zhang14573bc2020-06-08 09:23:21 +08001593
1594 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001595 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001596 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001597
1598if __name__ == '__main__':
1599 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001600
Minos Galanakisea421232019-06-20 17:11:28 +01001601 # Default behavior is to export refference config when called
1602 _dir = os.getcwd()
1603 from utils import save_json
1604 for _cname, _cfg in _builtin_configs.items():
1605 _fname = os.path.join(_dir, _cname + ".json")
1606 print("Exporting config %s" % _fname)
1607 save_json(_fname, _cfg)