blob: 61de312d4e5c8161b958a5ffc88818109e913e87 [file] [log] [blame]
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001#!/usr/bin/env python3
2
3""" builtin_configs.py:
4
5 Default configuration files used as reference """
6
7from __future__ import print_function
8
9__copyright__ = """
10/*
Raef Coles61b43a42022-01-12 11:42:57 +000011 * Copyright (c) 2018-2022, Arm Limited. All rights reserved.
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010012 *
13 * SPDX-License-Identifier: BSD-3-Clause
14 *
15 */
16 """
Karl Zhang08681e62020-10-30 13:56:03 +080017
18__author__ = "tf-m@lists.trustedfirmware.org"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010019__project__ = "Trusted Firmware-M Open CI"
Xinyu Zhang06286a92021-07-22 14:00:51 +080020__version__ = "1.4.0"
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010021
Minos Galanakisea421232019-06-20 17:11:28 +010022# common parameters for tf-m build system
23# This configuration template will be passed into the tfm-builder module after
24# the template evaluation is converted to a command
25
26_common_tfm_builder_cfg = {
27 "config_type": "tf-m",
28 "codebase_root_dir": "tf-m",
29 # Order to which the variants are evaluated. This affects the name of
30 # variant configuration and the wildcard replacement logic in invalid
31 # configuration tuples
Xinyu Zhangb708f572020-09-15 11:43:46 +080032 "sort_order": ["tfm_platform",
33 "toolchain_file",
Xinyu Zhang73ed2992021-09-15 11:38:23 +080034 "lib_model",
Xinyu Zhangb708f572020-09-15 11:43:46 +080035 "isolation_level",
36 "test_regression",
37 "test_psa_api",
Minos Galanakisea421232019-06-20 17:11:28 +010038 "cmake_build_type",
Xinyu Zhangb708f572020-09-15 11:43:46 +080039 "with_otp",
40 "with_bl2",
41 "with_ns",
Xinyu Zhang9fd74242020-10-22 11:30:50 +080042 "profile",
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +080043 "partition_ps",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +080044 "extra_params"],
Minos Galanakisea421232019-06-20 17:11:28 +010045
46 # Keys for the templace will come from the combinations of parameters
47 # provided in the seed dictionary.
48
Xinyu Zhangf3e19482022-01-11 15:48:13 +080049 "config_template": "cmake -G Ninja " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080050 "-DTFM_PLATFORM=%(tfm_platform)s " + \
Fathi Boudra324fee72020-11-20 10:31:12 +010051 "-DTFM_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(toolchain_file)s " + \
Xinyu Zhang73ed2992021-09-15 11:38:23 +080052 "-DTFM_LIB_MODEL=%(lib_model)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080053 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
54 "-DTEST_NS=%(test_regression)s -DTEST_S=%(test_regression)s " + \
Raef Coles61b43a42022-01-12 11:42:57 +000055 "-DTEST_BL2=%(test_regression)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080056 "-DTEST_PSA_API=%(test_psa_api)s " + \
57 "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \
58 "-DCRYPTO_HW_ACCELERATOR_OTP_STATE=%(with_otp)s " + \
59 "-DBL2=%(with_bl2)s " + \
60 "-DNS=%(with_ns)s " + \
61 "-DTFM_TEST_REPO_PATH=%(codebase_root_dir)s/../tf-m-tests " + \
62 "-DMBEDCRYPTO_PATH=%(codebase_root_dir)s/../mbedtls " + \
63 "-DPSA_ARCH_TESTS_PATH=%(codebase_root_dir)s/../psa-arch-tests " + \
64 "-DMCUBOOT_PATH=%(codebase_root_dir)s/../mcuboot " + \
65 "-DTFM_PROFILE=%(profile)s " + \
Xinyu Zhangb5bbb692020-10-26 10:14:33 +080066 "-DTFM_PARTITION_PROTECTED_STORAGE=%(partition_ps)s " + \
Xinyu Zhangfd2e1152021-12-17 18:09:01 +080067 "%(extra_params)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080068 "%(codebase_root_dir)s",
Karl Zhangaff558a2020-05-15 14:28:23 +010069
Minos Galanakisea421232019-06-20 17:11:28 +010070 # A small subset of string substitution params is allowed in commands.
71 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
72 # _tbm_target_platform_ with the paths set when building
73
Xinyu Zhangb708f572020-09-15 11:43:46 +080074 "artifact_capture_rex": (r'%(_tbm_build_dir_)s/bin'
Minos Galanakisea421232019-06-20 17:11:28 +010075 r'/(\w+\.(?:axf|bin|hex))$'),
76
77 # ALL commands will be executed for every build.
78 # Other keys will append extra commands when matching target_platform
Fathi Boudra83e4f292020-12-04 22:33:40 +010079 "build_cmds": {"all": ["cmake --build ./ -- install"],
Summer Qin3c2b5722021-05-26 10:43:45 +080080 "arm/musca_b1/sse_200": [("srec_cat "
Mark Horvath8d281cd2020-12-07 15:20:26 +010081 "%(_tbm_build_dir_)s/bin/"
82 "bl2.bin "
83 "-Binary -offset 0xA000000 "
84 "-fill 0xFF 0xA000000 0xA020000 "
85 "%(_tbm_build_dir_)s/bin/"
86 "tfm_s_ns_signed.bin "
87 "-Binary -offset 0xA020000 "
88 "-fill 0xFF 0xA020000 0xA200000 "
89 "-o %(_tbm_build_dir_)s/bin/"
90 "tfm.hex -Intel")],
Summer Qin3c2b5722021-05-26 10:43:45 +080091 "arm/musca_s1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080092 "%(_tbm_build_dir_)s/bin/"
93 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +080094 "-Binary -offset 0xA000000 "
Raef Coles543aab32020-12-03 11:12:02 +000095 "-fill 0xFF 0xA000000 0xA020000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +080096 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +080097 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +000098 "-Binary -offset 0xA020000 "
99 "-fill 0xFF 0xA020000 0xA200000 "
100 "-o %(_tbm_build_dir_)s/bin/"
Arthur She19c0e1a2021-06-02 11:06:19 -0700101 "tfm.hex -Intel")],
102 "stm/stm32l562e_dk": [("echo 'STM32L562E-DK board post process';"
103 "%(_tbm_build_dir_)s/postbuild.sh;"
104 "pushd %(_tbm_build_dir_)s;"
Arthur She07c91b52021-07-15 15:03:10 -0700105 "BIN_FILES=$(grep -o '\/.*\.bin' TFM_UPDATE.sh | sed 's/^/bin/');"
106 "tar jcf ./bin/stm32l562e-dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh ${BIN_FILES};"
Arthur She3c0dadd2021-11-18 21:17:48 -0800107 "popd")],
108 "nxp/lpcxpresso55s69": [("echo 'LPCXpresso55S69 board post process\n';"
109 "if [ -f \"%(_tbm_build_dir_)s/bin/bl2.hex\" ]; then FLASH_FILE='flash_bl2_JLink.py'; else FLASH_FILE='flash_JLink.py'; fi;"
110 "pushd %(_tbm_build_dir_)s/../platform/ext/target/nxp/lpcxpresso55s69/scripts;"
111 "LN=$(grep -n 'JLinkExe' ${FLASH_FILE}|awk -F: '{print $1}');"
112 "sed -i \"${LN}s/.*/ print('flash.jlink generated')/\" ${FLASH_FILE};"
113 "python3 ./${FLASH_FILE};"
114 "cd %(_tbm_build_dir_)s/bin;"
115 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"
116 "tar jcf lpcxpresso55s69-tfm.tar.bz2 flash.jlink ${BIN_FILES};"
117 "popd")]
Minos Galanakisea421232019-06-20 17:11:28 +0100118 },
119
120 # (Optional) If set will fail if those artefacts are missing post build
121 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800122 "%(_tbm_build_dir_)s/bin/"
123 "tfm_s.bin",
124 "%(_tbm_build_dir_)s/bin/"
125 "tfm_ns.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800126 "arm/musca_b1/sse_200": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800127 "%(_tbm_build_dir_)s/bin/"
128 "tfm.hex",
129 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800130 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800131 "%(_tbm_build_dir_)s/bin/"
132 "tfm_sign.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800133 "arm/musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800134 "%(_tbm_build_dir_)s/bin/"
135 "tfm.hex",
136 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800137 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800138 "%(_tbm_build_dir_)s/bin/"
139 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100140 }
141}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100142
Xinyu Zhangb708f572020-09-15 11:43:46 +0800143# List of all build configs that are impossible under all circumstances
144_common_tfm_invalid_configs = [
Xinyu Zhang459a1982021-07-21 22:34:49 +0800145 # LR_CODE size exceeds limit on MUSCA_B1 & MUSCA_S1 with regression tests in Debug mode built with ARMCLANG
Feder Liang357b1602022-01-11 16:47:49 +0800146 ("arm/musca_b1/sse_200", "toolchain_ARMCLANG.cmake", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*"),
147 ("arm/musca_s1", "toolchain_ARMCLANG.cmake", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800148 # Load range overlap on Musca for IPC Debug type: T895
Feder Liang357b1602022-01-11 16:47:49 +0800149 ("arm/musca_b1/sse_200", "toolchain_ARMCLANG.cmake", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*"),
150 ("arm/musca_s1", "toolchain_ARMCLANG.cmake", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang65683e42021-12-10 15:42:02 +0800151 # Oversize issue on config lpcxpresso55s69_GNUARM_IPC_2_Relwithdebinfo_BL2_NS_MEDIUM
152 ("nxp/lpcxpresso55s69", "toolchain_GNUARM.cmake", False, "2", False, "OFF",
Feder Liang357b1602022-01-11 16:47:49 +0800153 "Relwithdebinfo", "off", True, True, "profile_medium", "ON", "*"),
Xinyu Zhang65683e42021-12-10 15:42:02 +0800154 # Oversize issue on config stm32l562e_dk_ARMCLANG_LIB_1_REG_Release_BL2_NS
155 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake", True, "1", True, "OFF",
Feder Liang357b1602022-01-11 16:47:49 +0800156 "Release", "off", True, True, "", "ON", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800157 # LVL2 and LVL3 requires IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800158 ("*", "*", True, "2", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
159 ("*", "*", True, "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800160 # Regression requires NS
Feder Liang357b1602022-01-11 16:47:49 +0800161 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800162 # psoc64 requires IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800163 ("cypress/psoc64", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800164 # No PSA_ACK with regression
Feder Liang357b1602022-01-11 16:47:49 +0800165 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*", "*", "*"),
166 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*", "*", "*"),
167 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*"),
168 ("*", "*", "*", "*", True, "STORAGE", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800169 # PSA_ACK requires NS
Feder Liang357b1602022-01-11 16:47:49 +0800170 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*", "*", "*"),
171 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*", "*", "*"),
172 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*", "*", "*"),
173 ("*", "*", "*", "*", "*", "STORAGE", "*", "*", "*", False, "*", "*", "*"),
Xinyu Zhangc0aad0a2021-11-10 16:07:28 +0800174 # PSA_ACK IPC (FF) does not support LVL3
Feder Liang357b1602022-01-11 16:47:49 +0800175 ("*", "*", "*", "3", "*", "IPC", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800176 # Musca requires BL2
Feder Liang357b1602022-01-11 16:47:49 +0800177 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
178 ("arm/musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800179 # psoc64 cannot use BL2
Feder Liang357b1602022-01-11 16:47:49 +0800180 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800181 # psoc64 does not support Debug build type
Feder Liang357b1602022-01-11 16:47:49 +0800182 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800183 # Musca b1 SSE 200 does not support Profile S
Feder Liang357b1602022-01-11 16:47:49 +0800184 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800185 # Musca B1 Secure Enclave requires IPC model, BL2, and supports only Isolation Level 1
Feder Liang357b1602022-01-11 16:47:49 +0800186 ("arm/musca_b1/secure_enclave", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
187 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
188 ("arm/musca_b1/secure_enclave", "*", "*", "2", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100189 # Musca B1 Secure Enclave does not support tests, profiles, NS side building
Feder Liang357b1602022-01-11 16:47:49 +0800190 ("arm/musca_b1/secure_enclave", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*", "*"),
191 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "IPC", "*", "*", "*", "*", "*", "*", "*"),
192 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", "*", "*", "*", "*"),
193 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*"),
194 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "STORAGE", "*", "*", "*", "*", "*", "*", "*"),
195 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
196 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
197 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
198 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800199 # PARTITION_PS could be OFF only for Profile S and M
Feder Liang357b1602022-01-11 16:47:49 +0800200 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF", "*"),
201 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "OFF", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800202 # PARTITION_PS should be OFF for Profile S
Feder Liang357b1602022-01-11 16:47:49 +0800203 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800204 # Proile M only support for IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800205 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800206 # Profile M only support for Isolation Level 2
Feder Liang357b1602022-01-11 16:47:49 +0800207 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
208 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800209 # Profile L only support for Isolation Level 3
Feder Liang357b1602022-01-11 16:47:49 +0800210 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
211 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800212 # Profile S does not support IPC model
Feder Liang357b1602022-01-11 16:47:49 +0800213 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800214 # Profile S only supports Isolation Level 1
Feder Liang357b1602022-01-11 16:47:49 +0800215 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
216 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800217 # Only AN521 and MUSCA_B1 support Isolation Level 3
Feder Liang357b1602022-01-11 16:47:49 +0800218 ("arm/mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
219 ("arm/mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
220 ("arm/musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
221 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
222 ("arm/musca_b1/secure_enclave", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700223 # stm/stm32l562e_dk uses BL2
Feder Liang357b1602022-01-11 16:47:49 +0800224 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700225 # stm/stm32l562e_dk does not support Debug build type
Feder Liang357b1602022-01-11 16:47:49 +0800226 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700227 # nxp/lpcxpresso55s69 only build with GCC
Feder Liang357b1602022-01-11 16:47:49 +0800228 ("nxp/lpcxpresso55s69", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700229 # nxp/lpcxpresso55s69 only build Profile M
Feder Liang357b1602022-01-11 16:47:49 +0800230 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*"),
231 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700232 # nxp/lpcxpresso55s69 have to turn off BL2 when build regression test
Feder Liang357b1602022-01-11 16:47:49 +0800233 ("nxp/lpcxpresso55s69", "*", "*", "*", True, "*", "*", "*", True, "*", "*", "*", "*"),
Arthur She0ce327e2021-11-16 23:11:34 -0800234 # nxp/lpcxpresso55s69 turn off BL2 temporary, due to the oversize error
Feder Liang357b1602022-01-11 16:47:49 +0800235 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +0800236 ]
237
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100238# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100239config_AN524 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800240 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800241 "toolchain_file": ["toolchain_GNUARM.cmake",
242 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800243 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800244 "isolation_level": ["1", "2"],
245 "test_regression": [True, False],
246 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100247 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800248 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800249 "with_bl2": [True, False],
250 "with_ns": [True, False],
251 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800252 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800253 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100254 },
255 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800256 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100257 }
258
Karl Zhangaff558a2020-05-15 14:28:23 +0100259config_AN521 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800260 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800261 "toolchain_file": ["toolchain_GNUARM.cmake",
262 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800263 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800264 "isolation_level": ["1", "2"],
265 "test_regression": [True, False],
266 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100267 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800268 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800269 "with_bl2": [True, False],
270 "with_ns": [True, False],
271 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800272 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800273 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100274 },
275 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800276 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100277 }
278
Karl Zhangaff558a2020-05-15 14:28:23 +0100279config_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800280 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
281 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800282 "toolchain_file": ["toolchain_GNUARM.cmake",
283 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800284 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800285 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800286 "test_regression": [False],
287 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800288 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800289 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100290 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800291 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800292 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800293 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800294 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800295 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800296 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100297 },
298 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800299 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100300 }
301
Karl Zhangaff558a2020-05-15 14:28:23 +0100302config_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800303 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
304 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800305 "toolchain_file": ["toolchain_GNUARM.cmake",
306 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800307 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800308 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800309 "test_regression": [False],
310 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100311 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800312 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800313 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800314 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800315 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800316 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800317 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100318 },
319 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800320 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100321 }
322
Karl Zhangaff558a2020-05-15 14:28:23 +0100323config_PSA_API_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800324 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800325 "toolchain_file": ["toolchain_GNUARM.cmake",
326 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800327 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800328 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800329 "test_regression": [False],
330 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800331 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800332 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100333 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800334 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800335 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800336 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800337 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800338 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800339 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100340 },
341 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800342 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100343 }
Minos Galanakisea421232019-06-20 17:11:28 +0100344
Xinyu Zhangb708f572020-09-15 11:43:46 +0800345config_PSA_FF_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800346 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800347 "toolchain_file": ["toolchain_GNUARM.cmake",
348 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800349 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800350 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800351 "test_regression": [False],
352 "test_psa_api": ["IPC"],
353 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800354 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800355 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800356 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800357 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800358 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800359 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800360 },
361 "common_params": _common_tfm_builder_cfg,
362 "invalid": _common_tfm_invalid_configs + []
363 }
364
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800365config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800366 "tfm_platform": ["cypress/psoc64"],
367 "toolchain_file": ["toolchain_GNUARM.cmake",
368 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800369 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800370 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800371 "test_regression": [True],
372 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800373 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800374 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800375 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800376 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800377 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800378 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800379 "extra_params": [""]
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800380 },
381 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800382 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800383 }
384
Arthur She19c0e1a2021-06-02 11:06:19 -0700385config_STM32L562E_DK = {"seed_params": {
386 "tfm_platform": ["stm/stm32l562e_dk"],
387 "toolchain_file": ["toolchain_GNUARM.cmake",
388 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800389 "lib_model": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700390 "isolation_level": ["1", "2", "3"],
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800391 "test_regression": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700392 "test_psa_api": ["OFF"],
393 "cmake_build_type": ["Release"],
394 "with_otp": ["off"],
395 "with_bl2": [True],
396 "with_ns": [True],
397 "profile": [""],
398 "partition_ps": ["ON"],
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800399 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
Arthur She19c0e1a2021-06-02 11:06:19 -0700400 },
401 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800402 "invalid": _common_tfm_invalid_configs + [
403 # all other tests are off when CRYPTO is ON
404 ("stm/stm32l562e_dk", "*", "*", "*", True, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800405 "*", "*", "*", "*", "CRYPTO_ON"),
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800406 # all other tests are ON when CRYPTO is OFF
407 ("stm/stm32l562e_dk", "*", "*", "*", False, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800408 "*", "*", "*", "*", "CRYPTO_OFF"),
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800409 ]
Arthur She19c0e1a2021-06-02 11:06:19 -0700410 }
411
Arthur Shef3657742021-09-07 14:23:18 -0700412config_LPCXPRESSO55S69 = {"seed_params": {
413 "tfm_platform": ["nxp/lpcxpresso55s69"],
414 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800415 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700416 "isolation_level": ["2"],
417 "test_regression": [True, False],
418 "test_psa_api": ["OFF"],
419 "cmake_build_type": ["Relwithdebinfo"],
420 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -0800421 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700422 "with_ns": [True],
423 "profile": ["profile_medium"],
424 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800425 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +0800426 },
427 "common_params": _common_tfm_builder_cfg,
428 "invalid": _common_tfm_invalid_configs + []
429 }
430
431config_FP = {"seed_params": {
432 "tfm_platform": ["arm/musca_s1"],
Feder Liang357b1602022-01-11 16:47:49 +0800433 "toolchain_file": ["toolchain_GNUARM.cmake"],
Feder Liang567e8c22021-10-26 14:16:21 +0800434 "lib_model": [False],
435 "isolation_level": ["1", "2"],
436 "test_regression": [True],
437 "test_psa_api": ["OFF"],
438 "cmake_build_type": ["Release"],
439 "with_otp": ["off"],
440 "with_bl2": [True],
441 "with_ns": [True],
442 "profile": [""],
443 "partition_ps": ["ON"],
Feder Liang357b1602022-01-11 16:47:49 +0800444 "extra_params": ["FPSOFT", "FPHARD", "FPHARD_LOFF"]
Arthur Shef3657742021-09-07 14:23:18 -0700445 },
446 "common_params": _common_tfm_builder_cfg,
447 "invalid": _common_tfm_invalid_configs + []
448 }
449
Xinyu Zhang6afdd612021-10-12 17:07:32 +0800450config_corstone1000 = {"seed_params": {
451 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800452 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800453 "lib_model": [False],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800454 "isolation_level": ["1"],
455 "test_regression": [False],
456 "test_psa_api": ["OFF"],
457 "cmake_build_type": ["Debug"],
458 "with_otp": ["off"],
459 "with_bl2": [True],
460 "with_ns": [False],
461 "profile": [""],
462 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800463 "extra_params": [""]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800464 },
465 "common_params": _common_tfm_builder_cfg,
466 "invalid": _common_tfm_invalid_configs + []
467 }
468
Minos Galanakisea421232019-06-20 17:11:28 +0100469config_AN519 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800470 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800471 "toolchain_file": ["toolchain_GNUARM.cmake",
472 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800473 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800474 "isolation_level": ["1", "2"],
475 "test_regression": [True, False],
476 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100477 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800478 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800479 "with_bl2": [True, False],
480 "with_ns": [True, False],
481 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800482 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800483 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100484 },
485 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800486 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100487 }
488
Xinyu Zhangb708f572020-09-15 11:43:46 +0800489config_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800490 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
491 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800492 "toolchain_file": ["toolchain_GNUARM.cmake",
493 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800494 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800495 "isolation_level": ["1", "2"],
496 "test_regression": [True, False],
497 "test_psa_api": ["OFF"],
498 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800499 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800500 "with_bl2": [True, False],
501 "with_ns": [True, False],
502 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800503 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800504 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800505 },
Minos Galanakisea421232019-06-20 17:11:28 +0100506 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800507 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100508 }
509
Minos Galanakisea421232019-06-20 17:11:28 +0100510config_full = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800511 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
512 "arm/musca_b1/sse_200",
513 "arm/mps3/an524", "cypress/psoc64",
Arthur She19c0e1a2021-06-02 11:06:19 -0700514 "arm/musca_b1/secure_enclave",
Arthur Shef3657742021-09-07 14:23:18 -0700515 "stm/stm32l562e_dk",
516 "nxp/lpcxpresso55s69"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800517 "toolchain_file": ["toolchain_GNUARM.cmake",
518 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800519 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800520 "isolation_level": ["1", "2"],
521 "test_regression": [True, False],
522 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800523 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800524 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800525 "with_bl2": [True, False],
526 "with_ns": [True, False],
527 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800528 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800529 "extra_params": [""]
Dean Birchd6ce2c82020-05-13 13:16:15 +0100530 },
531 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800532 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800533 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800534 "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800535 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Feder Liang357b1602022-01-11 16:47:49 +0800536 True, "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800537 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800538 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800539 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800540 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800541 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800542 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800543 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800544 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800545 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800546 }
547
Karl Zhangaff558a2020-05-15 14:28:23 +0100548config_tfm_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800549 "tfm_platform": ["arm/mps2/an521",
550 "arm/musca_b1/sse_200", "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800551 "toolchain_file": ["toolchain_ARMCLANG.cmake",
552 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800553 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800554 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800555 "test_regression": [True, False],
556 "test_psa_api": ["OFF"],
557 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800558 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800559 "with_bl2": [True],
560 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800561 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800562 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800563 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800564 },
565 "common_params": _common_tfm_builder_cfg,
566 "invalid": _common_tfm_invalid_configs + []
567 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800568
Karl Zhangaff558a2020-05-15 14:28:23 +0100569config_tfm_test2 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800570 "tfm_platform": ["arm/mps2/an519", "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800571 "toolchain_file": ["toolchain_ARMCLANG.cmake",
572 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800573 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800574 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800575 "test_regression": [True, False],
576 "test_psa_api": ["OFF"],
577 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800578 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800579 "with_bl2": [True],
580 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800581 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800582 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800583 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800584 },
585 "common_params": _common_tfm_builder_cfg,
586 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800587 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800588 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800589 ]
590 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100591
Karl Zhang14573bc2020-06-08 09:23:21 +0800592config_tfm_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800593 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
594 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800595 "toolchain_file": ["toolchain_ARMCLANG.cmake",
596 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800597 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800598 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800599 "test_regression": [True, False],
600 "test_psa_api": ["OFF"],
601 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800602 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800603 "with_bl2": [True],
604 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800605 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800606 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800607 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800608 },
609 "common_params": _common_tfm_builder_cfg,
610 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800611 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800612 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800613 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800614 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800615 "*", "profile_large", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800616 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800617 "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800618 ]
619 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800620
Karl Zhangaff558a2020-05-15 14:28:23 +0100621config_tfm_test_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800622 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800623 "toolchain_file": ["toolchain_ARMCLANG.cmake",
624 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800625 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800626 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800627 "test_regression": [True, False],
628 "test_psa_api": ["OFF"],
629 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800630 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800631 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800632 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800633 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800634 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800635 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800636 },
637 "common_params": _common_tfm_builder_cfg,
638 "invalid": _common_tfm_invalid_configs + []
639 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100640
Minos Galanakisea421232019-06-20 17:11:28 +0100641config_MUSCA_B1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800642 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800643 "toolchain_file": ["toolchain_ARMCLANG.cmake",
644 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800645 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800646 "isolation_level": ["1", "2"],
647 "test_regression": [True, False],
648 "test_psa_api": ["OFF"],
649 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800650 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800651 "with_bl2": [True],
652 "with_ns": [True, False],
653 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800654 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800655 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800656 },
657 "common_params": _common_tfm_builder_cfg,
658 "invalid": _common_tfm_invalid_configs + []
659 }
Minos Galanakisea421232019-06-20 17:11:28 +0100660
Mark Horvath8d281cd2020-12-07 15:20:26 +0100661config_MUSCA_B1_SE = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800662 "tfm_platform": ["arm/musca_b1/secure_enclave"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100663 "toolchain_file": ["toolchain_ARMCLANG.cmake",
664 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800665 "lib_model": [False],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100666 "isolation_level": ["1"],
667 "test_regression": [False],
668 "test_psa_api": ["OFF"],
669 "cmake_build_type": ["Debug", "Release"],
670 "with_otp": ["off"],
671 "with_bl2": [True],
672 "with_ns": [False],
673 "profile": [""],
674 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800675 "extra_params": [""]
Mark Horvath8d281cd2020-12-07 15:20:26 +0100676 },
677 "common_params": _common_tfm_builder_cfg,
678 "invalid": _common_tfm_invalid_configs + []
679 }
680
Karl Zhangeffed972020-06-30 15:48:01 +0800681config_MUSCA_S1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800682 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800683 "toolchain_file": ["toolchain_ARMCLANG.cmake",
684 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800685 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800686 "isolation_level": ["1", "2"],
687 "test_regression": [True, False],
688 "test_psa_api": ["OFF"],
689 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800690 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800691 "with_bl2": [True],
692 "with_ns": [True, False],
693 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800694 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800695 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800696 },
697 "common_params": _common_tfm_builder_cfg,
698 "invalid": _common_tfm_invalid_configs + []
699 }
Karl Zhangeffed972020-06-30 15:48:01 +0800700
Karl Zhangaff558a2020-05-15 14:28:23 +0100701config_release = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800702 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
703 "arm/musca_b1/sse_200", "arm/musca_s1",
704 "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800705 "toolchain_file": ["toolchain_ARMCLANG.cmake",
706 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800707 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800708 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800709 "test_regression": [True, False],
710 "test_psa_api": ["OFF"],
711 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800712 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800713 "with_bl2": [True, False],
714 "with_ns": [True, False],
715 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800716 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800717 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800718 },
719 "common_params": _common_tfm_builder_cfg,
720 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800721 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800722 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800723 ]
724 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100725
726# Configure build manager to build several combinations
727config_AN521_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800728 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
729 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800730 "toolchain_file": ["toolchain_GNUARM.cmake",
731 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800732 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800733 "isolation_level": ["1", "2"],
734 "test_regression": [False],
735 "test_psa_api": ["IPC",
736 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800737 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800738 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800739 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800740 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800741 "with_bl2": [True],
742 "with_ns": [True, False],
743 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800744 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800745 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100746 },
747 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800748 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800749 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800750 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800751 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100752 }
753
Karl Zhangaff558a2020-05-15 14:28:23 +0100754config_AN521_PSA_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800755 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
756 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800757 "toolchain_file": ["toolchain_GNUARM.cmake",
758 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800759 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800760 "isolation_level": ["1", "2"],
761 "test_regression": [False],
762 "test_psa_api": ["IPC"],
763 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800764 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800765 "with_bl2": [True],
766 "with_ns": [True, False],
767 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800768 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800769 "extra_params": [""]
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 + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800773 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +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 Zhangfd2e1152021-12-17 18:09:01 +0800781 "arm/mps3/an524", "arm/musca_b1/secure_enclave"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800782 "toolchain_file": ["toolchain_GNUARM.cmake",
783 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800784 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800785 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800786 "test_regression": [True, False],
787 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800788 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800789 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800790 "with_bl2": [True],
791 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800792 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800793 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800794 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800795 },
796 "common_params": _common_tfm_builder_cfg,
797 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800798 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800799 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800800 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800801 "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800802 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Feder Liang357b1602022-01-11 16:47:49 +0800803 True, "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800804 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800805 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800806 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800807 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800808 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800809 "RelWithDebInfo", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800810 ("arm/musca_s1", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800811 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800812 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Feder Liang357b1602022-01-11 16:47:49 +0800813 "*", "*", "*", "*", "*", "*"),
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"],
Xinyu Zhang67612992021-12-20 14:11:27 +0800831 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800832 },
833 "common_params": _common_tfm_builder_cfg,
834 "invalid": _common_tfm_invalid_configs + []
835 }
836
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800837config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800838 "tfm_platform": ["arm/mps2/an521"],
839 "toolchain_file": ["toolchain_GNUARM.cmake",
840 "toolchain_ARMCLANG.cmake"],
841 "lib_model": [False],
842 "isolation_level": ["1"],
843 "test_regression": [True],
844 "test_psa_api": ["OFF"],
845 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
846 "with_otp": ["off"],
847 "with_bl2": [True],
848 "with_ns": [True],
849 "profile": [""],
850 "partition_ps": ["ON"],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800851 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800852 },
853 "common_params": _common_tfm_builder_cfg,
854 "invalid": _common_tfm_invalid_configs + []
855 }
856
Karl Zhang14573bc2020-06-08 09:23:21 +0800857config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800858 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
859 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800860 "toolchain_file": ["toolchain_ARMCLANG.cmake",
861 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800862 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800863 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800864 "test_regression": [True, False],
865 "test_psa_api": ["OFF"],
866 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800867 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800868 "with_bl2": [True],
869 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800870 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800871 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800872 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800873 },
874 "common_params": _common_tfm_builder_cfg,
875 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800876 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800877 "*", "Minsizerel", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800878 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800879 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800880 "*", "profile_large", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800881 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +0800882 "*", "*", "profile_large", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800883 ]
884 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800885
Karl Zhang14573bc2020-06-08 09:23:21 +0800886config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800887 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
888 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800889 "toolchain_file": ["toolchain_GNUARM.cmake",
890 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800891 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800892 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800893 "test_regression": [False],
894 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800895 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800896 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800897 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800898 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800899 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800900 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800901 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800902 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800903 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800904 },
905 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800906 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800907 }
908
Karl Zhang14573bc2020-06-08 09:23:21 +0800909config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800910 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
911 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800912 "toolchain_file": ["toolchain_GNUARM.cmake",
913 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800914 "lib_model": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800915 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800916 "test_regression": [False],
917 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800918 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800919 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800920 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800921 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800922 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800923 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800924 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800925 },
926 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800927 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800928 }
929
Karl Zhang14573bc2020-06-08 09:23:21 +0800930config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800931 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800932 "toolchain_file": ["toolchain_GNUARM.cmake",
933 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800934 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800935 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800936 "test_regression": [True],
937 "test_psa_api": ["OFF"],
938 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800939 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800940 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800941 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800942 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800943 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800944 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800945 },
946 "common_params": _common_tfm_builder_cfg,
947 "invalid": _common_tfm_invalid_configs + []
948 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800949
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800950config_nightly_psoc64 = {"seed_params": {
951 "tfm_platform": ["cypress/psoc64"],
952 "toolchain_file": ["toolchain_GNUARM.cmake",
953 "toolchain_ARMCLANG.cmake"],
954 "lib_model": [False],
955 "isolation_level": ["1", "2"],
956 "test_regression": [True],
957 "test_psa_api": ["OFF"],
958 "cmake_build_type": ["Release"],
959 "with_otp": ["off"],
960 "with_bl2": [False],
961 "with_ns": [True],
962 "profile": [""],
963 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800964 "extra_params": [""]
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800965 },
966 "common_params": _common_tfm_builder_cfg,
967 "invalid": _common_tfm_invalid_configs + []
968 }
969
Arthur Shef3657742021-09-07 14:23:18 -0700970config_nightly_LPCXPRESSO55S69 = {"seed_params": {
971 "tfm_platform": ["nxp/lpcxpresso55s69"],
972 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800973 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700974 "isolation_level": ["2"],
975 "test_regression": [True, False],
976 "test_psa_api": ["OFF"],
977 "cmake_build_type": ["Relwithdebinfo"],
978 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -0800979 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700980 "with_ns": [True],
981 "profile": ["profile_medium"],
982 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800983 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +0800984 },
985 "common_params": _common_tfm_builder_cfg,
986 "invalid": _common_tfm_invalid_configs + []
987 }
988
989config_nightly_FP = {"seed_params": {
990 "tfm_platform": ["arm/musca_s1"],
Feder Liang357b1602022-01-11 16:47:49 +0800991 "toolchain_file": ["toolchain_GNUARM.cmake"],
Feder Liang567e8c22021-10-26 14:16:21 +0800992 "lib_model": [False],
993 "isolation_level": ["1", "2"],
994 "test_regression": [True],
995 "test_psa_api": ["OFF"],
996 "cmake_build_type": ["Debug"],
997 "with_otp": ["off"],
998 "with_bl2": [True],
999 "with_ns": [True],
1000 "profile": [""],
1001 "partition_ps": ["ON"],
Feder Liang357b1602022-01-11 16:47:49 +08001002 "extra_params": ["FPSOFT", "FPHARD", "FPHARD_LOFF"]
Arthur Shef3657742021-09-07 14:23:18 -07001003 },
1004 "common_params": _common_tfm_builder_cfg,
1005 "invalid": _common_tfm_invalid_configs + []
1006 }
1007
Karl Zhang14573bc2020-06-08 09:23:21 +08001008config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001009 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +08001010 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001011 "toolchain_file": ["toolchain_GNUARM.cmake",
1012 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001013 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +08001014 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001015 "test_regression": [True],
1016 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001017 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001018 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001019 "with_bl2": [True],
1020 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001021 "profile": ["", "profile_small", "profile_medium"],
1022 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001023 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001024 },
1025 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001026 "valid": [
Summer Qin3c2b5722021-05-26 10:43:45 +08001027 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001028 True, "1", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001029 "off", True, True, "", "ON", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001030 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001031 False, "2", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001032 "off", True, True, "", "ON", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001033 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001034 False, "3", False, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001035 "off", True, True, "", "ON", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001036 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001037 False, "2", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001038 "off", True, True, "profile_medium", "ON", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001039 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001040 False, "3", False, "OFF", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001041 "off", True, True, "profile_large", "ON", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001042 # AN521_GNUARM_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001043 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
1044 False, "2", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001045 "off", True, True, "profile_medium", "OFF", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001046 # MUSCA_B1_GNUARM_LIB_1_REG_Minsizerel_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001047 ("arm/musca_b1/sse_200", "toolchain_GNUARM.cmake",
1048 True, "1", True, "OFF", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001049 "off", True, True, "", "ON", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001050 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001051 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake",
1052 False, "1", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001053 "off", True, True, "", "ON", "CRYPTO_OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001054 # stm32l562e_dk_GNUARM_IPC_2_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001055 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
Xinyu Zhang7c8d3372021-12-22 11:15:42 +08001056 False, "2", False, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001057 "off", True, True, "", "ON", "CRYPTO_ON"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001058 # stm32l562e_dk_GNUARM_IPC_3_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001059 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
1060 False, "3", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001061 "off", True, True, "", "ON", "CRYPTO_OFF"),
1062 # MUSCA_S1_GNUARM_IPC_2_REG_Release_BL2_NS_FPHARD
Feder Liang567e8c22021-10-26 14:16:21 +08001063 ("arm/musca_s1", "toolchain_GNUARM.cmake",
1064 False, "2", True, "OFF", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001065 "off", True, True, "", "ON", "FPHARD"),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001066 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001067 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001068 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +08001069 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001070 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001071 # valid configs supported by TF-M but not needed in per-patch
1072 ("*", "*", "*", "1", "*", "*", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001073 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001074 ("*", "*", "*", "1", "*", "*", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001075 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001076 ("*", "*", "*", "2", "*", "*", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001077 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001078 ("*", "*", "*", "2", "*", "*", "Minsizerel",
Feder Liang357b1602022-01-11 16:47:49 +08001079 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001080 ("*", "*", "*", "3", "*", "*", "Debug",
Feder Liang357b1602022-01-11 16:47:49 +08001081 "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001082 ("*", "*", "*", "3", "*", "*", "Release",
Feder Liang357b1602022-01-11 16:47:49 +08001083 "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001084 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001085 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001086 ("arm/musca_s1", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001087 "*", "*", "*", "*", "profile_small", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001088 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001089 "*", "*", "*", "*", "profile_medium", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001090 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001091 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001092 ("*", "toolchain_GNUARM.cmake", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001093 "*", "*", "*", "*", "profile_small", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001094 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001095 "*", "*", "*", "*", "profile_medium", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001096 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001097 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001098 ]
1099 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001100
Karl Zhang14573bc2020-06-08 09:23:21 +08001101config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001102 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001103 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001104 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001105 "isolation_level": ["1", "2"],
1106 "test_regression": [True],
1107 "test_psa_api": ["OFF"],
1108 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001109 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001110 "with_bl2": [True],
1111 "with_ns": [True, False],
1112 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001113 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001114 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001115 },
1116 "common_params": _common_tfm_builder_cfg,
1117 "invalid": _common_tfm_invalid_configs + []
1118 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001119
1120# Configure build manager to build several combinations
1121config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001122 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001123 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001124 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001125 "isolation_level": ["2"],
1126 "test_regression": [False],
1127 "test_psa_api": ["IPC",
1128 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001129 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +08001130 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001131 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001132 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001133 "with_bl2": [True],
1134 "with_ns": [True, False],
1135 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001136 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001137 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001138 },
1139 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001140 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001141 }
1142
Karl Zhang14573bc2020-06-08 09:23:21 +08001143config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001144 "tfm_platform": ["cypress/psoc64"],
1145 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001146 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001147 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001148 "test_regression": [True],
1149 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001150 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001151 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001152 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001153 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001154 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001155 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001156 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001157 },
1158 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001159 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001160 }
1161
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001162config_cov_an519 = {"seed_params": {
1163 "tfm_platform": ["arm/mps2/an519"],
1164 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001165 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001166 "isolation_level": ["1", "2", "3"],
1167 "test_regression": [True, False],
1168 "test_psa_api": ["OFF"],
1169 "cmake_build_type": ["Debug", "Release"],
1170 "with_otp": ["off"],
1171 "with_bl2": [True],
1172 "with_ns": [True],
1173 "profile": ["", "profile_small", "profile_medium"],
1174 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001175 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001176 },
1177 "common_params": _common_tfm_builder_cfg,
1178 "invalid": _common_tfm_invalid_configs + []
1179 }
1180
1181config_cov_an521 = {"seed_params": {
1182 "tfm_platform": ["arm/mps2/an521"],
1183 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001184 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001185 "isolation_level": ["1", "2", "3"],
1186 "test_regression": [True, False],
1187 "test_psa_api": ["OFF"],
1188 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1189 "with_otp": ["off"],
1190 "with_bl2": [True],
1191 "with_ns": [True],
1192 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1193 "partition_ps": ["ON", "OFF"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001194 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001195 },
1196 "common_params": _common_tfm_builder_cfg,
1197 "invalid": _common_tfm_invalid_configs + []
1198 }
1199
Minos Galanakisea421232019-06-20 17:11:28 +01001200# Configruation used for document building
1201config_doxygen = {"common_params": {
1202 "config_type": "tf-m_documents",
1203 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001204 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001205 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001206 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001207 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001208 "cmake --build ./ -- docs"]},
1209 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1210 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001211 r'/(\w+\.(?:html|md|pdf))$',
1212 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001213 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001214 }
1215
Karl Zhangaff558a2020-05-15 14:28:23 +01001216# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +01001217config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001218 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001219 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001220 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001221 "isolation_level": ["1"],
1222 "test_regression": [False],
1223 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001224 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001225 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001226 "with_bl2": [True],
1227 "with_ns": [True],
1228 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001229 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001230 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +01001231 },
1232 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001233 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001234 }
1235
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001236config_debug_PSA_API = {"seed_params": {
1237 "tfm_platform": ["arm/mps2/an521"],
1238 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
1239 "lib_model": [True],
1240 "isolation_level": ["1"],
1241 "test_regression": [False],
1242 "test_psa_api": ["CRYPTO"],
1243 "cmake_build_type": ["Debug"],
1244 "with_otp": ["off"],
1245 "with_bl2": [True],
1246 "with_ns": [True],
1247 "profile": [""],
1248 "partition_ps": ["ON"],
1249 "extra_params": [""]
1250 },
1251 "common_params": _common_tfm_builder_cfg,
1252 "invalid": _common_tfm_invalid_configs + []
1253 }
1254
Dean Birch4c6ad622020-03-13 11:28:03 +00001255# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001256config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001257 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001258 "toolchain_file": ["toolchain_ARMCLANG.cmake",
1259 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001260 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001261 "isolation_level": ["1", "2"],
1262 "test_regression": [True, False],
1263 "test_psa_api": ["OFF"],
1264 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001265 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001266 "with_bl2": [True, False],
1267 "with_ns": [True],
1268 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001269 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001270 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001271 },
1272 "common_params": _common_tfm_builder_cfg,
1273 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001274 ("*", "toolchain_ARMCLANG.cmake", False, "*", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001275 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001276 ("*", "toolchain_ARMCLANG.cmake", True, "1", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001277 "*", "*", False, "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001278 ]
1279 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001280
Xinyu Zhangb708f572020-09-15 11:43:46 +08001281config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001282 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001283 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001284 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001285 "isolation_level": ["1", "2"],
1286 "test_regression": [True],
1287 "test_psa_api": ["OFF"],
1288 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001289 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001290 "with_bl2": [True, False],
1291 "with_ns": [True, False],
1292 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001293 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001294 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001295 },
1296 "common_params": _common_tfm_builder_cfg,
1297 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001298 ("arm/mps2/an521", "toolchain_GNUARM.cmake", False, "2", "*", "*",
Feder Liang357b1602022-01-11 16:47:49 +08001299 "*", "*", True, "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001300 ]
1301 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001302
Xinyu Zhang38b76742021-11-11 13:57:56 +08001303config_an547 = {"seed_params": {
1304 "tfm_platform": ["arm/mps3/an547"],
1305 "toolchain_file": ["toolchain_GNUARM.cmake"],
1306 "lib_model": [False],
1307 "isolation_level": ["1"],
1308 "test_regression": [False],
1309 "test_psa_api": ["OFF"],
1310 "cmake_build_type": ["Debug"],
1311 "with_otp": ["off"],
1312 "with_bl2": [True],
1313 "with_ns": [False],
1314 "profile": [""],
1315 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001316 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001317 },
1318 "common_params": _common_tfm_builder_cfg,
1319 "invalid": _common_tfm_invalid_configs + []
1320 }
1321
1322config_corstone_polaris = {"seed_params": {
1323 "tfm_platform": ["arm/mps3/corstone_polaris"],
1324 "toolchain_file": ["toolchain_GNUARM.cmake"],
1325 "lib_model": [False],
1326 "isolation_level": ["1"],
1327 "test_regression": [False],
1328 "test_psa_api": ["OFF"],
1329 "cmake_build_type": ["Debug"],
1330 "with_otp": ["off"],
1331 "with_bl2": [True],
1332 "with_ns": [False],
1333 "profile": [""],
1334 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001335 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001336 },
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"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001354 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001355 },
1356 "common_params": _common_tfm_builder_cfg,
1357 "invalid": _common_tfm_invalid_configs + []
1358 }
1359
1360config_nrf5340dk = {"seed_params": {
1361 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
1362 "toolchain_file": ["toolchain_GNUARM.cmake"],
1363 "lib_model": [False],
1364 "isolation_level": ["1"],
1365 "test_regression": [False],
1366 "test_psa_api": ["OFF"],
1367 "cmake_build_type": ["Debug"],
1368 "with_otp": ["off"],
1369 "with_bl2": [True],
1370 "with_ns": [False],
1371 "profile": [""],
1372 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001373 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001374 },
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"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001392 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001393 },
1394 "common_params": _common_tfm_builder_cfg,
1395 "invalid": _common_tfm_invalid_configs + []
1396 }
1397
1398config_m2351 = {"seed_params": {
1399 "tfm_platform": ["nuvoton/m2351"],
1400 "toolchain_file": ["toolchain_GNUARM.cmake"],
1401 "lib_model": [False],
1402 "isolation_level": ["1"],
1403 "test_regression": [False],
1404 "test_psa_api": ["OFF"],
1405 "cmake_build_type": ["Release"],
1406 "with_otp": ["off"],
1407 "with_bl2": [True],
1408 "with_ns": [False],
1409 "profile": [""],
1410 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001411 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001412 },
1413 "common_params": _common_tfm_builder_cfg,
1414 "invalid": _common_tfm_invalid_configs + []
1415 }
1416
1417config_m2354 = {"seed_params": {
1418 "tfm_platform": ["nuvoton/m2354"],
1419 "toolchain_file": ["toolchain_GNUARM.cmake"],
1420 "lib_model": [False],
1421 "isolation_level": ["1"],
1422 "test_regression": [False],
1423 "test_psa_api": ["OFF"],
1424 "cmake_build_type": ["Debug"],
1425 "with_otp": ["off"],
1426 "with_bl2": [True],
1427 "with_ns": [False],
1428 "profile": [""],
1429 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001430 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001431 },
1432 "common_params": _common_tfm_builder_cfg,
1433 "invalid": _common_tfm_invalid_configs + []
1434 }
1435
1436config_b_u585i_iot02a = {"seed_params": {
1437 "tfm_platform": ["stm/b_u585i_iot02a"],
1438 "toolchain_file": ["toolchain_GNUARM.cmake"],
1439 "lib_model": [False],
1440 "isolation_level": ["1"],
1441 "test_regression": [False],
1442 "test_psa_api": ["OFF"],
1443 "cmake_build_type": ["Release"],
1444 "with_otp": ["off"],
1445 "with_bl2": [True],
1446 "with_ns": [False],
1447 "profile": [""],
1448 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001449 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001450 },
1451 "common_params": _common_tfm_builder_cfg,
1452 "invalid": _common_tfm_invalid_configs + []
1453 }
1454
1455config_nucleo_l552ze_q = {"seed_params": {
1456 "tfm_platform": ["stm/nucleo_l552ze_q"],
1457 "toolchain_file": ["toolchain_GNUARM.cmake"],
1458 "lib_model": [False],
1459 "isolation_level": ["1"],
1460 "test_regression": [False],
1461 "test_psa_api": ["OFF"],
1462 "cmake_build_type": ["Release"],
1463 "with_otp": ["off"],
1464 "with_bl2": [True],
1465 "with_ns": [False],
1466 "profile": [""],
1467 "partition_ps": ["ON"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001468 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001469 },
1470 "common_params": _common_tfm_builder_cfg,
1471 "invalid": _common_tfm_invalid_configs + []
1472 }
1473
Karl Zhangaff558a2020-05-15 14:28:23 +01001474_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001475 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001476 "tfm_test": config_tfm_test,
1477 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001478 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +01001479 "tfm_test_otp": config_tfm_test_OTP,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001480 "tfm_nsce": config_nsce,
1481 "tfm_mmio": config_mmio,
Karl Zhangaff558a2020-05-15 14:28:23 +01001482 "psa_api": config_PSA_API,
1483 "psa_api_otp": config_PSA_API_OTP,
1484 "psa_ff": config_PSA_FF,
1485 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001486 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001487 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001488 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001489 "tfm_fp": config_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001490
1491 #nightly test group
1492 "nightly_test": config_nightly,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001493 "nightly_nsce": config_nsce,
1494 "nightly_mmio": config_mmio,
Karl Zhang14573bc2020-06-08 09:23:21 +08001495 "nightly_profile": config_nightly_profile,
1496 "nightly_psa_api": config_nightly_PSA_API,
1497 "nightly_ff": config_nightly_PSA_FF,
1498 "nightly_otp": config_nightly_OTP,
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001499 "nightly_psoc64": config_nightly_psoc64,
Xinyu Zhang331c47c2021-12-24 10:18:02 +08001500 "nightly_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001501 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001502 "nightly_fp":config_nightly_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001503
1504 #per patch test group
1505 "pp_test": config_pp_test,
1506 "pp_OTP": config_pp_OTP,
1507 "pp_PSA_API": config_pp_PSA_API,
1508 "pp_psoc64": config_pp_PSoC64,
1509
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001510 #code coverage test group
1511 "coverage_an519": config_cov_an519,
1512 "coverage_an521": config_cov_an521,
1513
Xinyu Zhang38b76742021-11-11 13:57:56 +08001514 #extra build group
1515 "arm_corstone1000": config_corstone1000,
1516 "arm_an547": config_an547,
1517 "arm_corstone_polaris": config_corstone_polaris,
1518 "cypress_psoc64": config_PSOC64,
1519 "laird_bl5340": config_bl5340,
1520 "nordic_nrf5340dk": config_nrf5340dk,
1521 "nordic_nrf9160dk": config_nrf9160dk,
1522 "nuvoton_m2351": config_m2351,
1523 "nuvoton_m2354": config_m2354,
1524 "nxp_lpcxpresso55s69": config_LPCXPRESSO55S69,
1525 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1526 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1527 "stm_stm32l562e_dk": config_STM32L562E_DK,
1528
Karl Zhang14573bc2020-06-08 09:23:21 +08001529 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001530 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001531
1532 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001533 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001534 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001535 "an521_psa_api": config_AN521_PSA_API,
1536 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001537 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001538 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001539 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001540 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001541 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001542 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001543 "ipc": config_IPC,
1544 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001545 "debug": config_debug,
Paul Sokolovsky1ec752b2022-01-22 19:50:58 +03001546 "debug_PSA_API": config_debug_PSA_API,
Karl Zhangaff558a2020-05-15 14:28:23 +01001547 "release": config_release,
Karl Zhang14573bc2020-06-08 09:23:21 +08001548
1549 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001550 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001551 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001552
1553if __name__ == '__main__':
1554 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001555
Minos Galanakisea421232019-06-20 17:11:28 +01001556 # Default behavior is to export refference config when called
1557 _dir = os.getcwd()
1558 from utils import save_json
1559 for _cname, _cfg in _builtin_configs.items():
1560 _fname = os.path.join(_dir, _cname + ".json")
1561 print("Exporting config %s" % _fname)
1562 save_json(_fname, _cfg)