blob: d50fb843d05e25fc79cd125b4c62f9fcce43a1cd [file] [log] [blame]
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001#!/usr/bin/env python3
2
3""" builtin_configs.py:
4
5 Default configuration files used as reference """
6
7from __future__ import print_function
8
9__copyright__ = """
10/*
Raef Coles61b43a42022-01-12 11:42:57 +000011 * Copyright (c) 2018-2022, Arm Limited. All rights reserved.
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010012 *
13 * SPDX-License-Identifier: BSD-3-Clause
14 *
15 */
16 """
Karl Zhang08681e62020-10-30 13:56:03 +080017
18__author__ = "tf-m@lists.trustedfirmware.org"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010019__project__ = "Trusted Firmware-M Open CI"
Xinyu Zhang06286a92021-07-22 14:00:51 +080020__version__ = "1.4.0"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010021
Minos Galanakisea421232019-06-20 17:11:28 +010022# common parameters for tf-m build system
23# This configuration template will be passed into the tfm-builder module after
24# the template evaluation is converted to a command
25
26_common_tfm_builder_cfg = {
27 "config_type": "tf-m",
28 "codebase_root_dir": "tf-m",
29 # Order to which the variants are evaluated. This affects the name of
30 # variant configuration and the wildcard replacement logic in invalid
31 # configuration tuples
Xinyu Zhangb708f572020-09-15 11:43:46 +080032 "sort_order": ["tfm_platform",
33 "toolchain_file",
Xinyu Zhang73ed2992021-09-15 11:38:23 +080034 "lib_model",
Xinyu Zhangb708f572020-09-15 11:43:46 +080035 "isolation_level",
36 "test_regression",
37 "test_psa_api",
Minos Galanakisea421232019-06-20 17:11:28 +010038 "cmake_build_type",
Xinyu Zhangb708f572020-09-15 11:43:46 +080039 "with_otp",
40 "with_bl2",
41 "with_ns",
Xinyu Zhang9fd74242020-10-22 11:30:50 +080042 "profile",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +080043 "partition_ps",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +080044 "extra_params"],
Minos Galanakisea421232019-06-20 17:11:28 +010045
46 # Keys for the templace will come from the combinations of parameters
47 # provided in the seed dictionary.
48
Xinyu Zhangf3e19482022-01-11 15:48:13 +080049 "config_template": "cmake -G Ninja " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080050 "-DTFM_PLATFORM=%(tfm_platform)s " + \
Fathi Boudra324fee72020-11-20 10:31:12 +010051 "-DTFM_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(toolchain_file)s " + \
Xinyu Zhang73ed2992021-09-15 11:38:23 +080052 "-DTFM_LIB_MODEL=%(lib_model)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080053 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
54 "-DTEST_NS=%(test_regression)s -DTEST_S=%(test_regression)s " + \
Raef Coles61b43a42022-01-12 11:42:57 +000055 "-DTEST_BL2=%(test_regression)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080056 "-DTEST_PSA_API=%(test_psa_api)s " + \
57 "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \
58 "-DCRYPTO_HW_ACCELERATOR_OTP_STATE=%(with_otp)s " + \
59 "-DBL2=%(with_bl2)s " + \
60 "-DNS=%(with_ns)s " + \
61 "-DTFM_TEST_REPO_PATH=%(codebase_root_dir)s/../tf-m-tests " + \
62 "-DMBEDCRYPTO_PATH=%(codebase_root_dir)s/../mbedtls " + \
63 "-DPSA_ARCH_TESTS_PATH=%(codebase_root_dir)s/../psa-arch-tests " + \
64 "-DMCUBOOT_PATH=%(codebase_root_dir)s/../mcuboot " + \
65 "-DTFM_PROFILE=%(profile)s " + \
Xinyu Zhangb5bbb692020-10-26 10:14:33 +080066 "-DTFM_PARTITION_PROTECTED_STORAGE=%(partition_ps)s " + \
Xinyu Zhangfd2e1152021-12-17 18:09:01 +080067 "%(extra_params)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080068 "%(codebase_root_dir)s",
Karl Zhangaff558a2020-05-15 14:28:23 +010069
Minos Galanakisea421232019-06-20 17:11:28 +010070 # A small subset of string substitution params is allowed in commands.
71 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
72 # _tbm_target_platform_ with the paths set when building
73
Xinyu Zhangb708f572020-09-15 11:43:46 +080074 "artifact_capture_rex": (r'%(_tbm_build_dir_)s/bin'
Minos Galanakisea421232019-06-20 17:11:28 +010075 r'/(\w+\.(?:axf|bin|hex))$'),
76
77 # ALL commands will be executed for every build.
78 # Other keys will append extra commands when matching target_platform
Fathi Boudra83e4f292020-12-04 22:33:40 +010079 "build_cmds": {"all": ["cmake --build ./ -- install"],
Summer Qin3c2b5722021-05-26 10:43:45 +080080 "arm/musca_b1/sse_200": [("srec_cat "
Mark Horvath8d281cd2020-12-07 15:20:26 +010081 "%(_tbm_build_dir_)s/bin/"
82 "bl2.bin "
83 "-Binary -offset 0xA000000 "
84 "-fill 0xFF 0xA000000 0xA020000 "
85 "%(_tbm_build_dir_)s/bin/"
86 "tfm_s_ns_signed.bin "
87 "-Binary -offset 0xA020000 "
88 "-fill 0xFF 0xA020000 0xA200000 "
89 "-o %(_tbm_build_dir_)s/bin/"
90 "tfm.hex -Intel")],
Summer Qin3c2b5722021-05-26 10:43:45 +080091 "arm/musca_s1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080092 "%(_tbm_build_dir_)s/bin/"
93 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +080094 "-Binary -offset 0xA000000 "
Raef Coles543aab32020-12-03 11:12:02 +000095 "-fill 0xFF 0xA000000 0xA020000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080096 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080097 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +000098 "-Binary -offset 0xA020000 "
99 "-fill 0xFF 0xA020000 0xA200000 "
100 "-o %(_tbm_build_dir_)s/bin/"
Arthur She19c0e1a2021-06-02 11:06:19 -0700101 "tfm.hex -Intel")],
102 "stm/stm32l562e_dk": [("echo 'STM32L562E-DK board post process';"
103 "%(_tbm_build_dir_)s/postbuild.sh;"
104 "pushd %(_tbm_build_dir_)s;"
Arthur She07c91b52021-07-15 15:03:10 -0700105 "BIN_FILES=$(grep -o '\/.*\.bin' TFM_UPDATE.sh | sed 's/^/bin/');"
106 "tar jcf ./bin/stm32l562e-dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh ${BIN_FILES};"
Arthur She3c0dadd2021-11-18 21:17:48 -0800107 "popd")],
108 "nxp/lpcxpresso55s69": [("echo 'LPCXpresso55S69 board post process\n';"
109 "if [ -f \"%(_tbm_build_dir_)s/bin/bl2.hex\" ]; then FLASH_FILE='flash_bl2_JLink.py'; else FLASH_FILE='flash_JLink.py'; fi;"
110 "pushd %(_tbm_build_dir_)s/../platform/ext/target/nxp/lpcxpresso55s69/scripts;"
111 "LN=$(grep -n 'JLinkExe' ${FLASH_FILE}|awk -F: '{print $1}');"
112 "sed -i \"${LN}s/.*/ print('flash.jlink generated')/\" ${FLASH_FILE};"
113 "python3 ./${FLASH_FILE};"
114 "cd %(_tbm_build_dir_)s/bin;"
115 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"
116 "tar jcf lpcxpresso55s69-tfm.tar.bz2 flash.jlink ${BIN_FILES};"
Arthur She87602dc2022-02-06 14:42:18 -0800117 "popd")],
118 "cypress/psoc64": [("echo 'Sign binaries for Cypress PSoC64 platform';"
119 "pushd %(_tbm_build_dir_)s/..;"
120 "sudo /usr/local/bin/cysecuretools "
121 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
122 "--target cy8ckit-064s0s2-4343w "
123 "sign-image "
124 "--hex %(_tbm_build_dir_)s/bin/tfm_s.hex "
125 "--image-type BOOT --image-id 1;"
126 "sudo /usr/local/bin/cysecuretools "
127 "--policy platform/ext/target/cypress/psoc64/security/policy/policy_multi_CM0_CM4_tfm.json "
128 "--target cy8ckit-064s0s2-4343w "
129 "sign-image "
130 "--hex %(_tbm_build_dir_)s/bin/tfm_ns.hex "
131 "--image-type BOOT --image-id 16;"
132 "mv %(_tbm_build_dir_)s/bin/tfm_s.hex %(_tbm_build_dir_)s/bin/tfm_s_signed.hex;"
133 "mv %(_tbm_build_dir_)s/bin/tfm_ns.hex %(_tbm_build_dir_)s/bin/tfm_ns_signed.hex;"
134 "popd")]
Minos Galanakisea421232019-06-20 17:11:28 +0100135 },
136
137 # (Optional) If set will fail if those artefacts are missing post build
138 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800139 "%(_tbm_build_dir_)s/bin/"
140 "tfm_s.bin",
141 "%(_tbm_build_dir_)s/bin/"
142 "tfm_ns.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800143 "arm/musca_b1/sse_200": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800144 "%(_tbm_build_dir_)s/bin/"
145 "tfm.hex",
146 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800147 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800148 "%(_tbm_build_dir_)s/bin/"
149 "tfm_sign.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800150 "arm/musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800151 "%(_tbm_build_dir_)s/bin/"
152 "tfm.hex",
153 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800154 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800155 "%(_tbm_build_dir_)s/bin/"
156 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100157 }
158}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100159
Xinyu Zhangb708f572020-09-15 11:43:46 +0800160# List of all build configs that are impossible under all circumstances
161_common_tfm_invalid_configs = [
Xinyu Zhang797d19b2022-03-01 12:23:45 +0800162 # AN521_ARMCLANG_IPC_1_STORAGE_Debug_BL2_NS does not work as expected with ARMCLANG v6.13
163 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake", False, "1", False, "STORAGE",
164 "Debug", "off", True, True, "", "ON", ""),
Xinyu Zhang459a1982021-07-21 22:34:49 +0800165 # LR_CODE size exceeds limit on MUSCA_B1 & MUSCA_S1 with regression tests in Debug mode built with ARMCLANG
Feder Liang357b1602022-01-11 16:47:49 +0800166 ("arm/musca_b1/sse_200", "toolchain_ARMCLANG.cmake", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*"),
167 ("arm/musca_s1", "toolchain_ARMCLANG.cmake", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800168 # Load range overlap on Musca for IPC Debug type: T895
Feder Liang357b1602022-01-11 16:47:49 +0800169 ("arm/musca_b1/sse_200", "toolchain_ARMCLANG.cmake", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*"),
170 ("arm/musca_s1", "toolchain_ARMCLANG.cmake", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang65683e42021-12-10 15:42:02 +0800171 # Oversize issue on config lpcxpresso55s69_GNUARM_IPC_2_Relwithdebinfo_BL2_NS_MEDIUM
172 ("nxp/lpcxpresso55s69", "toolchain_GNUARM.cmake", False, "2", False, "OFF",
Feder Liang357b1602022-01-11 16:47:49 +0800173 "Relwithdebinfo", "off", True, True, "profile_medium", "ON", "*"),
Xinyu Zhang65683e42021-12-10 15:42:02 +0800174 # Oversize issue on config stm32l562e_dk_ARMCLANG_LIB_1_REG_Release_BL2_NS
175 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake", True, "1", True, "OFF",
Feder Liang357b1602022-01-11 16:47:49 +0800176 "Release", "off", True, True, "", "ON", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800177 # LVL2 and LVL3 requires IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800178 ("*", "*", True, "2", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
179 ("*", "*", True, "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800180 # Regression requires NS
Feder Liang357b1602022-01-11 16:47:49 +0800181 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800182 # psoc64 requires IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800183 ("cypress/psoc64", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800184 # No PSA_ACK with regression
Feder Liang357b1602022-01-11 16:47:49 +0800185 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*", "*", "*"),
186 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*", "*", "*"),
187 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*"),
188 ("*", "*", "*", "*", True, "STORAGE", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800189 # PSA_ACK requires NS
Feder Liang357b1602022-01-11 16:47:49 +0800190 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*", "*", "*"),
191 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*", "*", "*"),
192 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*", "*", "*"),
193 ("*", "*", "*", "*", "*", "STORAGE", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhangc0aad0a2021-11-10 16:07:28 +0800194 # PSA_ACK IPC (FF) does not support LVL3
Feder Liang357b1602022-01-11 16:47:49 +0800195 ("*", "*", "*", "3", "*", "IPC", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800196 # Musca requires BL2
Feder Liang357b1602022-01-11 16:47:49 +0800197 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
198 ("arm/musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800199 # psoc64 cannot use BL2
Feder Liang357b1602022-01-11 16:47:49 +0800200 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800201 # psoc64 does not support Debug build type
Feder Liang357b1602022-01-11 16:47:49 +0800202 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Arthur She3397faf2022-03-02 13:30:28 -0800203 # PSoC64 platform got issue on regression level one test with GNUARM toolchain, disable it as a workaround
204 ("cypress/psoc64", "toolchain_GNUARM.cmake", "*", "1", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800205 # Musca b1 SSE 200 does not support Profile S
Feder Liang357b1602022-01-11 16:47:49 +0800206 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800207 # Musca B1 Secure Enclave requires IPC model, BL2, and supports only Isolation Level 1
Feder Liang357b1602022-01-11 16:47:49 +0800208 ("arm/musca_b1/secure_enclave", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
209 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
210 ("arm/musca_b1/secure_enclave", "*", "*", "2", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100211 # Musca B1 Secure Enclave does not support tests, profiles, NS side building
Feder Liang357b1602022-01-11 16:47:49 +0800212 ("arm/musca_b1/secure_enclave", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*", "*"),
213 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "IPC", "*", "*", "*", "*", "*", "*", "*"),
214 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", "*", "*", "*", "*"),
215 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*"),
216 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "STORAGE", "*", "*", "*", "*", "*", "*", "*"),
217 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
218 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
219 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
220 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800221 # PARTITION_PS could be OFF only for Profile S and M
Feder Liang357b1602022-01-11 16:47:49 +0800222 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF", "*"),
223 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "OFF", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800224 # PARTITION_PS should be OFF for Profile S
Feder Liang357b1602022-01-11 16:47:49 +0800225 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800226 # Proile M only support for IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800227 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800228 # Profile M only support for Isolation Level 2
Feder Liang357b1602022-01-11 16:47:49 +0800229 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
230 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800231 # Profile L only support for Isolation Level 3
Feder Liang357b1602022-01-11 16:47:49 +0800232 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
233 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800234 # Profile S does not support IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800235 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800236 # Profile S only supports Isolation Level 1
Feder Liang357b1602022-01-11 16:47:49 +0800237 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
238 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800239 # Only AN521 and MUSCA_B1 support Isolation Level 3
Feder Liang357b1602022-01-11 16:47:49 +0800240 ("arm/mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
241 ("arm/mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
242 ("arm/musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
243 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
244 ("arm/musca_b1/secure_enclave", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700245 # stm/stm32l562e_dk uses BL2
Feder Liang357b1602022-01-11 16:47:49 +0800246 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700247 # stm/stm32l562e_dk does not support Debug build type
Feder Liang357b1602022-01-11 16:47:49 +0800248 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700249 # nxp/lpcxpresso55s69 only build with GCC
Feder Liang357b1602022-01-11 16:47:49 +0800250 ("nxp/lpcxpresso55s69", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700251 # nxp/lpcxpresso55s69 only build Profile M
Feder Liang357b1602022-01-11 16:47:49 +0800252 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
253 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700254 # nxp/lpcxpresso55s69 have to turn off BL2 when build regression test
Feder Liang357b1602022-01-11 16:47:49 +0800255 ("nxp/lpcxpresso55s69", "*", "*", "*", True, "*", "*", "*", True, "*", "*", "*", "*"),
Arthur She0ce327e2021-11-16 23:11:34 -0800256 # nxp/lpcxpresso55s69 turn off BL2 temporary, due to the oversize error
Feder Liang357b1602022-01-11 16:47:49 +0800257 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +0800258 ]
259
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100260# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100261config_AN524 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800262 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800263 "toolchain_file": ["toolchain_GNUARM.cmake",
264 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800265 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800266 "isolation_level": ["1", "2"],
267 "test_regression": [True, False],
268 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100269 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800270 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800271 "with_bl2": [True, False],
272 "with_ns": [True, False],
273 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800274 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800275 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100276 },
277 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800278 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100279 }
280
Karl Zhangaff558a2020-05-15 14:28:23 +0100281config_AN521 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800282 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800283 "toolchain_file": ["toolchain_GNUARM.cmake",
284 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800285 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800286 "isolation_level": ["1", "2"],
287 "test_regression": [True, False],
288 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100289 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800290 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800291 "with_bl2": [True, False],
292 "with_ns": [True, False],
293 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800294 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800295 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100296 },
297 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800298 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100299 }
300
Karl Zhangaff558a2020-05-15 14:28:23 +0100301config_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800302 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
303 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800304 "toolchain_file": ["toolchain_GNUARM.cmake",
305 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800306 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800307 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800308 "test_regression": [False],
309 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800310 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800311 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100312 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800313 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800314 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800315 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800316 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800317 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800318 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100319 },
320 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800321 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100322 }
323
Karl Zhangaff558a2020-05-15 14:28:23 +0100324config_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800325 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
326 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800327 "toolchain_file": ["toolchain_GNUARM.cmake",
328 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800329 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800330 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800331 "test_regression": [False],
332 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100333 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800334 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800335 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800336 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800337 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800338 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800339 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100340 },
341 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800342 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100343 }
344
Karl Zhangaff558a2020-05-15 14:28:23 +0100345config_PSA_API_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800346 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800347 "toolchain_file": ["toolchain_GNUARM.cmake",
348 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800349 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800350 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800351 "test_regression": [False],
352 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800353 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800354 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100355 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800356 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800357 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800358 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800359 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800360 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800361 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100362 },
363 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800364 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100365 }
Minos Galanakisea421232019-06-20 17:11:28 +0100366
Xinyu Zhangb708f572020-09-15 11:43:46 +0800367config_PSA_FF_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800368 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800369 "toolchain_file": ["toolchain_GNUARM.cmake",
370 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800371 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800372 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800373 "test_regression": [False],
374 "test_psa_api": ["IPC"],
375 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800376 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800377 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800378 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800379 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800380 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800381 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800382 },
383 "common_params": _common_tfm_builder_cfg,
384 "invalid": _common_tfm_invalid_configs + []
385 }
386
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800387config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800388 "tfm_platform": ["cypress/psoc64"],
389 "toolchain_file": ["toolchain_GNUARM.cmake",
390 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800391 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800392 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800393 "test_regression": [True],
394 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800395 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800396 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800397 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800398 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800399 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800400 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800401 "extra_params": [""]
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800402 },
403 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800404 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800405 }
406
Arthur She19c0e1a2021-06-02 11:06:19 -0700407config_STM32L562E_DK = {"seed_params": {
408 "tfm_platform": ["stm/stm32l562e_dk"],
409 "toolchain_file": ["toolchain_GNUARM.cmake",
410 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800411 "lib_model": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700412 "isolation_level": ["1", "2", "3"],
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800413 "test_regression": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700414 "test_psa_api": ["OFF"],
415 "cmake_build_type": ["Release"],
416 "with_otp": ["off"],
417 "with_bl2": [True],
418 "with_ns": [True],
419 "profile": [""],
420 "partition_ps": ["ON"],
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800421 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
Arthur She19c0e1a2021-06-02 11:06:19 -0700422 },
423 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800424 "invalid": _common_tfm_invalid_configs + [
425 # all other tests are off when CRYPTO is ON
426 ("stm/stm32l562e_dk", "*", "*", "*", True, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800427 "*", "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800428 # all other tests are ON when CRYPTO is OFF
429 ("stm/stm32l562e_dk", "*", "*", "*", False, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800430 "*", "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800431 ]
Arthur She19c0e1a2021-06-02 11:06:19 -0700432 }
433
Arthur Shef3657742021-09-07 14:23:18 -0700434config_LPCXPRESSO55S69 = {"seed_params": {
435 "tfm_platform": ["nxp/lpcxpresso55s69"],
436 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800437 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700438 "isolation_level": ["2"],
439 "test_regression": [True, False],
440 "test_psa_api": ["OFF"],
441 "cmake_build_type": ["Relwithdebinfo"],
442 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -0800443 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700444 "with_ns": [True],
445 "profile": ["profile_medium"],
446 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800447 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +0800448 },
449 "common_params": _common_tfm_builder_cfg,
450 "invalid": _common_tfm_invalid_configs + []
451 }
452
453config_FP = {"seed_params": {
454 "tfm_platform": ["arm/musca_s1"],
Feder Liang357b1602022-01-11 16:47:49 +0800455 "toolchain_file": ["toolchain_GNUARM.cmake"],
Feder Liang567e8c22021-10-26 14:16:21 +0800456 "lib_model": [False],
457 "isolation_level": ["1", "2"],
458 "test_regression": [True],
459 "test_psa_api": ["OFF"],
460 "cmake_build_type": ["Release"],
461 "with_otp": ["off"],
462 "with_bl2": [True],
463 "with_ns": [True],
464 "profile": [""],
465 "partition_ps": ["ON"],
Feder Liang357b1602022-01-11 16:47:49 +0800466 "extra_params": ["FPSOFT", "FPHARD", "FPHARD_LOFF"]
Arthur Shef3657742021-09-07 14:23:18 -0700467 },
468 "common_params": _common_tfm_builder_cfg,
469 "invalid": _common_tfm_invalid_configs + []
470 }
471
Xinyu Zhang6afdd612021-10-12 17:07:32 +0800472config_corstone1000 = {"seed_params": {
473 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800474 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800475 "lib_model": [False],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800476 "isolation_level": ["1"],
477 "test_regression": [False],
478 "test_psa_api": ["OFF"],
479 "cmake_build_type": ["Debug"],
480 "with_otp": ["off"],
481 "with_bl2": [True],
482 "with_ns": [False],
483 "profile": [""],
484 "partition_ps": ["ON"],
Xinyu Zhang6071f962022-02-07 15:56:39 +0800485 "extra_params": ["FVP", "FPGA"]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800486 },
487 "common_params": _common_tfm_builder_cfg,
488 "invalid": _common_tfm_invalid_configs + []
489 }
490
Minos Galanakisea421232019-06-20 17:11:28 +0100491config_AN519 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800492 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800493 "toolchain_file": ["toolchain_GNUARM.cmake",
494 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800495 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800496 "isolation_level": ["1", "2"],
497 "test_regression": [True, False],
498 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100499 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800500 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800501 "with_bl2": [True, False],
502 "with_ns": [True, False],
503 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800504 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800505 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100506 },
507 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800508 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100509 }
510
Xinyu Zhangb708f572020-09-15 11:43:46 +0800511config_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800512 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
513 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800514 "toolchain_file": ["toolchain_GNUARM.cmake",
515 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800516 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800517 "isolation_level": ["1", "2"],
518 "test_regression": [True, False],
519 "test_psa_api": ["OFF"],
520 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800521 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800522 "with_bl2": [True, False],
523 "with_ns": [True, False],
524 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800525 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800526 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800527 },
Minos Galanakisea421232019-06-20 17:11:28 +0100528 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800529 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100530 }
531
Minos Galanakisea421232019-06-20 17:11:28 +0100532config_full = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800533 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
534 "arm/musca_b1/sse_200",
535 "arm/mps3/an524", "cypress/psoc64",
Arthur She19c0e1a2021-06-02 11:06:19 -0700536 "arm/musca_b1/secure_enclave",
Arthur Shef3657742021-09-07 14:23:18 -0700537 "stm/stm32l562e_dk",
538 "nxp/lpcxpresso55s69"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800539 "toolchain_file": ["toolchain_GNUARM.cmake",
540 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800541 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800542 "isolation_level": ["1", "2"],
543 "test_regression": [True, False],
544 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800545 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800546 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800547 "with_bl2": [True, False],
548 "with_ns": [True, False],
549 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800550 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800551 "extra_params": [""]
Dean Birchd6ce2c82020-05-13 13:16:15 +0100552 },
553 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800554 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800555 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800556 "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800557 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Feder Liang357b1602022-01-11 16:47:49 +0800558 True, "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800559 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800560 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800561 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800562 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800563 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800564 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800565 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800566 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800567 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800568 }
569
Karl Zhangaff558a2020-05-15 14:28:23 +0100570config_tfm_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800571 "tfm_platform": ["arm/mps2/an521",
572 "arm/musca_b1/sse_200", "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800573 "toolchain_file": ["toolchain_ARMCLANG.cmake",
574 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800575 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800576 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800577 "test_regression": [True, False],
578 "test_psa_api": ["OFF"],
579 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800580 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800581 "with_bl2": [True],
582 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800583 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800584 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800585 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800586 },
587 "common_params": _common_tfm_builder_cfg,
588 "invalid": _common_tfm_invalid_configs + []
589 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800590
Karl Zhangaff558a2020-05-15 14:28:23 +0100591config_tfm_test2 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800592 "tfm_platform": ["arm/mps2/an519", "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800593 "toolchain_file": ["toolchain_ARMCLANG.cmake",
594 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800595 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800596 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800597 "test_regression": [True, False],
598 "test_psa_api": ["OFF"],
599 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800600 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800601 "with_bl2": [True],
602 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800603 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800604 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800605 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800606 },
607 "common_params": _common_tfm_builder_cfg,
608 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800609 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800610 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800611 ]
612 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100613
Karl Zhang14573bc2020-06-08 09:23:21 +0800614config_tfm_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800615 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
616 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800617 "toolchain_file": ["toolchain_ARMCLANG.cmake",
618 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800619 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800620 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800621 "test_regression": [True, False],
622 "test_psa_api": ["OFF"],
623 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800624 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800625 "with_bl2": [True],
626 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800627 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800628 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800629 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800630 },
631 "common_params": _common_tfm_builder_cfg,
632 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800633 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800634 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800635 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800636 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800637 "*", "profile_large", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800638 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800639 "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800640 ]
641 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800642
Karl Zhangaff558a2020-05-15 14:28:23 +0100643config_tfm_test_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800644 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800645 "toolchain_file": ["toolchain_ARMCLANG.cmake",
646 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800647 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800648 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800649 "test_regression": [True, False],
650 "test_psa_api": ["OFF"],
651 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800652 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800653 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800654 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800655 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800656 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800657 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800658 },
659 "common_params": _common_tfm_builder_cfg,
660 "invalid": _common_tfm_invalid_configs + []
661 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100662
Minos Galanakisea421232019-06-20 17:11:28 +0100663config_MUSCA_B1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800664 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800665 "toolchain_file": ["toolchain_ARMCLANG.cmake",
666 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800667 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800668 "isolation_level": ["1", "2"],
669 "test_regression": [True, False],
670 "test_psa_api": ["OFF"],
671 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800672 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800673 "with_bl2": [True],
674 "with_ns": [True, False],
675 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800676 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800677 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800678 },
679 "common_params": _common_tfm_builder_cfg,
680 "invalid": _common_tfm_invalid_configs + []
681 }
Minos Galanakisea421232019-06-20 17:11:28 +0100682
Mark Horvath8d281cd2020-12-07 15:20:26 +0100683config_MUSCA_B1_SE = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800684 "tfm_platform": ["arm/musca_b1/secure_enclave"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100685 "toolchain_file": ["toolchain_ARMCLANG.cmake",
686 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800687 "lib_model": [False],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100688 "isolation_level": ["1"],
689 "test_regression": [False],
690 "test_psa_api": ["OFF"],
691 "cmake_build_type": ["Debug", "Release"],
692 "with_otp": ["off"],
693 "with_bl2": [True],
694 "with_ns": [False],
695 "profile": [""],
696 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800697 "extra_params": [""]
Mark Horvath8d281cd2020-12-07 15:20:26 +0100698 },
699 "common_params": _common_tfm_builder_cfg,
700 "invalid": _common_tfm_invalid_configs + []
701 }
702
Karl Zhangeffed972020-06-30 15:48:01 +0800703config_MUSCA_S1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800704 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800705 "toolchain_file": ["toolchain_ARMCLANG.cmake",
706 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800707 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800708 "isolation_level": ["1", "2"],
709 "test_regression": [True, False],
710 "test_psa_api": ["OFF"],
711 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800712 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800713 "with_bl2": [True],
714 "with_ns": [True, False],
715 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800716 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800717 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800718 },
719 "common_params": _common_tfm_builder_cfg,
720 "invalid": _common_tfm_invalid_configs + []
721 }
Karl Zhangeffed972020-06-30 15:48:01 +0800722
Karl Zhangaff558a2020-05-15 14:28:23 +0100723config_release = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800724 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
725 "arm/musca_b1/sse_200", "arm/musca_s1",
726 "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800727 "toolchain_file": ["toolchain_ARMCLANG.cmake",
728 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800729 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800730 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800731 "test_regression": [True, False],
732 "test_psa_api": ["OFF"],
733 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800734 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800735 "with_bl2": [True, False],
736 "with_ns": [True, False],
737 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800738 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800739 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800740 },
741 "common_params": _common_tfm_builder_cfg,
742 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800743 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800744 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800745 ]
746 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100747
748# Configure build manager to build several combinations
749config_AN521_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800750 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
751 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800752 "toolchain_file": ["toolchain_GNUARM.cmake",
753 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800754 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800755 "isolation_level": ["1", "2"],
756 "test_regression": [False],
757 "test_psa_api": ["IPC",
758 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800759 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800760 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800761 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800762 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800763 "with_bl2": [True],
764 "with_ns": [True, False],
765 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800766 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800767 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100768 },
769 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800770 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800771 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800772 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800773 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100774 }
775
Karl Zhangaff558a2020-05-15 14:28:23 +0100776config_AN521_PSA_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800777 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
778 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800779 "toolchain_file": ["toolchain_GNUARM.cmake",
780 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800781 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800782 "isolation_level": ["1", "2"],
783 "test_regression": [False],
784 "test_psa_api": ["IPC"],
785 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800786 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800787 "with_bl2": [True],
788 "with_ns": [True, False],
789 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800790 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800791 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100792 },
793 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800794 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800795 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800796 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800797 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100798 }
799
Karl Zhang14573bc2020-06-08 09:23:21 +0800800config_nightly = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800801 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
802 "arm/musca_b1/sse_200", "arm/musca_s1",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800803 "arm/mps3/an524", "arm/musca_b1/secure_enclave"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800804 "toolchain_file": ["toolchain_GNUARM.cmake",
805 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800806 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800807 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800808 "test_regression": [True, False],
809 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800810 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800811 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800812 "with_bl2": [True],
813 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800814 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800815 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800816 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800817 },
818 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang6d2dd7c2022-02-07 17:22:55 +0800819 "valid": [
820 # MUSCA_B1_GNUARM_IPC_1_REG_Release_BL2_NS_CC_DRIVER_PSA
821 ("arm/musca_b1/sse_200", "toolchain_GNUARM.cmake",
822 False, "1", True, "OFF", "Release",
823 "off", True, True, "", "ON", "CC_DRIVER_PSA"),
824 # MUSCA_S1_GNUARM_IPC_1_REG_Release_BL2_NS_CC_DRIVER_PSA
825 ("arm/musca_s1", "toolchain_GNUARM.cmake",
826 False, "1", True, "OFF", "Release",
827 "off", True, True, "", "ON", "CC_DRIVER_PSA"),
828 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800829 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800830 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800831 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800832 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800833 "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800834 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Feder Liang357b1602022-01-11 16:47:49 +0800835 True, "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800836 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800837 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800838 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800839 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800840 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800841 "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800842 ("arm/musca_s1", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800843 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800844 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800845 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800846 ]
847 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800848
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800849config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800850 "tfm_platform": ["arm/mps2/an521"],
851 "toolchain_file": ["toolchain_GNUARM.cmake",
852 "toolchain_ARMCLANG.cmake"],
853 "lib_model": [True, False],
854 "isolation_level": ["1", "2", "3"],
855 "test_regression": [True],
856 "test_psa_api": ["OFF"],
857 "cmake_build_type": ["Debug"],
858 "with_otp": ["off"],
859 "with_bl2": [True],
860 "with_ns": [True],
861 "profile": [""],
862 "partition_ps": ["ON"],
Xinyu Zhang67612992021-12-20 14:11:27 +0800863 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800864 },
865 "common_params": _common_tfm_builder_cfg,
866 "invalid": _common_tfm_invalid_configs + []
867 }
868
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800869config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800870 "tfm_platform": ["arm/mps2/an521"],
871 "toolchain_file": ["toolchain_GNUARM.cmake",
872 "toolchain_ARMCLANG.cmake"],
873 "lib_model": [False],
874 "isolation_level": ["1"],
875 "test_regression": [True],
876 "test_psa_api": ["OFF"],
877 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
878 "with_otp": ["off"],
879 "with_bl2": [True],
880 "with_ns": [True],
881 "profile": [""],
882 "partition_ps": ["ON"],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800883 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800884 },
885 "common_params": _common_tfm_builder_cfg,
886 "invalid": _common_tfm_invalid_configs + []
887 }
888
Karl Zhang14573bc2020-06-08 09:23:21 +0800889config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800890 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
891 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800892 "toolchain_file": ["toolchain_ARMCLANG.cmake",
893 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800894 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800895 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800896 "test_regression": [True, False],
897 "test_psa_api": ["OFF"],
898 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800899 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800900 "with_bl2": [True],
901 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800902 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800903 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800904 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800905 },
906 "common_params": _common_tfm_builder_cfg,
907 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800908 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800909 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800910 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800911 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800912 "*", "profile_large", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800913 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800914 "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800915 ]
916 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800917
Karl Zhang14573bc2020-06-08 09:23:21 +0800918config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800919 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
920 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800921 "toolchain_file": ["toolchain_GNUARM.cmake",
922 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800923 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800924 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800925 "test_regression": [False],
926 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800927 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800928 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800929 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800930 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800931 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800932 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800933 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800934 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800935 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800936 },
937 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800938 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800939 }
940
Karl Zhang14573bc2020-06-08 09:23:21 +0800941config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800942 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
943 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800944 "toolchain_file": ["toolchain_GNUARM.cmake",
945 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800946 "lib_model": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800947 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800948 "test_regression": [False],
949 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800950 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800951 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800952 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800953 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800954 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800955 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800956 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800957 },
958 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800959 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800960 }
961
Karl Zhang14573bc2020-06-08 09:23:21 +0800962config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800963 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800964 "toolchain_file": ["toolchain_GNUARM.cmake",
965 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800966 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800967 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800968 "test_regression": [True],
969 "test_psa_api": ["OFF"],
970 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800971 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800972 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800973 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800974 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800975 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800976 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800977 },
978 "common_params": _common_tfm_builder_cfg,
979 "invalid": _common_tfm_invalid_configs + []
980 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800981
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800982config_nightly_psoc64 = {"seed_params": {
983 "tfm_platform": ["cypress/psoc64"],
984 "toolchain_file": ["toolchain_GNUARM.cmake",
985 "toolchain_ARMCLANG.cmake"],
986 "lib_model": [False],
987 "isolation_level": ["1", "2"],
988 "test_regression": [True],
989 "test_psa_api": ["OFF"],
990 "cmake_build_type": ["Release"],
991 "with_otp": ["off"],
992 "with_bl2": [False],
993 "with_ns": [True],
994 "profile": [""],
995 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800996 "extra_params": [""]
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800997 },
998 "common_params": _common_tfm_builder_cfg,
999 "invalid": _common_tfm_invalid_configs + []
1000 }
1001
Arthur Shef3657742021-09-07 14:23:18 -07001002config_nightly_LPCXPRESSO55S69 = {"seed_params": {
1003 "tfm_platform": ["nxp/lpcxpresso55s69"],
1004 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001005 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001006 "isolation_level": ["2"],
1007 "test_regression": [True, False],
1008 "test_psa_api": ["OFF"],
1009 "cmake_build_type": ["Relwithdebinfo"],
1010 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -08001011 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001012 "with_ns": [True],
1013 "profile": ["profile_medium"],
1014 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001015 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +08001016 },
1017 "common_params": _common_tfm_builder_cfg,
1018 "invalid": _common_tfm_invalid_configs + []
1019 }
1020
1021config_nightly_FP = {"seed_params": {
1022 "tfm_platform": ["arm/musca_s1"],
Feder Liang357b1602022-01-11 16:47:49 +08001023 "toolchain_file": ["toolchain_GNUARM.cmake"],
Feder Liang567e8c22021-10-26 14:16:21 +08001024 "lib_model": [False],
1025 "isolation_level": ["1", "2"],
1026 "test_regression": [True],
1027 "test_psa_api": ["OFF"],
1028 "cmake_build_type": ["Debug"],
1029 "with_otp": ["off"],
1030 "with_bl2": [True],
1031 "with_ns": [True],
1032 "profile": [""],
1033 "partition_ps": ["ON"],
Feder Liang357b1602022-01-11 16:47:49 +08001034 "extra_params": ["FPSOFT", "FPHARD", "FPHARD_LOFF"]
Arthur Shef3657742021-09-07 14:23:18 -07001035 },
1036 "common_params": _common_tfm_builder_cfg,
1037 "invalid": _common_tfm_invalid_configs + []
1038 }
1039
Karl Zhang14573bc2020-06-08 09:23:21 +08001040config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001041 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +08001042 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001043 "toolchain_file": ["toolchain_GNUARM.cmake",
1044 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001045 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +08001046 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001047 "test_regression": [True],
1048 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001049 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001050 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001051 "with_bl2": [True],
1052 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001053 "profile": ["", "profile_small", "profile_medium"],
1054 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001055 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001056 },
1057 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001058 "valid": [
Summer Qin3c2b5722021-05-26 10:43:45 +08001059 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001060 True, "1", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001061 "off", True, True, "", "ON", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001062 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001063 False, "2", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001064 "off", True, True, "", "ON", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001065 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001066 False, "3", False, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001067 "off", True, True, "", "ON", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001068 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001069 False, "2", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001070 "off", True, True, "profile_medium", "ON", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001071 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001072 False, "3", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001073 "off", True, True, "profile_large", "ON", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001074 # AN521_GNUARM_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001075 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
1076 False, "2", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001077 "off", True, True, "profile_medium", "OFF", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001078 # MUSCA_B1_GNUARM_LIB_1_REG_Minsizerel_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001079 ("arm/musca_b1/sse_200", "toolchain_GNUARM.cmake",
1080 True, "1", True, "OFF", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001081 "off", True, True, "", "ON", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001082 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001083 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake",
1084 False, "1", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001085 "off", True, True, "", "ON", "CRYPTO_OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001086 # stm32l562e_dk_GNUARM_IPC_2_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001087 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
Xinyu Zhang7c8d3372021-12-22 11:15:42 +08001088 False, "2", False, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001089 "off", True, True, "", "ON", "CRYPTO_ON"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001090 # stm32l562e_dk_GNUARM_IPC_3_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001091 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
1092 False, "3", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001093 "off", True, True, "", "ON", "CRYPTO_OFF"),
1094 # MUSCA_S1_GNUARM_IPC_2_REG_Release_BL2_NS_FPHARD
Feder Liang567e8c22021-10-26 14:16:21 +08001095 ("arm/musca_s1", "toolchain_GNUARM.cmake",
1096 False, "2", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001097 "off", True, True, "", "ON", "FPHARD"),
Xinyu Zhangce8eb082022-02-09 16:28:54 +08001098 # MUSCA_S1_GNUARM_IPC_1_REG_Release_BL2_NS_CC_DRIVER_PSA
1099 ("arm/musca_s1", "toolchain_GNUARM.cmake",
1100 False, "1", True, "OFF", "Release",
1101 "off", True, True, "", "ON", "CC_DRIVER_PSA"),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001102 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001103 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001104 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +08001105 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001106 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001107 # valid configs supported by TF-M but not needed in per-patch
1108 ("*", "*", "*", "1", "*", "*", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001109 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001110 ("*", "*", "*", "1", "*", "*", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001111 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001112 ("*", "*", "*", "2", "*", "*", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001113 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001114 ("*", "*", "*", "2", "*", "*", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001115 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001116 ("*", "*", "*", "3", "*", "*", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001117 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001118 ("*", "*", "*", "3", "*", "*", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001119 "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001120 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001121 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001122 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001123 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001124 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001125 "*", "*", "*", "*", "profile_medium", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001126 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001127 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001128 ("*", "toolchain_GNUARM.cmake", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001129 "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001130 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001131 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001132 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001133 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001134 ]
1135 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001136
Karl Zhang14573bc2020-06-08 09:23:21 +08001137config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001138 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001139 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001140 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001141 "isolation_level": ["1", "2"],
1142 "test_regression": [True],
1143 "test_psa_api": ["OFF"],
1144 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001145 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001146 "with_bl2": [True],
1147 "with_ns": [True, False],
1148 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001149 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001150 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001151 },
1152 "common_params": _common_tfm_builder_cfg,
1153 "invalid": _common_tfm_invalid_configs + []
1154 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001155
1156# Configure build manager to build several combinations
1157config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001158 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001159 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001160 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001161 "isolation_level": ["2"],
1162 "test_regression": [False],
1163 "test_psa_api": ["IPC",
1164 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001165 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +08001166 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001167 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001168 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001169 "with_bl2": [True],
1170 "with_ns": [True, False],
1171 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001172 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001173 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001174 },
1175 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001176 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001177 }
1178
Karl Zhang14573bc2020-06-08 09:23:21 +08001179config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001180 "tfm_platform": ["cypress/psoc64"],
1181 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001182 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001183 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001184 "test_regression": [True],
1185 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001186 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001187 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001188 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001189 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001190 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001191 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001192 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001193 },
1194 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001195 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001196 }
1197
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001198config_cov_an519 = {"seed_params": {
1199 "tfm_platform": ["arm/mps2/an519"],
1200 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001201 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001202 "isolation_level": ["1", "2", "3"],
1203 "test_regression": [True, False],
1204 "test_psa_api": ["OFF"],
1205 "cmake_build_type": ["Debug", "Release"],
1206 "with_otp": ["off"],
1207 "with_bl2": [True],
1208 "with_ns": [True],
1209 "profile": ["", "profile_small", "profile_medium"],
1210 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001211 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001212 },
1213 "common_params": _common_tfm_builder_cfg,
1214 "invalid": _common_tfm_invalid_configs + []
1215 }
1216
1217config_cov_an521 = {"seed_params": {
1218 "tfm_platform": ["arm/mps2/an521"],
1219 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001220 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001221 "isolation_level": ["1", "2", "3"],
1222 "test_regression": [True, False],
1223 "test_psa_api": ["OFF"],
1224 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1225 "with_otp": ["off"],
1226 "with_bl2": [True],
1227 "with_ns": [True],
1228 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1229 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001230 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001231 },
1232 "common_params": _common_tfm_builder_cfg,
1233 "invalid": _common_tfm_invalid_configs + []
1234 }
1235
Minos Galanakisea421232019-06-20 17:11:28 +01001236# Configruation used for document building
1237config_doxygen = {"common_params": {
1238 "config_type": "tf-m_documents",
1239 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001240 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001241 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001242 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001243 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001244 "cmake --build ./ -- docs"]},
1245 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1246 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001247 r'/(\w+\.(?:html|md|pdf))$',
1248 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001249 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001250 }
1251
Karl Zhangaff558a2020-05-15 14:28:23 +01001252# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +01001253config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001254 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001255 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001256 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001257 "isolation_level": ["1"],
1258 "test_regression": [False],
1259 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001260 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001261 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001262 "with_bl2": [True],
1263 "with_ns": [True],
1264 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001265 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001266 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +01001267 },
1268 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001269 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001270 }
1271
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001272config_debug_PSA_API = {"seed_params": {
1273 "tfm_platform": ["arm/mps2/an521"],
1274 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
1275 "lib_model": [True],
1276 "isolation_level": ["1"],
1277 "test_regression": [False],
Paul Sokolovsky7bd338c2022-01-30 14:14:39 +03001278 "test_psa_api": ["CRYPTO",
1279 "INITIAL_ATTESTATION",
Paul Sokolovskyb298d7b2022-02-02 23:27:44 +03001280 "STORAGE",
1281 "IPC"],
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001282 "cmake_build_type": ["Debug"],
1283 "with_otp": ["off"],
1284 "with_bl2": [True],
1285 "with_ns": [True],
1286 "profile": [""],
1287 "partition_ps": ["ON"],
1288 "extra_params": [""]
1289 },
1290 "common_params": _common_tfm_builder_cfg,
1291 "invalid": _common_tfm_invalid_configs + []
1292 }
1293
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001294config_debug_PSA_API_nolib = {"seed_params": {
1295 "tfm_platform": ["arm/mps2/an521"],
1296 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
1297 "lib_model": [False],
1298 "isolation_level": ["1"],
1299 "test_regression": [False],
1300 "test_psa_api": ["CRYPTO",
1301 "INITIAL_ATTESTATION",
1302 "STORAGE",
1303 "IPC"],
1304 "cmake_build_type": ["Debug"],
1305 "with_otp": ["off"],
1306 "with_bl2": [True],
1307 "with_ns": [True],
1308 "profile": [""],
1309 "partition_ps": ["ON"],
1310 "extra_params": [""]
1311 },
1312 "common_params": _common_tfm_builder_cfg,
1313 "invalid": _common_tfm_invalid_configs + []
1314 }
1315
Dean Birch4c6ad622020-03-13 11:28:03 +00001316# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001317config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001318 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001319 "toolchain_file": ["toolchain_ARMCLANG.cmake",
1320 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001321 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001322 "isolation_level": ["1", "2"],
1323 "test_regression": [True, False],
1324 "test_psa_api": ["OFF"],
1325 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001326 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001327 "with_bl2": [True, False],
1328 "with_ns": [True],
1329 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001330 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001331 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001332 },
1333 "common_params": _common_tfm_builder_cfg,
1334 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001335 ("*", "toolchain_ARMCLANG.cmake", False, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001336 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001337 ("*", "toolchain_ARMCLANG.cmake", True, "1", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001338 "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001339 ]
1340 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001341
Xinyu Zhangb708f572020-09-15 11:43:46 +08001342config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001343 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001344 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001345 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001346 "isolation_level": ["1", "2"],
1347 "test_regression": [True],
1348 "test_psa_api": ["OFF"],
1349 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001350 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001351 "with_bl2": [True, False],
1352 "with_ns": [True, False],
1353 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001354 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001355 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001356 },
1357 "common_params": _common_tfm_builder_cfg,
1358 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001359 ("arm/mps2/an521", "toolchain_GNUARM.cmake", False, "2", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001360 "*", "*", True, "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001361 ]
1362 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001363
Xinyu Zhang38b76742021-11-11 13:57:56 +08001364config_an547 = {"seed_params": {
1365 "tfm_platform": ["arm/mps3/an547"],
1366 "toolchain_file": ["toolchain_GNUARM.cmake"],
1367 "lib_model": [False],
1368 "isolation_level": ["1"],
1369 "test_regression": [False],
1370 "test_psa_api": ["OFF"],
1371 "cmake_build_type": ["Debug"],
1372 "with_otp": ["off"],
1373 "with_bl2": [True],
1374 "with_ns": [False],
1375 "profile": [""],
1376 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001377 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001378 },
1379 "common_params": _common_tfm_builder_cfg,
1380 "invalid": _common_tfm_invalid_configs + []
1381 }
1382
1383config_corstone_polaris = {"seed_params": {
1384 "tfm_platform": ["arm/mps3/corstone_polaris"],
1385 "toolchain_file": ["toolchain_GNUARM.cmake"],
1386 "lib_model": [False],
1387 "isolation_level": ["1"],
1388 "test_regression": [False],
1389 "test_psa_api": ["OFF"],
1390 "cmake_build_type": ["Debug"],
1391 "with_otp": ["off"],
1392 "with_bl2": [True],
1393 "with_ns": [False],
1394 "profile": [""],
1395 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001396 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001397 },
1398 "common_params": _common_tfm_builder_cfg,
1399 "invalid": _common_tfm_invalid_configs + []
1400 }
1401
1402config_bl5340 = {"seed_params": {
1403 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
1404 "toolchain_file": ["toolchain_GNUARM.cmake"],
1405 "lib_model": [False],
1406 "isolation_level": ["1"],
1407 "test_regression": [False],
1408 "test_psa_api": ["OFF"],
1409 "cmake_build_type": ["Debug"],
1410 "with_otp": ["off"],
1411 "with_bl2": [True],
1412 "with_ns": [False],
1413 "profile": [""],
1414 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001415 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001416 },
1417 "common_params": _common_tfm_builder_cfg,
1418 "invalid": _common_tfm_invalid_configs + []
1419 }
1420
1421config_nrf5340dk = {"seed_params": {
1422 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
1423 "toolchain_file": ["toolchain_GNUARM.cmake"],
1424 "lib_model": [False],
1425 "isolation_level": ["1"],
1426 "test_regression": [False],
1427 "test_psa_api": ["OFF"],
1428 "cmake_build_type": ["Debug"],
1429 "with_otp": ["off"],
1430 "with_bl2": [True],
1431 "with_ns": [False],
1432 "profile": [""],
1433 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001434 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001435 },
1436 "common_params": _common_tfm_builder_cfg,
1437 "invalid": _common_tfm_invalid_configs + []
1438 }
1439
1440config_nrf9160dk = {"seed_params": {
1441 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
1442 "toolchain_file": ["toolchain_GNUARM.cmake"],
1443 "lib_model": [False],
1444 "isolation_level": ["1"],
1445 "test_regression": [False],
1446 "test_psa_api": ["OFF"],
1447 "cmake_build_type": ["Debug"],
1448 "with_otp": ["off"],
1449 "with_bl2": [True],
1450 "with_ns": [False],
1451 "profile": [""],
1452 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001453 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001454 },
1455 "common_params": _common_tfm_builder_cfg,
1456 "invalid": _common_tfm_invalid_configs + []
1457 }
1458
1459config_m2351 = {"seed_params": {
1460 "tfm_platform": ["nuvoton/m2351"],
1461 "toolchain_file": ["toolchain_GNUARM.cmake"],
1462 "lib_model": [False],
1463 "isolation_level": ["1"],
1464 "test_regression": [False],
1465 "test_psa_api": ["OFF"],
1466 "cmake_build_type": ["Release"],
1467 "with_otp": ["off"],
1468 "with_bl2": [True],
1469 "with_ns": [False],
1470 "profile": [""],
1471 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001472 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001473 },
1474 "common_params": _common_tfm_builder_cfg,
1475 "invalid": _common_tfm_invalid_configs + []
1476 }
1477
1478config_m2354 = {"seed_params": {
1479 "tfm_platform": ["nuvoton/m2354"],
1480 "toolchain_file": ["toolchain_GNUARM.cmake"],
1481 "lib_model": [False],
1482 "isolation_level": ["1"],
1483 "test_regression": [False],
1484 "test_psa_api": ["OFF"],
1485 "cmake_build_type": ["Debug"],
1486 "with_otp": ["off"],
1487 "with_bl2": [True],
1488 "with_ns": [False],
1489 "profile": [""],
1490 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001491 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001492 },
1493 "common_params": _common_tfm_builder_cfg,
1494 "invalid": _common_tfm_invalid_configs + []
1495 }
1496
1497config_b_u585i_iot02a = {"seed_params": {
1498 "tfm_platform": ["stm/b_u585i_iot02a"],
1499 "toolchain_file": ["toolchain_GNUARM.cmake"],
1500 "lib_model": [False],
1501 "isolation_level": ["1"],
1502 "test_regression": [False],
1503 "test_psa_api": ["OFF"],
1504 "cmake_build_type": ["Release"],
1505 "with_otp": ["off"],
1506 "with_bl2": [True],
1507 "with_ns": [False],
1508 "profile": [""],
1509 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001510 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001511 },
1512 "common_params": _common_tfm_builder_cfg,
1513 "invalid": _common_tfm_invalid_configs + []
1514 }
1515
1516config_nucleo_l552ze_q = {"seed_params": {
1517 "tfm_platform": ["stm/nucleo_l552ze_q"],
1518 "toolchain_file": ["toolchain_GNUARM.cmake"],
1519 "lib_model": [False],
1520 "isolation_level": ["1"],
1521 "test_regression": [False],
1522 "test_psa_api": ["OFF"],
1523 "cmake_build_type": ["Release"],
1524 "with_otp": ["off"],
1525 "with_bl2": [True],
1526 "with_ns": [False],
1527 "profile": [""],
1528 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001529 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001530 },
1531 "common_params": _common_tfm_builder_cfg,
1532 "invalid": _common_tfm_invalid_configs + []
1533 }
1534
Karl Zhangaff558a2020-05-15 14:28:23 +01001535_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001536 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001537 "tfm_test": config_tfm_test,
1538 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001539 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +01001540 "tfm_test_otp": config_tfm_test_OTP,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001541 "tfm_nsce": config_nsce,
1542 "tfm_mmio": config_mmio,
Karl Zhangaff558a2020-05-15 14:28:23 +01001543 "psa_api": config_PSA_API,
1544 "psa_api_otp": config_PSA_API_OTP,
1545 "psa_ff": config_PSA_FF,
1546 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001547 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001548 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001549 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001550 "tfm_fp": config_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001551
1552 #nightly test group
1553 "nightly_test": config_nightly,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001554 "nightly_nsce": config_nsce,
1555 "nightly_mmio": config_mmio,
Karl Zhang14573bc2020-06-08 09:23:21 +08001556 "nightly_profile": config_nightly_profile,
1557 "nightly_psa_api": config_nightly_PSA_API,
1558 "nightly_ff": config_nightly_PSA_FF,
1559 "nightly_otp": config_nightly_OTP,
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001560 "nightly_psoc64": config_nightly_psoc64,
Xinyu Zhang331c47c2021-12-24 10:18:02 +08001561 "nightly_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001562 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001563 "nightly_fp":config_nightly_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001564
1565 #per patch test group
1566 "pp_test": config_pp_test,
1567 "pp_OTP": config_pp_OTP,
1568 "pp_PSA_API": config_pp_PSA_API,
1569 "pp_psoc64": config_pp_PSoC64,
1570
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001571 #code coverage test group
1572 "coverage_an519": config_cov_an519,
1573 "coverage_an521": config_cov_an521,
1574
Xinyu Zhang38b76742021-11-11 13:57:56 +08001575 #extra build group
1576 "arm_corstone1000": config_corstone1000,
1577 "arm_an547": config_an547,
1578 "arm_corstone_polaris": config_corstone_polaris,
1579 "cypress_psoc64": config_PSOC64,
1580 "laird_bl5340": config_bl5340,
1581 "nordic_nrf5340dk": config_nrf5340dk,
1582 "nordic_nrf9160dk": config_nrf9160dk,
1583 "nuvoton_m2351": config_m2351,
1584 "nuvoton_m2354": config_m2354,
1585 "nxp_lpcxpresso55s69": config_LPCXPRESSO55S69,
1586 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1587 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1588 "stm_stm32l562e_dk": config_STM32L562E_DK,
1589
Karl Zhang14573bc2020-06-08 09:23:21 +08001590 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001591 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001592
1593 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001594 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001595 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001596 "an521_psa_api": config_AN521_PSA_API,
1597 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001598 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001599 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001600 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001601 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001602 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001603 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001604 "ipc": config_IPC,
1605 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001606 "debug": config_debug,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001607 "debug_PSA_API": config_debug_PSA_API,
Paul Sokolovsky49a99282022-02-02 23:43:37 +03001608 "debug_PSA_API_nolib": config_debug_PSA_API_nolib,
Karl Zhangaff558a2020-05-15 14:28:23 +01001609 "release": config_release,
Karl Zhang14573bc2020-06-08 09:23:21 +08001610
1611 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001612 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001613 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001614
1615if __name__ == '__main__':
1616 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001617
Minos Galanakisea421232019-06-20 17:11:28 +01001618 # Default behavior is to export refference config when called
1619 _dir = os.getcwd()
1620 from utils import save_json
1621 for _cname, _cfg in _builtin_configs.items():
1622 _fname = os.path.join(_dir, _cname + ".json")
1623 print("Exporting config %s" % _fname)
1624 save_json(_fname, _cfg)