blob: 96495b69ba6cbf214f7ce3573882ff83357c550f [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,
Xinyu Zhang47bfc0e2022-04-06 17:26:59 +0800602 "valid": [
603 # sanity test for GCC v11.2
604 # AN521_GCC_IPC_3_REG_Relwithdebinfo_BL2_NS
605 ("arm/mps2/an521", "GCC_11_2",
606 False, "3", True, "OFF", "Relwithdebinfo",
607 "off", True, True, "", "ON", ""),
608 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800609 "invalid": _common_tfm_invalid_configs + []
610 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800611
Karl Zhangaff558a2020-05-15 14:28:23 +0100612config_tfm_test2 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800613 "tfm_platform": ["arm/mps2/an519", "arm/mps3/an524"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800614 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800615 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800616 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800617 "test_regression": [True, False],
618 "test_psa_api": ["OFF"],
619 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800620 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800621 "with_bl2": [True],
622 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800623 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800624 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800625 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800626 },
627 "common_params": _common_tfm_builder_cfg,
628 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800629 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800630 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800631 ]
632 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100633
Karl Zhang14573bc2020-06-08 09:23:21 +0800634config_tfm_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800635 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
636 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800637 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
David Huda27ae72022-03-28 15:32:19 +0800638 "lib_model": [False],
639 "isolation_level": ["2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800640 "test_regression": [True, False],
641 "test_psa_api": ["OFF"],
642 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800643 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800644 "with_bl2": [True],
645 "with_ns": [True],
David Huda27ae72022-03-28 15:32:19 +0800646 "profile": ["profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800647 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800648 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800649 },
650 "common_params": _common_tfm_builder_cfg,
651 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800652 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800653 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800654 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800655 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800656 "*", "profile_large", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800657 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800658 "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800659 ]
660 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800661
David Huda27ae72022-03-28 15:32:19 +0800662config_tfm_profile_s = {"seed_params": {
663 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800664 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
David Huda27ae72022-03-28 15:32:19 +0800665 "lib_model": [True],
666 "isolation_level": ["1"],
667 "test_regression": [True, False],
668 "test_psa_api": ["OFF"],
669 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
670 "with_otp": ["OFF"],
671 "with_bl2": [True],
672 "with_ns": [True],
673 "profile": ["profile_small"],
674 "partition_ps": ["OFF"],
675 "extra_params": [""]
676 },
677 "common_params": _common_tfm_builder_cfg,
678 "valid": [
679 # Profile Small also supports SFN model
680 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "*",
681 "*", "SFN_ENABLE")
682 ],
683 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800684 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
David Huda27ae72022-03-28 15:32:19 +0800685 "*", "Minsizerel", "*", "*", "*", "*", "*", "*")
686 ]
687 }
688
Karl Zhangaff558a2020-05-15 14:28:23 +0100689config_tfm_test_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800690 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800691 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800692 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800693 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800694 "test_regression": [True, False],
695 "test_psa_api": ["OFF"],
696 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800697 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800698 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800699 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800700 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800701 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800702 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800703 },
704 "common_params": _common_tfm_builder_cfg,
705 "invalid": _common_tfm_invalid_configs + []
706 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100707
Minos Galanakisea421232019-06-20 17:11:28 +0100708config_MUSCA_B1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800709 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800710 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800711 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800712 "isolation_level": ["1", "2"],
713 "test_regression": [True, False],
714 "test_psa_api": ["OFF"],
715 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800716 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800717 "with_bl2": [True],
718 "with_ns": [True, False],
719 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800720 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800721 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800722 },
723 "common_params": _common_tfm_builder_cfg,
724 "invalid": _common_tfm_invalid_configs + []
725 }
Minos Galanakisea421232019-06-20 17:11:28 +0100726
Mark Horvath8d281cd2020-12-07 15:20:26 +0100727config_MUSCA_B1_SE = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800728 "tfm_platform": ["arm/musca_b1/secure_enclave"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800729 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800730 "lib_model": [False],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100731 "isolation_level": ["1"],
732 "test_regression": [False],
733 "test_psa_api": ["OFF"],
734 "cmake_build_type": ["Debug", "Release"],
735 "with_otp": ["off"],
736 "with_bl2": [True],
737 "with_ns": [False],
738 "profile": [""],
739 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800740 "extra_params": [""]
Mark Horvath8d281cd2020-12-07 15:20:26 +0100741 },
742 "common_params": _common_tfm_builder_cfg,
743 "invalid": _common_tfm_invalid_configs + []
744 }
745
Karl Zhangeffed972020-06-30 15:48:01 +0800746config_MUSCA_S1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800747 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800748 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800749 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800750 "isolation_level": ["1", "2"],
751 "test_regression": [True, False],
752 "test_psa_api": ["OFF"],
753 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800754 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800755 "with_bl2": [True],
756 "with_ns": [True, False],
757 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800758 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800759 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800760 },
761 "common_params": _common_tfm_builder_cfg,
762 "invalid": _common_tfm_invalid_configs + []
763 }
Karl Zhangeffed972020-06-30 15:48:01 +0800764
Karl Zhangaff558a2020-05-15 14:28:23 +0100765config_release = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800766 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
767 "arm/musca_b1/sse_200", "arm/musca_s1",
768 "arm/mps3/an524"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800769 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800770 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800771 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800772 "test_regression": [True, False],
773 "test_psa_api": ["OFF"],
774 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800775 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800776 "with_bl2": [True, False],
777 "with_ns": [True, False],
778 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800779 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800780 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800781 },
782 "common_params": _common_tfm_builder_cfg,
783 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800784 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800785 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800786 ]
787 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100788
789# Configure build manager to build several combinations
790config_AN521_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800791 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
792 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800793 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800794 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800795 "isolation_level": ["1", "2"],
796 "test_regression": [False],
797 "test_psa_api": ["IPC",
798 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800799 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800800 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800801 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800802 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800803 "with_bl2": [True],
804 "with_ns": [True, False],
805 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800806 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800807 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100808 },
809 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800810 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800811 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800812 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800813 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100814 }
815
Karl Zhangaff558a2020-05-15 14:28:23 +0100816config_AN521_PSA_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800817 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
818 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800819 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800820 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800821 "isolation_level": ["1", "2"],
822 "test_regression": [False],
823 "test_psa_api": ["IPC"],
824 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800825 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800826 "with_bl2": [True],
827 "with_ns": [True, False],
828 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800829 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800830 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100831 },
832 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800833 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800834 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800835 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800836 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100837 }
838
Karl Zhang14573bc2020-06-08 09:23:21 +0800839config_nightly = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800840 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
841 "arm/musca_b1/sse_200", "arm/musca_s1",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800842 "arm/mps3/an524", "arm/musca_b1/secure_enclave"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800843 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800844 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800845 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800846 "test_regression": [True, False],
847 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800848 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800849 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800850 "with_bl2": [True],
851 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800852 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800853 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800854 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800855 },
856 "common_params": _common_tfm_builder_cfg,
857 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800858 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800859 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800860 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800861 "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800862 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Feder Liang357b1602022-01-11 16:47:49 +0800863 True, "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800864 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800865 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800866 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800867 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800868 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800869 "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800870 ("arm/musca_s1", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800871 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800872 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800873 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800874 ]
875 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800876
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800877config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800878 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800879 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800880 "lib_model": [True, False],
881 "isolation_level": ["1", "2", "3"],
882 "test_regression": [True],
883 "test_psa_api": ["OFF"],
884 "cmake_build_type": ["Debug"],
885 "with_otp": ["off"],
886 "with_bl2": [True],
887 "with_ns": [True],
888 "profile": [""],
889 "partition_ps": ["ON"],
Xinyu Zhang67612992021-12-20 14:11:27 +0800890 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800891 },
892 "common_params": _common_tfm_builder_cfg,
893 "invalid": _common_tfm_invalid_configs + []
894 }
895
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800896config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800897 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800898 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800899 "lib_model": [False],
900 "isolation_level": ["1"],
901 "test_regression": [True],
902 "test_psa_api": ["OFF"],
903 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
904 "with_otp": ["off"],
905 "with_bl2": [True],
906 "with_ns": [True],
907 "profile": [""],
908 "partition_ps": ["ON"],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800909 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800910 },
911 "common_params": _common_tfm_builder_cfg,
912 "invalid": _common_tfm_invalid_configs + []
913 }
914
Xinyu Zhangbdc37e32022-04-06 17:47:44 +0800915config_cc_driver_psa = {"seed_params": {
916 "tfm_platform": ["arm/musca_b1/sse_200",
917 "arm/musca_s1"],
918 "compiler": ["GCC_7_3_1"],
919 "lib_model": [False],
920 "isolation_level": ["1"],
921 "test_regression": [True],
922 "test_psa_api": ["OFF"],
923 "cmake_build_type": ["Release"],
924 "with_otp": ["off"],
925 "with_bl2": [True],
926 "with_ns": [True],
927 "profile": [""],
928 "partition_ps": ["ON"],
929 "extra_params": ["CC_DRIVER_PSA"]
930 },
931 "common_params": _common_tfm_builder_cfg,
932 "invalid": _common_tfm_invalid_configs + []
933 }
934
Karl Zhang14573bc2020-06-08 09:23:21 +0800935config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800936 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
937 "arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800938 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
David Huda27ae72022-03-28 15:32:19 +0800939 "lib_model": [False],
940 "isolation_level": ["2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800941 "test_regression": [True, False],
942 "test_psa_api": ["OFF"],
943 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800944 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800945 "with_bl2": [True],
946 "with_ns": [True],
David Huda27ae72022-03-28 15:32:19 +0800947 "profile": ["profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800948 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800949 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800950 },
951 "common_params": _common_tfm_builder_cfg,
952 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +0800953 ("arm/mps2/an519", "GCC_7_3_1", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800954 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800955 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800956 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800957 "*", "profile_large", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800958 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800959 "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800960 ]
961 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800962
Karl Zhang14573bc2020-06-08 09:23:21 +0800963config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800964 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
965 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800966 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800967 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800968 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800969 "test_regression": [False],
970 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800971 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800972 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800973 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800974 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800975 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800976 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800977 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800978 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800979 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800980 },
981 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800982 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800983 }
984
Karl Zhang14573bc2020-06-08 09:23:21 +0800985config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800986 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
987 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +0800988 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800989 "lib_model": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800990 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800991 "test_regression": [False],
992 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800993 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800994 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800995 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800996 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800997 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800998 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800999 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001000 },
1001 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001002 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001003 }
1004
Karl Zhang14573bc2020-06-08 09:23:21 +08001005config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001006 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001007 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001008 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +08001009 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001010 "test_regression": [True],
1011 "test_psa_api": ["OFF"],
1012 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001013 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001014 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +08001015 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001016 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001017 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001018 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001019 },
1020 "common_params": _common_tfm_builder_cfg,
1021 "invalid": _common_tfm_invalid_configs + []
1022 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001023
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001024config_nightly_psoc64 = {"seed_params": {
1025 "tfm_platform": ["cypress/psoc64"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001026 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001027 "lib_model": [False],
1028 "isolation_level": ["1", "2"],
1029 "test_regression": [True],
1030 "test_psa_api": ["OFF"],
1031 "cmake_build_type": ["Release"],
1032 "with_otp": ["off"],
1033 "with_bl2": [False],
1034 "with_ns": [True],
1035 "profile": [""],
1036 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001037 "extra_params": [""]
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001038 },
1039 "common_params": _common_tfm_builder_cfg,
1040 "invalid": _common_tfm_invalid_configs + []
1041 }
1042
Arthur Shef3657742021-09-07 14:23:18 -07001043config_nightly_LPCXPRESSO55S69 = {"seed_params": {
1044 "tfm_platform": ["nxp/lpcxpresso55s69"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001045 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001046 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001047 "isolation_level": ["2"],
1048 "test_regression": [True, False],
1049 "test_psa_api": ["OFF"],
1050 "cmake_build_type": ["Relwithdebinfo"],
1051 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -08001052 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001053 "with_ns": [True],
1054 "profile": ["profile_medium"],
1055 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001056 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +08001057 },
1058 "common_params": _common_tfm_builder_cfg,
1059 "invalid": _common_tfm_invalid_configs + []
1060 }
1061
1062config_nightly_FP = {"seed_params": {
1063 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001064 "compiler": ["GCC_10_3"],
Feder Liang567e8c22021-10-26 14:16:21 +08001065 "lib_model": [False],
1066 "isolation_level": ["1", "2"],
1067 "test_regression": [True],
1068 "test_psa_api": ["OFF"],
1069 "cmake_build_type": ["Debug"],
1070 "with_otp": ["off"],
1071 "with_bl2": [True],
1072 "with_ns": [True],
1073 "profile": [""],
1074 "partition_ps": ["ON"],
Feder Liang357b1602022-01-11 16:47:49 +08001075 "extra_params": ["FPSOFT", "FPHARD", "FPHARD_LOFF"]
Arthur Shef3657742021-09-07 14:23:18 -07001076 },
1077 "common_params": _common_tfm_builder_cfg,
1078 "invalid": _common_tfm_invalid_configs + []
1079 }
1080
Karl Zhang14573bc2020-06-08 09:23:21 +08001081config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001082 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +08001083 "arm/musca_s1"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001084 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001085 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +08001086 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001087 "test_regression": [True],
1088 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001089 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001090 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001091 "with_bl2": [True],
1092 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001093 "profile": ["", "profile_small", "profile_medium"],
1094 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001095 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001096 },
1097 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001098 "valid": [
Xinyu Zhang433771e2022-04-01 16:49:17 +08001099 ("arm/mps2/an521", "GCC_7_3_1",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001100 True, "1", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001101 "off", True, True, "", "ON", ""),
Bence Balogh176b78f2022-02-22 13:49:34 +01001102 # AN552_GNUARM_IPC_1_REG_Debug_BL2_NS
1103 ("arm/mps3/an552", "GCC_10_3",
1104 False, "1", True, "OFF", "Debug",
1105 "off", True, True, "", "ON", ""),
1106 # AN552_GNUARM_IPC_1_REG_Release_BL2_NS
1107 ("arm/mps3/an552", "GCC_10_3",
1108 False, "1", True, "OFF", "Release",
1109 "off", True, True, "", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001110 ("arm/mps2/an521", "ARMCLANG_6_13",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001111 False, "2", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001112 "off", True, True, "", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001113 ("arm/mps2/an521", "ARMCLANG_6_13",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001114 False, "3", False, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001115 "off", True, True, "", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001116 ("arm/mps2/an521", "GCC_7_3_1",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001117 False, "2", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001118 "off", True, True, "profile_medium", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001119 ("arm/mps2/an521", "GCC_7_3_1",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001120 False, "3", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001121 "off", True, True, "profile_large", "ON", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001122 # AN521_GCC_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
1123 ("arm/mps2/an521", "GCC_7_3_1",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001124 False, "2", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001125 "off", True, True, "profile_medium", "OFF", ""),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001126 # MUSCA_B1_GCC_LIB_1_REG_Minsizerel_BL2_NS
1127 ("arm/musca_b1/sse_200", "GCC_7_3_1",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001128 True, "1", True, "OFF", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001129 "off", True, True, "", "ON", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001130 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
Xinyu Zhang433771e2022-04-01 16:49:17 +08001131 ("stm/stm32l562e_dk", "ARMCLANG_6_13",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001132 False, "1", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001133 "off", True, True, "", "ON", "CRYPTO_OFF"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001134 # stm32l562e_dk_GCC_IPC_2_REG_Release_BL2_NS
1135 ("stm/stm32l562e_dk", "GCC_7_3_1",
Xinyu Zhang7c8d3372021-12-22 11:15:42 +08001136 False, "2", False, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001137 "off", True, True, "", "ON", "CRYPTO_ON"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001138 # stm32l562e_dk_GCC_IPC_3_REG_Release_BL2_NS
1139 ("stm/stm32l562e_dk", "GCC_7_3_1",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001140 False, "3", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001141 "off", True, True, "", "ON", "CRYPTO_OFF"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001142 # MUSCA_S1_GCC_IPC_2_REG_Release_BL2_NS_FPHARD
1143 ("arm/musca_s1", "GCC_10_3",
Feder Liang567e8c22021-10-26 14:16:21 +08001144 False, "2", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001145 "off", True, True, "", "ON", "FPHARD"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001146 # MUSCA_S1_GCC_IPC_1_REG_Release_BL2_NS_CC_DRIVER_PSA
1147 ("arm/musca_s1", "GCC_7_3_1",
Xinyu Zhangce8eb082022-02-09 16:28:54 +08001148 False, "1", True, "OFF", "Release",
1149 "off", True, True, "", "ON", "CC_DRIVER_PSA"),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001150 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001151 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001152 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +08001153 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001154 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001155 # valid configs supported by TF-M but not needed in per-patch
1156 ("*", "*", "*", "1", "*", "*", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001157 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001158 ("*", "*", "*", "1", "*", "*", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001159 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001160 ("*", "*", "*", "2", "*", "*", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001161 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001162 ("*", "*", "*", "2", "*", "*", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001163 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001164 ("*", "*", "*", "3", "*", "*", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001165 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001166 ("*", "*", "*", "3", "*", "*", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001167 "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001168 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001169 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001170 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001171 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001172 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001173 "*", "*", "*", "*", "profile_medium", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001174 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001175 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001176 ("*", "GCC_7_3_1", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001177 "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001178 ("*", "ARMCLANG_6_13", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001179 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001180 ("*", "ARMCLANG_6_13", True, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001181 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001182 ]
1183 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001184
Karl Zhang14573bc2020-06-08 09:23:21 +08001185config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001186 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001187 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001188 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001189 "isolation_level": ["1", "2"],
1190 "test_regression": [True],
1191 "test_psa_api": ["OFF"],
1192 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001193 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001194 "with_bl2": [True],
1195 "with_ns": [True, False],
1196 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001197 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001198 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001199 },
1200 "common_params": _common_tfm_builder_cfg,
1201 "invalid": _common_tfm_invalid_configs + []
1202 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001203
1204# Configure build manager to build several combinations
1205config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001206 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001207 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001208 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001209 "isolation_level": ["2"],
1210 "test_regression": [False],
1211 "test_psa_api": ["IPC",
1212 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001213 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +08001214 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001215 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001216 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001217 "with_bl2": [True],
1218 "with_ns": [True, False],
1219 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001220 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001221 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001222 },
1223 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001224 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001225 }
1226
Karl Zhang14573bc2020-06-08 09:23:21 +08001227config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001228 "tfm_platform": ["cypress/psoc64"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001229 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001230 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001231 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001232 "test_regression": [True],
1233 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001234 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001235 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001236 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001237 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001238 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001239 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001240 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001241 },
1242 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001243 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001244 }
1245
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001246config_cov_an519 = {"seed_params": {
1247 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001248 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001249 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001250 "isolation_level": ["1", "2", "3"],
1251 "test_regression": [True, False],
1252 "test_psa_api": ["OFF"],
1253 "cmake_build_type": ["Debug", "Release"],
1254 "with_otp": ["off"],
1255 "with_bl2": [True],
1256 "with_ns": [True],
1257 "profile": ["", "profile_small", "profile_medium"],
1258 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001259 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001260 },
1261 "common_params": _common_tfm_builder_cfg,
1262 "invalid": _common_tfm_invalid_configs + []
1263 }
1264
1265config_cov_an521 = {"seed_params": {
1266 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001267 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001268 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001269 "isolation_level": ["1", "2", "3"],
1270 "test_regression": [True, False],
1271 "test_psa_api": ["OFF"],
1272 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1273 "with_otp": ["off"],
1274 "with_bl2": [True],
1275 "with_ns": [True],
1276 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1277 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001278 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001279 },
1280 "common_params": _common_tfm_builder_cfg,
1281 "invalid": _common_tfm_invalid_configs + []
1282 }
1283
Minos Galanakisea421232019-06-20 17:11:28 +01001284# Configruation used for document building
1285config_doxygen = {"common_params": {
1286 "config_type": "tf-m_documents",
1287 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001288 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001289 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001290 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001291 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001292 "cmake --build ./ -- docs"]},
1293 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1294 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001295 r'/(\w+\.(?:html|md|pdf))$',
1296 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001297 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001298 }
1299
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001300# Configurations used in testing
1301
Minos Galanakisea421232019-06-20 17:11:28 +01001302config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001303 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001304 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001305 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001306 "isolation_level": ["1"],
1307 "test_regression": [False],
1308 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001309 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001310 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001311 "with_bl2": [True],
1312 "with_ns": [True],
1313 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001314 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001315 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +01001316 },
1317 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001318 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001319 }
1320
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001321
1322config_debug_regr = config_debug.copy()
1323config_debug_regr["test_regression"] = [True]
1324
1325
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001326config_debug_PSA_API = {"seed_params": {
1327 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001328 "compiler": ["ARMCLANG_6_13"],
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001329 "lib_model": [True],
1330 "isolation_level": ["1"],
1331 "test_regression": [False],
Paul Sokolovsky7bd338c2022-01-30 14:14:39 +03001332 "test_psa_api": ["CRYPTO",
1333 "INITIAL_ATTESTATION",
Paul Sokolovskyb298d7b2022-02-02 23:27:44 +03001334 "STORAGE",
1335 "IPC"],
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001336 "cmake_build_type": ["Debug"],
1337 "with_otp": ["off"],
1338 "with_bl2": [True],
1339 "with_ns": [True],
1340 "profile": [""],
1341 "partition_ps": ["ON"],
1342 "extra_params": [""]
1343 },
1344 "common_params": _common_tfm_builder_cfg,
1345 "invalid": _common_tfm_invalid_configs + []
1346 }
1347
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001348config_debug_PSA_API_nolib = {"seed_params": {
1349 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001350 "compiler": ["ARMCLANG_6_13"],
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001351 "lib_model": [False],
1352 "isolation_level": ["1"],
1353 "test_regression": [False],
1354 "test_psa_api": ["CRYPTO",
1355 "INITIAL_ATTESTATION",
1356 "STORAGE",
1357 "IPC"],
1358 "cmake_build_type": ["Debug"],
1359 "with_otp": ["off"],
1360 "with_bl2": [True],
1361 "with_ns": [True],
1362 "profile": [""],
1363 "partition_ps": ["ON"],
1364 "extra_params": [""]
1365 },
1366 "common_params": _common_tfm_builder_cfg,
1367 "invalid": _common_tfm_invalid_configs + []
1368 }
1369
Dean Birch4c6ad622020-03-13 11:28:03 +00001370# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001371config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001372 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001373 "compiler": ["GCC_7_3_1", "ARMCLANG_6_13"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001374 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001375 "isolation_level": ["1", "2"],
1376 "test_regression": [True, False],
1377 "test_psa_api": ["OFF"],
1378 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001379 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001380 "with_bl2": [True, False],
1381 "with_ns": [True],
1382 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001383 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001384 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001385 },
1386 "common_params": _common_tfm_builder_cfg,
1387 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +08001388 ("*", "ARMCLANG_6_13", False, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001389 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang433771e2022-04-01 16:49:17 +08001390 ("*", "ARMCLANG_6_13", True, "1", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001391 "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001392 ]
1393 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001394
Xinyu Zhangb708f572020-09-15 11:43:46 +08001395config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001396 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001397 "compiler": ["GCC_7_3_1"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001398 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001399 "isolation_level": ["1", "2"],
1400 "test_regression": [True],
1401 "test_psa_api": ["OFF"],
1402 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001403 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001404 "with_bl2": [True, False],
1405 "with_ns": [True, False],
1406 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001407 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001408 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001409 },
1410 "common_params": _common_tfm_builder_cfg,
1411 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang433771e2022-04-01 16:49:17 +08001412 ("arm/mps2/an521", "GCC_7_3_1", False, "2", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001413 "*", "*", True, "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001414 ]
1415 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001416
Xinyu Zhang38b76742021-11-11 13:57:56 +08001417config_an547 = {"seed_params": {
1418 "tfm_platform": ["arm/mps3/an547"],
Bence Balogh176b78f2022-02-22 13:49:34 +01001419 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001420 "lib_model": [False],
1421 "isolation_level": ["1"],
1422 "test_regression": [False],
1423 "test_psa_api": ["OFF"],
1424 "cmake_build_type": ["Debug"],
1425 "with_otp": ["off"],
1426 "with_bl2": [True],
1427 "with_ns": [False],
1428 "profile": [""],
1429 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001430 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001431 },
1432 "common_params": _common_tfm_builder_cfg,
1433 "invalid": _common_tfm_invalid_configs + []
1434 }
1435
1436config_corstone_polaris = {"seed_params": {
1437 "tfm_platform": ["arm/mps3/corstone_polaris"],
Bence Balogh176b78f2022-02-22 13:49:34 +01001438 "compiler": ["GCC_10_3"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001439 "lib_model": [False],
1440 "isolation_level": ["1"],
1441 "test_regression": [False],
1442 "test_psa_api": ["OFF"],
1443 "cmake_build_type": ["Debug"],
1444 "with_otp": ["off"],
1445 "with_bl2": [True],
1446 "with_ns": [False],
1447 "profile": [""],
1448 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001449 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001450 },
1451 "common_params": _common_tfm_builder_cfg,
1452 "invalid": _common_tfm_invalid_configs + []
1453 }
1454
1455config_bl5340 = {"seed_params": {
1456 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001457 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001458 "lib_model": [False],
1459 "isolation_level": ["1"],
1460 "test_regression": [False],
1461 "test_psa_api": ["OFF"],
1462 "cmake_build_type": ["Debug"],
1463 "with_otp": ["off"],
1464 "with_bl2": [True],
1465 "with_ns": [False],
1466 "profile": [""],
1467 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001468 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001469 },
1470 "common_params": _common_tfm_builder_cfg,
1471 "invalid": _common_tfm_invalid_configs + []
1472 }
1473
1474config_nrf5340dk = {"seed_params": {
1475 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001476 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001477 "lib_model": [False],
1478 "isolation_level": ["1"],
1479 "test_regression": [False],
1480 "test_psa_api": ["OFF"],
1481 "cmake_build_type": ["Debug"],
1482 "with_otp": ["off"],
1483 "with_bl2": [True],
1484 "with_ns": [False],
1485 "profile": [""],
1486 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001487 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001488 },
1489 "common_params": _common_tfm_builder_cfg,
1490 "invalid": _common_tfm_invalid_configs + []
1491 }
1492
1493config_nrf9160dk = {"seed_params": {
1494 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001495 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001496 "lib_model": [False],
1497 "isolation_level": ["1"],
1498 "test_regression": [False],
1499 "test_psa_api": ["OFF"],
1500 "cmake_build_type": ["Debug"],
1501 "with_otp": ["off"],
1502 "with_bl2": [True],
1503 "with_ns": [False],
1504 "profile": [""],
1505 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001506 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001507 },
1508 "common_params": _common_tfm_builder_cfg,
1509 "invalid": _common_tfm_invalid_configs + []
1510 }
1511
1512config_m2351 = {"seed_params": {
1513 "tfm_platform": ["nuvoton/m2351"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001514 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001515 "lib_model": [False],
1516 "isolation_level": ["1"],
1517 "test_regression": [False],
1518 "test_psa_api": ["OFF"],
1519 "cmake_build_type": ["Release"],
1520 "with_otp": ["off"],
1521 "with_bl2": [True],
1522 "with_ns": [False],
1523 "profile": [""],
1524 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001525 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001526 },
1527 "common_params": _common_tfm_builder_cfg,
1528 "invalid": _common_tfm_invalid_configs + []
1529 }
1530
1531config_m2354 = {"seed_params": {
1532 "tfm_platform": ["nuvoton/m2354"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001533 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001534 "lib_model": [False],
1535 "isolation_level": ["1"],
1536 "test_regression": [False],
1537 "test_psa_api": ["OFF"],
1538 "cmake_build_type": ["Debug"],
1539 "with_otp": ["off"],
1540 "with_bl2": [True],
1541 "with_ns": [False],
1542 "profile": [""],
1543 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001544 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001545 },
1546 "common_params": _common_tfm_builder_cfg,
1547 "invalid": _common_tfm_invalid_configs + []
1548 }
1549
1550config_b_u585i_iot02a = {"seed_params": {
1551 "tfm_platform": ["stm/b_u585i_iot02a"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001552 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001553 "lib_model": [False],
1554 "isolation_level": ["1"],
1555 "test_regression": [False],
1556 "test_psa_api": ["OFF"],
1557 "cmake_build_type": ["Release"],
1558 "with_otp": ["off"],
1559 "with_bl2": [True],
1560 "with_ns": [False],
1561 "profile": [""],
1562 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001563 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001564 },
1565 "common_params": _common_tfm_builder_cfg,
1566 "invalid": _common_tfm_invalid_configs + []
1567 }
1568
1569config_nucleo_l552ze_q = {"seed_params": {
1570 "tfm_platform": ["stm/nucleo_l552ze_q"],
Xinyu Zhang433771e2022-04-01 16:49:17 +08001571 "compiler": ["GCC_7_3_1"],
Xinyu Zhang38b76742021-11-11 13:57:56 +08001572 "lib_model": [False],
1573 "isolation_level": ["1"],
1574 "test_regression": [False],
1575 "test_psa_api": ["OFF"],
1576 "cmake_build_type": ["Release"],
1577 "with_otp": ["off"],
1578 "with_bl2": [True],
1579 "with_ns": [False],
1580 "profile": [""],
1581 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001582 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001583 },
1584 "common_params": _common_tfm_builder_cfg,
1585 "invalid": _common_tfm_invalid_configs + []
1586 }
1587
Karl Zhangaff558a2020-05-15 14:28:23 +01001588_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001589 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001590 "tfm_test": config_tfm_test,
1591 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001592 "tfm_profile": config_tfm_profile,
David Huda27ae72022-03-28 15:32:19 +08001593 "tfm_profile_s": config_tfm_profile_s,
Karl Zhangaff558a2020-05-15 14:28:23 +01001594 "tfm_test_otp": config_tfm_test_OTP,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001595 "tfm_nsce": config_nsce,
1596 "tfm_mmio": config_mmio,
Karl Zhangaff558a2020-05-15 14:28:23 +01001597 "psa_api": config_PSA_API,
1598 "psa_api_otp": config_PSA_API_OTP,
1599 "psa_ff": config_PSA_FF,
1600 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001601 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001602 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001603 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001604 "tfm_fp": config_FP,
Xinyu Zhangbdc37e32022-04-06 17:47:44 +08001605 "tfm_cc_driver_psa": config_cc_driver_psa,
Karl Zhang14573bc2020-06-08 09:23:21 +08001606
1607 #nightly test group
1608 "nightly_test": config_nightly,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001609 "nightly_nsce": config_nsce,
1610 "nightly_mmio": config_mmio,
Karl Zhang14573bc2020-06-08 09:23:21 +08001611 "nightly_profile": config_nightly_profile,
David Huda27ae72022-03-28 15:32:19 +08001612 "nightly_profile_s": config_tfm_profile_s,
Karl Zhang14573bc2020-06-08 09:23:21 +08001613 "nightly_psa_api": config_nightly_PSA_API,
1614 "nightly_ff": config_nightly_PSA_FF,
1615 "nightly_otp": config_nightly_OTP,
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001616 "nightly_psoc64": config_nightly_psoc64,
Xinyu Zhang331c47c2021-12-24 10:18:02 +08001617 "nightly_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001618 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001619 "nightly_fp":config_nightly_FP,
Xinyu Zhangbdc37e32022-04-06 17:47:44 +08001620 "nightly_cc_driver_psa": config_cc_driver_psa,
Karl Zhang14573bc2020-06-08 09:23:21 +08001621
1622 #per patch test group
1623 "pp_test": config_pp_test,
1624 "pp_OTP": config_pp_OTP,
1625 "pp_PSA_API": config_pp_PSA_API,
1626 "pp_psoc64": config_pp_PSoC64,
1627
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001628 #code coverage test group
1629 "coverage_an519": config_cov_an519,
1630 "coverage_an521": config_cov_an521,
1631
Xinyu Zhang38b76742021-11-11 13:57:56 +08001632 #extra build group
1633 "arm_corstone1000": config_corstone1000,
1634 "arm_an547": config_an547,
Bence Balogh176b78f2022-02-22 13:49:34 +01001635 "arm_an552": config_an552,
Xinyu Zhang38b76742021-11-11 13:57:56 +08001636 "arm_corstone_polaris": config_corstone_polaris,
1637 "cypress_psoc64": config_PSOC64,
1638 "laird_bl5340": config_bl5340,
1639 "nordic_nrf5340dk": config_nrf5340dk,
1640 "nordic_nrf9160dk": config_nrf9160dk,
1641 "nuvoton_m2351": config_m2351,
1642 "nuvoton_m2354": config_m2354,
1643 "nxp_lpcxpresso55s69": config_LPCXPRESSO55S69,
1644 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1645 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1646 "stm_stm32l562e_dk": config_STM32L562E_DK,
1647
Karl Zhang14573bc2020-06-08 09:23:21 +08001648 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001649 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001650
1651 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001652 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001653 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001654 "an521_psa_api": config_AN521_PSA_API,
1655 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001656 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001657 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001658 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001659 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001660 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001661 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001662 "ipc": config_IPC,
1663 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001664 "debug": config_debug,
Paul Sokolovsky6c3c6562022-04-04 23:23:02 +03001665 "debug_regr": config_debug_regr,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001666 "debug_PSA_API": config_debug_PSA_API,
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001667 "debug_PSA_API_nolib": config_debug_PSA_API_nolib,
Karl Zhangaff558a2020-05-15 14:28:23 +01001668 "release": config_release,
Karl Zhang14573bc2020-06-08 09:23:21 +08001669
1670 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001671 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001672 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001673
1674if __name__ == '__main__':
1675 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001676
Minos Galanakisea421232019-06-20 17:11:28 +01001677 # Default behavior is to export refference config when called
1678 _dir = os.getcwd()
1679 from utils import save_json
1680 for _cname, _cfg in _builtin_configs.items():
1681 _fname = os.path.join(_dir, _cname + ".json")
1682 print("Exporting config %s" % _fname)
1683 save_json(_fname, _cfg)