blob: 89f7af3c34bfb36ea8df49529f36f0bdc6d1e631 [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/*
Xinyu Zhangeb442a12021-02-01 15:16:19 +080011 * Copyright (c) 2018-2021, 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 Zhanga1088e22021-11-11 18:02:45 +080044 "nsce",
45 "mmio"],
Minos Galanakisea421232019-06-20 17:11:28 +010046
47 # Keys for the templace will come from the combinations of parameters
48 # provided in the seed dictionary.
49
Xinyu Zhangb708f572020-09-15 11:43:46 +080050 "config_template": "cmake " + \
51 "-DTFM_PLATFORM=%(tfm_platform)s " + \
Fathi Boudra324fee72020-11-20 10:31:12 +010052 "-DTFM_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(toolchain_file)s " + \
Xinyu Zhang73ed2992021-09-15 11:38:23 +080053 "-DTFM_LIB_MODEL=%(lib_model)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080054 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
55 "-DTEST_NS=%(test_regression)s -DTEST_S=%(test_regression)s " + \
56 "-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 Zhang9bfe8a92021-10-28 16:27:12 +080067 "-DTFM_NS_MANAGE_NSID=%(nsce)s " + \
Xinyu Zhangfa3f9c42021-11-16 14:30:45 +080068 "-DPSA_FRAMEWORK_HAS_MM_IOVEC=%(mmio)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080069 "%(codebase_root_dir)s",
Karl Zhangaff558a2020-05-15 14:28:23 +010070
Minos Galanakisea421232019-06-20 17:11:28 +010071 # A small subset of string substitution params is allowed in commands.
72 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
73 # _tbm_target_platform_ with the paths set when building
74
Xinyu Zhangb708f572020-09-15 11:43:46 +080075 "artifact_capture_rex": (r'%(_tbm_build_dir_)s/bin'
Minos Galanakisea421232019-06-20 17:11:28 +010076 r'/(\w+\.(?:axf|bin|hex))$'),
77
78 # ALL commands will be executed for every build.
79 # Other keys will append extra commands when matching target_platform
Fathi Boudra83e4f292020-12-04 22:33:40 +010080 "build_cmds": {"all": ["cmake --build ./ -- install"],
Summer Qin3c2b5722021-05-26 10:43:45 +080081 "arm/musca_b1/sse_200": [("srec_cat "
Mark Horvath8d281cd2020-12-07 15:20:26 +010082 "%(_tbm_build_dir_)s/bin/"
83 "bl2.bin "
84 "-Binary -offset 0xA000000 "
85 "-fill 0xFF 0xA000000 0xA020000 "
86 "%(_tbm_build_dir_)s/bin/"
87 "tfm_s_ns_signed.bin "
88 "-Binary -offset 0xA020000 "
89 "-fill 0xFF 0xA020000 0xA200000 "
90 "-o %(_tbm_build_dir_)s/bin/"
91 "tfm.hex -Intel")],
Summer Qin3c2b5722021-05-26 10:43:45 +080092 "arm/musca_s1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080093 "%(_tbm_build_dir_)s/bin/"
94 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +080095 "-Binary -offset 0xA000000 "
Raef Coles543aab32020-12-03 11:12:02 +000096 "-fill 0xFF 0xA000000 0xA020000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080097 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080098 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +000099 "-Binary -offset 0xA020000 "
100 "-fill 0xFF 0xA020000 0xA200000 "
101 "-o %(_tbm_build_dir_)s/bin/"
Arthur She19c0e1a2021-06-02 11:06:19 -0700102 "tfm.hex -Intel")],
103 "stm/stm32l562e_dk": [("echo 'STM32L562E-DK board post process';"
104 "%(_tbm_build_dir_)s/postbuild.sh;"
105 "pushd %(_tbm_build_dir_)s;"
Arthur She07c91b52021-07-15 15:03:10 -0700106 "BIN_FILES=$(grep -o '\/.*\.bin' TFM_UPDATE.sh | sed 's/^/bin/');"
107 "tar jcf ./bin/stm32l562e-dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh ${BIN_FILES};"
Arthur She3c0dadd2021-11-18 21:17:48 -0800108 "popd")],
109 "nxp/lpcxpresso55s69": [("echo 'LPCXpresso55S69 board post process\n';"
110 "if [ -f \"%(_tbm_build_dir_)s/bin/bl2.hex\" ]; then FLASH_FILE='flash_bl2_JLink.py'; else FLASH_FILE='flash_JLink.py'; fi;"
111 "pushd %(_tbm_build_dir_)s/../platform/ext/target/nxp/lpcxpresso55s69/scripts;"
112 "LN=$(grep -n 'JLinkExe' ${FLASH_FILE}|awk -F: '{print $1}');"
113 "sed -i \"${LN}s/.*/ print('flash.jlink generated')/\" ${FLASH_FILE};"
114 "python3 ./${FLASH_FILE};"
115 "cd %(_tbm_build_dir_)s/bin;"
116 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"
117 "tar jcf lpcxpresso55s69-tfm.tar.bz2 flash.jlink ${BIN_FILES};"
118 "popd")]
Minos Galanakisea421232019-06-20 17:11:28 +0100119 },
120
121 # (Optional) If set will fail if those artefacts are missing post build
122 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800123 "%(_tbm_build_dir_)s/bin/"
124 "tfm_s.bin",
125 "%(_tbm_build_dir_)s/bin/"
126 "tfm_ns.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800127 "arm/musca_b1/sse_200": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800128 "%(_tbm_build_dir_)s/bin/"
129 "tfm.hex",
130 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800131 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800132 "%(_tbm_build_dir_)s/bin/"
133 "tfm_sign.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800134 "arm/musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800135 "%(_tbm_build_dir_)s/bin/"
136 "tfm.hex",
137 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800138 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800139 "%(_tbm_build_dir_)s/bin/"
140 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100141 }
142}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100143
Xinyu Zhangb708f572020-09-15 11:43:46 +0800144# List of all build configs that are impossible under all circumstances
145_common_tfm_invalid_configs = [
Xinyu Zhang459a1982021-07-21 22:34:49 +0800146 # LR_CODE size exceeds limit on MUSCA_B1 & MUSCA_S1 with regression tests in Debug mode built with ARMCLANG
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800147 ("arm/musca_b1/sse_200", "toolchain_ARMCLANG.cmake", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*", "*"),
148 ("arm/musca_s1", "toolchain_ARMCLANG.cmake", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800149 # Load range overlap on Musca for IPC Debug type: T895
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800150 ("arm/musca_b1/sse_200", "toolchain_ARMCLANG.cmake", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*", "*"),
151 ("arm/musca_s1", "toolchain_ARMCLANG.cmake", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang65683e42021-12-10 15:42:02 +0800152 # Oversize issue on config lpcxpresso55s69_GNUARM_IPC_2_Relwithdebinfo_BL2_NS_MEDIUM
153 ("nxp/lpcxpresso55s69", "toolchain_GNUARM.cmake", False, "2", False, "OFF",
154 "Relwithdebinfo", "off", True, True, "profile_medium", "ON", "OFF", "OFF"),
155 # Oversize issue on config stm32l562e_dk_ARMCLANG_LIB_1_REG_Release_BL2_NS
156 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake", True, "1", True, "OFF",
157 "Release", "off", True, True, "", "ON", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800158 # LVL2 and LVL3 requires IPC model
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800159 ("*", "*", True, "2", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
160 ("*", "*", True, "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800161 # Regression requires NS
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800162 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800163 # psoc64 requires IPC model
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800164 ("cypress/psoc64", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800165 # No PSA_ACK with regression
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800166 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*", "*", "*", "*"),
167 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*", "*", "*", "*"),
168 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*", "*"),
169 ("*", "*", "*", "*", True, "STORAGE", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800170 # PSA_ACK requires NS
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800171 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*", "*", "*", "*"),
172 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*", "*", "*", "*"),
173 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*", "*", "*", "*"),
174 ("*", "*", "*", "*", "*", "STORAGE", "*", "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhangc0aad0a2021-11-10 16:07:28 +0800175 # PSA_ACK IPC (FF) does not support LVL3
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800176 ("*", "*", "*", "3", "*", "IPC", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800177 # Musca requires BL2
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800178 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*"),
179 ("arm/musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800180 # psoc64 cannot use BL2
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800181 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800182 # psoc64 does not support Debug build type
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800183 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800184 # Musca b1 SSE 200 does not support Profile S
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800185 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800186 # Musca B1 Secure Enclave requires IPC model, BL2, and supports only Isolation Level 1
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800187 ("arm/musca_b1/secure_enclave", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
188 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*"),
189 ("arm/musca_b1/secure_enclave", "*", "*", "2", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100190 # Musca B1 Secure Enclave does not support tests, profiles, NS side building
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800191 ("arm/musca_b1/secure_enclave", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*"),
192 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "IPC", "*", "*", "*", "*", "*", "*", "*", "*"),
193 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", "*", "*", "*", "*", "*"),
194 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*", "*"),
195 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "STORAGE", "*", "*", "*", "*", "*", "*", "*", "*"),
196 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*"),
197 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
198 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
199 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800200 # PARTITION_PS could be OFF only for Profile S and M
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800201 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF", "*", "*"),
202 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "OFF", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800203 # PARTITION_PS should be OFF for Profile S
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800204 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800205 # Proile M only support for IPC model
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800206 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800207 # Profile M only support for Isolation Level 2
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800208 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
209 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800210 # Profile L only support for Isolation Level 3
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800211 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
212 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800213 # Profile S does not support IPC model
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800214 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800215 # Profile S only supports Isolation Level 1
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800216 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*"),
217 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800218 # Only AN521 and MUSCA_B1 support Isolation Level 3
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800219 ("arm/mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
220 ("arm/mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
221 ("arm/musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
222 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
223 ("arm/musca_b1/secure_enclave", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700224 # stm/stm32l562e_dk uses BL2
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800225 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700226 # stm/stm32l562e_dk does not support Debug build type
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800227 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700228 # nxp/lpcxpresso55s69 only build with GCC
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800229 ("nxp/lpcxpresso55s69", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700230 # nxp/lpcxpresso55s69 only build Profile M
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800231 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*"),
232 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700233 # nxp/lpcxpresso55s69 have to turn off BL2 when build regression test
Arthur She0ce327e2021-11-16 23:11:34 -0800234 ("nxp/lpcxpresso55s69", "*", "*", "*", True, "*", "*", "*", True, "*", "*", "*", "*", "*"),
235 # nxp/lpcxpresso55s69 turn off BL2 temporary, due to the oversize error
236 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*", "*"),
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800237 # NSID does not support multi core
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800238 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "ON", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800239 ]
240
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100241# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100242config_AN524 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800243 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800244 "toolchain_file": ["toolchain_GNUARM.cmake",
245 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800246 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800247 "isolation_level": ["1", "2"],
248 "test_regression": [True, False],
249 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100250 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800251 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800252 "with_bl2": [True, False],
253 "with_ns": [True, False],
254 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800255 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800256 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800257 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100258 },
259 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800260 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100261 }
262
Karl Zhangaff558a2020-05-15 14:28:23 +0100263config_AN521 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800264 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800265 "toolchain_file": ["toolchain_GNUARM.cmake",
266 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800267 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800268 "isolation_level": ["1", "2"],
269 "test_regression": [True, False],
270 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100271 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800272 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800273 "with_bl2": [True, False],
274 "with_ns": [True, False],
275 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800276 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800277 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800278 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100279 },
280 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800281 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100282 }
283
Karl Zhangaff558a2020-05-15 14:28:23 +0100284config_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800285 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
286 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800287 "toolchain_file": ["toolchain_GNUARM.cmake",
288 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800289 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800290 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800291 "test_regression": [False],
292 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800293 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800294 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100295 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800296 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800297 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800298 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800299 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800300 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800301 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800302 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100303 },
304 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800305 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100306 }
307
Karl Zhangaff558a2020-05-15 14:28:23 +0100308config_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800309 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
310 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800311 "toolchain_file": ["toolchain_GNUARM.cmake",
312 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800313 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800314 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800315 "test_regression": [False],
316 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100317 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800318 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800319 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800320 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800321 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800322 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800323 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800324 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100325 },
326 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800327 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100328 }
329
Karl Zhangaff558a2020-05-15 14:28:23 +0100330config_PSA_API_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800331 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800332 "toolchain_file": ["toolchain_GNUARM.cmake",
333 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800334 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800335 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800336 "test_regression": [False],
337 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800338 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800339 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100340 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800341 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800342 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800343 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800344 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800345 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800346 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800347 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100348 },
349 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800350 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100351 }
Minos Galanakisea421232019-06-20 17:11:28 +0100352
Xinyu Zhangb708f572020-09-15 11:43:46 +0800353config_PSA_FF_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800354 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800355 "toolchain_file": ["toolchain_GNUARM.cmake",
356 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800357 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800358 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800359 "test_regression": [False],
360 "test_psa_api": ["IPC"],
361 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800362 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800363 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800364 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800365 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800366 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800367 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800368 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800369 },
370 "common_params": _common_tfm_builder_cfg,
371 "invalid": _common_tfm_invalid_configs + []
372 }
373
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800374config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800375 "tfm_platform": ["cypress/psoc64"],
376 "toolchain_file": ["toolchain_GNUARM.cmake",
377 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800378 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800379 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800380 "test_regression": [True],
381 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800382 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800383 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800384 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800385 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800386 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800387 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800388 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800389 "mmio": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800390 },
391 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800392 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800393 }
394
Arthur She19c0e1a2021-06-02 11:06:19 -0700395config_STM32L562E_DK = {"seed_params": {
396 "tfm_platform": ["stm/stm32l562e_dk"],
397 "toolchain_file": ["toolchain_GNUARM.cmake",
398 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800399 "lib_model": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700400 "isolation_level": ["1", "2", "3"],
401 "test_regression": [True],
402 "test_psa_api": ["OFF"],
403 "cmake_build_type": ["Release"],
404 "with_otp": ["off"],
405 "with_bl2": [True],
406 "with_ns": [True],
407 "profile": [""],
408 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800409 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800410 "mmio": ["OFF"],
Arthur She19c0e1a2021-06-02 11:06:19 -0700411 },
412 "common_params": _common_tfm_builder_cfg,
413 "invalid": _common_tfm_invalid_configs + []
414 }
415
Arthur Shef3657742021-09-07 14:23:18 -0700416config_LPCXPRESSO55S69 = {"seed_params": {
417 "tfm_platform": ["nxp/lpcxpresso55s69"],
418 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800419 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700420 "isolation_level": ["2"],
421 "test_regression": [True, False],
422 "test_psa_api": ["OFF"],
423 "cmake_build_type": ["Relwithdebinfo"],
424 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -0800425 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700426 "with_ns": [True],
427 "profile": ["profile_medium"],
428 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800429 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800430 "mmio": ["OFF"],
Arthur Shef3657742021-09-07 14:23:18 -0700431 },
432 "common_params": _common_tfm_builder_cfg,
433 "invalid": _common_tfm_invalid_configs + []
434 }
435
Xinyu Zhang6afdd612021-10-12 17:07:32 +0800436config_corstone1000 = {"seed_params": {
437 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800438 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800439 "lib_model": [False],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800440 "isolation_level": ["1"],
441 "test_regression": [False],
442 "test_psa_api": ["OFF"],
443 "cmake_build_type": ["Debug"],
444 "with_otp": ["off"],
445 "with_bl2": [True],
446 "with_ns": [False],
447 "profile": [""],
448 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800449 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800450 "mmio": ["OFF"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800451 },
452 "common_params": _common_tfm_builder_cfg,
453 "invalid": _common_tfm_invalid_configs + []
454 }
455
Minos Galanakisea421232019-06-20 17:11:28 +0100456config_AN519 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800457 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800458 "toolchain_file": ["toolchain_GNUARM.cmake",
459 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800460 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800461 "isolation_level": ["1", "2"],
462 "test_regression": [True, False],
463 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100464 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800465 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800466 "with_bl2": [True, False],
467 "with_ns": [True, False],
468 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800469 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800470 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800471 "mmio": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100472 },
473 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800474 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100475 }
476
Xinyu Zhangb708f572020-09-15 11:43:46 +0800477config_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800478 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
479 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800480 "toolchain_file": ["toolchain_GNUARM.cmake",
481 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800482 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800483 "isolation_level": ["1", "2"],
484 "test_regression": [True, False],
485 "test_psa_api": ["OFF"],
486 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800487 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800488 "with_bl2": [True, False],
489 "with_ns": [True, False],
490 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800491 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800492 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800493 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800494 },
Minos Galanakisea421232019-06-20 17:11:28 +0100495 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800496 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100497 }
498
Minos Galanakisea421232019-06-20 17:11:28 +0100499config_full = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800500 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
501 "arm/musca_b1/sse_200",
502 "arm/mps3/an524", "cypress/psoc64",
Arthur She19c0e1a2021-06-02 11:06:19 -0700503 "arm/musca_b1/secure_enclave",
Arthur Shef3657742021-09-07 14:23:18 -0700504 "stm/stm32l562e_dk",
505 "nxp/lpcxpresso55s69"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800506 "toolchain_file": ["toolchain_GNUARM.cmake",
507 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800508 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800509 "isolation_level": ["1", "2"],
510 "test_regression": [True, False],
511 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800512 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800513 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800514 "with_bl2": [True, False],
515 "with_ns": [True, False],
516 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800517 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800518 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800519 "mmio": ["OFF"],
Dean Birchd6ce2c82020-05-13 13:16:15 +0100520 },
521 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800522 "invalid": _common_tfm_invalid_configs + [
523 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800524 "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800525 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800526 "*", "*", "*", "*", True, True, "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800527 ("arm/mps2/an521", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800528 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800529 ("arm/mps2/an519", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800530 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800531 ("arm/musca_b1/sse_200", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800532 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800533 ("arm/mps3/an524", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800534 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800535 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800536 }
537
Karl Zhangaff558a2020-05-15 14:28:23 +0100538config_tfm_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800539 "tfm_platform": ["arm/mps2/an521",
540 "arm/musca_b1/sse_200", "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800541 "toolchain_file": ["toolchain_ARMCLANG.cmake",
542 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800543 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800544 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800545 "test_regression": [True, False],
546 "test_psa_api": ["OFF"],
547 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800548 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800549 "with_bl2": [True],
550 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800551 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800552 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800553 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800554 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800555 },
556 "common_params": _common_tfm_builder_cfg,
557 "invalid": _common_tfm_invalid_configs + []
558 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800559
Karl Zhangaff558a2020-05-15 14:28:23 +0100560config_tfm_test2 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800561 "tfm_platform": ["arm/mps2/an519", "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800562 "toolchain_file": ["toolchain_ARMCLANG.cmake",
563 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800564 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800565 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800566 "test_regression": [True, False],
567 "test_psa_api": ["OFF"],
568 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800569 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800570 "with_bl2": [True],
571 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800572 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800573 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800574 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800575 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800576 },
577 "common_params": _common_tfm_builder_cfg,
578 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800579 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800580 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800581 ]
582 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100583
Karl Zhang14573bc2020-06-08 09:23:21 +0800584config_tfm_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800585 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
586 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800587 "toolchain_file": ["toolchain_ARMCLANG.cmake",
588 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800589 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800590 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800591 "test_regression": [True, False],
592 "test_psa_api": ["OFF"],
593 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800594 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800595 "with_bl2": [True],
596 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800597 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800598 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800599 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800600 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800601 },
602 "common_params": _common_tfm_builder_cfg,
603 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800604 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800605 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800606 # Profile Large is only supported by AN521
Summer Qin3c2b5722021-05-26 10:43:45 +0800607 ("arm/mps2/an519", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800608 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800609 ("arm/musca_b1/sse_200", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800610 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800611 ]
612 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800613
Karl Zhangaff558a2020-05-15 14:28:23 +0100614config_tfm_test_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800615 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800616 "toolchain_file": ["toolchain_ARMCLANG.cmake",
617 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800618 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800619 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800620 "test_regression": [True, False],
621 "test_psa_api": ["OFF"],
622 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800623 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800624 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800625 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800626 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800627 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800628 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800629 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800630 },
631 "common_params": _common_tfm_builder_cfg,
632 "invalid": _common_tfm_invalid_configs + []
633 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100634
Minos Galanakisea421232019-06-20 17:11:28 +0100635config_MUSCA_B1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800636 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800637 "toolchain_file": ["toolchain_ARMCLANG.cmake",
638 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800639 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800640 "isolation_level": ["1", "2"],
641 "test_regression": [True, False],
642 "test_psa_api": ["OFF"],
643 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800644 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800645 "with_bl2": [True],
646 "with_ns": [True, False],
647 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800648 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800649 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800650 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800651 },
652 "common_params": _common_tfm_builder_cfg,
653 "invalid": _common_tfm_invalid_configs + []
654 }
Minos Galanakisea421232019-06-20 17:11:28 +0100655
Mark Horvath8d281cd2020-12-07 15:20:26 +0100656config_MUSCA_B1_SE = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800657 "tfm_platform": ["arm/musca_b1/secure_enclave"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100658 "toolchain_file": ["toolchain_ARMCLANG.cmake",
659 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800660 "lib_model": [False],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100661 "isolation_level": ["1"],
662 "test_regression": [False],
663 "test_psa_api": ["OFF"],
664 "cmake_build_type": ["Debug", "Release"],
665 "with_otp": ["off"],
666 "with_bl2": [True],
667 "with_ns": [False],
668 "profile": [""],
669 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800670 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800671 "mmio": ["OFF"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100672 },
673 "common_params": _common_tfm_builder_cfg,
674 "invalid": _common_tfm_invalid_configs + []
675 }
676
Karl Zhangeffed972020-06-30 15:48:01 +0800677config_MUSCA_S1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800678 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800679 "toolchain_file": ["toolchain_ARMCLANG.cmake",
680 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800681 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800682 "isolation_level": ["1", "2"],
683 "test_regression": [True, False],
684 "test_psa_api": ["OFF"],
685 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800686 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800687 "with_bl2": [True],
688 "with_ns": [True, False],
689 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800690 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800691 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800692 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800693 },
694 "common_params": _common_tfm_builder_cfg,
695 "invalid": _common_tfm_invalid_configs + []
696 }
Karl Zhangeffed972020-06-30 15:48:01 +0800697
Karl Zhangaff558a2020-05-15 14:28:23 +0100698config_release = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800699 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
700 "arm/musca_b1/sse_200", "arm/musca_s1",
701 "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800702 "toolchain_file": ["toolchain_ARMCLANG.cmake",
703 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800704 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800705 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800706 "test_regression": [True, False],
707 "test_psa_api": ["OFF"],
708 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800709 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800710 "with_bl2": [True, False],
711 "with_ns": [True, False],
712 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800713 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800714 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800715 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800716 },
717 "common_params": _common_tfm_builder_cfg,
718 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800719 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800720 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800721 ]
722 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100723
724# Configure build manager to build several combinations
725config_AN521_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800726 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
727 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800728 "toolchain_file": ["toolchain_GNUARM.cmake",
729 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800730 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800731 "isolation_level": ["1", "2"],
732 "test_regression": [False],
733 "test_psa_api": ["IPC",
734 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800735 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800736 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800737 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800738 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800739 "with_bl2": [True],
740 "with_ns": [True, False],
741 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800742 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800743 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800744 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100745 },
746 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800747 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800748 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800749 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800750 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100751 }
752
Karl Zhangaff558a2020-05-15 14:28:23 +0100753config_AN521_PSA_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800754 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
755 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800756 "toolchain_file": ["toolchain_GNUARM.cmake",
757 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800758 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800759 "isolation_level": ["1", "2"],
760 "test_regression": [False],
761 "test_psa_api": ["IPC"],
762 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800763 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800764 "with_bl2": [True],
765 "with_ns": [True, False],
766 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800767 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800768 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800769 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100770 },
771 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800772 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800773 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800774 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800775 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100776 }
777
Karl Zhang14573bc2020-06-08 09:23:21 +0800778config_nightly = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800779 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
780 "arm/musca_b1/sse_200", "arm/musca_s1",
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800781 "arm/mps3/an524", "stm/stm32l562e_dk",
782 "arm/musca_b1/secure_enclave"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800783 "toolchain_file": ["toolchain_GNUARM.cmake",
784 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800785 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800786 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800787 "test_regression": [True, False],
788 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800789 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800790 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800791 "with_bl2": [True],
792 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800793 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800794 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800795 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800796 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800797 },
798 "common_params": _common_tfm_builder_cfg,
799 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800800 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800801 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800802 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800803 "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800804 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800805 "*", "*", "*", "*", True, True, "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800806 ("arm/mps2/an521", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800807 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800808 ("arm/mps2/an519", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800809 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800810 ("arm/musca_b1/sse_200", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800811 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800812 ("arm/musca_s1", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800813 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800814 ("arm/mps3/an524", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800815 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800816 ]
817 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800818
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800819config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800820 "tfm_platform": ["arm/mps2/an521"],
821 "toolchain_file": ["toolchain_GNUARM.cmake",
822 "toolchain_ARMCLANG.cmake"],
823 "lib_model": [True, False],
824 "isolation_level": ["1", "2", "3"],
825 "test_regression": [True],
826 "test_psa_api": ["OFF"],
827 "cmake_build_type": ["Debug"],
828 "with_otp": ["off"],
829 "with_bl2": [True],
830 "with_ns": [True],
831 "profile": [""],
832 "partition_ps": ["ON"],
833 "nsce": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800834 "mmio": ["OFF"],
835 },
836 "common_params": _common_tfm_builder_cfg,
837 "invalid": _common_tfm_invalid_configs + []
838 }
839
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800840config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800841 "tfm_platform": ["arm/mps2/an521"],
842 "toolchain_file": ["toolchain_GNUARM.cmake",
843 "toolchain_ARMCLANG.cmake"],
844 "lib_model": [False],
845 "isolation_level": ["1"],
846 "test_regression": [True],
847 "test_psa_api": ["OFF"],
848 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
849 "with_otp": ["off"],
850 "with_bl2": [True],
851 "with_ns": [True],
852 "profile": [""],
853 "partition_ps": ["ON"],
854 "nsce": ["OFF"],
855 "mmio": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800856 },
857 "common_params": _common_tfm_builder_cfg,
858 "invalid": _common_tfm_invalid_configs + []
859 }
860
Karl Zhang14573bc2020-06-08 09:23:21 +0800861config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800862 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
863 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800864 "toolchain_file": ["toolchain_ARMCLANG.cmake",
865 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800866 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800867 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800868 "test_regression": [True, False],
869 "test_psa_api": ["OFF"],
870 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800871 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800872 "with_bl2": [True],
873 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800874 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800875 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800876 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800877 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800878 },
879 "common_params": _common_tfm_builder_cfg,
880 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800881 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800882 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800883 # Profile Large is only supported by AN521
Summer Qin3c2b5722021-05-26 10:43:45 +0800884 ("arm/mps2/an519", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800885 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800886 ("arm/musca_b1/sse_200", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800887 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800888 ]
889 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800890
Karl Zhang14573bc2020-06-08 09:23:21 +0800891config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800892 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
893 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800894 "toolchain_file": ["toolchain_GNUARM.cmake",
895 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800896 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800897 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800898 "test_regression": [False],
899 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800900 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800901 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800902 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800903 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800904 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800905 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800906 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800907 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800908 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800909 "mmio": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800910 },
911 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800912 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800913 }
914
Karl Zhang14573bc2020-06-08 09:23:21 +0800915config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800916 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
917 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800918 "toolchain_file": ["toolchain_GNUARM.cmake",
919 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800920 "lib_model": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800921 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800922 "test_regression": [False],
923 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800924 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800925 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800926 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800927 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800928 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800929 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800930 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800931 "mmio": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800932 },
933 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800934 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800935 }
936
Karl Zhang14573bc2020-06-08 09:23:21 +0800937config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800938 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800939 "toolchain_file": ["toolchain_GNUARM.cmake",
940 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800941 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800942 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800943 "test_regression": [True],
944 "test_psa_api": ["OFF"],
945 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800946 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800947 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800948 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800949 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800950 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800951 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800952 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800953 },
954 "common_params": _common_tfm_builder_cfg,
955 "invalid": _common_tfm_invalid_configs + []
956 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800957
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800958config_nightly_psoc64 = {"seed_params": {
959 "tfm_platform": ["cypress/psoc64"],
960 "toolchain_file": ["toolchain_GNUARM.cmake",
961 "toolchain_ARMCLANG.cmake"],
962 "lib_model": [False],
963 "isolation_level": ["1", "2"],
964 "test_regression": [True],
965 "test_psa_api": ["OFF"],
966 "cmake_build_type": ["Release"],
967 "with_otp": ["off"],
968 "with_bl2": [False],
969 "with_ns": [True],
970 "profile": [""],
971 "partition_ps": ["ON"],
972 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800973 "mmio": ["OFF"],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800974 },
975 "common_params": _common_tfm_builder_cfg,
976 "invalid": _common_tfm_invalid_configs + []
977 }
978
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800979config_nightly_STM32L562E_DK = {"seed_params": {
980 "tfm_platform": ["stm/stm32l562e_dk"],
981 "toolchain_file": ["toolchain_GNUARM.cmake",
982 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800983 "lib_model": [True, False],
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800984 "isolation_level": ["1", "2", "3"],
985 "test_regression": [True],
986 "test_psa_api": ["OFF"],
987 "cmake_build_type": ["Release"],
988 "with_otp": ["off"],
989 "with_bl2": [True],
990 "with_ns": [True],
991 "profile": [""],
992 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800993 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800994 "mmio": ["OFF"],
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800995 },
996 "common_params": _common_tfm_builder_cfg,
997 "invalid": _common_tfm_invalid_configs + []
998 }
999
Arthur Shef3657742021-09-07 14:23:18 -07001000config_nightly_LPCXPRESSO55S69 = {"seed_params": {
1001 "tfm_platform": ["nxp/lpcxpresso55s69"],
1002 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001003 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001004 "isolation_level": ["2"],
1005 "test_regression": [True, False],
1006 "test_psa_api": ["OFF"],
1007 "cmake_build_type": ["Relwithdebinfo"],
1008 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -08001009 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001010 "with_ns": [True],
1011 "profile": ["profile_medium"],
1012 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001013 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001014 "mmio": ["OFF"],
Arthur Shef3657742021-09-07 14:23:18 -07001015 },
1016 "common_params": _common_tfm_builder_cfg,
1017 "invalid": _common_tfm_invalid_configs + []
1018 }
1019
Karl Zhang14573bc2020-06-08 09:23:21 +08001020config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001021 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +08001022 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001023 "toolchain_file": ["toolchain_GNUARM.cmake",
1024 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001025 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +08001026 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001027 "test_regression": [True],
1028 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001029 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001030 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001031 "with_bl2": [True],
1032 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001033 "profile": ["", "profile_small", "profile_medium"],
1034 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001035 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001036 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001037 },
1038 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001039 "valid": [
Summer Qin3c2b5722021-05-26 10:43:45 +08001040 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001041 True, "1", False, "OFF", "Debug",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001042 "off", True, True, "", "ON", "OFF", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001043 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001044 False, "2", False, "OFF", "Debug",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001045 "off", True, True, "", "ON", "OFF", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001046 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001047 False, "3", False, "OFF", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001048 "off", True, True, "", "ON", "OFF", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001049 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001050 False, "2", False, "OFF", "Debug",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001051 "off", True, True, "profile_medium", "ON", "OFF", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001052 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001053 False, "3", False, "OFF", "Debug",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001054 "off", True, True, "profile_large", "ON", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001055 # AN521_GNUARM_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001056 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
1057 False, "2", True, "OFF", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001058 "off", True, True, "profile_medium", "OFF", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001059 # MUSCA_B1_GNUARM_LIB_1_REG_Minsizerel_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001060 ("arm/musca_b1/sse_200", "toolchain_GNUARM.cmake",
1061 True, "1", True, "OFF", "Minsizerel",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001062 "off", True, True, "", "ON", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001063 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001064 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake",
1065 False, "1", True, "OFF", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001066 "off", True, True, "", "ON", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001067 # stm32l562e_dk_GNUARM_IPC_2_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001068 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
1069 False, "2", True, "OFF", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001070 "off", True, True, "", "ON", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001071 # stm32l562e_dk_GNUARM_IPC_3_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001072 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
1073 False, "3", True, "OFF", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001074 "off", True, True, "", "ON", "OFF", "OFF"),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001075 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001076 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001077 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +08001078 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001079 "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001080 # valid configs supported by TF-M but not needed in per-patch
1081 ("*", "*", "*", "1", "*", "*", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001082 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001083 ("*", "*", "*", "1", "*", "*", "Minsizerel",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001084 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001085 ("*", "*", "*", "2", "*", "*", "Debug",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001086 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001087 ("*", "*", "*", "2", "*", "*", "Minsizerel",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001088 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001089 ("*", "*", "*", "3", "*", "*", "Debug",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001090 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001091 ("*", "*", "*", "3", "*", "*", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001092 "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001093 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001094 "*", "*", "*", "*", "profile_small", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001095 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001096 "*", "*", "*", "*", "profile_small", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001097 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001098 "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001099 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001100 "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001101 ("*", "toolchain_GNUARM.cmake", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001102 "*", "*", "*", "*", "profile_small", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001103 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001104 "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001105 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001106 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001107 ]
1108 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001109
Karl Zhang14573bc2020-06-08 09:23:21 +08001110config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001111 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001112 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001113 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001114 "isolation_level": ["1", "2"],
1115 "test_regression": [True],
1116 "test_psa_api": ["OFF"],
1117 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001118 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001119 "with_bl2": [True],
1120 "with_ns": [True, False],
1121 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001122 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001123 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001124 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001125 },
1126 "common_params": _common_tfm_builder_cfg,
1127 "invalid": _common_tfm_invalid_configs + []
1128 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001129
1130# Configure build manager to build several combinations
1131config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001132 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001133 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001134 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001135 "isolation_level": ["2"],
1136 "test_regression": [False],
1137 "test_psa_api": ["IPC",
1138 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001139 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +08001140 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001141 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001142 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001143 "with_bl2": [True],
1144 "with_ns": [True, False],
1145 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001146 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001147 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001148 "mmio": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001149 },
1150 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001151 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001152 }
1153
Karl Zhang14573bc2020-06-08 09:23:21 +08001154config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001155 "tfm_platform": ["cypress/psoc64"],
1156 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001157 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001158 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001159 "test_regression": [True],
1160 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001161 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001162 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001163 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001164 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001165 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001166 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001167 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001168 "mmio": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001169 },
1170 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001171 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001172 }
1173
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001174config_cov_an519 = {"seed_params": {
1175 "tfm_platform": ["arm/mps2/an519"],
1176 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001177 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001178 "isolation_level": ["1", "2", "3"],
1179 "test_regression": [True, False],
1180 "test_psa_api": ["OFF"],
1181 "cmake_build_type": ["Debug", "Release"],
1182 "with_otp": ["off"],
1183 "with_bl2": [True],
1184 "with_ns": [True],
1185 "profile": ["", "profile_small", "profile_medium"],
1186 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001187 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001188 "mmio": ["OFF"],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001189 },
1190 "common_params": _common_tfm_builder_cfg,
1191 "invalid": _common_tfm_invalid_configs + []
1192 }
1193
1194config_cov_an521 = {"seed_params": {
1195 "tfm_platform": ["arm/mps2/an521"],
1196 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001197 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001198 "isolation_level": ["1", "2", "3"],
1199 "test_regression": [True, False],
1200 "test_psa_api": ["OFF"],
1201 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1202 "with_otp": ["off"],
1203 "with_bl2": [True],
1204 "with_ns": [True],
1205 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1206 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001207 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001208 "mmio": ["OFF"],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001209 },
1210 "common_params": _common_tfm_builder_cfg,
1211 "invalid": _common_tfm_invalid_configs + []
1212 }
1213
Minos Galanakisea421232019-06-20 17:11:28 +01001214# Configruation used for document building
1215config_doxygen = {"common_params": {
1216 "config_type": "tf-m_documents",
1217 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001218 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001219 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001220 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001221 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001222 "cmake --build ./ -- docs"]},
1223 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1224 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001225 r'/(\w+\.(?:html|md|pdf))$',
1226 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001227 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001228 }
1229
Karl Zhangaff558a2020-05-15 14:28:23 +01001230# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +01001231config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001232 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001233 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001234 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001235 "isolation_level": ["1"],
1236 "test_regression": [False],
1237 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001238 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001239 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001240 "with_bl2": [True],
1241 "with_ns": [True],
1242 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001243 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001244 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001245 "mmio": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001246 },
1247 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001248 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001249 }
1250
Dean Birch4c6ad622020-03-13 11:28:03 +00001251# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001252config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001253 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001254 "toolchain_file": ["toolchain_ARMCLANG.cmake",
1255 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001256 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001257 "isolation_level": ["1", "2"],
1258 "test_regression": [True, False],
1259 "test_psa_api": ["OFF"],
1260 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001261 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001262 "with_bl2": [True, False],
1263 "with_ns": [True],
1264 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001265 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001266 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001267 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001268 },
1269 "common_params": _common_tfm_builder_cfg,
1270 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001271 ("*", "toolchain_ARMCLANG.cmake", False, "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001272 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001273 ("*", "toolchain_ARMCLANG.cmake", True, "1", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001274 "*", "*", False, "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001275 ]
1276 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001277
Xinyu Zhangb708f572020-09-15 11:43:46 +08001278config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001279 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001280 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001281 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001282 "isolation_level": ["1", "2"],
1283 "test_regression": [True],
1284 "test_psa_api": ["OFF"],
1285 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001286 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001287 "with_bl2": [True, False],
1288 "with_ns": [True, False],
1289 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001290 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001291 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001292 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001293 },
1294 "common_params": _common_tfm_builder_cfg,
1295 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001296 ("arm/mps2/an521", "toolchain_GNUARM.cmake", False, "2", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001297 "*", "*", True, "*", "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001298 ]
1299 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001300
Xinyu Zhang38b76742021-11-11 13:57:56 +08001301config_an547 = {"seed_params": {
1302 "tfm_platform": ["arm/mps3/an547"],
1303 "toolchain_file": ["toolchain_GNUARM.cmake"],
1304 "lib_model": [False],
1305 "isolation_level": ["1"],
1306 "test_regression": [False],
1307 "test_psa_api": ["OFF"],
1308 "cmake_build_type": ["Debug"],
1309 "with_otp": ["off"],
1310 "with_bl2": [True],
1311 "with_ns": [False],
1312 "profile": [""],
1313 "partition_ps": ["ON"],
1314 "nsce": ["OFF"],
1315 "mmio": ["OFF"],
1316 },
1317 "common_params": _common_tfm_builder_cfg,
1318 "invalid": _common_tfm_invalid_configs + []
1319 }
1320
1321config_corstone_polaris = {"seed_params": {
1322 "tfm_platform": ["arm/mps3/corstone_polaris"],
1323 "toolchain_file": ["toolchain_GNUARM.cmake"],
1324 "lib_model": [False],
1325 "isolation_level": ["1"],
1326 "test_regression": [False],
1327 "test_psa_api": ["OFF"],
1328 "cmake_build_type": ["Debug"],
1329 "with_otp": ["off"],
1330 "with_bl2": [True],
1331 "with_ns": [False],
1332 "profile": [""],
1333 "partition_ps": ["ON"],
1334 "nsce": ["OFF"],
1335 "mmio": ["OFF"],
1336 },
1337 "common_params": _common_tfm_builder_cfg,
1338 "invalid": _common_tfm_invalid_configs + []
1339 }
1340
1341config_bl5340 = {"seed_params": {
1342 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
1343 "toolchain_file": ["toolchain_GNUARM.cmake"],
1344 "lib_model": [False],
1345 "isolation_level": ["1"],
1346 "test_regression": [False],
1347 "test_psa_api": ["OFF"],
1348 "cmake_build_type": ["Debug"],
1349 "with_otp": ["off"],
1350 "with_bl2": [True],
1351 "with_ns": [False],
1352 "profile": [""],
1353 "partition_ps": ["ON"],
1354 "nsce": ["OFF"],
1355 "mmio": ["OFF"],
1356 },
1357 "common_params": _common_tfm_builder_cfg,
1358 "invalid": _common_tfm_invalid_configs + []
1359 }
1360
1361config_nrf5340dk = {"seed_params": {
1362 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
1363 "toolchain_file": ["toolchain_GNUARM.cmake"],
1364 "lib_model": [False],
1365 "isolation_level": ["1"],
1366 "test_regression": [False],
1367 "test_psa_api": ["OFF"],
1368 "cmake_build_type": ["Debug"],
1369 "with_otp": ["off"],
1370 "with_bl2": [True],
1371 "with_ns": [False],
1372 "profile": [""],
1373 "partition_ps": ["ON"],
1374 "nsce": ["OFF"],
1375 "mmio": ["OFF"],
1376 },
1377 "common_params": _common_tfm_builder_cfg,
1378 "invalid": _common_tfm_invalid_configs + []
1379 }
1380
1381config_nrf9160dk = {"seed_params": {
1382 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
1383 "toolchain_file": ["toolchain_GNUARM.cmake"],
1384 "lib_model": [False],
1385 "isolation_level": ["1"],
1386 "test_regression": [False],
1387 "test_psa_api": ["OFF"],
1388 "cmake_build_type": ["Debug"],
1389 "with_otp": ["off"],
1390 "with_bl2": [True],
1391 "with_ns": [False],
1392 "profile": [""],
1393 "partition_ps": ["ON"],
1394 "nsce": ["OFF"],
1395 "mmio": ["OFF"],
1396 },
1397 "common_params": _common_tfm_builder_cfg,
1398 "invalid": _common_tfm_invalid_configs + []
1399 }
1400
1401config_m2351 = {"seed_params": {
1402 "tfm_platform": ["nuvoton/m2351"],
1403 "toolchain_file": ["toolchain_GNUARM.cmake"],
1404 "lib_model": [False],
1405 "isolation_level": ["1"],
1406 "test_regression": [False],
1407 "test_psa_api": ["OFF"],
1408 "cmake_build_type": ["Release"],
1409 "with_otp": ["off"],
1410 "with_bl2": [True],
1411 "with_ns": [False],
1412 "profile": [""],
1413 "partition_ps": ["ON"],
1414 "nsce": ["OFF"],
1415 "mmio": ["OFF"],
1416 },
1417 "common_params": _common_tfm_builder_cfg,
1418 "invalid": _common_tfm_invalid_configs + []
1419 }
1420
1421config_m2354 = {"seed_params": {
1422 "tfm_platform": ["nuvoton/m2354"],
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"],
1434 "nsce": ["OFF"],
1435 "mmio": ["OFF"],
1436 },
1437 "common_params": _common_tfm_builder_cfg,
1438 "invalid": _common_tfm_invalid_configs + []
1439 }
1440
1441config_b_u585i_iot02a = {"seed_params": {
1442 "tfm_platform": ["stm/b_u585i_iot02a"],
1443 "toolchain_file": ["toolchain_GNUARM.cmake"],
1444 "lib_model": [False],
1445 "isolation_level": ["1"],
1446 "test_regression": [False],
1447 "test_psa_api": ["OFF"],
1448 "cmake_build_type": ["Release"],
1449 "with_otp": ["off"],
1450 "with_bl2": [True],
1451 "with_ns": [False],
1452 "profile": [""],
1453 "partition_ps": ["ON"],
1454 "nsce": ["OFF"],
1455 "mmio": ["OFF"],
1456 },
1457 "common_params": _common_tfm_builder_cfg,
1458 "invalid": _common_tfm_invalid_configs + []
1459 }
1460
1461config_nucleo_l552ze_q = {"seed_params": {
1462 "tfm_platform": ["stm/nucleo_l552ze_q"],
1463 "toolchain_file": ["toolchain_GNUARM.cmake"],
1464 "lib_model": [False],
1465 "isolation_level": ["1"],
1466 "test_regression": [False],
1467 "test_psa_api": ["OFF"],
1468 "cmake_build_type": ["Release"],
1469 "with_otp": ["off"],
1470 "with_bl2": [True],
1471 "with_ns": [False],
1472 "profile": [""],
1473 "partition_ps": ["ON"],
1474 "nsce": ["OFF"],
1475 "mmio": ["OFF"],
1476 },
1477 "common_params": _common_tfm_builder_cfg,
1478 "invalid": _common_tfm_invalid_configs + []
1479 }
1480
Karl Zhangaff558a2020-05-15 14:28:23 +01001481_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001482 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001483 "tfm_test": config_tfm_test,
1484 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001485 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +01001486 "tfm_test_otp": config_tfm_test_OTP,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001487 "tfm_nsce": config_nsce,
1488 "tfm_mmio": config_mmio,
Karl Zhangaff558a2020-05-15 14:28:23 +01001489 "psa_api": config_PSA_API,
1490 "psa_api_otp": config_PSA_API_OTP,
1491 "psa_ff": config_PSA_FF,
1492 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001493 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001494 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001495 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Karl Zhang14573bc2020-06-08 09:23:21 +08001496
1497 #nightly test group
1498 "nightly_test": config_nightly,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001499 "nightly_nsce": config_nsce,
1500 "nightly_mmio": config_mmio,
Karl Zhang14573bc2020-06-08 09:23:21 +08001501 "nightly_profile": config_nightly_profile,
1502 "nightly_psa_api": config_nightly_PSA_API,
1503 "nightly_ff": config_nightly_PSA_FF,
1504 "nightly_otp": config_nightly_OTP,
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001505 "nightly_psoc64": config_nightly_psoc64,
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +08001506 "nightly_stm32l562e_dk": config_nightly_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001507 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Karl Zhang14573bc2020-06-08 09:23:21 +08001508
1509 #per patch test group
1510 "pp_test": config_pp_test,
1511 "pp_OTP": config_pp_OTP,
1512 "pp_PSA_API": config_pp_PSA_API,
1513 "pp_psoc64": config_pp_PSoC64,
1514
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001515 #code coverage test group
1516 "coverage_an519": config_cov_an519,
1517 "coverage_an521": config_cov_an521,
1518
Xinyu Zhang38b76742021-11-11 13:57:56 +08001519 #extra build group
1520 "arm_corstone1000": config_corstone1000,
1521 "arm_an547": config_an547,
1522 "arm_corstone_polaris": config_corstone_polaris,
1523 "cypress_psoc64": config_PSOC64,
1524 "laird_bl5340": config_bl5340,
1525 "nordic_nrf5340dk": config_nrf5340dk,
1526 "nordic_nrf9160dk": config_nrf9160dk,
1527 "nuvoton_m2351": config_m2351,
1528 "nuvoton_m2354": config_m2354,
1529 "nxp_lpcxpresso55s69": config_LPCXPRESSO55S69,
1530 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1531 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1532 "stm_stm32l562e_dk": config_STM32L562E_DK,
1533
Karl Zhang14573bc2020-06-08 09:23:21 +08001534 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001535 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001536
1537 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001538 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001539 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001540 "an521_psa_api": config_AN521_PSA_API,
1541 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001542 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001543 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001544 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001545 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001546 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001547 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001548 "ipc": config_IPC,
1549 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001550 "debug": config_debug,
Karl Zhangaff558a2020-05-15 14:28:23 +01001551 "release": config_release,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001552 "debug": config_debug,
Karl Zhang14573bc2020-06-08 09:23:21 +08001553
1554 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001555 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001556 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001557
1558if __name__ == '__main__':
1559 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001560
Minos Galanakisea421232019-06-20 17:11:28 +01001561 # Default behavior is to export refference config when called
1562 _dir = os.getcwd()
1563 from utils import save_json
1564 for _cname, _cfg in _builtin_configs.items():
1565 _fname = os.path.join(_dir, _cname + ".json")
1566 print("Exporting config %s" % _fname)
1567 save_json(_fname, _cfg)