blob: ab9c722d394430f426a70d5ec508caf0092c8ed6 [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
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800234 ("nxp/lpcxpresso55s69", "*", "*", "*", "True", "*", "*", "*", "True", "*", "*", "*", "*", "*"),
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800235 # NSID does not support multi core
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800236 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "ON", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800237 ]
238
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100239# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100240config_AN524 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800241 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800242 "toolchain_file": ["toolchain_GNUARM.cmake",
243 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800244 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800245 "isolation_level": ["1", "2"],
246 "test_regression": [True, False],
247 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100248 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800249 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800250 "with_bl2": [True, False],
251 "with_ns": [True, False],
252 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800253 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800254 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800255 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100256 },
257 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800258 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100259 }
260
Karl Zhangaff558a2020-05-15 14:28:23 +0100261config_AN521 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800262 "tfm_platform": ["arm/mps2/an521"],
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 Zhang9bfe8a92021-10-28 16:27:12 +0800275 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800276 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100277 },
278 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800279 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100280 }
281
Karl Zhangaff558a2020-05-15 14:28:23 +0100282config_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800283 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
284 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800285 "toolchain_file": ["toolchain_GNUARM.cmake",
286 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800287 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800288 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800289 "test_regression": [False],
290 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800291 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800292 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100293 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800294 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800295 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800296 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800297 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800298 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800299 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800300 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100301 },
302 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800303 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100304 }
305
Karl Zhangaff558a2020-05-15 14:28:23 +0100306config_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800307 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
308 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800309 "toolchain_file": ["toolchain_GNUARM.cmake",
310 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800311 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800312 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800313 "test_regression": [False],
314 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100315 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800316 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800317 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800318 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800319 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800320 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800321 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800322 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100323 },
324 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800325 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100326 }
327
Karl Zhangaff558a2020-05-15 14:28:23 +0100328config_PSA_API_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800329 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800330 "toolchain_file": ["toolchain_GNUARM.cmake",
331 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800332 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800333 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800334 "test_regression": [False],
335 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800336 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800337 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100338 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800339 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800340 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800341 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800342 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800343 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800344 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800345 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100346 },
347 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800348 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100349 }
Minos Galanakisea421232019-06-20 17:11:28 +0100350
Xinyu Zhangb708f572020-09-15 11:43:46 +0800351config_PSA_FF_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800352 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800353 "toolchain_file": ["toolchain_GNUARM.cmake",
354 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800355 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800356 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800357 "test_regression": [False],
358 "test_psa_api": ["IPC"],
359 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800360 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800361 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800362 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800363 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800364 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800365 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800366 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800367 },
368 "common_params": _common_tfm_builder_cfg,
369 "invalid": _common_tfm_invalid_configs + []
370 }
371
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800372config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800373 "tfm_platform": ["cypress/psoc64"],
374 "toolchain_file": ["toolchain_GNUARM.cmake",
375 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800376 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800377 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800378 "test_regression": [True],
379 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800380 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800381 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800382 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800383 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800384 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800385 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800386 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800387 "mmio": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800388 },
389 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800390 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800391 }
392
Arthur She19c0e1a2021-06-02 11:06:19 -0700393config_STM32L562E_DK = {"seed_params": {
394 "tfm_platform": ["stm/stm32l562e_dk"],
395 "toolchain_file": ["toolchain_GNUARM.cmake",
396 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800397 "lib_model": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700398 "isolation_level": ["1", "2", "3"],
399 "test_regression": [True],
400 "test_psa_api": ["OFF"],
401 "cmake_build_type": ["Release"],
402 "with_otp": ["off"],
403 "with_bl2": [True],
404 "with_ns": [True],
405 "profile": [""],
406 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800407 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800408 "mmio": ["OFF"],
Arthur She19c0e1a2021-06-02 11:06:19 -0700409 },
410 "common_params": _common_tfm_builder_cfg,
411 "invalid": _common_tfm_invalid_configs + []
412 }
413
Arthur Shef3657742021-09-07 14:23:18 -0700414config_LPCXPRESSO55S69 = {"seed_params": {
415 "tfm_platform": ["nxp/lpcxpresso55s69"],
416 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800417 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700418 "isolation_level": ["2"],
419 "test_regression": [True, False],
420 "test_psa_api": ["OFF"],
421 "cmake_build_type": ["Relwithdebinfo"],
422 "with_otp": ["off"],
423 "with_bl2": [True, False],
424 "with_ns": [True],
425 "profile": ["profile_medium"],
426 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800427 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800428 "mmio": ["OFF"],
Arthur Shef3657742021-09-07 14:23:18 -0700429 },
430 "common_params": _common_tfm_builder_cfg,
431 "invalid": _common_tfm_invalid_configs + []
432 }
433
Xinyu Zhang6afdd612021-10-12 17:07:32 +0800434config_corstone1000 = {"seed_params": {
435 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800436 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800437 "lib_model": [False],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800438 "isolation_level": ["1"],
439 "test_regression": [False],
440 "test_psa_api": ["OFF"],
441 "cmake_build_type": ["Debug"],
442 "with_otp": ["off"],
443 "with_bl2": [True],
444 "with_ns": [False],
445 "profile": [""],
446 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800447 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800448 "mmio": ["OFF"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800449 },
450 "common_params": _common_tfm_builder_cfg,
451 "invalid": _common_tfm_invalid_configs + []
452 }
453
Minos Galanakisea421232019-06-20 17:11:28 +0100454config_AN519 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800455 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800456 "toolchain_file": ["toolchain_GNUARM.cmake",
457 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800458 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800459 "isolation_level": ["1", "2"],
460 "test_regression": [True, False],
461 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100462 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800463 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800464 "with_bl2": [True, False],
465 "with_ns": [True, False],
466 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800467 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800468 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800469 "mmio": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100470 },
471 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800472 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100473 }
474
Xinyu Zhangb708f572020-09-15 11:43:46 +0800475config_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800476 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
477 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800478 "toolchain_file": ["toolchain_GNUARM.cmake",
479 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800480 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800481 "isolation_level": ["1", "2"],
482 "test_regression": [True, False],
483 "test_psa_api": ["OFF"],
484 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800485 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800486 "with_bl2": [True, False],
487 "with_ns": [True, False],
488 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800489 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800490 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800491 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800492 },
Minos Galanakisea421232019-06-20 17:11:28 +0100493 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800494 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100495 }
496
Minos Galanakisea421232019-06-20 17:11:28 +0100497config_full = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800498 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
499 "arm/musca_b1/sse_200",
500 "arm/mps3/an524", "cypress/psoc64",
Arthur She19c0e1a2021-06-02 11:06:19 -0700501 "arm/musca_b1/secure_enclave",
Arthur Shef3657742021-09-07 14:23:18 -0700502 "stm/stm32l562e_dk",
503 "nxp/lpcxpresso55s69"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800504 "toolchain_file": ["toolchain_GNUARM.cmake",
505 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800506 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800507 "isolation_level": ["1", "2"],
508 "test_regression": [True, False],
509 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800510 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800511 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800512 "with_bl2": [True, False],
513 "with_ns": [True, False],
514 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800515 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800516 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800517 "mmio": ["OFF"],
Dean Birchd6ce2c82020-05-13 13:16:15 +0100518 },
519 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800520 "invalid": _common_tfm_invalid_configs + [
521 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800522 "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800523 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800524 "*", "*", "*", "*", True, True, "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800525 ("arm/mps2/an521", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800526 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800527 ("arm/mps2/an519", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800528 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800529 ("arm/musca_b1/sse_200", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800530 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800531 ("arm/mps3/an524", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800532 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800533 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800534 }
535
Karl Zhangaff558a2020-05-15 14:28:23 +0100536config_tfm_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800537 "tfm_platform": ["arm/mps2/an521",
538 "arm/musca_b1/sse_200", "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800539 "toolchain_file": ["toolchain_ARMCLANG.cmake",
540 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800541 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800542 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800543 "test_regression": [True, False],
544 "test_psa_api": ["OFF"],
545 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800546 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800547 "with_bl2": [True],
548 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800549 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800550 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800551 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800552 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800553 },
554 "common_params": _common_tfm_builder_cfg,
555 "invalid": _common_tfm_invalid_configs + []
556 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800557
Karl Zhangaff558a2020-05-15 14:28:23 +0100558config_tfm_test2 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800559 "tfm_platform": ["arm/mps2/an519", "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800560 "toolchain_file": ["toolchain_ARMCLANG.cmake",
561 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800562 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800563 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800564 "test_regression": [True, False],
565 "test_psa_api": ["OFF"],
566 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800567 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800568 "with_bl2": [True],
569 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800570 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800571 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800572 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800573 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800574 },
575 "common_params": _common_tfm_builder_cfg,
576 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800577 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800578 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800579 ]
580 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100581
Karl Zhang14573bc2020-06-08 09:23:21 +0800582config_tfm_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800583 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
584 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800585 "toolchain_file": ["toolchain_ARMCLANG.cmake",
586 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800587 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800588 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800589 "test_regression": [True, False],
590 "test_psa_api": ["OFF"],
591 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800592 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800593 "with_bl2": [True],
594 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800595 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800596 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800597 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800598 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800599 },
600 "common_params": _common_tfm_builder_cfg,
601 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800602 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800603 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800604 # Profile Large is only supported by AN521
Summer Qin3c2b5722021-05-26 10:43:45 +0800605 ("arm/mps2/an519", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800606 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800607 ("arm/musca_b1/sse_200", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800608 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800609 ]
610 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800611
Karl Zhangaff558a2020-05-15 14:28:23 +0100612config_tfm_test_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800613 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800614 "toolchain_file": ["toolchain_ARMCLANG.cmake",
615 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800616 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800617 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800618 "test_regression": [True, False],
619 "test_psa_api": ["OFF"],
620 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800621 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800622 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800623 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800624 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800625 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800626 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800627 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800628 },
629 "common_params": _common_tfm_builder_cfg,
630 "invalid": _common_tfm_invalid_configs + []
631 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100632
Minos Galanakisea421232019-06-20 17:11:28 +0100633config_MUSCA_B1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800634 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800635 "toolchain_file": ["toolchain_ARMCLANG.cmake",
636 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800637 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800638 "isolation_level": ["1", "2"],
639 "test_regression": [True, False],
640 "test_psa_api": ["OFF"],
641 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800642 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800643 "with_bl2": [True],
644 "with_ns": [True, False],
645 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800646 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800647 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800648 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800649 },
650 "common_params": _common_tfm_builder_cfg,
651 "invalid": _common_tfm_invalid_configs + []
652 }
Minos Galanakisea421232019-06-20 17:11:28 +0100653
Mark Horvath8d281cd2020-12-07 15:20:26 +0100654config_MUSCA_B1_SE = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800655 "tfm_platform": ["arm/musca_b1/secure_enclave"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100656 "toolchain_file": ["toolchain_ARMCLANG.cmake",
657 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800658 "lib_model": [False],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100659 "isolation_level": ["1"],
660 "test_regression": [False],
661 "test_psa_api": ["OFF"],
662 "cmake_build_type": ["Debug", "Release"],
663 "with_otp": ["off"],
664 "with_bl2": [True],
665 "with_ns": [False],
666 "profile": [""],
667 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800668 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800669 "mmio": ["OFF"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100670 },
671 "common_params": _common_tfm_builder_cfg,
672 "invalid": _common_tfm_invalid_configs + []
673 }
674
Karl Zhangeffed972020-06-30 15:48:01 +0800675config_MUSCA_S1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800676 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800677 "toolchain_file": ["toolchain_ARMCLANG.cmake",
678 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800679 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800680 "isolation_level": ["1", "2"],
681 "test_regression": [True, False],
682 "test_psa_api": ["OFF"],
683 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800684 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800685 "with_bl2": [True],
686 "with_ns": [True, False],
687 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800688 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800689 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800690 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800691 },
692 "common_params": _common_tfm_builder_cfg,
693 "invalid": _common_tfm_invalid_configs + []
694 }
Karl Zhangeffed972020-06-30 15:48:01 +0800695
Karl Zhangaff558a2020-05-15 14:28:23 +0100696config_release = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800697 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
698 "arm/musca_b1/sse_200", "arm/musca_s1",
699 "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800700 "toolchain_file": ["toolchain_ARMCLANG.cmake",
701 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800702 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800703 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800704 "test_regression": [True, False],
705 "test_psa_api": ["OFF"],
706 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800707 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800708 "with_bl2": [True, False],
709 "with_ns": [True, False],
710 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800711 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800712 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800713 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800714 },
715 "common_params": _common_tfm_builder_cfg,
716 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800717 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800718 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800719 ]
720 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100721
722# Configure build manager to build several combinations
723config_AN521_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800724 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
725 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800726 "toolchain_file": ["toolchain_GNUARM.cmake",
727 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800728 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800729 "isolation_level": ["1", "2"],
730 "test_regression": [False],
731 "test_psa_api": ["IPC",
732 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800733 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800734 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800735 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800736 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800737 "with_bl2": [True],
738 "with_ns": [True, False],
739 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800740 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800741 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800742 "mmio": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100743 },
744 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800745 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800746 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800747 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800748 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100749 }
750
Karl Zhangaff558a2020-05-15 14:28:23 +0100751config_AN521_PSA_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800752 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
753 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800754 "toolchain_file": ["toolchain_GNUARM.cmake",
755 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800756 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800757 "isolation_level": ["1", "2"],
758 "test_regression": [False],
759 "test_psa_api": ["IPC"],
760 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800761 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800762 "with_bl2": [True],
763 "with_ns": [True, False],
764 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800765 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800766 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800767 "mmio": ["OFF"],
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 + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800771 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800772 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800773 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100774 }
775
Karl Zhang14573bc2020-06-08 09:23:21 +0800776config_nightly = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800777 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
778 "arm/musca_b1/sse_200", "arm/musca_s1",
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800779 "arm/mps3/an524", "stm/stm32l562e_dk",
780 "arm/musca_b1/secure_enclave"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800781 "toolchain_file": ["toolchain_GNUARM.cmake",
782 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800783 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800784 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800785 "test_regression": [True, False],
786 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800787 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800788 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800789 "with_bl2": [True],
790 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800791 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800792 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800793 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800794 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800795 },
796 "common_params": _common_tfm_builder_cfg,
797 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800798 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800799 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800800 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800801 "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800802 ("cypress/psoc64", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800803 "*", "*", "*", "*", True, True, "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800804 ("arm/mps2/an521", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800805 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800806 ("arm/mps2/an519", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800807 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800808 ("arm/musca_b1/sse_200", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800809 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800810 ("arm/musca_s1", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800811 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800812 ("arm/mps3/an524", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800813 "*", "*", "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800814 ]
815 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800816
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800817config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800818 "tfm_platform": ["arm/mps2/an521"],
819 "toolchain_file": ["toolchain_GNUARM.cmake",
820 "toolchain_ARMCLANG.cmake"],
821 "lib_model": [True, False],
822 "isolation_level": ["1", "2", "3"],
823 "test_regression": [True],
824 "test_psa_api": ["OFF"],
825 "cmake_build_type": ["Debug"],
826 "with_otp": ["off"],
827 "with_bl2": [True],
828 "with_ns": [True],
829 "profile": [""],
830 "partition_ps": ["ON"],
831 "nsce": ["ON"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800832 "mmio": ["OFF"],
833 },
834 "common_params": _common_tfm_builder_cfg,
835 "invalid": _common_tfm_invalid_configs + []
836 }
837
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800838config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800839 "tfm_platform": ["arm/mps2/an521"],
840 "toolchain_file": ["toolchain_GNUARM.cmake",
841 "toolchain_ARMCLANG.cmake"],
842 "lib_model": [False],
843 "isolation_level": ["1"],
844 "test_regression": [True],
845 "test_psa_api": ["OFF"],
846 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
847 "with_otp": ["off"],
848 "with_bl2": [True],
849 "with_ns": [True],
850 "profile": [""],
851 "partition_ps": ["ON"],
852 "nsce": ["OFF"],
853 "mmio": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800854 },
855 "common_params": _common_tfm_builder_cfg,
856 "invalid": _common_tfm_invalid_configs + []
857 }
858
Karl Zhang14573bc2020-06-08 09:23:21 +0800859config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800860 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
861 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800862 "toolchain_file": ["toolchain_ARMCLANG.cmake",
863 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800864 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800865 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800866 "test_regression": [True, False],
867 "test_psa_api": ["OFF"],
868 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800869 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800870 "with_bl2": [True],
871 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800872 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800873 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800874 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800875 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800876 },
877 "common_params": _common_tfm_builder_cfg,
878 "invalid": _common_tfm_invalid_configs + [
Summer Qin3c2b5722021-05-26 10:43:45 +0800879 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800880 "*", "*", "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800881 # Profile Large is only supported by AN521
Summer Qin3c2b5722021-05-26 10:43:45 +0800882 ("arm/mps2/an519", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800883 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +0800884 ("arm/musca_b1/sse_200", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800885 "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800886 ]
887 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800888
Karl Zhang14573bc2020-06-08 09:23:21 +0800889config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800890 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
891 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800892 "toolchain_file": ["toolchain_GNUARM.cmake",
893 "toolchain_ARMCLANG.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": [False],
897 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800898 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800899 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800900 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800901 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800902 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800903 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800904 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800905 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800906 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800907 "mmio": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800908 },
909 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800910 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800911 }
912
Karl Zhang14573bc2020-06-08 09:23:21 +0800913config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800914 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
915 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800916 "toolchain_file": ["toolchain_GNUARM.cmake",
917 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800918 "lib_model": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800919 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800920 "test_regression": [False],
921 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800922 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800923 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800924 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800925 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800926 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800927 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800928 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800929 "mmio": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800930 },
931 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800932 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800933 }
934
Karl Zhang14573bc2020-06-08 09:23:21 +0800935config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800936 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800937 "toolchain_file": ["toolchain_GNUARM.cmake",
938 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800939 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800940 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800941 "test_regression": [True],
942 "test_psa_api": ["OFF"],
943 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800944 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800945 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800946 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800947 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800948 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800949 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800950 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800951 },
952 "common_params": _common_tfm_builder_cfg,
953 "invalid": _common_tfm_invalid_configs + []
954 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800955
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800956config_nightly_psoc64 = {"seed_params": {
957 "tfm_platform": ["cypress/psoc64"],
958 "toolchain_file": ["toolchain_GNUARM.cmake",
959 "toolchain_ARMCLANG.cmake"],
960 "lib_model": [False],
961 "isolation_level": ["1", "2"],
962 "test_regression": [True],
963 "test_psa_api": ["OFF"],
964 "cmake_build_type": ["Release"],
965 "with_otp": ["off"],
966 "with_bl2": [False],
967 "with_ns": [True],
968 "profile": [""],
969 "partition_ps": ["ON"],
970 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800971 "mmio": ["OFF"],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800972 },
973 "common_params": _common_tfm_builder_cfg,
974 "invalid": _common_tfm_invalid_configs + []
975 }
976
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800977config_nightly_STM32L562E_DK = {"seed_params": {
978 "tfm_platform": ["stm/stm32l562e_dk"],
979 "toolchain_file": ["toolchain_GNUARM.cmake",
980 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800981 "lib_model": [True, False],
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800982 "isolation_level": ["1", "2", "3"],
983 "test_regression": [True],
984 "test_psa_api": ["OFF"],
985 "cmake_build_type": ["Release"],
986 "with_otp": ["off"],
987 "with_bl2": [True],
988 "with_ns": [True],
989 "profile": [""],
990 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800991 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800992 "mmio": ["OFF"],
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +0800993 },
994 "common_params": _common_tfm_builder_cfg,
995 "invalid": _common_tfm_invalid_configs + []
996 }
997
Arthur Shef3657742021-09-07 14:23:18 -0700998config_nightly_LPCXPRESSO55S69 = {"seed_params": {
999 "tfm_platform": ["nxp/lpcxpresso55s69"],
1000 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001001 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001002 "isolation_level": ["2"],
1003 "test_regression": [True, False],
1004 "test_psa_api": ["OFF"],
1005 "cmake_build_type": ["Relwithdebinfo"],
1006 "with_otp": ["off"],
1007 "with_bl2": [True, False],
1008 "with_ns": [True],
1009 "profile": ["profile_medium"],
1010 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001011 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001012 "mmio": ["OFF"],
Arthur Shef3657742021-09-07 14:23:18 -07001013 },
1014 "common_params": _common_tfm_builder_cfg,
1015 "invalid": _common_tfm_invalid_configs + []
1016 }
1017
Karl Zhang14573bc2020-06-08 09:23:21 +08001018config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001019 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +08001020 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001021 "toolchain_file": ["toolchain_GNUARM.cmake",
1022 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001023 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +08001024 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001025 "test_regression": [True],
1026 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001027 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001028 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001029 "with_bl2": [True],
1030 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001031 "profile": ["", "profile_small", "profile_medium"],
1032 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001033 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001034 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001035 },
1036 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001037 "valid": [
Summer Qin3c2b5722021-05-26 10:43:45 +08001038 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001039 True, "1", False, "OFF", "Debug",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001040 "off", True, True, "", "ON", "OFF", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001041 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001042 False, "2", False, "OFF", "Debug",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001043 "off", True, True, "", "ON", "OFF", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001044 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001045 False, "3", False, "OFF", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001046 "off", True, True, "", "ON", "OFF", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001047 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001048 False, "2", False, "OFF", "Debug",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001049 "off", True, True, "profile_medium", "ON", "OFF", "OFF"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001050 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001051 False, "3", False, "OFF", "Debug",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001052 "off", True, True, "profile_large", "ON", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001053 # AN521_GNUARM_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001054 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
1055 False, "2", True, "OFF", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001056 "off", True, True, "profile_medium", "OFF", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001057 # MUSCA_B1_GNUARM_LIB_1_REG_Minsizerel_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001058 ("arm/musca_b1/sse_200", "toolchain_GNUARM.cmake",
1059 True, "1", True, "OFF", "Minsizerel",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001060 "off", True, True, "", "ON", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001061 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001062 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake",
1063 False, "1", True, "OFF", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001064 "off", True, True, "", "ON", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001065 # stm32l562e_dk_GNUARM_IPC_2_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001066 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
1067 False, "2", True, "OFF", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001068 "off", True, True, "", "ON", "OFF", "OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001069 # stm32l562e_dk_GNUARM_IPC_3_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001070 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
1071 False, "3", True, "OFF", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001072 "off", True, True, "", "ON", "OFF", "OFF"),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001073 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001074 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001075 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +08001076 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001077 "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001078 # valid configs supported by TF-M but not needed in per-patch
1079 ("*", "*", "*", "1", "*", "*", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001080 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001081 ("*", "*", "*", "1", "*", "*", "Minsizerel",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001082 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001083 ("*", "*", "*", "2", "*", "*", "Debug",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001084 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001085 ("*", "*", "*", "2", "*", "*", "Minsizerel",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001086 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001087 ("*", "*", "*", "3", "*", "*", "Debug",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001088 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001089 ("*", "*", "*", "3", "*", "*", "Release",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001090 "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001091 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001092 "*", "*", "*", "*", "profile_small", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001093 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001094 "*", "*", "*", "*", "profile_small", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001095 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001096 "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001097 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001098 "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001099 ("*", "toolchain_GNUARM.cmake", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001100 "*", "*", "*", "*", "profile_small", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001101 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001102 "*", "*", "*", "*", "profile_medium", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001103 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001104 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001105 ]
1106 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001107
Karl Zhang14573bc2020-06-08 09:23:21 +08001108config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001109 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001110 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001111 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001112 "isolation_level": ["1", "2"],
1113 "test_regression": [True],
1114 "test_psa_api": ["OFF"],
1115 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001116 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001117 "with_bl2": [True],
1118 "with_ns": [True, False],
1119 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001120 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001121 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001122 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001123 },
1124 "common_params": _common_tfm_builder_cfg,
1125 "invalid": _common_tfm_invalid_configs + []
1126 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001127
1128# Configure build manager to build several combinations
1129config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001130 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001131 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001132 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001133 "isolation_level": ["2"],
1134 "test_regression": [False],
1135 "test_psa_api": ["IPC",
1136 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001137 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +08001138 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001139 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001140 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001141 "with_bl2": [True],
1142 "with_ns": [True, False],
1143 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001144 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001145 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001146 "mmio": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001147 },
1148 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001149 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001150 }
1151
Karl Zhang14573bc2020-06-08 09:23:21 +08001152config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001153 "tfm_platform": ["cypress/psoc64"],
1154 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001155 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001156 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001157 "test_regression": [True],
1158 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001159 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001160 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001161 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001162 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001163 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001164 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001165 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001166 "mmio": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001167 },
1168 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001169 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001170 }
1171
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001172config_cov_an519 = {"seed_params": {
1173 "tfm_platform": ["arm/mps2/an519"],
1174 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001175 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001176 "isolation_level": ["1", "2", "3"],
1177 "test_regression": [True, False],
1178 "test_psa_api": ["OFF"],
1179 "cmake_build_type": ["Debug", "Release"],
1180 "with_otp": ["off"],
1181 "with_bl2": [True],
1182 "with_ns": [True],
1183 "profile": ["", "profile_small", "profile_medium"],
1184 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001185 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001186 "mmio": ["OFF"],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001187 },
1188 "common_params": _common_tfm_builder_cfg,
1189 "invalid": _common_tfm_invalid_configs + []
1190 }
1191
1192config_cov_an521 = {"seed_params": {
1193 "tfm_platform": ["arm/mps2/an521"],
1194 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001195 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001196 "isolation_level": ["1", "2", "3"],
1197 "test_regression": [True, False],
1198 "test_psa_api": ["OFF"],
1199 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1200 "with_otp": ["off"],
1201 "with_bl2": [True],
1202 "with_ns": [True],
1203 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1204 "partition_ps": ["ON", "OFF"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001205 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001206 "mmio": ["OFF"],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001207 },
1208 "common_params": _common_tfm_builder_cfg,
1209 "invalid": _common_tfm_invalid_configs + []
1210 }
1211
Minos Galanakisea421232019-06-20 17:11:28 +01001212# Configruation used for document building
1213config_doxygen = {"common_params": {
1214 "config_type": "tf-m_documents",
1215 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001216 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001217 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001218 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001219 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001220 "cmake --build ./ -- docs"]},
1221 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1222 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001223 r'/(\w+\.(?:html|md|pdf))$',
1224 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001225 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001226 }
1227
Karl Zhangaff558a2020-05-15 14:28:23 +01001228# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +01001229config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001230 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001231 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001232 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001233 "isolation_level": ["1"],
1234 "test_regression": [False],
1235 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001236 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001237 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001238 "with_bl2": [True],
1239 "with_ns": [True],
1240 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001241 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001242 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001243 "mmio": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001244 },
1245 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001246 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001247 }
1248
Dean Birch4c6ad622020-03-13 11:28:03 +00001249# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001250config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001251 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001252 "toolchain_file": ["toolchain_ARMCLANG.cmake",
1253 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001254 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001255 "isolation_level": ["1", "2"],
1256 "test_regression": [True, False],
1257 "test_psa_api": ["OFF"],
1258 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001259 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001260 "with_bl2": [True, False],
1261 "with_ns": [True],
1262 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001263 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001264 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001265 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001266 },
1267 "common_params": _common_tfm_builder_cfg,
1268 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001269 ("*", "toolchain_ARMCLANG.cmake", False, "*", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001270 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001271 ("*", "toolchain_ARMCLANG.cmake", True, "1", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001272 "*", "*", False, "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001273 ]
1274 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001275
Xinyu Zhangb708f572020-09-15 11:43:46 +08001276config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001277 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001278 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001279 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001280 "isolation_level": ["1", "2"],
1281 "test_regression": [True],
1282 "test_psa_api": ["OFF"],
1283 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001284 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001285 "with_bl2": [True, False],
1286 "with_ns": [True, False],
1287 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001288 "partition_ps": ["ON"],
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001289 "nsce": ["OFF"],
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001290 "mmio": ["OFF"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001291 },
1292 "common_params": _common_tfm_builder_cfg,
1293 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001294 ("arm/mps2/an521", "toolchain_GNUARM.cmake", False, "2", "*", "*",
Xinyu Zhanga1088e22021-11-11 18:02:45 +08001295 "*", "*", True, "*", "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001296 ]
1297 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001298
Xinyu Zhang38b76742021-11-11 13:57:56 +08001299config_an547 = {"seed_params": {
1300 "tfm_platform": ["arm/mps3/an547"],
1301 "toolchain_file": ["toolchain_GNUARM.cmake"],
1302 "lib_model": [False],
1303 "isolation_level": ["1"],
1304 "test_regression": [False],
1305 "test_psa_api": ["OFF"],
1306 "cmake_build_type": ["Debug"],
1307 "with_otp": ["off"],
1308 "with_bl2": [True],
1309 "with_ns": [False],
1310 "profile": [""],
1311 "partition_ps": ["ON"],
1312 "nsce": ["OFF"],
1313 "mmio": ["OFF"],
1314 },
1315 "common_params": _common_tfm_builder_cfg,
1316 "invalid": _common_tfm_invalid_configs + []
1317 }
1318
1319config_corstone_polaris = {"seed_params": {
1320 "tfm_platform": ["arm/mps3/corstone_polaris"],
1321 "toolchain_file": ["toolchain_GNUARM.cmake"],
1322 "lib_model": [False],
1323 "isolation_level": ["1"],
1324 "test_regression": [False],
1325 "test_psa_api": ["OFF"],
1326 "cmake_build_type": ["Debug"],
1327 "with_otp": ["off"],
1328 "with_bl2": [True],
1329 "with_ns": [False],
1330 "profile": [""],
1331 "partition_ps": ["ON"],
1332 "nsce": ["OFF"],
1333 "mmio": ["OFF"],
1334 },
1335 "common_params": _common_tfm_builder_cfg,
1336 "invalid": _common_tfm_invalid_configs + []
1337 }
1338
1339config_bl5340 = {"seed_params": {
1340 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
1341 "toolchain_file": ["toolchain_GNUARM.cmake"],
1342 "lib_model": [False],
1343 "isolation_level": ["1"],
1344 "test_regression": [False],
1345 "test_psa_api": ["OFF"],
1346 "cmake_build_type": ["Debug"],
1347 "with_otp": ["off"],
1348 "with_bl2": [True],
1349 "with_ns": [False],
1350 "profile": [""],
1351 "partition_ps": ["ON"],
1352 "nsce": ["OFF"],
1353 "mmio": ["OFF"],
1354 },
1355 "common_params": _common_tfm_builder_cfg,
1356 "invalid": _common_tfm_invalid_configs + []
1357 }
1358
1359config_nrf5340dk = {"seed_params": {
1360 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
1361 "toolchain_file": ["toolchain_GNUARM.cmake"],
1362 "lib_model": [False],
1363 "isolation_level": ["1"],
1364 "test_regression": [False],
1365 "test_psa_api": ["OFF"],
1366 "cmake_build_type": ["Debug"],
1367 "with_otp": ["off"],
1368 "with_bl2": [True],
1369 "with_ns": [False],
1370 "profile": [""],
1371 "partition_ps": ["ON"],
1372 "nsce": ["OFF"],
1373 "mmio": ["OFF"],
1374 },
1375 "common_params": _common_tfm_builder_cfg,
1376 "invalid": _common_tfm_invalid_configs + []
1377 }
1378
1379config_nrf9160dk = {"seed_params": {
1380 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
1381 "toolchain_file": ["toolchain_GNUARM.cmake"],
1382 "lib_model": [False],
1383 "isolation_level": ["1"],
1384 "test_regression": [False],
1385 "test_psa_api": ["OFF"],
1386 "cmake_build_type": ["Debug"],
1387 "with_otp": ["off"],
1388 "with_bl2": [True],
1389 "with_ns": [False],
1390 "profile": [""],
1391 "partition_ps": ["ON"],
1392 "nsce": ["OFF"],
1393 "mmio": ["OFF"],
1394 },
1395 "common_params": _common_tfm_builder_cfg,
1396 "invalid": _common_tfm_invalid_configs + []
1397 }
1398
1399config_m2351 = {"seed_params": {
1400 "tfm_platform": ["nuvoton/m2351"],
1401 "toolchain_file": ["toolchain_GNUARM.cmake"],
1402 "lib_model": [False],
1403 "isolation_level": ["1"],
1404 "test_regression": [False],
1405 "test_psa_api": ["OFF"],
1406 "cmake_build_type": ["Release"],
1407 "with_otp": ["off"],
1408 "with_bl2": [True],
1409 "with_ns": [False],
1410 "profile": [""],
1411 "partition_ps": ["ON"],
1412 "nsce": ["OFF"],
1413 "mmio": ["OFF"],
1414 },
1415 "common_params": _common_tfm_builder_cfg,
1416 "invalid": _common_tfm_invalid_configs + []
1417 }
1418
1419config_m2354 = {"seed_params": {
1420 "tfm_platform": ["nuvoton/m2354"],
1421 "toolchain_file": ["toolchain_GNUARM.cmake"],
1422 "lib_model": [False],
1423 "isolation_level": ["1"],
1424 "test_regression": [False],
1425 "test_psa_api": ["OFF"],
1426 "cmake_build_type": ["Debug"],
1427 "with_otp": ["off"],
1428 "with_bl2": [True],
1429 "with_ns": [False],
1430 "profile": [""],
1431 "partition_ps": ["ON"],
1432 "nsce": ["OFF"],
1433 "mmio": ["OFF"],
1434 },
1435 "common_params": _common_tfm_builder_cfg,
1436 "invalid": _common_tfm_invalid_configs + []
1437 }
1438
1439config_b_u585i_iot02a = {"seed_params": {
1440 "tfm_platform": ["stm/b_u585i_iot02a"],
1441 "toolchain_file": ["toolchain_GNUARM.cmake"],
1442 "lib_model": [False],
1443 "isolation_level": ["1"],
1444 "test_regression": [False],
1445 "test_psa_api": ["OFF"],
1446 "cmake_build_type": ["Release"],
1447 "with_otp": ["off"],
1448 "with_bl2": [True],
1449 "with_ns": [False],
1450 "profile": [""],
1451 "partition_ps": ["ON"],
1452 "nsce": ["OFF"],
1453 "mmio": ["OFF"],
1454 },
1455 "common_params": _common_tfm_builder_cfg,
1456 "invalid": _common_tfm_invalid_configs + []
1457 }
1458
1459config_nucleo_l552ze_q = {"seed_params": {
1460 "tfm_platform": ["stm/nucleo_l552ze_q"],
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"],
1472 "nsce": ["OFF"],
1473 "mmio": ["OFF"],
1474 },
1475 "common_params": _common_tfm_builder_cfg,
1476 "invalid": _common_tfm_invalid_configs + []
1477 }
1478
Karl Zhangaff558a2020-05-15 14:28:23 +01001479_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001480 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001481 "tfm_test": config_tfm_test,
1482 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001483 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +01001484 "tfm_test_otp": config_tfm_test_OTP,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001485 "tfm_nsce": config_nsce,
1486 "tfm_mmio": config_mmio,
Karl Zhangaff558a2020-05-15 14:28:23 +01001487 "psa_api": config_PSA_API,
1488 "psa_api_otp": config_PSA_API_OTP,
1489 "psa_ff": config_PSA_FF,
1490 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001491 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001492 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001493 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Karl Zhang14573bc2020-06-08 09:23:21 +08001494
1495 #nightly test group
1496 "nightly_test": config_nightly,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001497 "nightly_nsce": config_nsce,
1498 "nightly_mmio": config_mmio,
Karl Zhang14573bc2020-06-08 09:23:21 +08001499 "nightly_profile": config_nightly_profile,
1500 "nightly_psa_api": config_nightly_PSA_API,
1501 "nightly_ff": config_nightly_PSA_FF,
1502 "nightly_otp": config_nightly_OTP,
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001503 "nightly_psoc64": config_nightly_psoc64,
Xinyu Zhangfd70cfe2021-06-29 11:14:13 +08001504 "nightly_stm32l562e_dk": config_nightly_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001505 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Karl Zhang14573bc2020-06-08 09:23:21 +08001506
1507 #per patch test group
1508 "pp_test": config_pp_test,
1509 "pp_OTP": config_pp_OTP,
1510 "pp_PSA_API": config_pp_PSA_API,
1511 "pp_psoc64": config_pp_PSoC64,
1512
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001513 #code coverage test group
1514 "coverage_an519": config_cov_an519,
1515 "coverage_an521": config_cov_an521,
1516
Xinyu Zhang38b76742021-11-11 13:57:56 +08001517 #extra build group
1518 "arm_corstone1000": config_corstone1000,
1519 "arm_an547": config_an547,
1520 "arm_corstone_polaris": config_corstone_polaris,
1521 "cypress_psoc64": config_PSOC64,
1522 "laird_bl5340": config_bl5340,
1523 "nordic_nrf5340dk": config_nrf5340dk,
1524 "nordic_nrf9160dk": config_nrf9160dk,
1525 "nuvoton_m2351": config_m2351,
1526 "nuvoton_m2354": config_m2354,
1527 "nxp_lpcxpresso55s69": config_LPCXPRESSO55S69,
1528 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1529 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1530 "stm_stm32l562e_dk": config_STM32L562E_DK,
1531
Karl Zhang14573bc2020-06-08 09:23:21 +08001532 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001533 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001534
1535 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001536 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001537 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001538 "an521_psa_api": config_AN521_PSA_API,
1539 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001540 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001541 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001542 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001543 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001544 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001545 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001546 "ipc": config_IPC,
1547 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001548 "debug": config_debug,
Karl Zhangaff558a2020-05-15 14:28:23 +01001549 "release": config_release,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001550 "debug": config_debug,
Karl Zhang14573bc2020-06-08 09:23:21 +08001551
1552 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001553 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001554 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001555
1556if __name__ == '__main__':
1557 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001558
Minos Galanakisea421232019-06-20 17:11:28 +01001559 # Default behavior is to export refference config when called
1560 _dir = os.getcwd()
1561 from utils import save_json
1562 for _cname, _cfg in _builtin_configs.items():
1563 _fname = os.path.join(_dir, _cname + ".json")
1564 print("Exporting config %s" % _fname)
1565 save_json(_fname, _cfg)