blob: 8adf2e99d7b5a67c0d4938a64232350bd7a33faa [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};"
Arthur She87602dc2022-02-06 14:42:18 -0800117 "popd")],
118 "cypress/psoc64": [("echo 'Sign binaries for Cypress PSoC64 platform';"
119 "pushd %(_tbm_build_dir_)s/..;"
120 "sudo /usr/local/bin/cysecuretools "
121 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
122 "--target cy8ckit-064s0s2-4343w "
123 "sign-image "
124 "--hex %(_tbm_build_dir_)s/bin/tfm_s.hex "
125 "--image-type BOOT --image-id 1;"
126 "sudo /usr/local/bin/cysecuretools "
127 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
128 "--target cy8ckit-064s0s2-4343w "
129 "sign-image "
130 "--hex %(_tbm_build_dir_)s/bin/tfm_ns.hex "
131 "--image-type BOOT --image-id 16;"
132 "mv %(_tbm_build_dir_)s/bin/tfm_s.hex %(_tbm_build_dir_)s/bin/tfm_s_signed.hex;"
133 "mv %(_tbm_build_dir_)s/bin/tfm_ns.hex %(_tbm_build_dir_)s/bin/tfm_ns_signed.hex;"
134 "popd")]
Minos Galanakisea421232019-06-20 17:11:28 +0100135 },
136
137 # (Optional) If set will fail if those artefacts are missing post build
138 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800139 "%(_tbm_build_dir_)s/bin/"
140 "tfm_s.bin",
141 "%(_tbm_build_dir_)s/bin/"
142 "tfm_ns.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800143 "arm/musca_b1/sse_200": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800144 "%(_tbm_build_dir_)s/bin/"
145 "tfm.hex",
146 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800147 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800148 "%(_tbm_build_dir_)s/bin/"
149 "tfm_sign.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800150 "arm/musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800151 "%(_tbm_build_dir_)s/bin/"
152 "tfm.hex",
153 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800154 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800155 "%(_tbm_build_dir_)s/bin/"
156 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100157 }
158}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100159
Xinyu Zhangb708f572020-09-15 11:43:46 +0800160# List of all build configs that are impossible under all circumstances
161_common_tfm_invalid_configs = [
Xinyu Zhang459a1982021-07-21 22:34:49 +0800162 # 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 +0800163 ("arm/musca_b1/sse_200", "toolchain_ARMCLANG.cmake", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*"),
164 ("arm/musca_s1", "toolchain_ARMCLANG.cmake", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800165 # Load range overlap on Musca for IPC Debug type: T895
Feder Liang357b1602022-01-11 16:47:49 +0800166 ("arm/musca_b1/sse_200", "toolchain_ARMCLANG.cmake", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*"),
167 ("arm/musca_s1", "toolchain_ARMCLANG.cmake", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang65683e42021-12-10 15:42:02 +0800168 # Oversize issue on config lpcxpresso55s69_GNUARM_IPC_2_Relwithdebinfo_BL2_NS_MEDIUM
169 ("nxp/lpcxpresso55s69", "toolchain_GNUARM.cmake", False, "2", False, "OFF",
Feder Liang357b1602022-01-11 16:47:49 +0800170 "Relwithdebinfo", "off", True, True, "profile_medium", "ON", "*"),
Xinyu Zhang65683e42021-12-10 15:42:02 +0800171 # Oversize issue on config stm32l562e_dk_ARMCLANG_LIB_1_REG_Release_BL2_NS
172 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake", True, "1", True, "OFF",
Feder Liang357b1602022-01-11 16:47:49 +0800173 "Release", "off", True, True, "", "ON", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800174 # LVL2 and LVL3 requires IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800175 ("*", "*", True, "2", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
176 ("*", "*", True, "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800177 # Regression requires NS
Feder Liang357b1602022-01-11 16:47:49 +0800178 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800179 # psoc64 requires IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800180 ("cypress/psoc64", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800181 # No PSA_ACK with regression
Feder Liang357b1602022-01-11 16:47:49 +0800182 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*", "*", "*"),
183 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*", "*", "*"),
184 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*"),
185 ("*", "*", "*", "*", True, "STORAGE", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800186 # PSA_ACK requires NS
Feder Liang357b1602022-01-11 16:47:49 +0800187 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*", "*", "*"),
188 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*", "*", "*"),
189 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*", "*", "*"),
190 ("*", "*", "*", "*", "*", "STORAGE", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhangc0aad0a2021-11-10 16:07:28 +0800191 # PSA_ACK IPC (FF) does not support LVL3
Feder Liang357b1602022-01-11 16:47:49 +0800192 ("*", "*", "*", "3", "*", "IPC", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800193 # Musca requires BL2
Feder Liang357b1602022-01-11 16:47:49 +0800194 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
195 ("arm/musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800196 # psoc64 cannot use BL2
Feder Liang357b1602022-01-11 16:47:49 +0800197 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800198 # psoc64 does not support Debug build type
Feder Liang357b1602022-01-11 16:47:49 +0800199 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Xinyu Zhange1b29e02022-03-04 12:02:07 +0800200 # PSoC64 platform got issue on level one test, disable it as a workaround
201 ("cypress/psoc64", "*", "*", "1", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800202 # Musca b1 SSE 200 does not support Profile S
Feder Liang357b1602022-01-11 16:47:49 +0800203 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800204 # Musca B1 Secure Enclave requires IPC model, BL2, and supports only Isolation Level 1
Feder Liang357b1602022-01-11 16:47:49 +0800205 ("arm/musca_b1/secure_enclave", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
206 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
207 ("arm/musca_b1/secure_enclave", "*", "*", "2", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100208 # Musca B1 Secure Enclave does not support tests, profiles, NS side building
Feder Liang357b1602022-01-11 16:47:49 +0800209 ("arm/musca_b1/secure_enclave", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*", "*"),
210 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "IPC", "*", "*", "*", "*", "*", "*", "*"),
211 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", "*", "*", "*", "*"),
212 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*"),
213 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "STORAGE", "*", "*", "*", "*", "*", "*", "*"),
214 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
215 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
216 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
217 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800218 # PARTITION_PS could be OFF only for Profile S and M
Feder Liang357b1602022-01-11 16:47:49 +0800219 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF", "*"),
220 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "OFF", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800221 # PARTITION_PS should be OFF for Profile S
Feder Liang357b1602022-01-11 16:47:49 +0800222 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800223 # Proile M only support for IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800224 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800225 # Profile M only support for Isolation Level 2
Feder Liang357b1602022-01-11 16:47:49 +0800226 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
227 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800228 # Profile L only support for Isolation Level 3
Feder Liang357b1602022-01-11 16:47:49 +0800229 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
230 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800231 # Profile S does not support IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800232 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800233 # Profile S only supports Isolation Level 1
Feder Liang357b1602022-01-11 16:47:49 +0800234 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
235 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800236 # Only AN521 and MUSCA_B1 support Isolation Level 3
Feder Liang357b1602022-01-11 16:47:49 +0800237 ("arm/mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
238 ("arm/mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
239 ("arm/musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
240 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
241 ("arm/musca_b1/secure_enclave", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700242 # stm/stm32l562e_dk uses BL2
Feder Liang357b1602022-01-11 16:47:49 +0800243 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700244 # stm/stm32l562e_dk does not support Debug build type
Feder Liang357b1602022-01-11 16:47:49 +0800245 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700246 # nxp/lpcxpresso55s69 only build with GCC
Feder Liang357b1602022-01-11 16:47:49 +0800247 ("nxp/lpcxpresso55s69", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700248 # nxp/lpcxpresso55s69 only build Profile M
Feder Liang357b1602022-01-11 16:47:49 +0800249 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
250 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700251 # nxp/lpcxpresso55s69 have to turn off BL2 when build regression test
Feder Liang357b1602022-01-11 16:47:49 +0800252 ("nxp/lpcxpresso55s69", "*", "*", "*", True, "*", "*", "*", True, "*", "*", "*", "*"),
Arthur She0ce327e2021-11-16 23:11:34 -0800253 # nxp/lpcxpresso55s69 turn off BL2 temporary, due to the oversize error
Feder Liang357b1602022-01-11 16:47:49 +0800254 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +0800255 ]
256
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100257# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100258config_AN524 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800259 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800260 "toolchain_file": ["toolchain_GNUARM.cmake",
261 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800262 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800263 "isolation_level": ["1", "2"],
264 "test_regression": [True, False],
265 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100266 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800267 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800268 "with_bl2": [True, False],
269 "with_ns": [True, False],
270 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800271 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800272 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100273 },
274 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800275 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100276 }
277
Karl Zhangaff558a2020-05-15 14:28:23 +0100278config_AN521 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800279 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800280 "toolchain_file": ["toolchain_GNUARM.cmake",
281 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800282 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800283 "isolation_level": ["1", "2"],
284 "test_regression": [True, False],
285 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100286 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800287 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800288 "with_bl2": [True, False],
289 "with_ns": [True, False],
290 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800291 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800292 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100293 },
294 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800295 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100296 }
297
Karl Zhangaff558a2020-05-15 14:28:23 +0100298config_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800299 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
300 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800301 "toolchain_file": ["toolchain_GNUARM.cmake",
302 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800303 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800304 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800305 "test_regression": [False],
306 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800307 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800308 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100309 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800310 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800311 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800312 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800313 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800314 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800315 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100316 },
317 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800318 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100319 }
320
Karl Zhangaff558a2020-05-15 14:28:23 +0100321config_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800322 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
323 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800324 "toolchain_file": ["toolchain_GNUARM.cmake",
325 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800326 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800327 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800328 "test_regression": [False],
329 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100330 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800331 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800332 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800333 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800334 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800335 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800336 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100337 },
338 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800339 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100340 }
341
Karl Zhangaff558a2020-05-15 14:28:23 +0100342config_PSA_API_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800343 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800344 "toolchain_file": ["toolchain_GNUARM.cmake",
345 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800346 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800347 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800348 "test_regression": [False],
349 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800350 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800351 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100352 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800353 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800354 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800355 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800356 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800357 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800358 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100359 },
360 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800361 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100362 }
Minos Galanakisea421232019-06-20 17:11:28 +0100363
Xinyu Zhangb708f572020-09-15 11:43:46 +0800364config_PSA_FF_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800365 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800366 "toolchain_file": ["toolchain_GNUARM.cmake",
367 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800368 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800369 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800370 "test_regression": [False],
371 "test_psa_api": ["IPC"],
372 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800373 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800374 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800375 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800376 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800377 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800378 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800379 },
380 "common_params": _common_tfm_builder_cfg,
381 "invalid": _common_tfm_invalid_configs + []
382 }
383
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800384config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800385 "tfm_platform": ["cypress/psoc64"],
386 "toolchain_file": ["toolchain_GNUARM.cmake",
387 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800388 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800389 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800390 "test_regression": [True],
391 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800392 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800393 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800394 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800395 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800396 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800397 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800398 "extra_params": [""]
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800399 },
400 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800401 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800402 }
403
Arthur She19c0e1a2021-06-02 11:06:19 -0700404config_STM32L562E_DK = {"seed_params": {
405 "tfm_platform": ["stm/stm32l562e_dk"],
406 "toolchain_file": ["toolchain_GNUARM.cmake",
407 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800408 "lib_model": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700409 "isolation_level": ["1", "2", "3"],
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800410 "test_regression": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700411 "test_psa_api": ["OFF"],
412 "cmake_build_type": ["Release"],
413 "with_otp": ["off"],
414 "with_bl2": [True],
415 "with_ns": [True],
416 "profile": [""],
417 "partition_ps": ["ON"],
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800418 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
Arthur She19c0e1a2021-06-02 11:06:19 -0700419 },
420 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800421 "invalid": _common_tfm_invalid_configs + [
422 # all other tests are off when CRYPTO is ON
423 ("stm/stm32l562e_dk", "*", "*", "*", True, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800424 "*", "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800425 # all other tests are ON when CRYPTO is OFF
426 ("stm/stm32l562e_dk", "*", "*", "*", False, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800427 "*", "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800428 ]
Arthur She19c0e1a2021-06-02 11:06:19 -0700429 }
430
Arthur Shef3657742021-09-07 14:23:18 -0700431config_LPCXPRESSO55S69 = {"seed_params": {
432 "tfm_platform": ["nxp/lpcxpresso55s69"],
433 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800434 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700435 "isolation_level": ["2"],
436 "test_regression": [True, False],
437 "test_psa_api": ["OFF"],
438 "cmake_build_type": ["Relwithdebinfo"],
439 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -0800440 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700441 "with_ns": [True],
442 "profile": ["profile_medium"],
443 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800444 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +0800445 },
446 "common_params": _common_tfm_builder_cfg,
447 "invalid": _common_tfm_invalid_configs + []
448 }
449
450config_FP = {"seed_params": {
451 "tfm_platform": ["arm/musca_s1"],
Feder Liang357b1602022-01-11 16:47:49 +0800452 "toolchain_file": ["toolchain_GNUARM.cmake"],
Feder Liang567e8c22021-10-26 14:16:21 +0800453 "lib_model": [False],
454 "isolation_level": ["1", "2"],
455 "test_regression": [True],
456 "test_psa_api": ["OFF"],
457 "cmake_build_type": ["Release"],
458 "with_otp": ["off"],
459 "with_bl2": [True],
460 "with_ns": [True],
461 "profile": [""],
462 "partition_ps": ["ON"],
Feder Liang357b1602022-01-11 16:47:49 +0800463 "extra_params": ["FPSOFT", "FPHARD", "FPHARD_LOFF"]
Arthur Shef3657742021-09-07 14:23:18 -0700464 },
465 "common_params": _common_tfm_builder_cfg,
466 "invalid": _common_tfm_invalid_configs + []
467 }
468
Xinyu Zhang6afdd612021-10-12 17:07:32 +0800469config_corstone1000 = {"seed_params": {
470 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800471 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800472 "lib_model": [False],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800473 "isolation_level": ["1"],
474 "test_regression": [False],
475 "test_psa_api": ["OFF"],
476 "cmake_build_type": ["Debug"],
477 "with_otp": ["off"],
478 "with_bl2": [True],
479 "with_ns": [False],
480 "profile": [""],
481 "partition_ps": ["ON"],
Xinyu Zhang6071f962022-02-07 15:56:39 +0800482 "extra_params": ["FVP", "FPGA"]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800483 },
484 "common_params": _common_tfm_builder_cfg,
485 "invalid": _common_tfm_invalid_configs + []
486 }
487
Minos Galanakisea421232019-06-20 17:11:28 +0100488config_AN519 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800489 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800490 "toolchain_file": ["toolchain_GNUARM.cmake",
491 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800492 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800493 "isolation_level": ["1", "2"],
494 "test_regression": [True, False],
495 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100496 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800497 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800498 "with_bl2": [True, False],
499 "with_ns": [True, False],
500 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800501 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800502 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100503 },
504 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800505 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100506 }
507
Xinyu Zhangb708f572020-09-15 11:43:46 +0800508config_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800509 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
510 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800511 "toolchain_file": ["toolchain_GNUARM.cmake",
512 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800513 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800514 "isolation_level": ["1", "2"],
515 "test_regression": [True, False],
516 "test_psa_api": ["OFF"],
517 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800518 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800519 "with_bl2": [True, False],
520 "with_ns": [True, False],
521 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800522 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800523 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800524 },
Minos Galanakisea421232019-06-20 17:11:28 +0100525 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800526 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100527 }
528
Minos Galanakisea421232019-06-20 17:11:28 +0100529config_full = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800530 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
531 "arm/musca_b1/sse_200",
532 "arm/mps3/an524", "cypress/psoc64",
Arthur She19c0e1a2021-06-02 11:06:19 -0700533 "arm/musca_b1/secure_enclave",
Arthur Shef3657742021-09-07 14:23:18 -0700534 "stm/stm32l562e_dk",
535 "nxp/lpcxpresso55s69"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800536 "toolchain_file": ["toolchain_GNUARM.cmake",
537 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800538 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800539 "isolation_level": ["1", "2"],
540 "test_regression": [True, False],
541 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800542 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800543 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800544 "with_bl2": [True, False],
545 "with_ns": [True, False],
546 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800547 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800548 "extra_params": [""]
Dean Birchd6ce2c82020-05-13 13:16:15 +0100549 },
550 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800551 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800552 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800553 "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800554 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Feder Liang357b1602022-01-11 16:47:49 +0800555 True, "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800556 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800557 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800558 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800559 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800560 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800561 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800562 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800563 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800564 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800565 }
566
Karl Zhangaff558a2020-05-15 14:28:23 +0100567config_tfm_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800568 "tfm_platform": ["arm/mps2/an521",
569 "arm/musca_b1/sse_200", "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800570 "toolchain_file": ["toolchain_ARMCLANG.cmake",
571 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800572 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800573 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800574 "test_regression": [True, False],
575 "test_psa_api": ["OFF"],
576 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800577 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800578 "with_bl2": [True],
579 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800580 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800581 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800582 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800583 },
584 "common_params": _common_tfm_builder_cfg,
585 "invalid": _common_tfm_invalid_configs + []
586 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800587
Karl Zhangaff558a2020-05-15 14:28:23 +0100588config_tfm_test2 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800589 "tfm_platform": ["arm/mps2/an519", "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800590 "toolchain_file": ["toolchain_ARMCLANG.cmake",
591 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800592 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800593 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800594 "test_regression": [True, False],
595 "test_psa_api": ["OFF"],
596 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800597 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800598 "with_bl2": [True],
599 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800600 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800601 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800602 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800603 },
604 "common_params": _common_tfm_builder_cfg,
605 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800606 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800607 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800608 ]
609 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100610
Karl Zhang14573bc2020-06-08 09:23:21 +0800611config_tfm_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800612 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
613 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800614 "toolchain_file": ["toolchain_ARMCLANG.cmake",
615 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800616 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800617 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800618 "test_regression": [True, False],
619 "test_psa_api": ["OFF"],
620 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800621 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800622 "with_bl2": [True],
623 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800624 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800625 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800626 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800627 },
628 "common_params": _common_tfm_builder_cfg,
629 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800630 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800631 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800632 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800633 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800634 "*", "profile_large", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800635 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800636 "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800637 ]
638 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800639
Karl Zhangaff558a2020-05-15 14:28:23 +0100640config_tfm_test_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800641 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800642 "toolchain_file": ["toolchain_ARMCLANG.cmake",
643 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800644 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800645 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800646 "test_regression": [True, False],
647 "test_psa_api": ["OFF"],
648 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800649 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800650 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800651 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800652 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800653 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800654 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800655 },
656 "common_params": _common_tfm_builder_cfg,
657 "invalid": _common_tfm_invalid_configs + []
658 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100659
Minos Galanakisea421232019-06-20 17:11:28 +0100660config_MUSCA_B1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800661 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800662 "toolchain_file": ["toolchain_ARMCLANG.cmake",
663 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800664 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800665 "isolation_level": ["1", "2"],
666 "test_regression": [True, False],
667 "test_psa_api": ["OFF"],
668 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800669 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800670 "with_bl2": [True],
671 "with_ns": [True, False],
672 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800673 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800674 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800675 },
676 "common_params": _common_tfm_builder_cfg,
677 "invalid": _common_tfm_invalid_configs + []
678 }
Minos Galanakisea421232019-06-20 17:11:28 +0100679
Mark Horvath8d281cd2020-12-07 15:20:26 +0100680config_MUSCA_B1_SE = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800681 "tfm_platform": ["arm/musca_b1/secure_enclave"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100682 "toolchain_file": ["toolchain_ARMCLANG.cmake",
683 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800684 "lib_model": [False],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100685 "isolation_level": ["1"],
686 "test_regression": [False],
687 "test_psa_api": ["OFF"],
688 "cmake_build_type": ["Debug", "Release"],
689 "with_otp": ["off"],
690 "with_bl2": [True],
691 "with_ns": [False],
692 "profile": [""],
693 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800694 "extra_params": [""]
Mark Horvath8d281cd2020-12-07 15:20:26 +0100695 },
696 "common_params": _common_tfm_builder_cfg,
697 "invalid": _common_tfm_invalid_configs + []
698 }
699
Karl Zhangeffed972020-06-30 15:48:01 +0800700config_MUSCA_S1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800701 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800702 "toolchain_file": ["toolchain_ARMCLANG.cmake",
703 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800704 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800705 "isolation_level": ["1", "2"],
706 "test_regression": [True, False],
707 "test_psa_api": ["OFF"],
708 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800709 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800710 "with_bl2": [True],
711 "with_ns": [True, False],
712 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800713 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800714 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800715 },
716 "common_params": _common_tfm_builder_cfg,
717 "invalid": _common_tfm_invalid_configs + []
718 }
Karl Zhangeffed972020-06-30 15:48:01 +0800719
Karl Zhangaff558a2020-05-15 14:28:23 +0100720config_release = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800721 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
722 "arm/musca_b1/sse_200", "arm/musca_s1",
723 "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800724 "toolchain_file": ["toolchain_ARMCLANG.cmake",
725 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800726 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800727 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800728 "test_regression": [True, False],
729 "test_psa_api": ["OFF"],
730 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800731 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800732 "with_bl2": [True, False],
733 "with_ns": [True, False],
734 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800735 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800736 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800737 },
738 "common_params": _common_tfm_builder_cfg,
739 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800740 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800741 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800742 ]
743 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100744
745# Configure build manager to build several combinations
746config_AN521_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800747 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
748 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800749 "toolchain_file": ["toolchain_GNUARM.cmake",
750 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800751 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800752 "isolation_level": ["1", "2"],
753 "test_regression": [False],
754 "test_psa_api": ["IPC",
755 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800756 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800757 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800758 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800759 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800760 "with_bl2": [True],
761 "with_ns": [True, False],
762 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800763 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800764 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100765 },
766 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800767 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800768 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800769 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800770 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100771 }
772
Karl Zhangaff558a2020-05-15 14:28:23 +0100773config_AN521_PSA_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800774 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
775 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800776 "toolchain_file": ["toolchain_GNUARM.cmake",
777 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800778 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800779 "isolation_level": ["1", "2"],
780 "test_regression": [False],
781 "test_psa_api": ["IPC"],
782 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800783 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800784 "with_bl2": [True],
785 "with_ns": [True, False],
786 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800787 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800788 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100789 },
790 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800791 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800792 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800793 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800794 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100795 }
796
Karl Zhang14573bc2020-06-08 09:23:21 +0800797config_nightly = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800798 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
799 "arm/musca_b1/sse_200", "arm/musca_s1",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800800 "arm/mps3/an524", "arm/musca_b1/secure_enclave"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800801 "toolchain_file": ["toolchain_GNUARM.cmake",
802 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800803 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800804 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800805 "test_regression": [True, False],
806 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800807 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800808 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800809 "with_bl2": [True],
810 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800811 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800812 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800813 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800814 },
815 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang6d2dd7c2022-02-07 17:22:55 +0800816 "valid": [
817 # MUSCA_B1_GNUARM_IPC_1_REG_Release_BL2_NS_CC_DRIVER_PSA
818 ("arm/musca_b1/sse_200", "toolchain_GNUARM.cmake",
819 False, "1", True, "OFF", "Release",
820 "off", True, True, "", "ON", "CC_DRIVER_PSA"),
821 # MUSCA_S1_GNUARM_IPC_1_REG_Release_BL2_NS_CC_DRIVER_PSA
822 ("arm/musca_s1", "toolchain_GNUARM.cmake",
823 False, "1", True, "OFF", "Release",
824 "off", True, True, "", "ON", "CC_DRIVER_PSA"),
825 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800826 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800827 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800828 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800829 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800830 "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800831 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Feder Liang357b1602022-01-11 16:47:49 +0800832 True, "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800833 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800834 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800835 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800836 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800837 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800838 "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800839 ("arm/musca_s1", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800840 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800841 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800842 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800843 ]
844 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800845
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800846config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800847 "tfm_platform": ["arm/mps2/an521"],
848 "toolchain_file": ["toolchain_GNUARM.cmake",
849 "toolchain_ARMCLANG.cmake"],
850 "lib_model": [True, False],
851 "isolation_level": ["1", "2", "3"],
852 "test_regression": [True],
853 "test_psa_api": ["OFF"],
854 "cmake_build_type": ["Debug"],
855 "with_otp": ["off"],
856 "with_bl2": [True],
857 "with_ns": [True],
858 "profile": [""],
859 "partition_ps": ["ON"],
Xinyu Zhang67612992021-12-20 14:11:27 +0800860 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800861 },
862 "common_params": _common_tfm_builder_cfg,
863 "invalid": _common_tfm_invalid_configs + []
864 }
865
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800866config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800867 "tfm_platform": ["arm/mps2/an521"],
868 "toolchain_file": ["toolchain_GNUARM.cmake",
869 "toolchain_ARMCLANG.cmake"],
870 "lib_model": [False],
871 "isolation_level": ["1"],
872 "test_regression": [True],
873 "test_psa_api": ["OFF"],
874 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
875 "with_otp": ["off"],
876 "with_bl2": [True],
877 "with_ns": [True],
878 "profile": [""],
879 "partition_ps": ["ON"],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800880 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800881 },
882 "common_params": _common_tfm_builder_cfg,
883 "invalid": _common_tfm_invalid_configs + []
884 }
885
Karl Zhang14573bc2020-06-08 09:23:21 +0800886config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800887 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
888 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800889 "toolchain_file": ["toolchain_ARMCLANG.cmake",
890 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800891 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800892 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800893 "test_regression": [True, False],
894 "test_psa_api": ["OFF"],
895 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800896 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800897 "with_bl2": [True],
898 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800899 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800900 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800901 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800902 },
903 "common_params": _common_tfm_builder_cfg,
904 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800905 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800906 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800907 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800908 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800909 "*", "profile_large", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800910 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800911 "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800912 ]
913 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800914
Karl Zhang14573bc2020-06-08 09:23:21 +0800915config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800916 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
917 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800918 "toolchain_file": ["toolchain_GNUARM.cmake",
919 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800920 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800921 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800922 "test_regression": [False],
923 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800924 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800925 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800926 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800927 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800928 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800929 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800930 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800931 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800932 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800933 },
934 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800935 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800936 }
937
Karl Zhang14573bc2020-06-08 09:23:21 +0800938config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800939 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
940 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800941 "toolchain_file": ["toolchain_GNUARM.cmake",
942 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800943 "lib_model": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800944 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800945 "test_regression": [False],
946 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800947 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800948 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800949 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800950 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800951 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800952 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800953 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800954 },
955 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800956 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800957 }
958
Karl Zhang14573bc2020-06-08 09:23:21 +0800959config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800960 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800961 "toolchain_file": ["toolchain_GNUARM.cmake",
962 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800963 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800964 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800965 "test_regression": [True],
966 "test_psa_api": ["OFF"],
967 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800968 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800969 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800970 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800971 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800972 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800973 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800974 },
975 "common_params": _common_tfm_builder_cfg,
976 "invalid": _common_tfm_invalid_configs + []
977 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800978
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800979config_nightly_psoc64 = {"seed_params": {
980 "tfm_platform": ["cypress/psoc64"],
981 "toolchain_file": ["toolchain_GNUARM.cmake",
982 "toolchain_ARMCLANG.cmake"],
983 "lib_model": [False],
984 "isolation_level": ["1", "2"],
985 "test_regression": [True],
986 "test_psa_api": ["OFF"],
987 "cmake_build_type": ["Release"],
988 "with_otp": ["off"],
989 "with_bl2": [False],
990 "with_ns": [True],
991 "profile": [""],
992 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800993 "extra_params": [""]
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800994 },
995 "common_params": _common_tfm_builder_cfg,
996 "invalid": _common_tfm_invalid_configs + []
997 }
998
Arthur Shef3657742021-09-07 14:23:18 -0700999config_nightly_LPCXPRESSO55S69 = {"seed_params": {
1000 "tfm_platform": ["nxp/lpcxpresso55s69"],
1001 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001002 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001003 "isolation_level": ["2"],
1004 "test_regression": [True, False],
1005 "test_psa_api": ["OFF"],
1006 "cmake_build_type": ["Relwithdebinfo"],
1007 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -08001008 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001009 "with_ns": [True],
1010 "profile": ["profile_medium"],
1011 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001012 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +08001013 },
1014 "common_params": _common_tfm_builder_cfg,
1015 "invalid": _common_tfm_invalid_configs + []
1016 }
1017
1018config_nightly_FP = {"seed_params": {
1019 "tfm_platform": ["arm/musca_s1"],
Feder Liang357b1602022-01-11 16:47:49 +08001020 "toolchain_file": ["toolchain_GNUARM.cmake"],
Feder Liang567e8c22021-10-26 14:16:21 +08001021 "lib_model": [False],
1022 "isolation_level": ["1", "2"],
1023 "test_regression": [True],
1024 "test_psa_api": ["OFF"],
1025 "cmake_build_type": ["Debug"],
1026 "with_otp": ["off"],
1027 "with_bl2": [True],
1028 "with_ns": [True],
1029 "profile": [""],
1030 "partition_ps": ["ON"],
Feder Liang357b1602022-01-11 16:47:49 +08001031 "extra_params": ["FPSOFT", "FPHARD", "FPHARD_LOFF"]
Arthur Shef3657742021-09-07 14:23:18 -07001032 },
1033 "common_params": _common_tfm_builder_cfg,
1034 "invalid": _common_tfm_invalid_configs + []
1035 }
1036
Karl Zhang14573bc2020-06-08 09:23:21 +08001037config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001038 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +08001039 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001040 "toolchain_file": ["toolchain_GNUARM.cmake",
1041 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001042 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +08001043 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001044 "test_regression": [True],
1045 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001046 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001047 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001048 "with_bl2": [True],
1049 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001050 "profile": ["", "profile_small", "profile_medium"],
1051 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001052 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001053 },
1054 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001055 "valid": [
Summer Qin3c2b5722021-05-26 10:43:45 +08001056 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001057 True, "1", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001058 "off", True, True, "", "ON", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001059 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001060 False, "2", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001061 "off", True, True, "", "ON", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001062 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001063 False, "3", False, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001064 "off", True, True, "", "ON", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001065 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001066 False, "2", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001067 "off", True, True, "profile_medium", "ON", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001068 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001069 False, "3", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001070 "off", True, True, "profile_large", "ON", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001071 # AN521_GNUARM_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001072 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
1073 False, "2", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001074 "off", True, True, "profile_medium", "OFF", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001075 # MUSCA_B1_GNUARM_LIB_1_REG_Minsizerel_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001076 ("arm/musca_b1/sse_200", "toolchain_GNUARM.cmake",
1077 True, "1", True, "OFF", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001078 "off", True, True, "", "ON", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001079 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001080 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake",
1081 False, "1", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001082 "off", True, True, "", "ON", "CRYPTO_OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001083 # stm32l562e_dk_GNUARM_IPC_2_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001084 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
Xinyu Zhang7c8d3372021-12-22 11:15:42 +08001085 False, "2", False, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001086 "off", True, True, "", "ON", "CRYPTO_ON"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001087 # stm32l562e_dk_GNUARM_IPC_3_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001088 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
1089 False, "3", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001090 "off", True, True, "", "ON", "CRYPTO_OFF"),
1091 # MUSCA_S1_GNUARM_IPC_2_REG_Release_BL2_NS_FPHARD
Feder Liang567e8c22021-10-26 14:16:21 +08001092 ("arm/musca_s1", "toolchain_GNUARM.cmake",
1093 False, "2", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001094 "off", True, True, "", "ON", "FPHARD"),
Xinyu Zhangce8eb082022-02-09 16:28:54 +08001095 # MUSCA_S1_GNUARM_IPC_1_REG_Release_BL2_NS_CC_DRIVER_PSA
1096 ("arm/musca_s1", "toolchain_GNUARM.cmake",
1097 False, "1", True, "OFF", "Release",
1098 "off", True, True, "", "ON", "CC_DRIVER_PSA"),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001099 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001100 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001101 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +08001102 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001103 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001104 # valid configs supported by TF-M but not needed in per-patch
1105 ("*", "*", "*", "1", "*", "*", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001106 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001107 ("*", "*", "*", "1", "*", "*", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001108 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001109 ("*", "*", "*", "2", "*", "*", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001110 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001111 ("*", "*", "*", "2", "*", "*", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001112 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001113 ("*", "*", "*", "3", "*", "*", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001114 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001115 ("*", "*", "*", "3", "*", "*", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001116 "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001117 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001118 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001119 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001120 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001121 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001122 "*", "*", "*", "*", "profile_medium", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001123 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001124 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001125 ("*", "toolchain_GNUARM.cmake", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001126 "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001127 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001128 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001129 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001130 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001131 ]
1132 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001133
Karl Zhang14573bc2020-06-08 09:23:21 +08001134config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001135 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001136 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001137 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001138 "isolation_level": ["1", "2"],
1139 "test_regression": [True],
1140 "test_psa_api": ["OFF"],
1141 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001142 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001143 "with_bl2": [True],
1144 "with_ns": [True, False],
1145 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001146 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001147 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001148 },
1149 "common_params": _common_tfm_builder_cfg,
1150 "invalid": _common_tfm_invalid_configs + []
1151 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001152
1153# Configure build manager to build several combinations
1154config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001155 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001156 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001157 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001158 "isolation_level": ["2"],
1159 "test_regression": [False],
1160 "test_psa_api": ["IPC",
1161 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001162 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +08001163 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001164 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001165 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001166 "with_bl2": [True],
1167 "with_ns": [True, False],
1168 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001169 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001170 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001171 },
1172 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001173 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001174 }
1175
Karl Zhang14573bc2020-06-08 09:23:21 +08001176config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001177 "tfm_platform": ["cypress/psoc64"],
1178 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001179 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001180 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001181 "test_regression": [True],
1182 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001183 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001184 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001185 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001186 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001187 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001188 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001189 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001190 },
1191 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001192 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001193 }
1194
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001195config_cov_an519 = {"seed_params": {
1196 "tfm_platform": ["arm/mps2/an519"],
1197 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001198 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001199 "isolation_level": ["1", "2", "3"],
1200 "test_regression": [True, False],
1201 "test_psa_api": ["OFF"],
1202 "cmake_build_type": ["Debug", "Release"],
1203 "with_otp": ["off"],
1204 "with_bl2": [True],
1205 "with_ns": [True],
1206 "profile": ["", "profile_small", "profile_medium"],
1207 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001208 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001209 },
1210 "common_params": _common_tfm_builder_cfg,
1211 "invalid": _common_tfm_invalid_configs + []
1212 }
1213
1214config_cov_an521 = {"seed_params": {
1215 "tfm_platform": ["arm/mps2/an521"],
1216 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001217 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001218 "isolation_level": ["1", "2", "3"],
1219 "test_regression": [True, False],
1220 "test_psa_api": ["OFF"],
1221 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1222 "with_otp": ["off"],
1223 "with_bl2": [True],
1224 "with_ns": [True],
1225 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1226 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001227 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001228 },
1229 "common_params": _common_tfm_builder_cfg,
1230 "invalid": _common_tfm_invalid_configs + []
1231 }
1232
Minos Galanakisea421232019-06-20 17:11:28 +01001233# Configruation used for document building
1234config_doxygen = {"common_params": {
1235 "config_type": "tf-m_documents",
1236 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001237 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001238 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001239 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001240 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001241 "cmake --build ./ -- docs"]},
1242 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1243 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001244 r'/(\w+\.(?:html|md|pdf))$',
1245 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001246 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001247 }
1248
Karl Zhangaff558a2020-05-15 14:28:23 +01001249# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +01001250config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001251 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovskyfa0b1922022-02-26 11:42:55 +03001252 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001253 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001254 "isolation_level": ["1"],
1255 "test_regression": [False],
1256 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001257 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001258 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001259 "with_bl2": [True],
1260 "with_ns": [True],
1261 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001262 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001263 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +01001264 },
1265 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001266 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001267 }
1268
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001269config_debug_PSA_API = {"seed_params": {
1270 "tfm_platform": ["arm/mps2/an521"],
1271 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
1272 "lib_model": [True],
1273 "isolation_level": ["1"],
1274 "test_regression": [False],
Paul Sokolovsky7bd338c2022-01-30 14:14:39 +03001275 "test_psa_api": ["CRYPTO",
1276 "INITIAL_ATTESTATION",
Paul Sokolovskyb298d7b2022-02-02 23:27:44 +03001277 "STORAGE",
1278 "IPC"],
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001279 "cmake_build_type": ["Debug"],
1280 "with_otp": ["off"],
1281 "with_bl2": [True],
1282 "with_ns": [True],
1283 "profile": [""],
1284 "partition_ps": ["ON"],
1285 "extra_params": [""]
1286 },
1287 "common_params": _common_tfm_builder_cfg,
1288 "invalid": _common_tfm_invalid_configs + []
1289 }
1290
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001291config_debug_PSA_API_nolib = {"seed_params": {
1292 "tfm_platform": ["arm/mps2/an521"],
1293 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
1294 "lib_model": [False],
1295 "isolation_level": ["1"],
1296 "test_regression": [False],
1297 "test_psa_api": ["CRYPTO",
1298 "INITIAL_ATTESTATION",
1299 "STORAGE",
1300 "IPC"],
1301 "cmake_build_type": ["Debug"],
1302 "with_otp": ["off"],
1303 "with_bl2": [True],
1304 "with_ns": [True],
1305 "profile": [""],
1306 "partition_ps": ["ON"],
1307 "extra_params": [""]
1308 },
1309 "common_params": _common_tfm_builder_cfg,
1310 "invalid": _common_tfm_invalid_configs + []
1311 }
1312
Dean Birch4c6ad622020-03-13 11:28:03 +00001313# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001314config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001315 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001316 "toolchain_file": ["toolchain_ARMCLANG.cmake",
1317 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001318 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001319 "isolation_level": ["1", "2"],
1320 "test_regression": [True, False],
1321 "test_psa_api": ["OFF"],
1322 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001323 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001324 "with_bl2": [True, False],
1325 "with_ns": [True],
1326 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001327 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001328 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001329 },
1330 "common_params": _common_tfm_builder_cfg,
1331 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001332 ("*", "toolchain_ARMCLANG.cmake", False, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001333 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001334 ("*", "toolchain_ARMCLANG.cmake", True, "1", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001335 "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001336 ]
1337 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001338
Xinyu Zhangb708f572020-09-15 11:43:46 +08001339config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001340 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001341 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001342 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001343 "isolation_level": ["1", "2"],
1344 "test_regression": [True],
1345 "test_psa_api": ["OFF"],
1346 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001347 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001348 "with_bl2": [True, False],
1349 "with_ns": [True, False],
1350 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001351 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001352 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001353 },
1354 "common_params": _common_tfm_builder_cfg,
1355 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001356 ("arm/mps2/an521", "toolchain_GNUARM.cmake", False, "2", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001357 "*", "*", True, "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001358 ]
1359 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001360
Xinyu Zhang38b76742021-11-11 13:57:56 +08001361config_an547 = {"seed_params": {
1362 "tfm_platform": ["arm/mps3/an547"],
1363 "toolchain_file": ["toolchain_GNUARM.cmake"],
1364 "lib_model": [False],
1365 "isolation_level": ["1"],
1366 "test_regression": [False],
1367 "test_psa_api": ["OFF"],
1368 "cmake_build_type": ["Debug"],
1369 "with_otp": ["off"],
1370 "with_bl2": [True],
1371 "with_ns": [False],
1372 "profile": [""],
1373 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001374 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001375 },
1376 "common_params": _common_tfm_builder_cfg,
1377 "invalid": _common_tfm_invalid_configs + []
1378 }
1379
1380config_corstone_polaris = {"seed_params": {
1381 "tfm_platform": ["arm/mps3/corstone_polaris"],
1382 "toolchain_file": ["toolchain_GNUARM.cmake"],
1383 "lib_model": [False],
1384 "isolation_level": ["1"],
1385 "test_regression": [False],
1386 "test_psa_api": ["OFF"],
1387 "cmake_build_type": ["Debug"],
1388 "with_otp": ["off"],
1389 "with_bl2": [True],
1390 "with_ns": [False],
1391 "profile": [""],
1392 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001393 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001394 },
1395 "common_params": _common_tfm_builder_cfg,
1396 "invalid": _common_tfm_invalid_configs + []
1397 }
1398
1399config_bl5340 = {"seed_params": {
1400 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
1401 "toolchain_file": ["toolchain_GNUARM.cmake"],
1402 "lib_model": [False],
1403 "isolation_level": ["1"],
1404 "test_regression": [False],
1405 "test_psa_api": ["OFF"],
1406 "cmake_build_type": ["Debug"],
1407 "with_otp": ["off"],
1408 "with_bl2": [True],
1409 "with_ns": [False],
1410 "profile": [""],
1411 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001412 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001413 },
1414 "common_params": _common_tfm_builder_cfg,
1415 "invalid": _common_tfm_invalid_configs + []
1416 }
1417
1418config_nrf5340dk = {"seed_params": {
1419 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
1420 "toolchain_file": ["toolchain_GNUARM.cmake"],
1421 "lib_model": [False],
1422 "isolation_level": ["1"],
1423 "test_regression": [False],
1424 "test_psa_api": ["OFF"],
1425 "cmake_build_type": ["Debug"],
1426 "with_otp": ["off"],
1427 "with_bl2": [True],
1428 "with_ns": [False],
1429 "profile": [""],
1430 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001431 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001432 },
1433 "common_params": _common_tfm_builder_cfg,
1434 "invalid": _common_tfm_invalid_configs + []
1435 }
1436
1437config_nrf9160dk = {"seed_params": {
1438 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
1439 "toolchain_file": ["toolchain_GNUARM.cmake"],
1440 "lib_model": [False],
1441 "isolation_level": ["1"],
1442 "test_regression": [False],
1443 "test_psa_api": ["OFF"],
1444 "cmake_build_type": ["Debug"],
1445 "with_otp": ["off"],
1446 "with_bl2": [True],
1447 "with_ns": [False],
1448 "profile": [""],
1449 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001450 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001451 },
1452 "common_params": _common_tfm_builder_cfg,
1453 "invalid": _common_tfm_invalid_configs + []
1454 }
1455
1456config_m2351 = {"seed_params": {
1457 "tfm_platform": ["nuvoton/m2351"],
1458 "toolchain_file": ["toolchain_GNUARM.cmake"],
1459 "lib_model": [False],
1460 "isolation_level": ["1"],
1461 "test_regression": [False],
1462 "test_psa_api": ["OFF"],
1463 "cmake_build_type": ["Release"],
1464 "with_otp": ["off"],
1465 "with_bl2": [True],
1466 "with_ns": [False],
1467 "profile": [""],
1468 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001469 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001470 },
1471 "common_params": _common_tfm_builder_cfg,
1472 "invalid": _common_tfm_invalid_configs + []
1473 }
1474
1475config_m2354 = {"seed_params": {
1476 "tfm_platform": ["nuvoton/m2354"],
1477 "toolchain_file": ["toolchain_GNUARM.cmake"],
1478 "lib_model": [False],
1479 "isolation_level": ["1"],
1480 "test_regression": [False],
1481 "test_psa_api": ["OFF"],
1482 "cmake_build_type": ["Debug"],
1483 "with_otp": ["off"],
1484 "with_bl2": [True],
1485 "with_ns": [False],
1486 "profile": [""],
1487 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001488 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001489 },
1490 "common_params": _common_tfm_builder_cfg,
1491 "invalid": _common_tfm_invalid_configs + []
1492 }
1493
1494config_b_u585i_iot02a = {"seed_params": {
1495 "tfm_platform": ["stm/b_u585i_iot02a"],
1496 "toolchain_file": ["toolchain_GNUARM.cmake"],
1497 "lib_model": [False],
1498 "isolation_level": ["1"],
1499 "test_regression": [False],
1500 "test_psa_api": ["OFF"],
1501 "cmake_build_type": ["Release"],
1502 "with_otp": ["off"],
1503 "with_bl2": [True],
1504 "with_ns": [False],
1505 "profile": [""],
1506 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001507 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001508 },
1509 "common_params": _common_tfm_builder_cfg,
1510 "invalid": _common_tfm_invalid_configs + []
1511 }
1512
1513config_nucleo_l552ze_q = {"seed_params": {
1514 "tfm_platform": ["stm/nucleo_l552ze_q"],
1515 "toolchain_file": ["toolchain_GNUARM.cmake"],
1516 "lib_model": [False],
1517 "isolation_level": ["1"],
1518 "test_regression": [False],
1519 "test_psa_api": ["OFF"],
1520 "cmake_build_type": ["Release"],
1521 "with_otp": ["off"],
1522 "with_bl2": [True],
1523 "with_ns": [False],
1524 "profile": [""],
1525 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001526 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001527 },
1528 "common_params": _common_tfm_builder_cfg,
1529 "invalid": _common_tfm_invalid_configs + []
1530 }
1531
Karl Zhangaff558a2020-05-15 14:28:23 +01001532_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001533 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001534 "tfm_test": config_tfm_test,
1535 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001536 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +01001537 "tfm_test_otp": config_tfm_test_OTP,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001538 "tfm_nsce": config_nsce,
1539 "tfm_mmio": config_mmio,
Karl Zhangaff558a2020-05-15 14:28:23 +01001540 "psa_api": config_PSA_API,
1541 "psa_api_otp": config_PSA_API_OTP,
1542 "psa_ff": config_PSA_FF,
1543 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001544 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001545 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001546 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001547 "tfm_fp": config_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001548
1549 #nightly test group
1550 "nightly_test": config_nightly,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001551 "nightly_nsce": config_nsce,
1552 "nightly_mmio": config_mmio,
Karl Zhang14573bc2020-06-08 09:23:21 +08001553 "nightly_profile": config_nightly_profile,
1554 "nightly_psa_api": config_nightly_PSA_API,
1555 "nightly_ff": config_nightly_PSA_FF,
1556 "nightly_otp": config_nightly_OTP,
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001557 "nightly_psoc64": config_nightly_psoc64,
Xinyu Zhang331c47c2021-12-24 10:18:02 +08001558 "nightly_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001559 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001560 "nightly_fp":config_nightly_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001561
1562 #per patch test group
1563 "pp_test": config_pp_test,
1564 "pp_OTP": config_pp_OTP,
1565 "pp_PSA_API": config_pp_PSA_API,
1566 "pp_psoc64": config_pp_PSoC64,
1567
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001568 #code coverage test group
1569 "coverage_an519": config_cov_an519,
1570 "coverage_an521": config_cov_an521,
1571
Xinyu Zhang38b76742021-11-11 13:57:56 +08001572 #extra build group
1573 "arm_corstone1000": config_corstone1000,
1574 "arm_an547": config_an547,
1575 "arm_corstone_polaris": config_corstone_polaris,
1576 "cypress_psoc64": config_PSOC64,
1577 "laird_bl5340": config_bl5340,
1578 "nordic_nrf5340dk": config_nrf5340dk,
1579 "nordic_nrf9160dk": config_nrf9160dk,
1580 "nuvoton_m2351": config_m2351,
1581 "nuvoton_m2354": config_m2354,
1582 "nxp_lpcxpresso55s69": config_LPCXPRESSO55S69,
1583 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1584 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1585 "stm_stm32l562e_dk": config_STM32L562E_DK,
1586
Karl Zhang14573bc2020-06-08 09:23:21 +08001587 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001588 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001589
1590 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001591 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001592 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001593 "an521_psa_api": config_AN521_PSA_API,
1594 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001595 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001596 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001597 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001598 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001599 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001600 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001601 "ipc": config_IPC,
1602 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001603 "debug": config_debug,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001604 "debug_PSA_API": config_debug_PSA_API,
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001605 "debug_PSA_API_nolib": config_debug_PSA_API_nolib,
Karl Zhangaff558a2020-05-15 14:28:23 +01001606 "release": config_release,
Karl Zhang14573bc2020-06-08 09:23:21 +08001607
1608 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001609 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001610 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001611
1612if __name__ == '__main__':
1613 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001614
Minos Galanakisea421232019-06-20 17:11:28 +01001615 # Default behavior is to export refference config when called
1616 _dir = os.getcwd()
1617 from utils import save_json
1618 for _cname, _cfg in _builtin_configs.items():
1619 _fname = os.path.join(_dir, _cname + ".json")
1620 print("Exporting config %s" % _fname)
1621 save_json(_fname, _cfg)