blob: e0204258c72f1b7ae6dd8411030ed592b3565699 [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",
Xinyu Zhang433771e2022-04-01 16:49:17 +080033 "compiler",
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 " + \
Xinyu Zhang433771e2022-04-01 16:49:17 +080051 "-DTFM_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(compiler)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
Xinyu Zhang433771e2022-04-01 16:49:17 +080070 "set_compiler_path": "export PATH=$PATH:$%(compiler)s_PATH",
71
Minos Galanakisea421232019-06-20 17:11:28 +010072 # A small subset of string substitution params is allowed in commands.
73 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
74 # _tbm_target_platform_ with the paths set when building
75
Xinyu Zhangb708f572020-09-15 11:43:46 +080076 "artifact_capture_rex": (r'%(_tbm_build_dir_)s/bin'
Minos Galanakisea421232019-06-20 17:11:28 +010077 r'/(\w+\.(?:axf|bin|hex))$'),
78
79 # ALL commands will be executed for every build.
80 # Other keys will append extra commands when matching target_platform
Fathi Boudra83e4f292020-12-04 22:33:40 +010081 "build_cmds": {"all": ["cmake --build ./ -- install"],
Summer Qin3c2b5722021-05-26 10:43:45 +080082 "arm/musca_b1/sse_200": [("srec_cat "
Mark Horvath8d281cd2020-12-07 15:20:26 +010083 "%(_tbm_build_dir_)s/bin/"
84 "bl2.bin "
85 "-Binary -offset 0xA000000 "
86 "-fill 0xFF 0xA000000 0xA020000 "
87 "%(_tbm_build_dir_)s/bin/"
88 "tfm_s_ns_signed.bin "
89 "-Binary -offset 0xA020000 "
90 "-fill 0xFF 0xA020000 0xA200000 "
91 "-o %(_tbm_build_dir_)s/bin/"
92 "tfm.hex -Intel")],
Summer Qin3c2b5722021-05-26 10:43:45 +080093 "arm/musca_s1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080094 "%(_tbm_build_dir_)s/bin/"
95 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +080096 "-Binary -offset 0xA000000 "
Raef Coles543aab32020-12-03 11:12:02 +000097 "-fill 0xFF 0xA000000 0xA020000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080098 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080099 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +0000100 "-Binary -offset 0xA020000 "
101 "-fill 0xFF 0xA020000 0xA200000 "
102 "-o %(_tbm_build_dir_)s/bin/"
Arthur She19c0e1a2021-06-02 11:06:19 -0700103 "tfm.hex -Intel")],
104 "stm/stm32l562e_dk": [("echo 'STM32L562E-DK board post process';"
105 "%(_tbm_build_dir_)s/postbuild.sh;"
106 "pushd %(_tbm_build_dir_)s;"
Arthur She07c91b52021-07-15 15:03:10 -0700107 "BIN_FILES=$(grep -o '\/.*\.bin' TFM_UPDATE.sh | sed 's/^/bin/');"
108 "tar jcf ./bin/stm32l562e-dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh ${BIN_FILES};"
Arthur She3c0dadd2021-11-18 21:17:48 -0800109 "popd")],
110 "nxp/lpcxpresso55s69": [("echo 'LPCXpresso55S69 board post process\n';"
111 "if [ -f \"%(_tbm_build_dir_)s/bin/bl2.hex\" ]; then FLASH_FILE='flash_bl2_JLink.py'; else FLASH_FILE='flash_JLink.py'; fi;"
112 "pushd %(_tbm_build_dir_)s/../platform/ext/target/nxp/lpcxpresso55s69/scripts;"
113 "LN=$(grep -n 'JLinkExe' ${FLASH_FILE}|awk -F: '{print $1}');"
114 "sed -i \"${LN}s/.*/ print('flash.jlink generated')/\" ${FLASH_FILE};"
115 "python3 ./${FLASH_FILE};"
116 "cd %(_tbm_build_dir_)s/bin;"
117 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"
118 "tar jcf lpcxpresso55s69-tfm.tar.bz2 flash.jlink ${BIN_FILES};"
Arthur She87602dc2022-02-06 14:42:18 -0800119 "popd")],
120 "cypress/psoc64": [("echo 'Sign binaries for Cypress PSoC64 platform';"
121 "pushd %(_tbm_build_dir_)s/..;"
122 "sudo /usr/local/bin/cysecuretools "
123 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
124 "--target cy8ckit-064s0s2-4343w "
125 "sign-image "
126 "--hex %(_tbm_build_dir_)s/bin/tfm_s.hex "
127 "--image-type BOOT --image-id 1;"
128 "sudo /usr/local/bin/cysecuretools "
129 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
130 "--target cy8ckit-064s0s2-4343w "
131 "sign-image "
132 "--hex %(_tbm_build_dir_)s/bin/tfm_ns.hex "
133 "--image-type BOOT --image-id 16;"
134 "mv %(_tbm_build_dir_)s/bin/tfm_s.hex %(_tbm_build_dir_)s/bin/tfm_s_signed.hex;"
135 "mv %(_tbm_build_dir_)s/bin/tfm_ns.hex %(_tbm_build_dir_)s/bin/tfm_ns_signed.hex;"
136 "popd")]
Minos Galanakisea421232019-06-20 17:11:28 +0100137 },
138
139 # (Optional) If set will fail if those artefacts are missing post build
140 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800141 "%(_tbm_build_dir_)s/bin/"
142 "tfm_s.bin",
143 "%(_tbm_build_dir_)s/bin/"
144 "tfm_ns.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800145 "arm/musca_b1/sse_200": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800146 "%(_tbm_build_dir_)s/bin/"
147 "tfm.hex",
148 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800149 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800150 "%(_tbm_build_dir_)s/bin/"
151 "tfm_sign.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800152 "arm/musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800153 "%(_tbm_build_dir_)s/bin/"
154 "tfm.hex",
155 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800156 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800157 "%(_tbm_build_dir_)s/bin/"
158 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100159 }
160}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100161
Xinyu Zhangb708f572020-09-15 11:43:46 +0800162# List of all build configs that are impossible under all circumstances
163_common_tfm_invalid_configs = [
Xinyu Zhang459a1982021-07-21 22:34:49 +0800164 # LR_CODE size exceeds limit on MUSCA_B1 & MUSCA_S1 with regression tests in Debug mode built with ARMCLANG
Xinyu Zhang433771e2022-04-01 16:49:17 +0800165 ("arm/musca_b1/sse_200", "ARMCLANG_6_13", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*"),
166 ("arm/musca_s1", "ARMCLANG_6_13", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800167 # Load range overlap on Musca for IPC Debug type: T895
Xinyu Zhang433771e2022-04-01 16:49:17 +0800168 ("arm/musca_b1/sse_200", "ARMCLANG_6_13", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*"),
169 ("arm/musca_s1", "ARMCLANG_6_13", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*"),
170 # Oversize issue on config lpcxpresso55s69_GCC_IPC_2_Relwithdebinfo_BL2_NS_MEDIUM
171 ("nxp/lpcxpresso55s69", "GCC_7_3_1", False, "2", False, "OFF",
Feder Liang357b1602022-01-11 16:47:49 +0800172 "Relwithdebinfo", "off", True, True, "profile_medium", "ON", "*"),
Xinyu Zhang65683e42021-12-10 15:42:02 +0800173 # Oversize issue on config stm32l562e_dk_ARMCLANG_LIB_1_REG_Release_BL2_NS
Xinyu Zhang433771e2022-04-01 16:49:17 +0800174 ("stm/stm32l562e_dk", "ARMCLANG_6_13", True, "1", True, "OFF",
Feder Liang357b1602022-01-11 16:47:49 +0800175 "Release", "off", True, True, "", "ON", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800176 # LVL2 and LVL3 requires IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800177 ("*", "*", True, "2", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
178 ("*", "*", True, "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800179 # Regression requires NS
Feder Liang357b1602022-01-11 16:47:49 +0800180 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800181 # psoc64 requires IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800182 ("cypress/psoc64", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800183 # No PSA_ACK with regression
Feder Liang357b1602022-01-11 16:47:49 +0800184 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*", "*", "*"),
185 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*", "*", "*"),
186 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*"),
187 ("*", "*", "*", "*", True, "STORAGE", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800188 # PSA_ACK requires NS
Feder Liang357b1602022-01-11 16:47:49 +0800189 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*", "*", "*"),
190 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*", "*", "*"),
191 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*", "*", "*"),
192 ("*", "*", "*", "*", "*", "STORAGE", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhangc0aad0a2021-11-10 16:07:28 +0800193 # PSA_ACK IPC (FF) does not support LVL3
Feder Liang357b1602022-01-11 16:47:49 +0800194 ("*", "*", "*", "3", "*", "IPC", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800195 # Musca requires BL2
Feder Liang357b1602022-01-11 16:47:49 +0800196 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
197 ("arm/musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800198 # psoc64 cannot use BL2
Feder Liang357b1602022-01-11 16:47:49 +0800199 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800200 # psoc64 does not support Debug build type
Feder Liang357b1602022-01-11 16:47:49 +0800201 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Xinyu Zhange1b29e02022-03-04 12:02:07 +0800202 # PSoC64 platform got issue on level one test, disable it as a workaround
203 ("cypress/psoc64", "*", "*", "1", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800204 # Musca b1 SSE 200 does not support Profile S
Feder Liang357b1602022-01-11 16:47:49 +0800205 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800206 # Musca B1 Secure Enclave requires IPC model, BL2, and supports only Isolation Level 1
Feder Liang357b1602022-01-11 16:47:49 +0800207 ("arm/musca_b1/secure_enclave", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
208 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
209 ("arm/musca_b1/secure_enclave", "*", "*", "2", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100210 # Musca B1 Secure Enclave does not support tests, profiles, NS side building
Feder Liang357b1602022-01-11 16:47:49 +0800211 ("arm/musca_b1/secure_enclave", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*", "*"),
212 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "IPC", "*", "*", "*", "*", "*", "*", "*"),
213 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", "*", "*", "*", "*"),
214 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*"),
215 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "STORAGE", "*", "*", "*", "*", "*", "*", "*"),
216 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
217 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
218 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
219 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800220 # PARTITION_PS could be OFF only for Profile S and M
Feder Liang357b1602022-01-11 16:47:49 +0800221 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF", "*"),
222 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "OFF", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800223 # PARTITION_PS should be OFF for Profile S
Feder Liang357b1602022-01-11 16:47:49 +0800224 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800225 # Proile M only support for IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800226 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800227 # Profile M only support for Isolation Level 2
Feder Liang357b1602022-01-11 16:47:49 +0800228 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
229 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800230 # Profile L only support for Isolation Level 3
Feder Liang357b1602022-01-11 16:47:49 +0800231 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
232 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800233 # Profile S does not support IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800234 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800235 # Profile S only supports Isolation Level 1
Feder Liang357b1602022-01-11 16:47:49 +0800236 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
237 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800238 # Only AN521 and MUSCA_B1 support Isolation Level 3
Feder Liang357b1602022-01-11 16:47:49 +0800239 ("arm/mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
240 ("arm/mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
241 ("arm/musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
242 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
243 ("arm/musca_b1/secure_enclave", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700244 # stm/stm32l562e_dk uses BL2
Feder Liang357b1602022-01-11 16:47:49 +0800245 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700246 # stm/stm32l562e_dk does not support Debug build type
Feder Liang357b1602022-01-11 16:47:49 +0800247 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700248 # nxp/lpcxpresso55s69 only build with GCC
Xinyu Zhang433771e2022-04-01 16:49:17 +0800249 ("nxp/lpcxpresso55s69", "ARMCLANG_6_13", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700250 # nxp/lpcxpresso55s69 only build Profile M
Feder Liang357b1602022-01-11 16:47:49 +0800251 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
252 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700253 # nxp/lpcxpresso55s69 have to turn off BL2 when build regression test
Feder Liang357b1602022-01-11 16:47:49 +0800254 ("nxp/lpcxpresso55s69", "*", "*", "*", True, "*", "*", "*", True, "*", "*", "*", "*"),
Arthur She0ce327e2021-11-16 23:11:34 -0800255 # nxp/lpcxpresso55s69 turn off BL2 temporary, due to the oversize error
Feder Liang357b1602022-01-11 16:47:49 +0800256 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +0800257 ]
258
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100259# Configure build manager to build several combinations
Bence Balogh176b78f2022-02-22 13:49:34 +0100260config_an552 = {"seed_params": {
261 "tfm_platform": ["arm/mps3/an552"],
262 "compiler": ["GCC_10_3"],
263 "lib_model": [True, False],
264 "isolation_level": ["1", "2"],
265 "test_regression": [True, False],
266 "test_psa_api": ["OFF"],
267 "cmake_build_type": ["Debug", "Release"],
268 "with_otp": ["off"],
269 "with_bl2": [True],
270 "with_ns": [True],
271 "profile": [""],
272 "partition_ps": ["ON"],
273 "extra_params": [""]
274 },
275 "common_params": _common_tfm_builder_cfg,
276 "invalid": _common_tfm_invalid_configs + []
277 }
278
Karl Zhangaff558a2020-05-15 14:28:23 +0100279config_AN524 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800280 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800281 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
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_AN521 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800299 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800300 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800301 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800302 "isolation_level": ["1", "2"],
303 "test_regression": [True, False],
304 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100305 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800306 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800307 "with_bl2": [True, False],
308 "with_ns": [True, False],
309 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800310 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800311 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100312 },
313 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800314 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100315 }
316
Karl Zhangaff558a2020-05-15 14:28:23 +0100317config_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800318 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
319 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800320 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800321 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800322 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800323 "test_regression": [False],
324 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800325 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800326 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100327 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800328 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800329 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800330 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800331 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800332 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800333 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100334 },
335 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800336 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100337 }
338
Karl Zhangaff558a2020-05-15 14:28:23 +0100339config_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800340 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
341 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800342 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800343 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800344 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800345 "test_regression": [False],
346 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100347 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800348 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800349 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800350 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800351 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800352 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800353 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100354 },
355 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800356 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100357 }
358
Karl Zhangaff558a2020-05-15 14:28:23 +0100359config_PSA_API_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800360 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800361 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800362 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800363 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800364 "test_regression": [False],
365 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800366 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800367 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100368 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800369 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800370 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800371 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800372 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800373 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800374 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100375 },
376 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800377 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100378 }
Minos Galanakisea421232019-06-20 17:11:28 +0100379
Xinyu Zhangb708f572020-09-15 11:43:46 +0800380config_PSA_FF_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800381 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800382 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800383 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800384 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800385 "test_regression": [False],
386 "test_psa_api": ["IPC"],
387 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800388 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800389 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800390 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800391 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800392 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800393 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800394 },
395 "common_params": _common_tfm_builder_cfg,
396 "invalid": _common_tfm_invalid_configs + []
397 }
398
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800399config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800400 "tfm_platform": ["cypress/psoc64"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800401 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800402 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800403 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800404 "test_regression": [True],
405 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800406 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800407 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800408 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800409 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800410 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800411 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800412 "extra_params": [""]
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800413 },
414 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800415 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800416 }
417
Arthur She19c0e1a2021-06-02 11:06:19 -0700418config_STM32L562E_DK = {"seed_params": {
419 "tfm_platform": ["stm/stm32l562e_dk"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800420 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800421 "lib_model": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700422 "isolation_level": ["1", "2", "3"],
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800423 "test_regression": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700424 "test_psa_api": ["OFF"],
425 "cmake_build_type": ["Release"],
426 "with_otp": ["off"],
427 "with_bl2": [True],
428 "with_ns": [True],
429 "profile": [""],
430 "partition_ps": ["ON"],
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800431 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
Arthur She19c0e1a2021-06-02 11:06:19 -0700432 },
433 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800434 "invalid": _common_tfm_invalid_configs + [
435 # all other tests are off when CRYPTO is ON
436 ("stm/stm32l562e_dk", "*", "*", "*", True, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800437 "*", "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800438 # all other tests are ON when CRYPTO is OFF
439 ("stm/stm32l562e_dk", "*", "*", "*", False, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800440 "*", "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800441 ]
Arthur She19c0e1a2021-06-02 11:06:19 -0700442 }
443
Arthur Shef3657742021-09-07 14:23:18 -0700444config_LPCXPRESSO55S69 = {"seed_params": {
445 "tfm_platform": ["nxp/lpcxpresso55s69"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800446 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800447 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700448 "isolation_level": ["2"],
449 "test_regression": [True, False],
450 "test_psa_api": ["OFF"],
451 "cmake_build_type": ["Relwithdebinfo"],
452 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -0800453 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700454 "with_ns": [True],
455 "profile": ["profile_medium"],
456 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800457 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +0800458 },
459 "common_params": _common_tfm_builder_cfg,
460 "invalid": _common_tfm_invalid_configs + []
461 }
462
463config_FP = {"seed_params": {
464 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800465 "compiler": ["GCC_10_3"],
Feder Liang567e8c22021-10-26 14:16:21 +0800466 "lib_model": [False],
467 "isolation_level": ["1", "2"],
468 "test_regression": [True],
469 "test_psa_api": ["OFF"],
470 "cmake_build_type": ["Release"],
471 "with_otp": ["off"],
472 "with_bl2": [True],
473 "with_ns": [True],
474 "profile": [""],
475 "partition_ps": ["ON"],
Feder Liang357b1602022-01-11 16:47:49 +0800476 "extra_params": ["FPSOFT", "FPHARD", "FPHARD_LOFF"]
Arthur Shef3657742021-09-07 14:23:18 -0700477 },
478 "common_params": _common_tfm_builder_cfg,
479 "invalid": _common_tfm_invalid_configs + []
480 }
481
Xinyu Zhang6afdd612021-10-12 17:07:32 +0800482config_corstone1000 = {"seed_params": {
483 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800484 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800485 "lib_model": [False],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800486 "isolation_level": ["1"],
487 "test_regression": [False],
488 "test_psa_api": ["OFF"],
489 "cmake_build_type": ["Debug"],
490 "with_otp": ["off"],
491 "with_bl2": [True],
492 "with_ns": [False],
493 "profile": [""],
494 "partition_ps": ["ON"],
Xinyu Zhang6071f962022-02-07 15:56:39 +0800495 "extra_params": ["FVP", "FPGA"]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800496 },
497 "common_params": _common_tfm_builder_cfg,
498 "invalid": _common_tfm_invalid_configs + []
499 }
500
Minos Galanakisea421232019-06-20 17:11:28 +0100501config_AN519 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800502 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800503 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800504 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800505 "isolation_level": ["1", "2"],
506 "test_regression": [True, False],
507 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100508 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800509 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800510 "with_bl2": [True, False],
511 "with_ns": [True, False],
512 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800513 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800514 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100515 },
516 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800517 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100518 }
519
Xinyu Zhangb708f572020-09-15 11:43:46 +0800520config_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800521 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
522 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800523 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800524 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800525 "isolation_level": ["1", "2"],
526 "test_regression": [True, False],
527 "test_psa_api": ["OFF"],
528 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800529 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800530 "with_bl2": [True, False],
531 "with_ns": [True, False],
532 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800533 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800534 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800535 },
Minos Galanakisea421232019-06-20 17:11:28 +0100536 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800537 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100538 }
539
Minos Galanakisea421232019-06-20 17:11:28 +0100540config_full = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800541 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
542 "arm/musca_b1/sse_200",
Bence Balogh176b78f2022-02-22 13:49:34 +0100543 "arm/mps3/an524", "arm/mps3/an547",
544 "arm/mps3/an552", "cypress/psoc64",
545 "arm/mps3/corstone_polaris",
Arthur She19c0e1a2021-06-02 11:06:19 -0700546 "arm/musca_b1/secure_enclave",
Arthur Shef3657742021-09-07 14:23:18 -0700547 "stm/stm32l562e_dk",
548 "nxp/lpcxpresso55s69"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800549 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800550 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800551 "isolation_level": ["1", "2"],
552 "test_regression": [True, False],
553 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800554 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800555 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800556 "with_bl2": [True, False],
557 "with_ns": [True, False],
558 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800559 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800560 "extra_params": [""]
Dean Birchd6ce2c82020-05-13 13:16:15 +0100561 },
562 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800563 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800564 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800565 "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800566 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Feder Liang357b1602022-01-11 16:47:49 +0800567 True, "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800568 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800569 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800570 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800571 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800572 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800573 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800574 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800575 "*", "*", "*", "*", "*", "*"),
Bence Balogh176b78f2022-02-22 13:49:34 +0100576 ("arm/mps3/an547", "*", "*", "*", "*", "*", "RelWithDebInfo",
577 "*", "*", "*", "*", "*", "*"),
578 ("arm/mps3/an552", "*", "*", "*", "*", "*", "RelWithDebInfo",
579 "*", "*", "*", "*", "*", "*"),
580 ("arm/mps3/corstone_polaris", "*", "*", "*", "*", "*", "RelWithDebInfo",
581 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800582 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800583 }
584
Karl Zhangaff558a2020-05-15 14:28:23 +0100585config_tfm_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800586 "tfm_platform": ["arm/mps2/an521",
587 "arm/musca_b1/sse_200", "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800588 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800589 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800590 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800591 "test_regression": [True, False],
592 "test_psa_api": ["OFF"],
593 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800594 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800595 "with_bl2": [True],
596 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800597 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800598 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800599 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800600 },
601 "common_params": _common_tfm_builder_cfg,
602 "invalid": _common_tfm_invalid_configs + []
603 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800604
Karl Zhangaff558a2020-05-15 14:28:23 +0100605config_tfm_test2 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800606 "tfm_platform": ["arm/mps2/an519", "arm/mps3/an524"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800607 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800608 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800609 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800610 "test_regression": [True, False],
611 "test_psa_api": ["OFF"],
612 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800613 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800614 "with_bl2": [True],
615 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800616 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800617 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800618 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800619 },
620 "common_params": _common_tfm_builder_cfg,
621 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800622 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800623 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800624 ]
625 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100626
Karl Zhang14573bc2020-06-08 09:23:21 +0800627config_tfm_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800628 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
629 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800630 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
David Huda27ae72022-03-28 15:32:19 +0800631 "lib_model": [False],
632 "isolation_level": ["2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800633 "test_regression": [True, False],
634 "test_psa_api": ["OFF"],
635 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800636 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800637 "with_bl2": [True],
638 "with_ns": [True],
David Huda27ae72022-03-28 15:32:19 +0800639 "profile": ["profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800640 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800641 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800642 },
643 "common_params": _common_tfm_builder_cfg,
644 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800645 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800646 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800647 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800648 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800649 "*", "profile_large", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800650 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800651 "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800652 ]
653 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800654
David Huda27ae72022-03-28 15:32:19 +0800655config_tfm_profile_s = {"seed_params": {
656 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800657 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
David Huda27ae72022-03-28 15:32:19 +0800658 "lib_model": [True],
659 "isolation_level": ["1"],
660 "test_regression": [True, False],
661 "test_psa_api": ["OFF"],
662 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
663 "with_otp": ["OFF"],
664 "with_bl2": [True],
665 "with_ns": [True],
666 "profile": ["profile_small"],
667 "partition_ps": ["OFF"],
668 "extra_params": [""]
669 },
670 "common_params": _common_tfm_builder_cfg,
671 "valid": [
672 # Profile Small also supports SFN model
673 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "*",
674 "*", "SFN_ENABLE")
675 ],
676 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800677 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
David Huda27ae72022-03-28 15:32:19 +0800678 "*", "Minsizerel", "*", "*", "*", "*", "*", "*")
679 ]
680 }
681
Karl Zhangaff558a2020-05-15 14:28:23 +0100682config_tfm_test_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800683 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800684 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800685 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800686 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800687 "test_regression": [True, False],
688 "test_psa_api": ["OFF"],
689 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800690 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800691 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800692 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800693 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800694 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800695 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800696 },
697 "common_params": _common_tfm_builder_cfg,
698 "invalid": _common_tfm_invalid_configs + []
699 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100700
Minos Galanakisea421232019-06-20 17:11:28 +0100701config_MUSCA_B1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800702 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800703 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800704 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800705 "isolation_level": ["1", "2"],
706 "test_regression": [True, False],
707 "test_psa_api": ["OFF"],
708 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800709 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800710 "with_bl2": [True],
711 "with_ns": [True, False],
712 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800713 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800714 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800715 },
716 "common_params": _common_tfm_builder_cfg,
717 "invalid": _common_tfm_invalid_configs + []
718 }
Minos Galanakisea421232019-06-20 17:11:28 +0100719
Mark Horvath8d281cd2020-12-07 15:20:26 +0100720config_MUSCA_B1_SE = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800721 "tfm_platform": ["arm/musca_b1/secure_enclave"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800722 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800723 "lib_model": [False],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100724 "isolation_level": ["1"],
725 "test_regression": [False],
726 "test_psa_api": ["OFF"],
727 "cmake_build_type": ["Debug", "Release"],
728 "with_otp": ["off"],
729 "with_bl2": [True],
730 "with_ns": [False],
731 "profile": [""],
732 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800733 "extra_params": [""]
Mark Horvath8d281cd2020-12-07 15:20:26 +0100734 },
735 "common_params": _common_tfm_builder_cfg,
736 "invalid": _common_tfm_invalid_configs + []
737 }
738
Karl Zhangeffed972020-06-30 15:48:01 +0800739config_MUSCA_S1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800740 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800741 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800742 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800743 "isolation_level": ["1", "2"],
744 "test_regression": [True, False],
745 "test_psa_api": ["OFF"],
746 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800747 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800748 "with_bl2": [True],
749 "with_ns": [True, False],
750 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800751 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800752 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800753 },
754 "common_params": _common_tfm_builder_cfg,
755 "invalid": _common_tfm_invalid_configs + []
756 }
Karl Zhangeffed972020-06-30 15:48:01 +0800757
Karl Zhangaff558a2020-05-15 14:28:23 +0100758config_release = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800759 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
760 "arm/musca_b1/sse_200", "arm/musca_s1",
761 "arm/mps3/an524"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800762 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800763 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800764 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800765 "test_regression": [True, False],
766 "test_psa_api": ["OFF"],
767 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800768 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800769 "with_bl2": [True, False],
770 "with_ns": [True, False],
771 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800772 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800773 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800774 },
775 "common_params": _common_tfm_builder_cfg,
776 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800777 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800778 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800779 ]
780 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100781
782# Configure build manager to build several combinations
783config_AN521_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800784 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
785 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800786 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800787 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800788 "isolation_level": ["1", "2"],
789 "test_regression": [False],
790 "test_psa_api": ["IPC",
791 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800792 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800793 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800794 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800795 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800796 "with_bl2": [True],
797 "with_ns": [True, False],
798 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800799 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800800 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100801 },
802 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800803 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800804 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800805 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800806 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100807 }
808
Karl Zhangaff558a2020-05-15 14:28:23 +0100809config_AN521_PSA_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800810 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
811 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800812 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800813 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800814 "isolation_level": ["1", "2"],
815 "test_regression": [False],
816 "test_psa_api": ["IPC"],
817 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800818 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800819 "with_bl2": [True],
820 "with_ns": [True, False],
821 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800822 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800823 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100824 },
825 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800826 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800827 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800828 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800829 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100830 }
831
Karl Zhang14573bc2020-06-08 09:23:21 +0800832config_nightly = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800833 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
834 "arm/musca_b1/sse_200", "arm/musca_s1",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800835 "arm/mps3/an524", "arm/musca_b1/secure_enclave"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800836 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800837 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800838 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800839 "test_regression": [True, False],
840 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800841 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800842 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800843 "with_bl2": [True],
844 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800845 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800846 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800847 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800848 },
849 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang6d2dd7c2022-02-07 17:22:55 +0800850 "valid": [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800851 # MUSCA_B1_GCC_IPC_1_REG_Release_BL2_NS_CC_DRIVER_PSA
852 ("arm/musca_b1/sse_200", "GCC_7_3_1",
Xinyu Zhang6d2dd7c2022-02-07 17:22:55 +0800853 False, "1", True, "OFF", "Release",
854 "off", True, True, "", "ON", "CC_DRIVER_PSA"),
Xinyu Zhang433771e2022-04-01 16:49:17 +0800855 # MUSCA_S1_GCC_IPC_1_REG_Release_BL2_NS_CC_DRIVER_PSA
856 ("arm/musca_s1", "GCC_7_3_1",
Xinyu Zhang6d2dd7c2022-02-07 17:22:55 +0800857 False, "1", True, "OFF", "Release",
858 "off", True, True, "", "ON", "CC_DRIVER_PSA"),
859 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800860 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800861 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800862 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800863 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800864 "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800865 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Feder Liang357b1602022-01-11 16:47:49 +0800866 True, "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800867 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800868 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800869 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800870 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800871 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800872 "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800873 ("arm/musca_s1", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800874 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800875 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800876 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800877 ]
878 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800879
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800880config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800881 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800882 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800883 "lib_model": [True, False],
884 "isolation_level": ["1", "2", "3"],
885 "test_regression": [True],
886 "test_psa_api": ["OFF"],
887 "cmake_build_type": ["Debug"],
888 "with_otp": ["off"],
889 "with_bl2": [True],
890 "with_ns": [True],
891 "profile": [""],
892 "partition_ps": ["ON"],
Xinyu Zhang67612992021-12-20 14:11:27 +0800893 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800894 },
895 "common_params": _common_tfm_builder_cfg,
896 "invalid": _common_tfm_invalid_configs + []
897 }
898
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800899config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800900 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800901 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800902 "lib_model": [False],
903 "isolation_level": ["1"],
904 "test_regression": [True],
905 "test_psa_api": ["OFF"],
906 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
907 "with_otp": ["off"],
908 "with_bl2": [True],
909 "with_ns": [True],
910 "profile": [""],
911 "partition_ps": ["ON"],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800912 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800913 },
914 "common_params": _common_tfm_builder_cfg,
915 "invalid": _common_tfm_invalid_configs + []
916 }
917
Karl Zhang14573bc2020-06-08 09:23:21 +0800918config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800919 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
920 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800921 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
David Huda27ae72022-03-28 15:32:19 +0800922 "lib_model": [False],
923 "isolation_level": ["2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800924 "test_regression": [True, False],
925 "test_psa_api": ["OFF"],
926 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800927 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800928 "with_bl2": [True],
929 "with_ns": [True],
David Huda27ae72022-03-28 15:32:19 +0800930 "profile": ["profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800931 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800932 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800933 },
934 "common_params": _common_tfm_builder_cfg,
935 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800936 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800937 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800938 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800939 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800940 "*", "profile_large", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800941 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800942 "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800943 ]
944 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800945
Karl Zhang14573bc2020-06-08 09:23:21 +0800946config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800947 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
948 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800949 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800950 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800951 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800952 "test_regression": [False],
953 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800954 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800955 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800956 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800957 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800958 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800959 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800960 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800961 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800962 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800963 },
964 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800965 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800966 }
967
Karl Zhang14573bc2020-06-08 09:23:21 +0800968config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800969 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
970 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800971 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800972 "lib_model": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800973 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800974 "test_regression": [False],
975 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800976 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800977 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800978 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800979 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800980 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800981 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800982 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800983 },
984 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800985 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800986 }
987
Karl Zhang14573bc2020-06-08 09:23:21 +0800988config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800989 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800990 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
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"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001009 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001010 "lib_model": [False],
1011 "isolation_level": ["1", "2"],
1012 "test_regression": [True],
1013 "test_psa_api": ["OFF"],
1014 "cmake_build_type": ["Release"],
1015 "with_otp": ["off"],
1016 "with_bl2": [False],
1017 "with_ns": [True],
1018 "profile": [""],
1019 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001020 "extra_params": [""]
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001021 },
1022 "common_params": _common_tfm_builder_cfg,
1023 "invalid": _common_tfm_invalid_configs + []
1024 }
1025
Arthur Shef3657742021-09-07 14:23:18 -07001026config_nightly_LPCXPRESSO55S69 = {"seed_params": {
1027 "tfm_platform": ["nxp/lpcxpresso55s69"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001028 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001029 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001030 "isolation_level": ["2"],
1031 "test_regression": [True, False],
1032 "test_psa_api": ["OFF"],
1033 "cmake_build_type": ["Relwithdebinfo"],
1034 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -08001035 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001036 "with_ns": [True],
1037 "profile": ["profile_medium"],
1038 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001039 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +08001040 },
1041 "common_params": _common_tfm_builder_cfg,
1042 "invalid": _common_tfm_invalid_configs + []
1043 }
1044
1045config_nightly_FP = {"seed_params": {
1046 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001047 "compiler": ["GCC_10_3"],
Feder Liang567e8c22021-10-26 14:16:21 +08001048 "lib_model": [False],
1049 "isolation_level": ["1", "2"],
1050 "test_regression": [True],
1051 "test_psa_api": ["OFF"],
1052 "cmake_build_type": ["Debug"],
1053 "with_otp": ["off"],
1054 "with_bl2": [True],
1055 "with_ns": [True],
1056 "profile": [""],
1057 "partition_ps": ["ON"],
Feder Liang357b1602022-01-11 16:47:49 +08001058 "extra_params": ["FPSOFT", "FPHARD", "FPHARD_LOFF"]
Arthur Shef3657742021-09-07 14:23:18 -07001059 },
1060 "common_params": _common_tfm_builder_cfg,
1061 "invalid": _common_tfm_invalid_configs + []
1062 }
1063
Karl Zhang14573bc2020-06-08 09:23:21 +08001064config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001065 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +08001066 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001067 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001068 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +08001069 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001070 "test_regression": [True],
1071 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001072 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001073 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001074 "with_bl2": [True],
1075 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001076 "profile": ["", "profile_small", "profile_medium"],
1077 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001078 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001079 },
1080 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001081 "valid": [
Xinyu Zhang433771e2022-04-01 16:49:17 +08001082 ("arm/mps2/an521", "GCC_7_3_1",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001083 True, "1", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001084 "off", True, True, "", "ON", ""),
Bence Balogh176b78f2022-02-22 13:49:34 +01001085 # AN552_GNUARM_IPC_1_REG_Debug_BL2_NS
1086 ("arm/mps3/an552", "GCC_10_3",
1087 False, "1", True, "OFF", "Debug",
1088 "off", True, True, "", "ON", ""),
1089 # AN552_GNUARM_IPC_1_REG_Release_BL2_NS
1090 ("arm/mps3/an552", "GCC_10_3",
1091 False, "1", True, "OFF", "Release",
1092 "off", True, True, "", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001093 ("arm/mps2/an521", "ARMCLANG_6_13",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001094 False, "2", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001095 "off", True, True, "", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001096 ("arm/mps2/an521", "ARMCLANG_6_13",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001097 False, "3", False, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001098 "off", True, True, "", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001099 ("arm/mps2/an521", "GCC_7_3_1",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001100 False, "2", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001101 "off", True, True, "profile_medium", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001102 ("arm/mps2/an521", "GCC_7_3_1",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001103 False, "3", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001104 "off", True, True, "profile_large", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001105 # AN521_GCC_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
1106 ("arm/mps2/an521", "GCC_7_3_1",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001107 False, "2", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001108 "off", True, True, "profile_medium", "OFF", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001109 # MUSCA_B1_GCC_LIB_1_REG_Minsizerel_BL2_NS
1110 ("arm/musca_b1/sse_200", "GCC_7_3_1",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001111 True, "1", True, "OFF", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001112 "off", True, True, "", "ON", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001113 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
Xinyu Zhang433771e2022-04-01 16:49:17 +08001114 ("stm/stm32l562e_dk", "ARMCLANG_6_13",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001115 False, "1", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001116 "off", True, True, "", "ON", "CRYPTO_OFF"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001117 # stm32l562e_dk_GCC_IPC_2_REG_Release_BL2_NS
1118 ("stm/stm32l562e_dk", "GCC_7_3_1",
Xinyu Zhang7c8d3372021-12-22 11:15:42 +08001119 False, "2", False, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001120 "off", True, True, "", "ON", "CRYPTO_ON"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001121 # stm32l562e_dk_GCC_IPC_3_REG_Release_BL2_NS
1122 ("stm/stm32l562e_dk", "GCC_7_3_1",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001123 False, "3", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001124 "off", True, True, "", "ON", "CRYPTO_OFF"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001125 # MUSCA_S1_GCC_IPC_2_REG_Release_BL2_NS_FPHARD
1126 ("arm/musca_s1", "GCC_10_3",
Feder Liang567e8c22021-10-26 14:16:21 +08001127 False, "2", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001128 "off", True, True, "", "ON", "FPHARD"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001129 # MUSCA_S1_GCC_IPC_1_REG_Release_BL2_NS_CC_DRIVER_PSA
1130 ("arm/musca_s1", "GCC_7_3_1",
Xinyu Zhangce8eb082022-02-09 16:28:54 +08001131 False, "1", True, "OFF", "Release",
1132 "off", True, True, "", "ON", "CC_DRIVER_PSA"),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001133 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001134 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001135 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +08001136 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001137 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001138 # valid configs supported by TF-M but not needed in per-patch
1139 ("*", "*", "*", "1", "*", "*", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001140 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001141 ("*", "*", "*", "1", "*", "*", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001142 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001143 ("*", "*", "*", "2", "*", "*", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001144 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001145 ("*", "*", "*", "2", "*", "*", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001146 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001147 ("*", "*", "*", "3", "*", "*", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001148 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001149 ("*", "*", "*", "3", "*", "*", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001150 "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001151 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001152 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001153 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001154 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001155 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001156 "*", "*", "*", "*", "profile_medium", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001157 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001158 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001159 ("*", "GCC_7_3_1", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001160 "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001161 ("*", "ARMCLANG_6_13", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001162 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001163 ("*", "ARMCLANG_6_13", True, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001164 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001165 ]
1166 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001167
Karl Zhang14573bc2020-06-08 09:23:21 +08001168config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001169 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001170 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001171 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001172 "isolation_level": ["1", "2"],
1173 "test_regression": [True],
1174 "test_psa_api": ["OFF"],
1175 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001176 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001177 "with_bl2": [True],
1178 "with_ns": [True, False],
1179 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001180 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001181 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001182 },
1183 "common_params": _common_tfm_builder_cfg,
1184 "invalid": _common_tfm_invalid_configs + []
1185 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001186
1187# Configure build manager to build several combinations
1188config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001189 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001190 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001191 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001192 "isolation_level": ["2"],
1193 "test_regression": [False],
1194 "test_psa_api": ["IPC",
1195 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001196 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +08001197 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001198 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001199 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001200 "with_bl2": [True],
1201 "with_ns": [True, False],
1202 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001203 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001204 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001205 },
1206 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001207 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001208 }
1209
Karl Zhang14573bc2020-06-08 09:23:21 +08001210config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001211 "tfm_platform": ["cypress/psoc64"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001212 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001213 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001214 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001215 "test_regression": [True],
1216 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001217 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001218 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001219 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001220 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001221 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001222 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001223 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001224 },
1225 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001226 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001227 }
1228
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001229config_cov_an519 = {"seed_params": {
1230 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001231 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001232 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001233 "isolation_level": ["1", "2", "3"],
1234 "test_regression": [True, False],
1235 "test_psa_api": ["OFF"],
1236 "cmake_build_type": ["Debug", "Release"],
1237 "with_otp": ["off"],
1238 "with_bl2": [True],
1239 "with_ns": [True],
1240 "profile": ["", "profile_small", "profile_medium"],
1241 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001242 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001243 },
1244 "common_params": _common_tfm_builder_cfg,
1245 "invalid": _common_tfm_invalid_configs + []
1246 }
1247
1248config_cov_an521 = {"seed_params": {
1249 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001250 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001251 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001252 "isolation_level": ["1", "2", "3"],
1253 "test_regression": [True, False],
1254 "test_psa_api": ["OFF"],
1255 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1256 "with_otp": ["off"],
1257 "with_bl2": [True],
1258 "with_ns": [True],
1259 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1260 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001261 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001262 },
1263 "common_params": _common_tfm_builder_cfg,
1264 "invalid": _common_tfm_invalid_configs + []
1265 }
1266
Minos Galanakisea421232019-06-20 17:11:28 +01001267# Configruation used for document building
1268config_doxygen = {"common_params": {
1269 "config_type": "tf-m_documents",
1270 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001271 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001272 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001273 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001274 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001275 "cmake --build ./ -- docs"]},
1276 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1277 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001278 r'/(\w+\.(?:html|md|pdf))$',
1279 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001280 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001281 }
1282
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001283# Configurations used in testing
1284
Minos Galanakisea421232019-06-20 17:11:28 +01001285config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001286 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001287 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001288 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001289 "isolation_level": ["1"],
1290 "test_regression": [False],
1291 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001292 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001293 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001294 "with_bl2": [True],
1295 "with_ns": [True],
1296 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001297 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001298 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +01001299 },
1300 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001301 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001302 }
1303
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001304
1305config_debug_regr = config_debug.copy()
1306config_debug_regr["test_regression"] = [True]
1307
1308
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001309config_debug_PSA_API = {"seed_params": {
1310 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001311 "compiler": ["ARMCLANG_6_13"],
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001312 "lib_model": [True],
1313 "isolation_level": ["1"],
1314 "test_regression": [False],
Paul Sokolovsky7bd338c2022-01-30 14:14:39 +03001315 "test_psa_api": ["CRYPTO",
1316 "INITIAL_ATTESTATION",
Paul Sokolovskyb298d7b2022-02-02 23:27:44 +03001317 "STORAGE",
1318 "IPC"],
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001319 "cmake_build_type": ["Debug"],
1320 "with_otp": ["off"],
1321 "with_bl2": [True],
1322 "with_ns": [True],
1323 "profile": [""],
1324 "partition_ps": ["ON"],
1325 "extra_params": [""]
1326 },
1327 "common_params": _common_tfm_builder_cfg,
1328 "invalid": _common_tfm_invalid_configs + []
1329 }
1330
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001331config_debug_PSA_API_nolib = {"seed_params": {
1332 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001333 "compiler": ["ARMCLANG_6_13"],
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001334 "lib_model": [False],
1335 "isolation_level": ["1"],
1336 "test_regression": [False],
1337 "test_psa_api": ["CRYPTO",
1338 "INITIAL_ATTESTATION",
1339 "STORAGE",
1340 "IPC"],
1341 "cmake_build_type": ["Debug"],
1342 "with_otp": ["off"],
1343 "with_bl2": [True],
1344 "with_ns": [True],
1345 "profile": [""],
1346 "partition_ps": ["ON"],
1347 "extra_params": [""]
1348 },
1349 "common_params": _common_tfm_builder_cfg,
1350 "invalid": _common_tfm_invalid_configs + []
1351 }
1352
Dean Birch4c6ad622020-03-13 11:28:03 +00001353# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001354config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001355 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001356 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001357 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001358 "isolation_level": ["1", "2"],
1359 "test_regression": [True, False],
1360 "test_psa_api": ["OFF"],
1361 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001362 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001363 "with_bl2": [True, False],
1364 "with_ns": [True],
1365 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001366 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001367 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001368 },
1369 "common_params": _common_tfm_builder_cfg,
1370 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +08001371 ("*", "ARMCLANG_6_13", False, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001372 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001373 ("*", "ARMCLANG_6_13", True, "1", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001374 "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001375 ]
1376 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001377
Xinyu Zhangb708f572020-09-15 11:43:46 +08001378config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001379 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001380 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001381 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001382 "isolation_level": ["1", "2"],
1383 "test_regression": [True],
1384 "test_psa_api": ["OFF"],
1385 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001386 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001387 "with_bl2": [True, False],
1388 "with_ns": [True, False],
1389 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001390 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001391 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001392 },
1393 "common_params": _common_tfm_builder_cfg,
1394 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +08001395 ("arm/mps2/an521", "GCC_7_3_1", False, "2", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001396 "*", "*", True, "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001397 ]
1398 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001399
Xinyu Zhang38b76742021-11-11 13:57:56 +08001400config_an547 = {"seed_params": {
1401 "tfm_platform": ["arm/mps3/an547"],
Bence Balogh176b78f2022-02-22 13:49:34 +01001402 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001403 "lib_model": [False],
1404 "isolation_level": ["1"],
1405 "test_regression": [False],
1406 "test_psa_api": ["OFF"],
1407 "cmake_build_type": ["Debug"],
1408 "with_otp": ["off"],
1409 "with_bl2": [True],
1410 "with_ns": [False],
1411 "profile": [""],
1412 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001413 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001414 },
1415 "common_params": _common_tfm_builder_cfg,
1416 "invalid": _common_tfm_invalid_configs + []
1417 }
1418
1419config_corstone_polaris = {"seed_params": {
1420 "tfm_platform": ["arm/mps3/corstone_polaris"],
Bence Balogh176b78f2022-02-22 13:49:34 +01001421 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001422 "lib_model": [False],
1423 "isolation_level": ["1"],
1424 "test_regression": [False],
1425 "test_psa_api": ["OFF"],
1426 "cmake_build_type": ["Debug"],
1427 "with_otp": ["off"],
1428 "with_bl2": [True],
1429 "with_ns": [False],
1430 "profile": [""],
1431 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001432 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001433 },
1434 "common_params": _common_tfm_builder_cfg,
1435 "invalid": _common_tfm_invalid_configs + []
1436 }
1437
1438config_bl5340 = {"seed_params": {
1439 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001440 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001441 "lib_model": [False],
1442 "isolation_level": ["1"],
1443 "test_regression": [False],
1444 "test_psa_api": ["OFF"],
1445 "cmake_build_type": ["Debug"],
1446 "with_otp": ["off"],
1447 "with_bl2": [True],
1448 "with_ns": [False],
1449 "profile": [""],
1450 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001451 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001452 },
1453 "common_params": _common_tfm_builder_cfg,
1454 "invalid": _common_tfm_invalid_configs + []
1455 }
1456
1457config_nrf5340dk = {"seed_params": {
1458 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001459 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001460 "lib_model": [False],
1461 "isolation_level": ["1"],
1462 "test_regression": [False],
1463 "test_psa_api": ["OFF"],
1464 "cmake_build_type": ["Debug"],
1465 "with_otp": ["off"],
1466 "with_bl2": [True],
1467 "with_ns": [False],
1468 "profile": [""],
1469 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001470 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001471 },
1472 "common_params": _common_tfm_builder_cfg,
1473 "invalid": _common_tfm_invalid_configs + []
1474 }
1475
1476config_nrf9160dk = {"seed_params": {
1477 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001478 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001479 "lib_model": [False],
1480 "isolation_level": ["1"],
1481 "test_regression": [False],
1482 "test_psa_api": ["OFF"],
1483 "cmake_build_type": ["Debug"],
1484 "with_otp": ["off"],
1485 "with_bl2": [True],
1486 "with_ns": [False],
1487 "profile": [""],
1488 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001489 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001490 },
1491 "common_params": _common_tfm_builder_cfg,
1492 "invalid": _common_tfm_invalid_configs + []
1493 }
1494
1495config_m2351 = {"seed_params": {
1496 "tfm_platform": ["nuvoton/m2351"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001497 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001498 "lib_model": [False],
1499 "isolation_level": ["1"],
1500 "test_regression": [False],
1501 "test_psa_api": ["OFF"],
1502 "cmake_build_type": ["Release"],
1503 "with_otp": ["off"],
1504 "with_bl2": [True],
1505 "with_ns": [False],
1506 "profile": [""],
1507 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001508 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001509 },
1510 "common_params": _common_tfm_builder_cfg,
1511 "invalid": _common_tfm_invalid_configs + []
1512 }
1513
1514config_m2354 = {"seed_params": {
1515 "tfm_platform": ["nuvoton/m2354"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001516 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001517 "lib_model": [False],
1518 "isolation_level": ["1"],
1519 "test_regression": [False],
1520 "test_psa_api": ["OFF"],
1521 "cmake_build_type": ["Debug"],
1522 "with_otp": ["off"],
1523 "with_bl2": [True],
1524 "with_ns": [False],
1525 "profile": [""],
1526 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001527 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001528 },
1529 "common_params": _common_tfm_builder_cfg,
1530 "invalid": _common_tfm_invalid_configs + []
1531 }
1532
1533config_b_u585i_iot02a = {"seed_params": {
1534 "tfm_platform": ["stm/b_u585i_iot02a"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001535 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001536 "lib_model": [False],
1537 "isolation_level": ["1"],
1538 "test_regression": [False],
1539 "test_psa_api": ["OFF"],
1540 "cmake_build_type": ["Release"],
1541 "with_otp": ["off"],
1542 "with_bl2": [True],
1543 "with_ns": [False],
1544 "profile": [""],
1545 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001546 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001547 },
1548 "common_params": _common_tfm_builder_cfg,
1549 "invalid": _common_tfm_invalid_configs + []
1550 }
1551
1552config_nucleo_l552ze_q = {"seed_params": {
1553 "tfm_platform": ["stm/nucleo_l552ze_q"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001554 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001555 "lib_model": [False],
1556 "isolation_level": ["1"],
1557 "test_regression": [False],
1558 "test_psa_api": ["OFF"],
1559 "cmake_build_type": ["Release"],
1560 "with_otp": ["off"],
1561 "with_bl2": [True],
1562 "with_ns": [False],
1563 "profile": [""],
1564 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001565 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001566 },
1567 "common_params": _common_tfm_builder_cfg,
1568 "invalid": _common_tfm_invalid_configs + []
1569 }
1570
Karl Zhangaff558a2020-05-15 14:28:23 +01001571_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001572 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001573 "tfm_test": config_tfm_test,
1574 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001575 "tfm_profile": config_tfm_profile,
David Huda27ae72022-03-28 15:32:19 +08001576 "tfm_profile_s": config_tfm_profile_s,
Karl Zhangaff558a2020-05-15 14:28:23 +01001577 "tfm_test_otp": config_tfm_test_OTP,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001578 "tfm_nsce": config_nsce,
1579 "tfm_mmio": config_mmio,
Karl Zhangaff558a2020-05-15 14:28:23 +01001580 "psa_api": config_PSA_API,
1581 "psa_api_otp": config_PSA_API_OTP,
1582 "psa_ff": config_PSA_FF,
1583 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001584 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001585 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001586 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001587 "tfm_fp": config_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001588
1589 #nightly test group
1590 "nightly_test": config_nightly,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001591 "nightly_nsce": config_nsce,
1592 "nightly_mmio": config_mmio,
Karl Zhang14573bc2020-06-08 09:23:21 +08001593 "nightly_profile": config_nightly_profile,
David Huda27ae72022-03-28 15:32:19 +08001594 "nightly_profile_s": config_tfm_profile_s,
Karl Zhang14573bc2020-06-08 09:23:21 +08001595 "nightly_psa_api": config_nightly_PSA_API,
1596 "nightly_ff": config_nightly_PSA_FF,
1597 "nightly_otp": config_nightly_OTP,
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001598 "nightly_psoc64": config_nightly_psoc64,
Xinyu Zhang331c47c2021-12-24 10:18:02 +08001599 "nightly_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001600 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001601 "nightly_fp":config_nightly_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001602
1603 #per patch test group
1604 "pp_test": config_pp_test,
1605 "pp_OTP": config_pp_OTP,
1606 "pp_PSA_API": config_pp_PSA_API,
1607 "pp_psoc64": config_pp_PSoC64,
1608
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001609 #code coverage test group
1610 "coverage_an519": config_cov_an519,
1611 "coverage_an521": config_cov_an521,
1612
Xinyu Zhang38b76742021-11-11 13:57:56 +08001613 #extra build group
1614 "arm_corstone1000": config_corstone1000,
1615 "arm_an547": config_an547,
Bence Balogh176b78f2022-02-22 13:49:34 +01001616 "arm_an552": config_an552,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001617 "arm_corstone_polaris": config_corstone_polaris,
1618 "cypress_psoc64": config_PSOC64,
1619 "laird_bl5340": config_bl5340,
1620 "nordic_nrf5340dk": config_nrf5340dk,
1621 "nordic_nrf9160dk": config_nrf9160dk,
1622 "nuvoton_m2351": config_m2351,
1623 "nuvoton_m2354": config_m2354,
1624 "nxp_lpcxpresso55s69": config_LPCXPRESSO55S69,
1625 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1626 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1627 "stm_stm32l562e_dk": config_STM32L562E_DK,
1628
Karl Zhang14573bc2020-06-08 09:23:21 +08001629 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001630 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001631
1632 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001633 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001634 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001635 "an521_psa_api": config_AN521_PSA_API,
1636 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001637 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001638 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001639 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001640 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001641 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001642 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001643 "ipc": config_IPC,
1644 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001645 "debug": config_debug,
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001646 "debug_regr": config_debug_regr,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001647 "debug_PSA_API": config_debug_PSA_API,
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001648 "debug_PSA_API_nolib": config_debug_PSA_API_nolib,
Karl Zhangaff558a2020-05-15 14:28:23 +01001649 "release": config_release,
Karl Zhang14573bc2020-06-08 09:23:21 +08001650
1651 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001652 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001653 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001654
1655if __name__ == '__main__':
1656 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001657
Minos Galanakisea421232019-06-20 17:11:28 +01001658 # Default behavior is to export refference config when called
1659 _dir = os.getcwd()
1660 from utils import save_json
1661 for _cname, _cfg in _builtin_configs.items():
1662 _fname = os.path.join(_dir, _cname + ".json")
1663 print("Exporting config %s" % _fname)
1664 save_json(_fname, _cfg)