blob: 6a47eafa8fe5e51fb904ed0f386ecde6fa78f6f4 [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", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800186 # Musca b1 SSE 200 does not support Profile S
Feder Liang357b1602022-01-11 16:47:49 +0800187 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800188 # Musca B1 Secure Enclave requires IPC model, BL2, and supports only Isolation Level 1
Feder Liang357b1602022-01-11 16:47:49 +0800189 ("arm/musca_b1/secure_enclave", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
190 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
191 ("arm/musca_b1/secure_enclave", "*", "*", "2", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100192 # Musca B1 Secure Enclave does not support tests, profiles, NS side building
Feder Liang357b1602022-01-11 16:47:49 +0800193 ("arm/musca_b1/secure_enclave", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*", "*"),
194 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "IPC", "*", "*", "*", "*", "*", "*", "*"),
195 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", "*", "*", "*", "*"),
196 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*"),
197 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "STORAGE", "*", "*", "*", "*", "*", "*", "*"),
198 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
199 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
200 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
201 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800202 # PARTITION_PS could be OFF only for Profile S and M
Feder Liang357b1602022-01-11 16:47:49 +0800203 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF", "*"),
204 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "OFF", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800205 # PARTITION_PS should be OFF for Profile S
Feder Liang357b1602022-01-11 16:47:49 +0800206 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800207 # Proile M only support for IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800208 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800209 # Profile M only support for Isolation Level 2
Feder Liang357b1602022-01-11 16:47:49 +0800210 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
211 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800212 # Profile L only support for Isolation Level 3
Feder Liang357b1602022-01-11 16:47:49 +0800213 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
214 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800215 # Profile S does not support IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800216 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800217 # Profile S only supports Isolation Level 1
Feder Liang357b1602022-01-11 16:47:49 +0800218 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
219 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800220 # Only AN521 and MUSCA_B1 support Isolation Level 3
Feder Liang357b1602022-01-11 16:47:49 +0800221 ("arm/mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
222 ("arm/mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
223 ("arm/musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
224 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
225 ("arm/musca_b1/secure_enclave", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700226 # stm/stm32l562e_dk uses BL2
Feder Liang357b1602022-01-11 16:47:49 +0800227 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700228 # stm/stm32l562e_dk does not support Debug build type
Feder Liang357b1602022-01-11 16:47:49 +0800229 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700230 # nxp/lpcxpresso55s69 only build with GCC
Feder Liang357b1602022-01-11 16:47:49 +0800231 ("nxp/lpcxpresso55s69", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700232 # nxp/lpcxpresso55s69 only build Profile M
Feder Liang357b1602022-01-11 16:47:49 +0800233 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
234 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700235 # nxp/lpcxpresso55s69 have to turn off BL2 when build regression test
Feder Liang357b1602022-01-11 16:47:49 +0800236 ("nxp/lpcxpresso55s69", "*", "*", "*", True, "*", "*", "*", True, "*", "*", "*", "*"),
Arthur She0ce327e2021-11-16 23:11:34 -0800237 # nxp/lpcxpresso55s69 turn off BL2 temporary, due to the oversize error
Feder Liang357b1602022-01-11 16:47:49 +0800238 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +0800239 ]
240
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100241# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100242config_AN524 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800243 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800244 "toolchain_file": ["toolchain_GNUARM.cmake",
245 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800246 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800247 "isolation_level": ["1", "2"],
248 "test_regression": [True, False],
249 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100250 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800251 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800252 "with_bl2": [True, False],
253 "with_ns": [True, False],
254 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800255 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800256 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100257 },
258 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800259 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100260 }
261
Karl Zhangaff558a2020-05-15 14:28:23 +0100262config_AN521 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800263 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800264 "toolchain_file": ["toolchain_GNUARM.cmake",
265 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800266 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800267 "isolation_level": ["1", "2"],
268 "test_regression": [True, False],
269 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100270 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800271 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800272 "with_bl2": [True, False],
273 "with_ns": [True, False],
274 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800275 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800276 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100277 },
278 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800279 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100280 }
281
Karl Zhangaff558a2020-05-15 14:28:23 +0100282config_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800283 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
284 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800285 "toolchain_file": ["toolchain_GNUARM.cmake",
286 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800287 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800288 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800289 "test_regression": [False],
290 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800291 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800292 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100293 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800294 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800295 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800296 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800297 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800298 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800299 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100300 },
301 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800302 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100303 }
304
Karl Zhangaff558a2020-05-15 14:28:23 +0100305config_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800306 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
307 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800308 "toolchain_file": ["toolchain_GNUARM.cmake",
309 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800310 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800311 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800312 "test_regression": [False],
313 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100314 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800315 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800316 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800317 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800318 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800319 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800320 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100321 },
322 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800323 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100324 }
325
Karl Zhangaff558a2020-05-15 14:28:23 +0100326config_PSA_API_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800327 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800328 "toolchain_file": ["toolchain_GNUARM.cmake",
329 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800330 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800331 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800332 "test_regression": [False],
333 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800334 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800335 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100336 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800337 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800338 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800339 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800340 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800341 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800342 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100343 },
344 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800345 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100346 }
Minos Galanakisea421232019-06-20 17:11:28 +0100347
Xinyu Zhangb708f572020-09-15 11:43:46 +0800348config_PSA_FF_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800349 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800350 "toolchain_file": ["toolchain_GNUARM.cmake",
351 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800352 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800353 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800354 "test_regression": [False],
355 "test_psa_api": ["IPC"],
356 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800357 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800358 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800359 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800360 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800361 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800362 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800363 },
364 "common_params": _common_tfm_builder_cfg,
365 "invalid": _common_tfm_invalid_configs + []
366 }
367
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800368config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800369 "tfm_platform": ["cypress/psoc64"],
370 "toolchain_file": ["toolchain_GNUARM.cmake",
371 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800372 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800373 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800374 "test_regression": [True],
375 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800376 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800377 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800378 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800379 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800380 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800381 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800382 "extra_params": [""]
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800383 },
384 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800385 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800386 }
387
Arthur She19c0e1a2021-06-02 11:06:19 -0700388config_STM32L562E_DK = {"seed_params": {
389 "tfm_platform": ["stm/stm32l562e_dk"],
390 "toolchain_file": ["toolchain_GNUARM.cmake",
391 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800392 "lib_model": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700393 "isolation_level": ["1", "2", "3"],
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800394 "test_regression": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700395 "test_psa_api": ["OFF"],
396 "cmake_build_type": ["Release"],
397 "with_otp": ["off"],
398 "with_bl2": [True],
399 "with_ns": [True],
400 "profile": [""],
401 "partition_ps": ["ON"],
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800402 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
Arthur She19c0e1a2021-06-02 11:06:19 -0700403 },
404 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800405 "invalid": _common_tfm_invalid_configs + [
406 # all other tests are off when CRYPTO is ON
407 ("stm/stm32l562e_dk", "*", "*", "*", True, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800408 "*", "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800409 # all other tests are ON when CRYPTO is OFF
410 ("stm/stm32l562e_dk", "*", "*", "*", False, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800411 "*", "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800412 ]
Arthur She19c0e1a2021-06-02 11:06:19 -0700413 }
414
Arthur Shef3657742021-09-07 14:23:18 -0700415config_LPCXPRESSO55S69 = {"seed_params": {
416 "tfm_platform": ["nxp/lpcxpresso55s69"],
417 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800418 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700419 "isolation_level": ["2"],
420 "test_regression": [True, False],
421 "test_psa_api": ["OFF"],
422 "cmake_build_type": ["Relwithdebinfo"],
423 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -0800424 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700425 "with_ns": [True],
426 "profile": ["profile_medium"],
427 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800428 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +0800429 },
430 "common_params": _common_tfm_builder_cfg,
431 "invalid": _common_tfm_invalid_configs + []
432 }
433
434config_FP = {"seed_params": {
435 "tfm_platform": ["arm/musca_s1"],
Feder Liang357b1602022-01-11 16:47:49 +0800436 "toolchain_file": ["toolchain_GNUARM.cmake"],
Feder Liang567e8c22021-10-26 14:16:21 +0800437 "lib_model": [False],
438 "isolation_level": ["1", "2"],
439 "test_regression": [True],
440 "test_psa_api": ["OFF"],
441 "cmake_build_type": ["Release"],
442 "with_otp": ["off"],
443 "with_bl2": [True],
444 "with_ns": [True],
445 "profile": [""],
446 "partition_ps": ["ON"],
Feder Liang357b1602022-01-11 16:47:49 +0800447 "extra_params": ["FPSOFT", "FPHARD", "FPHARD_LOFF"]
Arthur Shef3657742021-09-07 14:23:18 -0700448 },
449 "common_params": _common_tfm_builder_cfg,
450 "invalid": _common_tfm_invalid_configs + []
451 }
452
Xinyu Zhang6afdd612021-10-12 17:07:32 +0800453config_corstone1000 = {"seed_params": {
454 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800455 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800456 "lib_model": [False],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800457 "isolation_level": ["1"],
458 "test_regression": [False],
459 "test_psa_api": ["OFF"],
460 "cmake_build_type": ["Debug"],
461 "with_otp": ["off"],
462 "with_bl2": [True],
463 "with_ns": [False],
464 "profile": [""],
465 "partition_ps": ["ON"],
Xinyu Zhang6071f962022-02-07 15:56:39 +0800466 "extra_params": ["FVP", "FPGA"]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800467 },
468 "common_params": _common_tfm_builder_cfg,
469 "invalid": _common_tfm_invalid_configs + []
470 }
471
Minos Galanakisea421232019-06-20 17:11:28 +0100472config_AN519 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800473 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800474 "toolchain_file": ["toolchain_GNUARM.cmake",
475 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800476 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800477 "isolation_level": ["1", "2"],
478 "test_regression": [True, False],
479 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100480 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800481 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800482 "with_bl2": [True, False],
483 "with_ns": [True, False],
484 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800485 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800486 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100487 },
488 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800489 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100490 }
491
Xinyu Zhangb708f572020-09-15 11:43:46 +0800492config_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800493 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
494 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800495 "toolchain_file": ["toolchain_GNUARM.cmake",
496 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800497 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800498 "isolation_level": ["1", "2"],
499 "test_regression": [True, False],
500 "test_psa_api": ["OFF"],
501 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800502 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800503 "with_bl2": [True, False],
504 "with_ns": [True, False],
505 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800506 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800507 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800508 },
Minos Galanakisea421232019-06-20 17:11:28 +0100509 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800510 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100511 }
512
Minos Galanakisea421232019-06-20 17:11:28 +0100513config_full = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800514 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
515 "arm/musca_b1/sse_200",
516 "arm/mps3/an524", "cypress/psoc64",
Arthur She19c0e1a2021-06-02 11:06:19 -0700517 "arm/musca_b1/secure_enclave",
Arthur Shef3657742021-09-07 14:23:18 -0700518 "stm/stm32l562e_dk",
519 "nxp/lpcxpresso55s69"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800520 "toolchain_file": ["toolchain_GNUARM.cmake",
521 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800522 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800523 "isolation_level": ["1", "2"],
524 "test_regression": [True, False],
525 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800526 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800527 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800528 "with_bl2": [True, False],
529 "with_ns": [True, False],
530 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800531 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800532 "extra_params": [""]
Dean Birchd6ce2c82020-05-13 13:16:15 +0100533 },
534 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800535 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800536 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800537 "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800538 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Feder Liang357b1602022-01-11 16:47:49 +0800539 True, "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800540 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800541 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800542 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800543 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800544 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800545 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800546 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800547 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800548 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800549 }
550
Karl Zhangaff558a2020-05-15 14:28:23 +0100551config_tfm_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800552 "tfm_platform": ["arm/mps2/an521",
553 "arm/musca_b1/sse_200", "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800554 "toolchain_file": ["toolchain_ARMCLANG.cmake",
555 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800556 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800557 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800558 "test_regression": [True, False],
559 "test_psa_api": ["OFF"],
560 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800561 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800562 "with_bl2": [True],
563 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800564 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800565 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800566 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800567 },
568 "common_params": _common_tfm_builder_cfg,
569 "invalid": _common_tfm_invalid_configs + []
570 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800571
Karl Zhangaff558a2020-05-15 14:28:23 +0100572config_tfm_test2 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800573 "tfm_platform": ["arm/mps2/an519", "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800574 "toolchain_file": ["toolchain_ARMCLANG.cmake",
575 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800576 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800577 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800578 "test_regression": [True, False],
579 "test_psa_api": ["OFF"],
580 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800581 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800582 "with_bl2": [True],
583 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800584 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800585 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800586 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800587 },
588 "common_params": _common_tfm_builder_cfg,
589 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800590 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800591 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800592 ]
593 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100594
Karl Zhang14573bc2020-06-08 09:23:21 +0800595config_tfm_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800596 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
597 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800598 "toolchain_file": ["toolchain_ARMCLANG.cmake",
599 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800600 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800601 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800602 "test_regression": [True, False],
603 "test_psa_api": ["OFF"],
604 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800605 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800606 "with_bl2": [True],
607 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800608 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800609 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800610 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800611 },
612 "common_params": _common_tfm_builder_cfg,
613 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800614 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800615 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800616 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800617 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800618 "*", "profile_large", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800619 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800620 "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800621 ]
622 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800623
Karl Zhangaff558a2020-05-15 14:28:23 +0100624config_tfm_test_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800625 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800626 "toolchain_file": ["toolchain_ARMCLANG.cmake",
627 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800628 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800629 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800630 "test_regression": [True, False],
631 "test_psa_api": ["OFF"],
632 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800633 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800634 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800635 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800636 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800637 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800638 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800639 },
640 "common_params": _common_tfm_builder_cfg,
641 "invalid": _common_tfm_invalid_configs + []
642 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100643
Minos Galanakisea421232019-06-20 17:11:28 +0100644config_MUSCA_B1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800645 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800646 "toolchain_file": ["toolchain_ARMCLANG.cmake",
647 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800648 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800649 "isolation_level": ["1", "2"],
650 "test_regression": [True, False],
651 "test_psa_api": ["OFF"],
652 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800653 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800654 "with_bl2": [True],
655 "with_ns": [True, False],
656 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800657 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800658 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800659 },
660 "common_params": _common_tfm_builder_cfg,
661 "invalid": _common_tfm_invalid_configs + []
662 }
Minos Galanakisea421232019-06-20 17:11:28 +0100663
Mark Horvath8d281cd2020-12-07 15:20:26 +0100664config_MUSCA_B1_SE = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800665 "tfm_platform": ["arm/musca_b1/secure_enclave"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100666 "toolchain_file": ["toolchain_ARMCLANG.cmake",
667 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800668 "lib_model": [False],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100669 "isolation_level": ["1"],
670 "test_regression": [False],
671 "test_psa_api": ["OFF"],
672 "cmake_build_type": ["Debug", "Release"],
673 "with_otp": ["off"],
674 "with_bl2": [True],
675 "with_ns": [False],
676 "profile": [""],
677 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800678 "extra_params": [""]
Mark Horvath8d281cd2020-12-07 15:20:26 +0100679 },
680 "common_params": _common_tfm_builder_cfg,
681 "invalid": _common_tfm_invalid_configs + []
682 }
683
Karl Zhangeffed972020-06-30 15:48:01 +0800684config_MUSCA_S1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800685 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800686 "toolchain_file": ["toolchain_ARMCLANG.cmake",
687 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800688 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800689 "isolation_level": ["1", "2"],
690 "test_regression": [True, False],
691 "test_psa_api": ["OFF"],
692 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800693 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800694 "with_bl2": [True],
695 "with_ns": [True, False],
696 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800697 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800698 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800699 },
700 "common_params": _common_tfm_builder_cfg,
701 "invalid": _common_tfm_invalid_configs + []
702 }
Karl Zhangeffed972020-06-30 15:48:01 +0800703
Karl Zhangaff558a2020-05-15 14:28:23 +0100704config_release = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800705 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
706 "arm/musca_b1/sse_200", "arm/musca_s1",
707 "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800708 "toolchain_file": ["toolchain_ARMCLANG.cmake",
709 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800710 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800711 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800712 "test_regression": [True, False],
713 "test_psa_api": ["OFF"],
714 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800715 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800716 "with_bl2": [True, False],
717 "with_ns": [True, False],
718 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800719 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800720 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800721 },
722 "common_params": _common_tfm_builder_cfg,
723 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800724 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800725 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800726 ]
727 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100728
729# Configure build manager to build several combinations
730config_AN521_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800731 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
732 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800733 "toolchain_file": ["toolchain_GNUARM.cmake",
734 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800735 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800736 "isolation_level": ["1", "2"],
737 "test_regression": [False],
738 "test_psa_api": ["IPC",
739 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800740 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800741 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800742 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800743 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800744 "with_bl2": [True],
745 "with_ns": [True, False],
746 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800747 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800748 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100749 },
750 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800751 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800752 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800753 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800754 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100755 }
756
Karl Zhangaff558a2020-05-15 14:28:23 +0100757config_AN521_PSA_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800758 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
759 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800760 "toolchain_file": ["toolchain_GNUARM.cmake",
761 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800762 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800763 "isolation_level": ["1", "2"],
764 "test_regression": [False],
765 "test_psa_api": ["IPC"],
766 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800767 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800768 "with_bl2": [True],
769 "with_ns": [True, False],
770 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800771 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800772 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100773 },
774 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800775 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800776 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800777 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800778 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100779 }
780
Karl Zhang14573bc2020-06-08 09:23:21 +0800781config_nightly = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800782 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
783 "arm/musca_b1/sse_200", "arm/musca_s1",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800784 "arm/mps3/an524", "arm/musca_b1/secure_enclave"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800785 "toolchain_file": ["toolchain_GNUARM.cmake",
786 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800787 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800788 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800789 "test_regression": [True, False],
790 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800791 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800792 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800793 "with_bl2": [True],
794 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800795 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800796 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800797 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800798 },
799 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang6d2dd7c2022-02-07 17:22:55 +0800800 "valid": [
801 # MUSCA_B1_GNUARM_IPC_1_REG_Release_BL2_NS_CC_DRIVER_PSA
802 ("arm/musca_b1/sse_200", "toolchain_GNUARM.cmake",
803 False, "1", True, "OFF", "Release",
804 "off", True, True, "", "ON", "CC_DRIVER_PSA"),
805 # MUSCA_S1_GNUARM_IPC_1_REG_Release_BL2_NS_CC_DRIVER_PSA
806 ("arm/musca_s1", "toolchain_GNUARM.cmake",
807 False, "1", True, "OFF", "Release",
808 "off", True, True, "", "ON", "CC_DRIVER_PSA"),
809 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800810 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800811 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800812 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800813 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800814 "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800815 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Feder Liang357b1602022-01-11 16:47:49 +0800816 True, "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800817 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800818 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800819 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800820 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800821 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800822 "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800823 ("arm/musca_s1", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800824 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800825 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800826 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800827 ]
828 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800829
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800830config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800831 "tfm_platform": ["arm/mps2/an521"],
832 "toolchain_file": ["toolchain_GNUARM.cmake",
833 "toolchain_ARMCLANG.cmake"],
834 "lib_model": [True, False],
835 "isolation_level": ["1", "2", "3"],
836 "test_regression": [True],
837 "test_psa_api": ["OFF"],
838 "cmake_build_type": ["Debug"],
839 "with_otp": ["off"],
840 "with_bl2": [True],
841 "with_ns": [True],
842 "profile": [""],
843 "partition_ps": ["ON"],
Xinyu Zhang67612992021-12-20 14:11:27 +0800844 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800845 },
846 "common_params": _common_tfm_builder_cfg,
847 "invalid": _common_tfm_invalid_configs + []
848 }
849
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800850config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800851 "tfm_platform": ["arm/mps2/an521"],
852 "toolchain_file": ["toolchain_GNUARM.cmake",
853 "toolchain_ARMCLANG.cmake"],
854 "lib_model": [False],
855 "isolation_level": ["1"],
856 "test_regression": [True],
857 "test_psa_api": ["OFF"],
858 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
859 "with_otp": ["off"],
860 "with_bl2": [True],
861 "with_ns": [True],
862 "profile": [""],
863 "partition_ps": ["ON"],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800864 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800865 },
866 "common_params": _common_tfm_builder_cfg,
867 "invalid": _common_tfm_invalid_configs + []
868 }
869
Karl Zhang14573bc2020-06-08 09:23:21 +0800870config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800871 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
872 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800873 "toolchain_file": ["toolchain_ARMCLANG.cmake",
874 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800875 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800876 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800877 "test_regression": [True, False],
878 "test_psa_api": ["OFF"],
879 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800880 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800881 "with_bl2": [True],
882 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800883 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800884 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800885 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800886 },
887 "common_params": _common_tfm_builder_cfg,
888 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800889 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800890 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800891 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800892 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800893 "*", "profile_large", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800894 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800895 "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800896 ]
897 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800898
Karl Zhang14573bc2020-06-08 09:23:21 +0800899config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800900 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
901 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800902 "toolchain_file": ["toolchain_GNUARM.cmake",
903 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800904 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800905 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800906 "test_regression": [False],
907 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800908 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800909 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800910 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800911 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800912 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800913 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800914 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800915 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800916 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800917 },
918 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800919 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800920 }
921
Karl Zhang14573bc2020-06-08 09:23:21 +0800922config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800923 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
924 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800925 "toolchain_file": ["toolchain_GNUARM.cmake",
926 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800927 "lib_model": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800928 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800929 "test_regression": [False],
930 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800931 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800932 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800933 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800934 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800935 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800936 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800937 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800938 },
939 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800940 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800941 }
942
Karl Zhang14573bc2020-06-08 09:23:21 +0800943config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800944 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800945 "toolchain_file": ["toolchain_GNUARM.cmake",
946 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800947 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800948 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800949 "test_regression": [True],
950 "test_psa_api": ["OFF"],
951 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800952 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800953 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800954 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800955 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800956 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800957 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800958 },
959 "common_params": _common_tfm_builder_cfg,
960 "invalid": _common_tfm_invalid_configs + []
961 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800962
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800963config_nightly_psoc64 = {"seed_params": {
964 "tfm_platform": ["cypress/psoc64"],
965 "toolchain_file": ["toolchain_GNUARM.cmake",
966 "toolchain_ARMCLANG.cmake"],
967 "lib_model": [False],
968 "isolation_level": ["1", "2"],
969 "test_regression": [True],
970 "test_psa_api": ["OFF"],
971 "cmake_build_type": ["Release"],
972 "with_otp": ["off"],
973 "with_bl2": [False],
974 "with_ns": [True],
975 "profile": [""],
976 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800977 "extra_params": [""]
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800978 },
979 "common_params": _common_tfm_builder_cfg,
980 "invalid": _common_tfm_invalid_configs + []
981 }
982
Arthur Shef3657742021-09-07 14:23:18 -0700983config_nightly_LPCXPRESSO55S69 = {"seed_params": {
984 "tfm_platform": ["nxp/lpcxpresso55s69"],
985 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800986 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700987 "isolation_level": ["2"],
988 "test_regression": [True, False],
989 "test_psa_api": ["OFF"],
990 "cmake_build_type": ["Relwithdebinfo"],
991 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -0800992 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700993 "with_ns": [True],
994 "profile": ["profile_medium"],
995 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800996 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +0800997 },
998 "common_params": _common_tfm_builder_cfg,
999 "invalid": _common_tfm_invalid_configs + []
1000 }
1001
1002config_nightly_FP = {"seed_params": {
1003 "tfm_platform": ["arm/musca_s1"],
Feder Liang357b1602022-01-11 16:47:49 +08001004 "toolchain_file": ["toolchain_GNUARM.cmake"],
Feder Liang567e8c22021-10-26 14:16:21 +08001005 "lib_model": [False],
1006 "isolation_level": ["1", "2"],
1007 "test_regression": [True],
1008 "test_psa_api": ["OFF"],
1009 "cmake_build_type": ["Debug"],
1010 "with_otp": ["off"],
1011 "with_bl2": [True],
1012 "with_ns": [True],
1013 "profile": [""],
1014 "partition_ps": ["ON"],
Feder Liang357b1602022-01-11 16:47:49 +08001015 "extra_params": ["FPSOFT", "FPHARD", "FPHARD_LOFF"]
Arthur Shef3657742021-09-07 14:23:18 -07001016 },
1017 "common_params": _common_tfm_builder_cfg,
1018 "invalid": _common_tfm_invalid_configs + []
1019 }
1020
Karl Zhang14573bc2020-06-08 09:23:21 +08001021config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001022 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +08001023 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001024 "toolchain_file": ["toolchain_GNUARM.cmake",
1025 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001026 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +08001027 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001028 "test_regression": [True],
1029 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001030 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001031 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001032 "with_bl2": [True],
1033 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001034 "profile": ["", "profile_small", "profile_medium"],
1035 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001036 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001037 },
1038 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001039 "valid": [
Summer Qin3c2b5722021-05-26 10:43:45 +08001040 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001041 True, "1", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001042 "off", True, True, "", "ON", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001043 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001044 False, "2", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001045 "off", True, True, "", "ON", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001046 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001047 False, "3", False, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001048 "off", True, True, "", "ON", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001049 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001050 False, "2", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001051 "off", True, True, "profile_medium", "ON", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001052 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001053 False, "3", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001054 "off", True, True, "profile_large", "ON", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001055 # AN521_GNUARM_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001056 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
1057 False, "2", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001058 "off", True, True, "profile_medium", "OFF", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001059 # MUSCA_B1_GNUARM_LIB_1_REG_Minsizerel_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001060 ("arm/musca_b1/sse_200", "toolchain_GNUARM.cmake",
1061 True, "1", True, "OFF", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001062 "off", True, True, "", "ON", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001063 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001064 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake",
1065 False, "1", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001066 "off", True, True, "", "ON", "CRYPTO_OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001067 # stm32l562e_dk_GNUARM_IPC_2_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001068 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
Xinyu Zhang7c8d3372021-12-22 11:15:42 +08001069 False, "2", False, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001070 "off", True, True, "", "ON", "CRYPTO_ON"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001071 # stm32l562e_dk_GNUARM_IPC_3_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001072 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
1073 False, "3", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001074 "off", True, True, "", "ON", "CRYPTO_OFF"),
1075 # MUSCA_S1_GNUARM_IPC_2_REG_Release_BL2_NS_FPHARD
Feder Liang567e8c22021-10-26 14:16:21 +08001076 ("arm/musca_s1", "toolchain_GNUARM.cmake",
1077 False, "2", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001078 "off", True, True, "", "ON", "FPHARD"),
Xinyu Zhangce8eb082022-02-09 16:28:54 +08001079 # MUSCA_S1_GNUARM_IPC_1_REG_Release_BL2_NS_CC_DRIVER_PSA
1080 ("arm/musca_s1", "toolchain_GNUARM.cmake",
1081 False, "1", True, "OFF", "Release",
1082 "off", True, True, "", "ON", "CC_DRIVER_PSA"),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001083 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001084 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001085 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +08001086 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001087 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001088 # valid configs supported by TF-M but not needed in per-patch
1089 ("*", "*", "*", "1", "*", "*", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001090 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001091 ("*", "*", "*", "1", "*", "*", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001092 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001093 ("*", "*", "*", "2", "*", "*", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001094 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001095 ("*", "*", "*", "2", "*", "*", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001096 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001097 ("*", "*", "*", "3", "*", "*", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001098 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001099 ("*", "*", "*", "3", "*", "*", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001100 "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001101 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001102 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001103 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001104 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001105 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001106 "*", "*", "*", "*", "profile_medium", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001107 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001108 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001109 ("*", "toolchain_GNUARM.cmake", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001110 "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001111 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001112 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001113 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001114 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001115 ]
1116 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001117
Karl Zhang14573bc2020-06-08 09:23:21 +08001118config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001119 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001120 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001121 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001122 "isolation_level": ["1", "2"],
1123 "test_regression": [True],
1124 "test_psa_api": ["OFF"],
1125 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001126 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001127 "with_bl2": [True],
1128 "with_ns": [True, False],
1129 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001130 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001131 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001132 },
1133 "common_params": _common_tfm_builder_cfg,
1134 "invalid": _common_tfm_invalid_configs + []
1135 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001136
1137# Configure build manager to build several combinations
1138config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001139 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001140 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001141 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001142 "isolation_level": ["2"],
1143 "test_regression": [False],
1144 "test_psa_api": ["IPC",
1145 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001146 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +08001147 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001148 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001149 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001150 "with_bl2": [True],
1151 "with_ns": [True, False],
1152 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001153 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001154 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001155 },
1156 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001157 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001158 }
1159
Karl Zhang14573bc2020-06-08 09:23:21 +08001160config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001161 "tfm_platform": ["cypress/psoc64"],
1162 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001163 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001164 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001165 "test_regression": [True],
1166 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001167 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001168 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001169 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001170 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001171 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001172 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001173 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001174 },
1175 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001176 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001177 }
1178
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001179config_cov_an519 = {"seed_params": {
1180 "tfm_platform": ["arm/mps2/an519"],
1181 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001182 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001183 "isolation_level": ["1", "2", "3"],
1184 "test_regression": [True, False],
1185 "test_psa_api": ["OFF"],
1186 "cmake_build_type": ["Debug", "Release"],
1187 "with_otp": ["off"],
1188 "with_bl2": [True],
1189 "with_ns": [True],
1190 "profile": ["", "profile_small", "profile_medium"],
1191 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001192 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001193 },
1194 "common_params": _common_tfm_builder_cfg,
1195 "invalid": _common_tfm_invalid_configs + []
1196 }
1197
1198config_cov_an521 = {"seed_params": {
1199 "tfm_platform": ["arm/mps2/an521"],
1200 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001201 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001202 "isolation_level": ["1", "2", "3"],
1203 "test_regression": [True, False],
1204 "test_psa_api": ["OFF"],
1205 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1206 "with_otp": ["off"],
1207 "with_bl2": [True],
1208 "with_ns": [True],
1209 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1210 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001211 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001212 },
1213 "common_params": _common_tfm_builder_cfg,
1214 "invalid": _common_tfm_invalid_configs + []
1215 }
1216
Minos Galanakisea421232019-06-20 17:11:28 +01001217# Configruation used for document building
1218config_doxygen = {"common_params": {
1219 "config_type": "tf-m_documents",
1220 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001221 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001222 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001223 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001224 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001225 "cmake --build ./ -- docs"]},
1226 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1227 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001228 r'/(\w+\.(?:html|md|pdf))$',
1229 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001230 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001231 }
1232
Karl Zhangaff558a2020-05-15 14:28:23 +01001233# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +01001234config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001235 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001236 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001237 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001238 "isolation_level": ["1"],
1239 "test_regression": [False],
1240 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001241 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001242 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001243 "with_bl2": [True],
1244 "with_ns": [True],
1245 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001246 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001247 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +01001248 },
1249 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001250 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001251 }
1252
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001253config_debug_PSA_API = {"seed_params": {
1254 "tfm_platform": ["arm/mps2/an521"],
1255 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
1256 "lib_model": [True],
1257 "isolation_level": ["1"],
1258 "test_regression": [False],
Paul Sokolovsky7bd338c2022-01-30 14:14:39 +03001259 "test_psa_api": ["CRYPTO",
1260 "INITIAL_ATTESTATION",
Paul Sokolovskyb298d7b2022-02-02 23:27:44 +03001261 "STORAGE",
1262 "IPC"],
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001263 "cmake_build_type": ["Debug"],
1264 "with_otp": ["off"],
1265 "with_bl2": [True],
1266 "with_ns": [True],
1267 "profile": [""],
1268 "partition_ps": ["ON"],
1269 "extra_params": [""]
1270 },
1271 "common_params": _common_tfm_builder_cfg,
1272 "invalid": _common_tfm_invalid_configs + []
1273 }
1274
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001275config_debug_PSA_API_nolib = {"seed_params": {
1276 "tfm_platform": ["arm/mps2/an521"],
1277 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
1278 "lib_model": [False],
1279 "isolation_level": ["1"],
1280 "test_regression": [False],
1281 "test_psa_api": ["CRYPTO",
1282 "INITIAL_ATTESTATION",
1283 "STORAGE",
1284 "IPC"],
1285 "cmake_build_type": ["Debug"],
1286 "with_otp": ["off"],
1287 "with_bl2": [True],
1288 "with_ns": [True],
1289 "profile": [""],
1290 "partition_ps": ["ON"],
1291 "extra_params": [""]
1292 },
1293 "common_params": _common_tfm_builder_cfg,
1294 "invalid": _common_tfm_invalid_configs + []
1295 }
1296
Dean Birch4c6ad622020-03-13 11:28:03 +00001297# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001298config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001299 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001300 "toolchain_file": ["toolchain_ARMCLANG.cmake",
1301 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001302 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001303 "isolation_level": ["1", "2"],
1304 "test_regression": [True, False],
1305 "test_psa_api": ["OFF"],
1306 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001307 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001308 "with_bl2": [True, False],
1309 "with_ns": [True],
1310 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001311 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001312 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001313 },
1314 "common_params": _common_tfm_builder_cfg,
1315 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001316 ("*", "toolchain_ARMCLANG.cmake", False, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001317 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001318 ("*", "toolchain_ARMCLANG.cmake", True, "1", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001319 "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001320 ]
1321 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001322
Xinyu Zhangb708f572020-09-15 11:43:46 +08001323config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001324 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001325 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001326 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001327 "isolation_level": ["1", "2"],
1328 "test_regression": [True],
1329 "test_psa_api": ["OFF"],
1330 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001331 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001332 "with_bl2": [True, False],
1333 "with_ns": [True, False],
1334 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001335 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001336 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001337 },
1338 "common_params": _common_tfm_builder_cfg,
1339 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001340 ("arm/mps2/an521", "toolchain_GNUARM.cmake", False, "2", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001341 "*", "*", True, "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001342 ]
1343 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001344
Xinyu Zhang38b76742021-11-11 13:57:56 +08001345config_an547 = {"seed_params": {
1346 "tfm_platform": ["arm/mps3/an547"],
1347 "toolchain_file": ["toolchain_GNUARM.cmake"],
1348 "lib_model": [False],
1349 "isolation_level": ["1"],
1350 "test_regression": [False],
1351 "test_psa_api": ["OFF"],
1352 "cmake_build_type": ["Debug"],
1353 "with_otp": ["off"],
1354 "with_bl2": [True],
1355 "with_ns": [False],
1356 "profile": [""],
1357 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001358 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001359 },
1360 "common_params": _common_tfm_builder_cfg,
1361 "invalid": _common_tfm_invalid_configs + []
1362 }
1363
1364config_corstone_polaris = {"seed_params": {
1365 "tfm_platform": ["arm/mps3/corstone_polaris"],
1366 "toolchain_file": ["toolchain_GNUARM.cmake"],
1367 "lib_model": [False],
1368 "isolation_level": ["1"],
1369 "test_regression": [False],
1370 "test_psa_api": ["OFF"],
1371 "cmake_build_type": ["Debug"],
1372 "with_otp": ["off"],
1373 "with_bl2": [True],
1374 "with_ns": [False],
1375 "profile": [""],
1376 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001377 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001378 },
1379 "common_params": _common_tfm_builder_cfg,
1380 "invalid": _common_tfm_invalid_configs + []
1381 }
1382
1383config_bl5340 = {"seed_params": {
1384 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
1385 "toolchain_file": ["toolchain_GNUARM.cmake"],
1386 "lib_model": [False],
1387 "isolation_level": ["1"],
1388 "test_regression": [False],
1389 "test_psa_api": ["OFF"],
1390 "cmake_build_type": ["Debug"],
1391 "with_otp": ["off"],
1392 "with_bl2": [True],
1393 "with_ns": [False],
1394 "profile": [""],
1395 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001396 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001397 },
1398 "common_params": _common_tfm_builder_cfg,
1399 "invalid": _common_tfm_invalid_configs + []
1400 }
1401
1402config_nrf5340dk = {"seed_params": {
1403 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
1404 "toolchain_file": ["toolchain_GNUARM.cmake"],
1405 "lib_model": [False],
1406 "isolation_level": ["1"],
1407 "test_regression": [False],
1408 "test_psa_api": ["OFF"],
1409 "cmake_build_type": ["Debug"],
1410 "with_otp": ["off"],
1411 "with_bl2": [True],
1412 "with_ns": [False],
1413 "profile": [""],
1414 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001415 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001416 },
1417 "common_params": _common_tfm_builder_cfg,
1418 "invalid": _common_tfm_invalid_configs + []
1419 }
1420
1421config_nrf9160dk = {"seed_params": {
1422 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
1423 "toolchain_file": ["toolchain_GNUARM.cmake"],
1424 "lib_model": [False],
1425 "isolation_level": ["1"],
1426 "test_regression": [False],
1427 "test_psa_api": ["OFF"],
1428 "cmake_build_type": ["Debug"],
1429 "with_otp": ["off"],
1430 "with_bl2": [True],
1431 "with_ns": [False],
1432 "profile": [""],
1433 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001434 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001435 },
1436 "common_params": _common_tfm_builder_cfg,
1437 "invalid": _common_tfm_invalid_configs + []
1438 }
1439
1440config_m2351 = {"seed_params": {
1441 "tfm_platform": ["nuvoton/m2351"],
1442 "toolchain_file": ["toolchain_GNUARM.cmake"],
1443 "lib_model": [False],
1444 "isolation_level": ["1"],
1445 "test_regression": [False],
1446 "test_psa_api": ["OFF"],
1447 "cmake_build_type": ["Release"],
1448 "with_otp": ["off"],
1449 "with_bl2": [True],
1450 "with_ns": [False],
1451 "profile": [""],
1452 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001453 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001454 },
1455 "common_params": _common_tfm_builder_cfg,
1456 "invalid": _common_tfm_invalid_configs + []
1457 }
1458
1459config_m2354 = {"seed_params": {
1460 "tfm_platform": ["nuvoton/m2354"],
1461 "toolchain_file": ["toolchain_GNUARM.cmake"],
1462 "lib_model": [False],
1463 "isolation_level": ["1"],
1464 "test_regression": [False],
1465 "test_psa_api": ["OFF"],
1466 "cmake_build_type": ["Debug"],
1467 "with_otp": ["off"],
1468 "with_bl2": [True],
1469 "with_ns": [False],
1470 "profile": [""],
1471 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001472 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001473 },
1474 "common_params": _common_tfm_builder_cfg,
1475 "invalid": _common_tfm_invalid_configs + []
1476 }
1477
1478config_b_u585i_iot02a = {"seed_params": {
1479 "tfm_platform": ["stm/b_u585i_iot02a"],
1480 "toolchain_file": ["toolchain_GNUARM.cmake"],
1481 "lib_model": [False],
1482 "isolation_level": ["1"],
1483 "test_regression": [False],
1484 "test_psa_api": ["OFF"],
1485 "cmake_build_type": ["Release"],
1486 "with_otp": ["off"],
1487 "with_bl2": [True],
1488 "with_ns": [False],
1489 "profile": [""],
1490 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001491 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001492 },
1493 "common_params": _common_tfm_builder_cfg,
1494 "invalid": _common_tfm_invalid_configs + []
1495 }
1496
1497config_nucleo_l552ze_q = {"seed_params": {
1498 "tfm_platform": ["stm/nucleo_l552ze_q"],
1499 "toolchain_file": ["toolchain_GNUARM.cmake"],
1500 "lib_model": [False],
1501 "isolation_level": ["1"],
1502 "test_regression": [False],
1503 "test_psa_api": ["OFF"],
1504 "cmake_build_type": ["Release"],
1505 "with_otp": ["off"],
1506 "with_bl2": [True],
1507 "with_ns": [False],
1508 "profile": [""],
1509 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001510 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001511 },
1512 "common_params": _common_tfm_builder_cfg,
1513 "invalid": _common_tfm_invalid_configs + []
1514 }
1515
Karl Zhangaff558a2020-05-15 14:28:23 +01001516_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001517 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001518 "tfm_test": config_tfm_test,
1519 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001520 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +01001521 "tfm_test_otp": config_tfm_test_OTP,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001522 "tfm_nsce": config_nsce,
1523 "tfm_mmio": config_mmio,
Karl Zhangaff558a2020-05-15 14:28:23 +01001524 "psa_api": config_PSA_API,
1525 "psa_api_otp": config_PSA_API_OTP,
1526 "psa_ff": config_PSA_FF,
1527 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001528 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001529 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001530 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001531 "tfm_fp": config_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001532
1533 #nightly test group
1534 "nightly_test": config_nightly,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001535 "nightly_nsce": config_nsce,
1536 "nightly_mmio": config_mmio,
Karl Zhang14573bc2020-06-08 09:23:21 +08001537 "nightly_profile": config_nightly_profile,
1538 "nightly_psa_api": config_nightly_PSA_API,
1539 "nightly_ff": config_nightly_PSA_FF,
1540 "nightly_otp": config_nightly_OTP,
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001541 "nightly_psoc64": config_nightly_psoc64,
Xinyu Zhang331c47c2021-12-24 10:18:02 +08001542 "nightly_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001543 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001544 "nightly_fp":config_nightly_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001545
1546 #per patch test group
1547 "pp_test": config_pp_test,
1548 "pp_OTP": config_pp_OTP,
1549 "pp_PSA_API": config_pp_PSA_API,
1550 "pp_psoc64": config_pp_PSoC64,
1551
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001552 #code coverage test group
1553 "coverage_an519": config_cov_an519,
1554 "coverage_an521": config_cov_an521,
1555
Xinyu Zhang38b76742021-11-11 13:57:56 +08001556 #extra build group
1557 "arm_corstone1000": config_corstone1000,
1558 "arm_an547": config_an547,
1559 "arm_corstone_polaris": config_corstone_polaris,
1560 "cypress_psoc64": config_PSOC64,
1561 "laird_bl5340": config_bl5340,
1562 "nordic_nrf5340dk": config_nrf5340dk,
1563 "nordic_nrf9160dk": config_nrf9160dk,
1564 "nuvoton_m2351": config_m2351,
1565 "nuvoton_m2354": config_m2354,
1566 "nxp_lpcxpresso55s69": config_LPCXPRESSO55S69,
1567 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1568 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1569 "stm_stm32l562e_dk": config_STM32L562E_DK,
1570
Karl Zhang14573bc2020-06-08 09:23:21 +08001571 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001572 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001573
1574 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001575 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001576 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001577 "an521_psa_api": config_AN521_PSA_API,
1578 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001579 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001580 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001581 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001582 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001583 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001584 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001585 "ipc": config_IPC,
1586 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001587 "debug": config_debug,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001588 "debug_PSA_API": config_debug_PSA_API,
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001589 "debug_PSA_API_nolib": config_debug_PSA_API_nolib,
Karl Zhangaff558a2020-05-15 14:28:23 +01001590 "release": config_release,
Karl Zhang14573bc2020-06-08 09:23:21 +08001591
1592 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001593 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001594 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001595
1596if __name__ == '__main__':
1597 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001598
Minos Galanakisea421232019-06-20 17:11:28 +01001599 # Default behavior is to export refference config when called
1600 _dir = os.getcwd()
1601 from utils import save_json
1602 for _cname, _cfg in _builtin_configs.items():
1603 _fname = os.path.join(_dir, _cname + ".json")
1604 print("Exporting config %s" % _fname)
1605 save_json(_fname, _cfg)