blob: e233707625b945d4e75649fd60c8ce4d3593d149 [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"],
David Huda27ae72022-03-28 15:32:19 +0800616 "lib_model": [False],
617 "isolation_level": ["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],
David Huda27ae72022-03-28 15:32:19 +0800624 "profile": ["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
David Huda27ae72022-03-28 15:32:19 +0800640config_tfm_profile_s = {"seed_params": {
641 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521"],
642 "toolchain_file": ["toolchain_ARMCLANG.cmake",
643 "toolchain_GNUARM.cmake"],
644 "lib_model": [True],
645 "isolation_level": ["1"],
646 "test_regression": [True, False],
647 "test_psa_api": ["OFF"],
648 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
649 "with_otp": ["OFF"],
650 "with_bl2": [True],
651 "with_ns": [True],
652 "profile": ["profile_small"],
653 "partition_ps": ["OFF"],
654 "extra_params": [""]
655 },
656 "common_params": _common_tfm_builder_cfg,
657 "valid": [
658 # Profile Small also supports SFN model
659 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "*",
660 "*", "SFN_ENABLE")
661 ],
662 "invalid": _common_tfm_invalid_configs + [
663 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
664 "*", "Minsizerel", "*", "*", "*", "*", "*", "*")
665 ]
666 }
667
Karl Zhangaff558a2020-05-15 14:28:23 +0100668config_tfm_test_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800669 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800670 "toolchain_file": ["toolchain_ARMCLANG.cmake",
671 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800672 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800673 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800674 "test_regression": [True, False],
675 "test_psa_api": ["OFF"],
676 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800677 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800678 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800679 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800680 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800681 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800682 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800683 },
684 "common_params": _common_tfm_builder_cfg,
685 "invalid": _common_tfm_invalid_configs + []
686 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100687
Minos Galanakisea421232019-06-20 17:11:28 +0100688config_MUSCA_B1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800689 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800690 "toolchain_file": ["toolchain_ARMCLANG.cmake",
691 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800692 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800693 "isolation_level": ["1", "2"],
694 "test_regression": [True, False],
695 "test_psa_api": ["OFF"],
696 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800697 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800698 "with_bl2": [True],
699 "with_ns": [True, False],
700 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800701 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800702 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800703 },
704 "common_params": _common_tfm_builder_cfg,
705 "invalid": _common_tfm_invalid_configs + []
706 }
Minos Galanakisea421232019-06-20 17:11:28 +0100707
Mark Horvath8d281cd2020-12-07 15:20:26 +0100708config_MUSCA_B1_SE = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800709 "tfm_platform": ["arm/musca_b1/secure_enclave"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100710 "toolchain_file": ["toolchain_ARMCLANG.cmake",
711 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800712 "lib_model": [False],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100713 "isolation_level": ["1"],
714 "test_regression": [False],
715 "test_psa_api": ["OFF"],
716 "cmake_build_type": ["Debug", "Release"],
717 "with_otp": ["off"],
718 "with_bl2": [True],
719 "with_ns": [False],
720 "profile": [""],
721 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800722 "extra_params": [""]
Mark Horvath8d281cd2020-12-07 15:20:26 +0100723 },
724 "common_params": _common_tfm_builder_cfg,
725 "invalid": _common_tfm_invalid_configs + []
726 }
727
Karl Zhangeffed972020-06-30 15:48:01 +0800728config_MUSCA_S1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800729 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800730 "toolchain_file": ["toolchain_ARMCLANG.cmake",
731 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800732 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800733 "isolation_level": ["1", "2"],
734 "test_regression": [True, False],
735 "test_psa_api": ["OFF"],
736 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800737 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800738 "with_bl2": [True],
739 "with_ns": [True, False],
740 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800741 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800742 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800743 },
744 "common_params": _common_tfm_builder_cfg,
745 "invalid": _common_tfm_invalid_configs + []
746 }
Karl Zhangeffed972020-06-30 15:48:01 +0800747
Karl Zhangaff558a2020-05-15 14:28:23 +0100748config_release = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800749 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
750 "arm/musca_b1/sse_200", "arm/musca_s1",
751 "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800752 "toolchain_file": ["toolchain_ARMCLANG.cmake",
753 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800754 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800755 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800756 "test_regression": [True, False],
757 "test_psa_api": ["OFF"],
758 "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, False],
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": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800765 },
766 "common_params": _common_tfm_builder_cfg,
767 "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 ]
771 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100772
773# Configure build manager to build several combinations
774config_AN521_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800775 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
776 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800777 "toolchain_file": ["toolchain_GNUARM.cmake",
778 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800779 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800780 "isolation_level": ["1", "2"],
781 "test_regression": [False],
782 "test_psa_api": ["IPC",
783 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800784 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800785 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800786 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800787 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800788 "with_bl2": [True],
789 "with_ns": [True, False],
790 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800791 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800792 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100793 },
794 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800795 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800796 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800797 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800798 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100799 }
800
Karl Zhangaff558a2020-05-15 14:28:23 +0100801config_AN521_PSA_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800802 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
803 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800804 "toolchain_file": ["toolchain_GNUARM.cmake",
805 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800806 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800807 "isolation_level": ["1", "2"],
808 "test_regression": [False],
809 "test_psa_api": ["IPC"],
810 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800811 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800812 "with_bl2": [True],
813 "with_ns": [True, False],
814 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800815 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800816 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100817 },
818 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800819 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800820 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800821 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800822 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100823 }
824
Karl Zhang14573bc2020-06-08 09:23:21 +0800825config_nightly = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800826 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
827 "arm/musca_b1/sse_200", "arm/musca_s1",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800828 "arm/mps3/an524", "arm/musca_b1/secure_enclave"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800829 "toolchain_file": ["toolchain_GNUARM.cmake",
830 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800831 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800832 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800833 "test_regression": [True, False],
834 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800835 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800836 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800837 "with_bl2": [True],
838 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800839 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800840 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800841 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800842 },
843 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang6d2dd7c2022-02-07 17:22:55 +0800844 "valid": [
845 # MUSCA_B1_GNUARM_IPC_1_REG_Release_BL2_NS_CC_DRIVER_PSA
846 ("arm/musca_b1/sse_200", "toolchain_GNUARM.cmake",
847 False, "1", True, "OFF", "Release",
848 "off", True, True, "", "ON", "CC_DRIVER_PSA"),
849 # MUSCA_S1_GNUARM_IPC_1_REG_Release_BL2_NS_CC_DRIVER_PSA
850 ("arm/musca_s1", "toolchain_GNUARM.cmake",
851 False, "1", True, "OFF", "Release",
852 "off", True, True, "", "ON", "CC_DRIVER_PSA"),
853 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800854 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800855 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800856 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800857 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800858 "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800859 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Feder Liang357b1602022-01-11 16:47:49 +0800860 True, "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800861 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800862 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800863 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800864 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800865 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800866 "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800867 ("arm/musca_s1", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800868 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800869 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800870 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800871 ]
872 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800873
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800874config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800875 "tfm_platform": ["arm/mps2/an521"],
876 "toolchain_file": ["toolchain_GNUARM.cmake",
877 "toolchain_ARMCLANG.cmake"],
878 "lib_model": [True, False],
879 "isolation_level": ["1", "2", "3"],
880 "test_regression": [True],
881 "test_psa_api": ["OFF"],
882 "cmake_build_type": ["Debug"],
883 "with_otp": ["off"],
884 "with_bl2": [True],
885 "with_ns": [True],
886 "profile": [""],
887 "partition_ps": ["ON"],
Xinyu Zhang67612992021-12-20 14:11:27 +0800888 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800889 },
890 "common_params": _common_tfm_builder_cfg,
891 "invalid": _common_tfm_invalid_configs + []
892 }
893
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800894config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800895 "tfm_platform": ["arm/mps2/an521"],
896 "toolchain_file": ["toolchain_GNUARM.cmake",
897 "toolchain_ARMCLANG.cmake"],
898 "lib_model": [False],
899 "isolation_level": ["1"],
900 "test_regression": [True],
901 "test_psa_api": ["OFF"],
902 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
903 "with_otp": ["off"],
904 "with_bl2": [True],
905 "with_ns": [True],
906 "profile": [""],
907 "partition_ps": ["ON"],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800908 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800909 },
910 "common_params": _common_tfm_builder_cfg,
911 "invalid": _common_tfm_invalid_configs + []
912 }
913
Karl Zhang14573bc2020-06-08 09:23:21 +0800914config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800915 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
916 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800917 "toolchain_file": ["toolchain_ARMCLANG.cmake",
918 "toolchain_GNUARM.cmake"],
David Huda27ae72022-03-28 15:32:19 +0800919 "lib_model": [False],
920 "isolation_level": ["2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800921 "test_regression": [True, False],
922 "test_psa_api": ["OFF"],
923 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800924 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800925 "with_bl2": [True],
926 "with_ns": [True],
David Huda27ae72022-03-28 15:32:19 +0800927 "profile": ["profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800928 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800929 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800930 },
931 "common_params": _common_tfm_builder_cfg,
932 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800933 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800934 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800935 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800936 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800937 "*", "profile_large", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800938 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800939 "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800940 ]
941 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800942
Karl Zhang14573bc2020-06-08 09:23:21 +0800943config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800944 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
945 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800946 "toolchain_file": ["toolchain_GNUARM.cmake",
947 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800948 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800949 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800950 "test_regression": [False],
951 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800952 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800953 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800954 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800955 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800956 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800957 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800958 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800959 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800960 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800961 },
962 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800963 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800964 }
965
Karl Zhang14573bc2020-06-08 09:23:21 +0800966config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800967 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
968 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800969 "toolchain_file": ["toolchain_GNUARM.cmake",
970 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800971 "lib_model": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800972 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800973 "test_regression": [False],
974 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800975 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800976 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800977 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800978 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800979 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800980 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800981 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800982 },
983 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800984 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800985 }
986
Karl Zhang14573bc2020-06-08 09:23:21 +0800987config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800988 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800989 "toolchain_file": ["toolchain_GNUARM.cmake",
990 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800991 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800992 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800993 "test_regression": [True],
994 "test_psa_api": ["OFF"],
995 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800996 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800997 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800998 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800999 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001000 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001001 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001002 },
1003 "common_params": _common_tfm_builder_cfg,
1004 "invalid": _common_tfm_invalid_configs + []
1005 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001006
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001007config_nightly_psoc64 = {"seed_params": {
1008 "tfm_platform": ["cypress/psoc64"],
1009 "toolchain_file": ["toolchain_GNUARM.cmake",
1010 "toolchain_ARMCLANG.cmake"],
1011 "lib_model": [False],
1012 "isolation_level": ["1", "2"],
1013 "test_regression": [True],
1014 "test_psa_api": ["OFF"],
1015 "cmake_build_type": ["Release"],
1016 "with_otp": ["off"],
1017 "with_bl2": [False],
1018 "with_ns": [True],
1019 "profile": [""],
1020 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001021 "extra_params": [""]
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001022 },
1023 "common_params": _common_tfm_builder_cfg,
1024 "invalid": _common_tfm_invalid_configs + []
1025 }
1026
Arthur Shef3657742021-09-07 14:23:18 -07001027config_nightly_LPCXPRESSO55S69 = {"seed_params": {
1028 "tfm_platform": ["nxp/lpcxpresso55s69"],
1029 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001030 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001031 "isolation_level": ["2"],
1032 "test_regression": [True, False],
1033 "test_psa_api": ["OFF"],
1034 "cmake_build_type": ["Relwithdebinfo"],
1035 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -08001036 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001037 "with_ns": [True],
1038 "profile": ["profile_medium"],
1039 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001040 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +08001041 },
1042 "common_params": _common_tfm_builder_cfg,
1043 "invalid": _common_tfm_invalid_configs + []
1044 }
1045
1046config_nightly_FP = {"seed_params": {
1047 "tfm_platform": ["arm/musca_s1"],
Feder Liang357b1602022-01-11 16:47:49 +08001048 "toolchain_file": ["toolchain_GNUARM.cmake"],
Feder Liang567e8c22021-10-26 14:16:21 +08001049 "lib_model": [False],
1050 "isolation_level": ["1", "2"],
1051 "test_regression": [True],
1052 "test_psa_api": ["OFF"],
1053 "cmake_build_type": ["Debug"],
1054 "with_otp": ["off"],
1055 "with_bl2": [True],
1056 "with_ns": [True],
1057 "profile": [""],
1058 "partition_ps": ["ON"],
Feder Liang357b1602022-01-11 16:47:49 +08001059 "extra_params": ["FPSOFT", "FPHARD", "FPHARD_LOFF"]
Arthur Shef3657742021-09-07 14:23:18 -07001060 },
1061 "common_params": _common_tfm_builder_cfg,
1062 "invalid": _common_tfm_invalid_configs + []
1063 }
1064
Karl Zhang14573bc2020-06-08 09:23:21 +08001065config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001066 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +08001067 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001068 "toolchain_file": ["toolchain_GNUARM.cmake",
1069 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001070 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +08001071 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001072 "test_regression": [True],
1073 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001074 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001075 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001076 "with_bl2": [True],
1077 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001078 "profile": ["", "profile_small", "profile_medium"],
1079 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001080 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001081 },
1082 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001083 "valid": [
Summer Qin3c2b5722021-05-26 10:43:45 +08001084 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001085 True, "1", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001086 "off", True, True, "", "ON", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001087 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001088 False, "2", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001089 "off", True, True, "", "ON", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001090 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001091 False, "3", False, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001092 "off", True, True, "", "ON", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001093 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001094 False, "2", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001095 "off", True, True, "profile_medium", "ON", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001096 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001097 False, "3", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001098 "off", True, True, "profile_large", "ON", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001099 # AN521_GNUARM_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001100 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
1101 False, "2", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001102 "off", True, True, "profile_medium", "OFF", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001103 # MUSCA_B1_GNUARM_LIB_1_REG_Minsizerel_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001104 ("arm/musca_b1/sse_200", "toolchain_GNUARM.cmake",
1105 True, "1", True, "OFF", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001106 "off", True, True, "", "ON", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001107 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001108 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake",
1109 False, "1", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001110 "off", True, True, "", "ON", "CRYPTO_OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001111 # stm32l562e_dk_GNUARM_IPC_2_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001112 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
Xinyu Zhang7c8d3372021-12-22 11:15:42 +08001113 False, "2", False, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001114 "off", True, True, "", "ON", "CRYPTO_ON"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001115 # stm32l562e_dk_GNUARM_IPC_3_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001116 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
1117 False, "3", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001118 "off", True, True, "", "ON", "CRYPTO_OFF"),
1119 # MUSCA_S1_GNUARM_IPC_2_REG_Release_BL2_NS_FPHARD
Feder Liang567e8c22021-10-26 14:16:21 +08001120 ("arm/musca_s1", "toolchain_GNUARM.cmake",
1121 False, "2", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001122 "off", True, True, "", "ON", "FPHARD"),
Xinyu Zhangce8eb082022-02-09 16:28:54 +08001123 # MUSCA_S1_GNUARM_IPC_1_REG_Release_BL2_NS_CC_DRIVER_PSA
1124 ("arm/musca_s1", "toolchain_GNUARM.cmake",
1125 False, "1", True, "OFF", "Release",
1126 "off", True, True, "", "ON", "CC_DRIVER_PSA"),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001127 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001128 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001129 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +08001130 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001131 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001132 # valid configs supported by TF-M but not needed in per-patch
1133 ("*", "*", "*", "1", "*", "*", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001134 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001135 ("*", "*", "*", "1", "*", "*", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001136 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001137 ("*", "*", "*", "2", "*", "*", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001138 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001139 ("*", "*", "*", "2", "*", "*", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001140 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001141 ("*", "*", "*", "3", "*", "*", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001142 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001143 ("*", "*", "*", "3", "*", "*", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001144 "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001145 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001146 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001147 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001148 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001149 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001150 "*", "*", "*", "*", "profile_medium", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001151 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001152 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001153 ("*", "toolchain_GNUARM.cmake", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001154 "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001155 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001156 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001157 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001158 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001159 ]
1160 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001161
Karl Zhang14573bc2020-06-08 09:23:21 +08001162config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001163 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001164 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001165 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001166 "isolation_level": ["1", "2"],
1167 "test_regression": [True],
1168 "test_psa_api": ["OFF"],
1169 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001170 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001171 "with_bl2": [True],
1172 "with_ns": [True, False],
1173 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001174 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001175 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001176 },
1177 "common_params": _common_tfm_builder_cfg,
1178 "invalid": _common_tfm_invalid_configs + []
1179 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001180
1181# Configure build manager to build several combinations
1182config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001183 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001184 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001185 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001186 "isolation_level": ["2"],
1187 "test_regression": [False],
1188 "test_psa_api": ["IPC",
1189 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001190 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +08001191 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001192 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001193 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001194 "with_bl2": [True],
1195 "with_ns": [True, False],
1196 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001197 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001198 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001199 },
1200 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001201 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001202 }
1203
Karl Zhang14573bc2020-06-08 09:23:21 +08001204config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001205 "tfm_platform": ["cypress/psoc64"],
1206 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001207 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001208 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001209 "test_regression": [True],
1210 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001211 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001212 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001213 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001214 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001215 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001216 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001217 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001218 },
1219 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001220 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001221 }
1222
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001223config_cov_an519 = {"seed_params": {
1224 "tfm_platform": ["arm/mps2/an519"],
1225 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001226 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001227 "isolation_level": ["1", "2", "3"],
1228 "test_regression": [True, False],
1229 "test_psa_api": ["OFF"],
1230 "cmake_build_type": ["Debug", "Release"],
1231 "with_otp": ["off"],
1232 "with_bl2": [True],
1233 "with_ns": [True],
1234 "profile": ["", "profile_small", "profile_medium"],
1235 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001236 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001237 },
1238 "common_params": _common_tfm_builder_cfg,
1239 "invalid": _common_tfm_invalid_configs + []
1240 }
1241
1242config_cov_an521 = {"seed_params": {
1243 "tfm_platform": ["arm/mps2/an521"],
1244 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001245 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001246 "isolation_level": ["1", "2", "3"],
1247 "test_regression": [True, False],
1248 "test_psa_api": ["OFF"],
1249 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1250 "with_otp": ["off"],
1251 "with_bl2": [True],
1252 "with_ns": [True],
1253 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1254 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001255 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001256 },
1257 "common_params": _common_tfm_builder_cfg,
1258 "invalid": _common_tfm_invalid_configs + []
1259 }
1260
Minos Galanakisea421232019-06-20 17:11:28 +01001261# Configruation used for document building
1262config_doxygen = {"common_params": {
1263 "config_type": "tf-m_documents",
1264 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001265 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001266 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001267 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001268 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001269 "cmake --build ./ -- docs"]},
1270 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1271 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001272 r'/(\w+\.(?:html|md|pdf))$',
1273 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001274 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001275 }
1276
Karl Zhangaff558a2020-05-15 14:28:23 +01001277# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +01001278config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001279 "tfm_platform": ["arm/mps2/an521"],
Paul Sokolovskyfa0b1922022-02-26 11:42:55 +03001280 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001281 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001282 "isolation_level": ["1"],
1283 "test_regression": [False],
1284 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001285 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001286 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001287 "with_bl2": [True],
1288 "with_ns": [True],
1289 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001290 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001291 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +01001292 },
1293 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001294 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001295 }
1296
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001297config_debug_PSA_API = {"seed_params": {
1298 "tfm_platform": ["arm/mps2/an521"],
1299 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
1300 "lib_model": [True],
1301 "isolation_level": ["1"],
1302 "test_regression": [False],
Paul Sokolovsky7bd338c2022-01-30 14:14:39 +03001303 "test_psa_api": ["CRYPTO",
1304 "INITIAL_ATTESTATION",
Paul Sokolovskyb298d7b2022-02-02 23:27:44 +03001305 "STORAGE",
1306 "IPC"],
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001307 "cmake_build_type": ["Debug"],
1308 "with_otp": ["off"],
1309 "with_bl2": [True],
1310 "with_ns": [True],
1311 "profile": [""],
1312 "partition_ps": ["ON"],
1313 "extra_params": [""]
1314 },
1315 "common_params": _common_tfm_builder_cfg,
1316 "invalid": _common_tfm_invalid_configs + []
1317 }
1318
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001319config_debug_PSA_API_nolib = {"seed_params": {
1320 "tfm_platform": ["arm/mps2/an521"],
1321 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
1322 "lib_model": [False],
1323 "isolation_level": ["1"],
1324 "test_regression": [False],
1325 "test_psa_api": ["CRYPTO",
1326 "INITIAL_ATTESTATION",
1327 "STORAGE",
1328 "IPC"],
1329 "cmake_build_type": ["Debug"],
1330 "with_otp": ["off"],
1331 "with_bl2": [True],
1332 "with_ns": [True],
1333 "profile": [""],
1334 "partition_ps": ["ON"],
1335 "extra_params": [""]
1336 },
1337 "common_params": _common_tfm_builder_cfg,
1338 "invalid": _common_tfm_invalid_configs + []
1339 }
1340
Dean Birch4c6ad622020-03-13 11:28:03 +00001341# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001342config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001343 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001344 "toolchain_file": ["toolchain_ARMCLANG.cmake",
1345 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001346 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001347 "isolation_level": ["1", "2"],
1348 "test_regression": [True, False],
1349 "test_psa_api": ["OFF"],
1350 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001351 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001352 "with_bl2": [True, False],
1353 "with_ns": [True],
1354 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001355 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001356 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001357 },
1358 "common_params": _common_tfm_builder_cfg,
1359 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001360 ("*", "toolchain_ARMCLANG.cmake", False, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001361 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001362 ("*", "toolchain_ARMCLANG.cmake", True, "1", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001363 "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001364 ]
1365 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001366
Xinyu Zhangb708f572020-09-15 11:43:46 +08001367config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001368 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001369 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001370 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001371 "isolation_level": ["1", "2"],
1372 "test_regression": [True],
1373 "test_psa_api": ["OFF"],
1374 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001375 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001376 "with_bl2": [True, False],
1377 "with_ns": [True, False],
1378 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001379 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001380 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001381 },
1382 "common_params": _common_tfm_builder_cfg,
1383 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001384 ("arm/mps2/an521", "toolchain_GNUARM.cmake", False, "2", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001385 "*", "*", True, "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001386 ]
1387 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001388
Xinyu Zhang38b76742021-11-11 13:57:56 +08001389config_an547 = {"seed_params": {
1390 "tfm_platform": ["arm/mps3/an547"],
1391 "toolchain_file": ["toolchain_GNUARM.cmake"],
1392 "lib_model": [False],
1393 "isolation_level": ["1"],
1394 "test_regression": [False],
1395 "test_psa_api": ["OFF"],
1396 "cmake_build_type": ["Debug"],
1397 "with_otp": ["off"],
1398 "with_bl2": [True],
1399 "with_ns": [False],
1400 "profile": [""],
1401 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001402 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001403 },
1404 "common_params": _common_tfm_builder_cfg,
1405 "invalid": _common_tfm_invalid_configs + []
1406 }
1407
1408config_corstone_polaris = {"seed_params": {
1409 "tfm_platform": ["arm/mps3/corstone_polaris"],
1410 "toolchain_file": ["toolchain_GNUARM.cmake"],
1411 "lib_model": [False],
1412 "isolation_level": ["1"],
1413 "test_regression": [False],
1414 "test_psa_api": ["OFF"],
1415 "cmake_build_type": ["Debug"],
1416 "with_otp": ["off"],
1417 "with_bl2": [True],
1418 "with_ns": [False],
1419 "profile": [""],
1420 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001421 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001422 },
1423 "common_params": _common_tfm_builder_cfg,
1424 "invalid": _common_tfm_invalid_configs + []
1425 }
1426
1427config_bl5340 = {"seed_params": {
1428 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
1429 "toolchain_file": ["toolchain_GNUARM.cmake"],
1430 "lib_model": [False],
1431 "isolation_level": ["1"],
1432 "test_regression": [False],
1433 "test_psa_api": ["OFF"],
1434 "cmake_build_type": ["Debug"],
1435 "with_otp": ["off"],
1436 "with_bl2": [True],
1437 "with_ns": [False],
1438 "profile": [""],
1439 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001440 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001441 },
1442 "common_params": _common_tfm_builder_cfg,
1443 "invalid": _common_tfm_invalid_configs + []
1444 }
1445
1446config_nrf5340dk = {"seed_params": {
1447 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
1448 "toolchain_file": ["toolchain_GNUARM.cmake"],
1449 "lib_model": [False],
1450 "isolation_level": ["1"],
1451 "test_regression": [False],
1452 "test_psa_api": ["OFF"],
1453 "cmake_build_type": ["Debug"],
1454 "with_otp": ["off"],
1455 "with_bl2": [True],
1456 "with_ns": [False],
1457 "profile": [""],
1458 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001459 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001460 },
1461 "common_params": _common_tfm_builder_cfg,
1462 "invalid": _common_tfm_invalid_configs + []
1463 }
1464
1465config_nrf9160dk = {"seed_params": {
1466 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
1467 "toolchain_file": ["toolchain_GNUARM.cmake"],
1468 "lib_model": [False],
1469 "isolation_level": ["1"],
1470 "test_regression": [False],
1471 "test_psa_api": ["OFF"],
1472 "cmake_build_type": ["Debug"],
1473 "with_otp": ["off"],
1474 "with_bl2": [True],
1475 "with_ns": [False],
1476 "profile": [""],
1477 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001478 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001479 },
1480 "common_params": _common_tfm_builder_cfg,
1481 "invalid": _common_tfm_invalid_configs + []
1482 }
1483
1484config_m2351 = {"seed_params": {
1485 "tfm_platform": ["nuvoton/m2351"],
1486 "toolchain_file": ["toolchain_GNUARM.cmake"],
1487 "lib_model": [False],
1488 "isolation_level": ["1"],
1489 "test_regression": [False],
1490 "test_psa_api": ["OFF"],
1491 "cmake_build_type": ["Release"],
1492 "with_otp": ["off"],
1493 "with_bl2": [True],
1494 "with_ns": [False],
1495 "profile": [""],
1496 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001497 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001498 },
1499 "common_params": _common_tfm_builder_cfg,
1500 "invalid": _common_tfm_invalid_configs + []
1501 }
1502
1503config_m2354 = {"seed_params": {
1504 "tfm_platform": ["nuvoton/m2354"],
1505 "toolchain_file": ["toolchain_GNUARM.cmake"],
1506 "lib_model": [False],
1507 "isolation_level": ["1"],
1508 "test_regression": [False],
1509 "test_psa_api": ["OFF"],
1510 "cmake_build_type": ["Debug"],
1511 "with_otp": ["off"],
1512 "with_bl2": [True],
1513 "with_ns": [False],
1514 "profile": [""],
1515 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001516 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001517 },
1518 "common_params": _common_tfm_builder_cfg,
1519 "invalid": _common_tfm_invalid_configs + []
1520 }
1521
1522config_b_u585i_iot02a = {"seed_params": {
1523 "tfm_platform": ["stm/b_u585i_iot02a"],
1524 "toolchain_file": ["toolchain_GNUARM.cmake"],
1525 "lib_model": [False],
1526 "isolation_level": ["1"],
1527 "test_regression": [False],
1528 "test_psa_api": ["OFF"],
1529 "cmake_build_type": ["Release"],
1530 "with_otp": ["off"],
1531 "with_bl2": [True],
1532 "with_ns": [False],
1533 "profile": [""],
1534 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001535 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001536 },
1537 "common_params": _common_tfm_builder_cfg,
1538 "invalid": _common_tfm_invalid_configs + []
1539 }
1540
1541config_nucleo_l552ze_q = {"seed_params": {
1542 "tfm_platform": ["stm/nucleo_l552ze_q"],
1543 "toolchain_file": ["toolchain_GNUARM.cmake"],
1544 "lib_model": [False],
1545 "isolation_level": ["1"],
1546 "test_regression": [False],
1547 "test_psa_api": ["OFF"],
1548 "cmake_build_type": ["Release"],
1549 "with_otp": ["off"],
1550 "with_bl2": [True],
1551 "with_ns": [False],
1552 "profile": [""],
1553 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001554 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001555 },
1556 "common_params": _common_tfm_builder_cfg,
1557 "invalid": _common_tfm_invalid_configs + []
1558 }
1559
Karl Zhangaff558a2020-05-15 14:28:23 +01001560_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001561 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001562 "tfm_test": config_tfm_test,
1563 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001564 "tfm_profile": config_tfm_profile,
David Huda27ae72022-03-28 15:32:19 +08001565 "tfm_profile_s": config_tfm_profile_s,
Karl Zhangaff558a2020-05-15 14:28:23 +01001566 "tfm_test_otp": config_tfm_test_OTP,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001567 "tfm_nsce": config_nsce,
1568 "tfm_mmio": config_mmio,
Karl Zhangaff558a2020-05-15 14:28:23 +01001569 "psa_api": config_PSA_API,
1570 "psa_api_otp": config_PSA_API_OTP,
1571 "psa_ff": config_PSA_FF,
1572 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001573 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001574 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001575 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001576 "tfm_fp": config_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001577
1578 #nightly test group
1579 "nightly_test": config_nightly,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001580 "nightly_nsce": config_nsce,
1581 "nightly_mmio": config_mmio,
Karl Zhang14573bc2020-06-08 09:23:21 +08001582 "nightly_profile": config_nightly_profile,
David Huda27ae72022-03-28 15:32:19 +08001583 "nightly_profile_s": config_tfm_profile_s,
Karl Zhang14573bc2020-06-08 09:23:21 +08001584 "nightly_psa_api": config_nightly_PSA_API,
1585 "nightly_ff": config_nightly_PSA_FF,
1586 "nightly_otp": config_nightly_OTP,
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001587 "nightly_psoc64": config_nightly_psoc64,
Xinyu Zhang331c47c2021-12-24 10:18:02 +08001588 "nightly_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001589 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001590 "nightly_fp":config_nightly_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001591
1592 #per patch test group
1593 "pp_test": config_pp_test,
1594 "pp_OTP": config_pp_OTP,
1595 "pp_PSA_API": config_pp_PSA_API,
1596 "pp_psoc64": config_pp_PSoC64,
1597
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001598 #code coverage test group
1599 "coverage_an519": config_cov_an519,
1600 "coverage_an521": config_cov_an521,
1601
Xinyu Zhang38b76742021-11-11 13:57:56 +08001602 #extra build group
1603 "arm_corstone1000": config_corstone1000,
1604 "arm_an547": config_an547,
1605 "arm_corstone_polaris": config_corstone_polaris,
1606 "cypress_psoc64": config_PSOC64,
1607 "laird_bl5340": config_bl5340,
1608 "nordic_nrf5340dk": config_nrf5340dk,
1609 "nordic_nrf9160dk": config_nrf9160dk,
1610 "nuvoton_m2351": config_m2351,
1611 "nuvoton_m2354": config_m2354,
1612 "nxp_lpcxpresso55s69": config_LPCXPRESSO55S69,
1613 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1614 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1615 "stm_stm32l562e_dk": config_STM32L562E_DK,
1616
Karl Zhang14573bc2020-06-08 09:23:21 +08001617 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001618 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001619
1620 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001621 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001622 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001623 "an521_psa_api": config_AN521_PSA_API,
1624 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001625 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001626 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001627 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001628 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001629 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001630 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001631 "ipc": config_IPC,
1632 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001633 "debug": config_debug,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001634 "debug_PSA_API": config_debug_PSA_API,
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001635 "debug_PSA_API_nolib": config_debug_PSA_API_nolib,
Karl Zhangaff558a2020-05-15 14:28:23 +01001636 "release": config_release,
Karl Zhang14573bc2020-06-08 09:23:21 +08001637
1638 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001639 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001640 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001641
1642if __name__ == '__main__':
1643 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001644
Minos Galanakisea421232019-06-20 17:11:28 +01001645 # Default behavior is to export refference config when called
1646 _dir = os.getcwd()
1647 from utils import save_json
1648 for _cname, _cfg in _builtin_configs.items():
1649 _fname = os.path.join(_dir, _cname + ".json")
1650 print("Exporting config %s" % _fname)
1651 save_json(_fname, _cfg)