blob: 5a611b40a92e4849953878c633cc30beddd1d5a4 [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",
Feder Liang567e8c22021-10-26 14:16:21 +080044 "fp",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +080045 "lazy",
46 "extra_params"],
Minos Galanakisea421232019-06-20 17:11:28 +010047
48 # Keys for the templace will come from the combinations of parameters
49 # provided in the seed dictionary.
50
Xinyu Zhangb708f572020-09-15 11:43:46 +080051 "config_template": "cmake " + \
52 "-DTFM_PLATFORM=%(tfm_platform)s " + \
Fathi Boudra324fee72020-11-20 10:31:12 +010053 "-DTFM_TOOLCHAIN_FILE=%(codebase_root_dir)s/%(toolchain_file)s " + \
Xinyu Zhang73ed2992021-09-15 11:38:23 +080054 "-DTFM_LIB_MODEL=%(lib_model)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080055 "-DTFM_ISOLATION_LEVEL=%(isolation_level)s " + \
56 "-DTEST_NS=%(test_regression)s -DTEST_S=%(test_regression)s " + \
Raef Coles61b43a42022-01-12 11:42:57 +000057 "-DTEST_BL2=%(test_regression)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080058 "-DTEST_PSA_API=%(test_psa_api)s " + \
59 "-DCMAKE_BUILD_TYPE=%(cmake_build_type)s " + \
60 "-DCRYPTO_HW_ACCELERATOR_OTP_STATE=%(with_otp)s " + \
61 "-DBL2=%(with_bl2)s " + \
62 "-DNS=%(with_ns)s " + \
63 "-DTFM_TEST_REPO_PATH=%(codebase_root_dir)s/../tf-m-tests " + \
64 "-DMBEDCRYPTO_PATH=%(codebase_root_dir)s/../mbedtls " + \
65 "-DPSA_ARCH_TESTS_PATH=%(codebase_root_dir)s/../psa-arch-tests " + \
66 "-DMCUBOOT_PATH=%(codebase_root_dir)s/../mcuboot " + \
67 "-DTFM_PROFILE=%(profile)s " + \
Xinyu Zhangb5bbb692020-10-26 10:14:33 +080068 "-DTFM_PARTITION_PROTECTED_STORAGE=%(partition_ps)s " + \
Feder Liang567e8c22021-10-26 14:16:21 +080069 "-DCONFIG_TFM_SPE_FP=%(fp)s " + \
70 "-DCONFIG_TFM_LAZY_STACKING_SPE=%(lazy)s " + \
Xinyu Zhangfd2e1152021-12-17 18:09:01 +080071 "%(extra_params)s " + \
Xinyu Zhangb708f572020-09-15 11:43:46 +080072 "%(codebase_root_dir)s",
Karl Zhangaff558a2020-05-15 14:28:23 +010073
Minos Galanakisea421232019-06-20 17:11:28 +010074 # A small subset of string substitution params is allowed in commands.
75 # tfm_build_manager will replace %(_tbm_build_dir_)s, %(_tbm_code_dir_)s,
76 # _tbm_target_platform_ with the paths set when building
77
Xinyu Zhangb708f572020-09-15 11:43:46 +080078 "artifact_capture_rex": (r'%(_tbm_build_dir_)s/bin'
Minos Galanakisea421232019-06-20 17:11:28 +010079 r'/(\w+\.(?:axf|bin|hex))$'),
80
81 # ALL commands will be executed for every build.
82 # Other keys will append extra commands when matching target_platform
Fathi Boudra83e4f292020-12-04 22:33:40 +010083 "build_cmds": {"all": ["cmake --build ./ -- install"],
Summer Qin3c2b5722021-05-26 10:43:45 +080084 "arm/musca_b1/sse_200": [("srec_cat "
Mark Horvath8d281cd2020-12-07 15:20:26 +010085 "%(_tbm_build_dir_)s/bin/"
86 "bl2.bin "
87 "-Binary -offset 0xA000000 "
88 "-fill 0xFF 0xA000000 0xA020000 "
89 "%(_tbm_build_dir_)s/bin/"
90 "tfm_s_ns_signed.bin "
91 "-Binary -offset 0xA020000 "
92 "-fill 0xFF 0xA020000 0xA200000 "
93 "-o %(_tbm_build_dir_)s/bin/"
94 "tfm.hex -Intel")],
Summer Qin3c2b5722021-05-26 10:43:45 +080095 "arm/musca_s1": [("srec_cat "
Xinyu Zhangb708f572020-09-15 11:43:46 +080096 "%(_tbm_build_dir_)s/bin/"
97 "bl2.bin "
Karl Zhangeffed972020-06-30 15:48:01 +080098 "-Binary -offset 0xA000000 "
Raef Coles543aab32020-12-03 11:12:02 +000099 "-fill 0xFF 0xA000000 0xA020000 "
Xinyu Zhangb708f572020-09-15 11:43:46 +0800100 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800101 "tfm_s_ns_signed.bin "
Raef Coles543aab32020-12-03 11:12:02 +0000102 "-Binary -offset 0xA020000 "
103 "-fill 0xFF 0xA020000 0xA200000 "
104 "-o %(_tbm_build_dir_)s/bin/"
Arthur She19c0e1a2021-06-02 11:06:19 -0700105 "tfm.hex -Intel")],
106 "stm/stm32l562e_dk": [("echo 'STM32L562E-DK board post process';"
107 "%(_tbm_build_dir_)s/postbuild.sh;"
108 "pushd %(_tbm_build_dir_)s;"
Arthur She07c91b52021-07-15 15:03:10 -0700109 "BIN_FILES=$(grep -o '\/.*\.bin' TFM_UPDATE.sh | sed 's/^/bin/');"
110 "tar jcf ./bin/stm32l562e-dk-tfm.tar.bz2 regression.sh TFM_UPDATE.sh ${BIN_FILES};"
Arthur She3c0dadd2021-11-18 21:17:48 -0800111 "popd")],
112 "nxp/lpcxpresso55s69": [("echo 'LPCXpresso55S69 board post process\n';"
113 "if [ -f \"%(_tbm_build_dir_)s/bin/bl2.hex\" ]; then FLASH_FILE='flash_bl2_JLink.py'; else FLASH_FILE='flash_JLink.py'; fi;"
114 "pushd %(_tbm_build_dir_)s/../platform/ext/target/nxp/lpcxpresso55s69/scripts;"
115 "LN=$(grep -n 'JLinkExe' ${FLASH_FILE}|awk -F: '{print $1}');"
116 "sed -i \"${LN}s/.*/ print('flash.jlink generated')/\" ${FLASH_FILE};"
117 "python3 ./${FLASH_FILE};"
118 "cd %(_tbm_build_dir_)s/bin;"
119 "BIN_FILES=$(grep loadfile flash.jlink | awk '{print $2}');"
120 "tar jcf lpcxpresso55s69-tfm.tar.bz2 flash.jlink ${BIN_FILES};"
121 "popd")]
Minos Galanakisea421232019-06-20 17:11:28 +0100122 },
123
124 # (Optional) If set will fail if those artefacts are missing post build
125 "required_artefacts": {"all": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800126 "%(_tbm_build_dir_)s/bin/"
127 "tfm_s.bin",
128 "%(_tbm_build_dir_)s/bin/"
129 "tfm_ns.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800130 "arm/musca_b1/sse_200": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800131 "%(_tbm_build_dir_)s/bin/"
132 "tfm.hex",
133 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800134 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800135 "%(_tbm_build_dir_)s/bin/"
136 "tfm_sign.bin"],
Summer Qin3c2b5722021-05-26 10:43:45 +0800137 "arm/musca_s1": [
Xinyu Zhangb708f572020-09-15 11:43:46 +0800138 "%(_tbm_build_dir_)s/bin/"
139 "tfm.hex",
140 "%(_tbm_build_dir_)s/bin/"
Xinyu Zhang694eb492020-11-04 18:29:08 +0800141 "bl2.bin",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800142 "%(_tbm_build_dir_)s/bin/"
143 "tfm_sign.bin"]
Minos Galanakisea421232019-06-20 17:11:28 +0100144 }
145}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100146
Xinyu Zhangb708f572020-09-15 11:43:46 +0800147# List of all build configs that are impossible under all circumstances
148_common_tfm_invalid_configs = [
Xinyu Zhang459a1982021-07-21 22:34:49 +0800149 # LR_CODE size exceeds limit on MUSCA_B1 & MUSCA_S1 with regression tests in Debug mode built with ARMCLANG
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800150 ("arm/musca_b1/sse_200", "toolchain_ARMCLANG.cmake", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*", "*", "*"),
151 ("arm/musca_s1", "toolchain_ARMCLANG.cmake", "*", "*", True, "OFF", "Debug", "*", "*", "*", "", "*", "*", "*", "*"),
Karl Zhangc858a722021-03-22 21:38:19 +0800152 # Load range overlap on Musca for IPC Debug type: T895
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800153 ("arm/musca_b1/sse_200", "toolchain_ARMCLANG.cmake", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*", "*", "*"),
154 ("arm/musca_s1", "toolchain_ARMCLANG.cmake", "*", "*", "*", "IPC", "Debug", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang65683e42021-12-10 15:42:02 +0800155 # Oversize issue on config lpcxpresso55s69_GNUARM_IPC_2_Relwithdebinfo_BL2_NS_MEDIUM
156 ("nxp/lpcxpresso55s69", "toolchain_GNUARM.cmake", False, "2", False, "OFF",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800157 "Relwithdebinfo", "off", True, True, "profile_medium", "ON", "*", "*", "*"),
Xinyu Zhang65683e42021-12-10 15:42:02 +0800158 # Oversize issue on config stm32l562e_dk_ARMCLANG_LIB_1_REG_Release_BL2_NS
159 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake", True, "1", True, "OFF",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800160 "Release", "off", True, True, "", "ON", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800161 # LVL2 and LVL3 requires IPC model
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800162 ("*", "*", True, "2", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
163 ("*", "*", True, "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800164 # Regression requires NS
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800165 ("*", "*", "*", "*", True, "*", "*", "*", "*", False, "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800166 # psoc64 requires IPC model
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800167 ("cypress/psoc64", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800168 # No PSA_ACK with regression
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800169 ("*", "*", "*", "*", True, "IPC", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
170 ("*", "*", "*", "*", True, "CRYPTO", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
171 ("*", "*", "*", "*", True, "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
172 ("*", "*", "*", "*", True, "STORAGE", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800173 # PSA_ACK requires NS
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800174 ("*", "*", "*", "*", "*", "IPC", "*", "*", "*", False, "*", "*", "*", "*", "*"),
175 ("*", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", False, "*", "*", "*", "*", "*"),
176 ("*", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", False, "*", "*", "*", "*", "*"),
177 ("*", "*", "*", "*", "*", "STORAGE", "*", "*", "*", False, "*", "*", "*", "*", "*"),
Xinyu Zhangc0aad0a2021-11-10 16:07:28 +0800178 # PSA_ACK IPC (FF) does not support LVL3
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800179 ("*", "*", "*", "3", "*", "IPC", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800180 # Musca requires BL2
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800181 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*", "*"),
182 ("arm/musca_s1", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800183 # psoc64 cannot use BL2
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800184 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*", "*", "*"),
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800185 # psoc64 does not support Debug build type
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800186 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800187 # Musca b1 SSE 200 does not support Profile S
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800188 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800189 # Musca B1 Secure Enclave requires IPC model, BL2, and supports only Isolation Level 1
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800190 ("arm/musca_b1/secure_enclave", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
191 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*", "*"),
192 ("arm/musca_b1/secure_enclave", "*", "*", "2", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Mark Horvath8d281cd2020-12-07 15:20:26 +0100193 # Musca B1 Secure Enclave does not support tests, profiles, NS side building
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800194 ("arm/musca_b1/secure_enclave", "*", "*", "*", True, "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
195 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "IPC", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
196 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "CRYPTO", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
197 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "INITIAL_ATTESTATION", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
198 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "STORAGE", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
199 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
200 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*"),
201 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*", "*"),
202 ("arm/musca_b1/secure_enclave", "*", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800203 # PARTITION_PS could be OFF only for Profile S and M
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800204 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "", "OFF", "*", "*", "*"),
205 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "OFF", "*", "*", "*"),
Xinyu Zhang709c1542020-11-02 18:41:07 +0800206 # PARTITION_PS should be OFF for Profile S
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800207 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "ON", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800208 # Proile M only support for IPC model
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800209 ("*", "*", True, "*", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*"),
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800210 # Profile M only support for Isolation Level 2
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800211 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*"),
212 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800213 # Profile L only support for Isolation Level 3
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800214 ("*", "*", "*", "1", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*", "*"),
215 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800216 # Profile S does not support IPC model
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800217 ("*", "*", False, "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
Xinyu Zhang8258a5e2021-11-08 15:43:29 +0800218 # Profile S only supports Isolation Level 1
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800219 ("*", "*", "*", "2", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
220 ("*", "*", "*", "3", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800221 # Only AN521 and MUSCA_B1 support Isolation Level 3
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800222 ("arm/mps2/an519", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
223 ("arm/mps3/an524", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
224 ("arm/musca_s1", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
225 ("cypress/psoc64", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
226 ("arm/musca_b1/secure_enclave", "*", "*", "3", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700227 # stm/stm32l562e_dk uses BL2
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800228 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "*", "*", False, "*", "*", "*", "*", "*", "*"),
Arthur She19c0e1a2021-06-02 11:06:19 -0700229 # stm/stm32l562e_dk does not support Debug build type
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800230 ("stm/stm32l562e_dk", "*", "*", "*", "*", "*", "Debug", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700231 # nxp/lpcxpresso55s69 only build with GCC
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800232 ("nxp/lpcxpresso55s69", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700233 # nxp/lpcxpresso55s69 only build Profile M
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800234 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
235 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", "*", "*", "profile_large", "*", "*", "*", "*"),
Arthur Shef3657742021-09-07 14:23:18 -0700236 # nxp/lpcxpresso55s69 have to turn off BL2 when build regression test
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800237 ("nxp/lpcxpresso55s69", "*", "*", "*", True, "*", "*", "*", True, "*", "*", "*", "*", "*", "*"),
Arthur She0ce327e2021-11-16 23:11:34 -0800238 # nxp/lpcxpresso55s69 turn off BL2 temporary, due to the oversize error
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800239 ("nxp/lpcxpresso55s69", "*", "*", "*", "*", "*", "*", "*", True, "*", "*", "*", "*", "*", "*"),
Feder Liang567e8c22021-10-26 14:16:21 +0800240 # FP support only for GCC
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800241 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "1", "*", "*"),
242 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "2", "*", "*"),
Feder Liang567e8c22021-10-26 14:16:21 +0800243 # FP soft only build for lazy stacking disabled
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800244 ("*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "*", "0", "ON", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +0800245 ]
246
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +0100247# Configure build manager to build several combinations
Karl Zhangaff558a2020-05-15 14:28:23 +0100248config_AN524 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800249 "tfm_platform": ["arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800250 "toolchain_file": ["toolchain_GNUARM.cmake",
251 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800252 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800253 "isolation_level": ["1", "2"],
254 "test_regression": [True, False],
255 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100256 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800257 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800258 "with_bl2": [True, False],
259 "with_ns": [True, False],
260 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800261 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800262 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800263 "lazy": ["OFF"],
264 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100265 },
266 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800267 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100268 }
269
Karl Zhangaff558a2020-05-15 14:28:23 +0100270config_AN521 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800271 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800272 "toolchain_file": ["toolchain_GNUARM.cmake",
273 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800274 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800275 "isolation_level": ["1", "2"],
276 "test_regression": [True, False],
277 "test_psa_api": ["OFF"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100278 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800279 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800280 "with_bl2": [True, False],
281 "with_ns": [True, False],
282 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800283 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800284 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800285 "lazy": ["OFF"],
286 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100287 },
288 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800289 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100290 }
291
Karl Zhangaff558a2020-05-15 14:28:23 +0100292config_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800293 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
294 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800295 "toolchain_file": ["toolchain_GNUARM.cmake",
296 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800297 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800298 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800299 "test_regression": [False],
300 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800301 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800302 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100303 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800304 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800305 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800306 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800307 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800308 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800309 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800310 "lazy": ["OFF"],
311 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100312 },
313 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800314 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100315 }
316
Karl Zhangaff558a2020-05-15 14:28:23 +0100317config_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800318 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
319 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800320 "toolchain_file": ["toolchain_GNUARM.cmake",
321 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800322 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800323 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800324 "test_regression": [False],
325 "test_psa_api": ["IPC"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100326 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800327 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800328 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800329 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800330 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800331 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800332 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800333 "lazy": ["OFF"],
334 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100335 },
336 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800337 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100338 }
339
Karl Zhangaff558a2020-05-15 14:28:23 +0100340config_PSA_API_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800341 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800342 "toolchain_file": ["toolchain_GNUARM.cmake",
343 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800344 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800345 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800346 "test_regression": [False],
347 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800348 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800349 "STORAGE"],
Karl Zhangaff558a2020-05-15 14:28:23 +0100350 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800351 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800352 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800353 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800354 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800355 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800356 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800357 "lazy": ["OFF"],
358 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100359 },
360 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800361 "invalid": _common_tfm_invalid_configs + []
Karl Zhangaff558a2020-05-15 14:28:23 +0100362 }
Minos Galanakisea421232019-06-20 17:11:28 +0100363
Xinyu Zhangb708f572020-09-15 11:43:46 +0800364config_PSA_FF_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800365 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800366 "toolchain_file": ["toolchain_GNUARM.cmake",
367 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800368 "lib_model": [False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800369 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800370 "test_regression": [False],
371 "test_psa_api": ["IPC"],
372 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800373 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800374 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800375 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800376 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800377 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800378 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800379 "lazy": ["OFF"],
380 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800381 },
382 "common_params": _common_tfm_builder_cfg,
383 "invalid": _common_tfm_invalid_configs + []
384 }
385
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800386config_PSOC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +0800387 "tfm_platform": ["cypress/psoc64"],
388 "toolchain_file": ["toolchain_GNUARM.cmake",
389 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800390 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800391 "isolation_level": ["1", "2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800392 "test_regression": [True],
393 "test_psa_api": ["OFF"],
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800394 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800395 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800396 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +0800397 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800398 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800399 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800400 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800401 "lazy": ["OFF"],
402 "extra_params": [""]
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800403 },
404 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800405 "invalid": _common_tfm_invalid_configs + []
Karl Zhang96dfe2d2020-05-11 11:31:40 +0800406 }
407
Arthur She19c0e1a2021-06-02 11:06:19 -0700408config_STM32L562E_DK = {"seed_params": {
409 "tfm_platform": ["stm/stm32l562e_dk"],
410 "toolchain_file": ["toolchain_GNUARM.cmake",
411 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800412 "lib_model": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700413 "isolation_level": ["1", "2", "3"],
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800414 "test_regression": [True, False],
Arthur She19c0e1a2021-06-02 11:06:19 -0700415 "test_psa_api": ["OFF"],
416 "cmake_build_type": ["Release"],
417 "with_otp": ["off"],
418 "with_bl2": [True],
419 "with_ns": [True],
420 "profile": [""],
421 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800422 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800423 "lazy": ["OFF"],
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800424 "extra_params": ["CRYPTO_OFF", "CRYPTO_ON"]
Arthur She19c0e1a2021-06-02 11:06:19 -0700425 },
426 "common_params": _common_tfm_builder_cfg,
Xinyu Zhang7c8d3372021-12-22 11:15:42 +0800427 "invalid": _common_tfm_invalid_configs + [
428 # all other tests are off when CRYPTO is ON
429 ("stm/stm32l562e_dk", "*", "*", "*", True, "*", "*", "*",
430 "*", "*", "*", "*", "*", "*", "CRYPTO_ON"),
431 # all other tests are ON when CRYPTO is OFF
432 ("stm/stm32l562e_dk", "*", "*", "*", False, "*", "*", "*",
433 "*", "*", "*", "*", "*", "*", "CRYPTO_OFF"),
434 ]
Arthur She19c0e1a2021-06-02 11:06:19 -0700435 }
436
Arthur Shef3657742021-09-07 14:23:18 -0700437config_LPCXPRESSO55S69 = {"seed_params": {
438 "tfm_platform": ["nxp/lpcxpresso55s69"],
439 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800440 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700441 "isolation_level": ["2"],
442 "test_regression": [True, False],
443 "test_psa_api": ["OFF"],
444 "cmake_build_type": ["Relwithdebinfo"],
445 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -0800446 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -0700447 "with_ns": [True],
448 "profile": ["profile_medium"],
449 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800450 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800451 "lazy": ["OFF"],
452 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +0800453 },
454 "common_params": _common_tfm_builder_cfg,
455 "invalid": _common_tfm_invalid_configs + []
456 }
457
458config_FP = {"seed_params": {
459 "tfm_platform": ["arm/musca_s1"],
460 "toolchain_file": ["toolchain_GNUARM.cmake",
461 "toolchain_ARMCLANG.cmake"],
462 "lib_model": [False],
463 "isolation_level": ["1", "2"],
464 "test_regression": [True],
465 "test_psa_api": ["OFF"],
466 "cmake_build_type": ["Release"],
467 "with_otp": ["off"],
468 "with_bl2": [True],
469 "with_ns": [True],
470 "profile": [""],
471 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800472 "fp": ["0", "1", "2"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800473 "lazy": ["ON", "OFF"],
474 "extra_params": [""]
Arthur Shef3657742021-09-07 14:23:18 -0700475 },
476 "common_params": _common_tfm_builder_cfg,
477 "invalid": _common_tfm_invalid_configs + []
478 }
479
Xinyu Zhang6afdd612021-10-12 17:07:32 +0800480config_corstone1000 = {"seed_params": {
481 "tfm_platform": ["arm/corstone1000"],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800482 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800483 "lib_model": [False],
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800484 "isolation_level": ["1"],
485 "test_regression": [False],
486 "test_psa_api": ["OFF"],
487 "cmake_build_type": ["Debug"],
488 "with_otp": ["off"],
489 "with_bl2": [True],
490 "with_ns": [False],
491 "profile": [""],
492 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800493 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800494 "lazy": ["OFF"],
495 "extra_params": [""]
Xinyu Zhangfcb6aad2021-08-25 16:24:11 +0800496 },
497 "common_params": _common_tfm_builder_cfg,
498 "invalid": _common_tfm_invalid_configs + []
499 }
500
Minos Galanakisea421232019-06-20 17:11:28 +0100501config_AN519 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800502 "tfm_platform": ["arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800503 "toolchain_file": ["toolchain_GNUARM.cmake",
504 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800505 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800506 "isolation_level": ["1", "2"],
507 "test_regression": [True, False],
508 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +0100509 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800510 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800511 "with_bl2": [True, False],
512 "with_ns": [True, False],
513 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800514 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800515 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800516 "lazy": ["OFF"],
517 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +0100518 },
519 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800520 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100521 }
522
Xinyu Zhangb708f572020-09-15 11:43:46 +0800523config_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800524 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
525 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800526 "toolchain_file": ["toolchain_GNUARM.cmake",
527 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800528 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800529 "isolation_level": ["1", "2"],
530 "test_regression": [True, False],
531 "test_psa_api": ["OFF"],
532 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800533 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800534 "with_bl2": [True, False],
535 "with_ns": [True, False],
536 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800537 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800538 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800539 "lazy": ["OFF"],
540 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800541 },
Minos Galanakisea421232019-06-20 17:11:28 +0100542 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800543 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +0100544 }
545
Minos Galanakisea421232019-06-20 17:11:28 +0100546config_full = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800547 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
548 "arm/musca_b1/sse_200",
549 "arm/mps3/an524", "cypress/psoc64",
Arthur She19c0e1a2021-06-02 11:06:19 -0700550 "arm/musca_b1/secure_enclave",
Arthur Shef3657742021-09-07 14:23:18 -0700551 "stm/stm32l562e_dk",
552 "nxp/lpcxpresso55s69"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800553 "toolchain_file": ["toolchain_GNUARM.cmake",
554 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800555 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800556 "isolation_level": ["1", "2"],
557 "test_regression": [True, False],
558 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800559 "cmake_build_type": ["Debug", "Release", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800560 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800561 "with_bl2": [True, False],
562 "with_ns": [True, False],
563 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800564 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800565 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800566 "lazy": ["OFF"],
567 "extra_params": [""]
Dean Birchd6ce2c82020-05-13 13:16:15 +0100568 },
569 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800570 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800571 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800572 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800573 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800574 True, "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800575 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800576 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800577 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800578 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800579 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800580 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800581 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800582 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800583 ]
Karl Zhang81a76772020-05-11 18:28:52 +0800584 }
585
Karl Zhangaff558a2020-05-15 14:28:23 +0100586config_tfm_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800587 "tfm_platform": ["arm/mps2/an521",
588 "arm/musca_b1/sse_200", "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800589 "toolchain_file": ["toolchain_ARMCLANG.cmake",
590 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800591 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800592 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800593 "test_regression": [True, False],
594 "test_psa_api": ["OFF"],
595 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800596 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800597 "with_bl2": [True],
598 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800599 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800600 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800601 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800602 "lazy": ["OFF"],
603 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800604 },
605 "common_params": _common_tfm_builder_cfg,
606 "invalid": _common_tfm_invalid_configs + []
607 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800608
Karl Zhangaff558a2020-05-15 14:28:23 +0100609config_tfm_test2 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800610 "tfm_platform": ["arm/mps2/an519", "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800611 "toolchain_file": ["toolchain_ARMCLANG.cmake",
612 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800613 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800614 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800615 "test_regression": [True, False],
616 "test_psa_api": ["OFF"],
617 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800618 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800619 "with_bl2": [True],
620 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800621 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800622 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800623 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800624 "lazy": ["OFF"],
625 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800626 },
627 "common_params": _common_tfm_builder_cfg,
628 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800629 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800630 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800631 ]
632 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100633
Karl Zhang14573bc2020-06-08 09:23:21 +0800634config_tfm_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800635 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
636 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800637 "toolchain_file": ["toolchain_ARMCLANG.cmake",
638 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800639 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800640 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800641 "test_regression": [True, False],
642 "test_psa_api": ["OFF"],
643 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800644 "with_otp": ["off"],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800645 "with_bl2": [True],
646 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800647 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800648 "partition_ps": ["ON", "OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800649 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800650 "lazy": ["OFF"],
651 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800652 },
653 "common_params": _common_tfm_builder_cfg,
654 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800655 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800656 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800657 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800658 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800659 "*", "profile_large", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800660 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800661 "*", "*", "profile_large", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800662 ]
663 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800664
Karl Zhangaff558a2020-05-15 14:28:23 +0100665config_tfm_test_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800666 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800667 "toolchain_file": ["toolchain_ARMCLANG.cmake",
668 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800669 "lib_model": [True, False],
Xinyu Zhang6922b7a2020-11-05 15:21:27 +0800670 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800671 "test_regression": [True, False],
672 "test_psa_api": ["OFF"],
673 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800674 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800675 "with_bl2": [True],
Xinyu Zhang5564d8b2020-11-13 10:22:27 +0800676 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800677 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800678 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800679 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800680 "lazy": ["OFF"],
681 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800682 },
683 "common_params": _common_tfm_builder_cfg,
684 "invalid": _common_tfm_invalid_configs + []
685 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100686
Minos Galanakisea421232019-06-20 17:11:28 +0100687config_MUSCA_B1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800688 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800689 "toolchain_file": ["toolchain_ARMCLANG.cmake",
690 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800691 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800692 "isolation_level": ["1", "2"],
693 "test_regression": [True, False],
694 "test_psa_api": ["OFF"],
695 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800696 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800697 "with_bl2": [True],
698 "with_ns": [True, False],
699 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800700 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800701 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800702 "lazy": ["OFF"],
703 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800704 },
705 "common_params": _common_tfm_builder_cfg,
706 "invalid": _common_tfm_invalid_configs + []
707 }
Minos Galanakisea421232019-06-20 17:11:28 +0100708
Mark Horvath8d281cd2020-12-07 15:20:26 +0100709config_MUSCA_B1_SE = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800710 "tfm_platform": ["arm/musca_b1/secure_enclave"],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100711 "toolchain_file": ["toolchain_ARMCLANG.cmake",
712 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800713 "lib_model": [False],
Mark Horvath8d281cd2020-12-07 15:20:26 +0100714 "isolation_level": ["1"],
715 "test_regression": [False],
716 "test_psa_api": ["OFF"],
717 "cmake_build_type": ["Debug", "Release"],
718 "with_otp": ["off"],
719 "with_bl2": [True],
720 "with_ns": [False],
721 "profile": [""],
722 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800723 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800724 "lazy": ["OFF"],
725 "extra_params": [""]
Mark Horvath8d281cd2020-12-07 15:20:26 +0100726 },
727 "common_params": _common_tfm_builder_cfg,
728 "invalid": _common_tfm_invalid_configs + []
729 }
730
Karl Zhangeffed972020-06-30 15:48:01 +0800731config_MUSCA_S1 = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800732 "tfm_platform": ["arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800733 "toolchain_file": ["toolchain_ARMCLANG.cmake",
734 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800735 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800736 "isolation_level": ["1", "2"],
737 "test_regression": [True, False],
738 "test_psa_api": ["OFF"],
739 "cmake_build_type": ["Debug", "Release"],
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"],
Feder Liang567e8c22021-10-26 14:16:21 +0800745 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800746 "lazy": ["OFF"],
747 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800748 },
749 "common_params": _common_tfm_builder_cfg,
750 "invalid": _common_tfm_invalid_configs + []
751 }
Karl Zhangeffed972020-06-30 15:48:01 +0800752
Karl Zhangaff558a2020-05-15 14:28:23 +0100753config_release = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800754 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
755 "arm/musca_b1/sse_200", "arm/musca_s1",
756 "arm/mps3/an524"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800757 "toolchain_file": ["toolchain_ARMCLANG.cmake",
758 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800759 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800760 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800761 "test_regression": [True, False],
762 "test_psa_api": ["OFF"],
763 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800764 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800765 "with_bl2": [True, False],
766 "with_ns": [True, False],
767 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800768 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800769 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800770 "lazy": ["OFF"],
771 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800772 },
773 "common_params": _common_tfm_builder_cfg,
774 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800775 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800776 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800777 ]
778 }
Karl Zhangaff558a2020-05-15 14:28:23 +0100779
780# Configure build manager to build several combinations
781config_AN521_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800782 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
783 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800784 "toolchain_file": ["toolchain_GNUARM.cmake",
785 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800786 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800787 "isolation_level": ["1", "2"],
788 "test_regression": [False],
789 "test_psa_api": ["IPC",
790 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800791 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800792 "STORAGE"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800793 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800794 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800795 "with_bl2": [True],
796 "with_ns": [True, False],
797 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800798 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800799 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800800 "lazy": ["OFF"],
801 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100802 },
803 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800804 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800805 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800806 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800807 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100808 }
809
Karl Zhangaff558a2020-05-15 14:28:23 +0100810config_AN521_PSA_IPC = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800811 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
812 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800813 "toolchain_file": ["toolchain_GNUARM.cmake",
814 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800815 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800816 "isolation_level": ["1", "2"],
817 "test_regression": [False],
818 "test_psa_api": ["IPC"],
819 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800820 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800821 "with_bl2": [True],
822 "with_ns": [True, False],
823 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800824 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800825 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800826 "lazy": ["OFF"],
827 "extra_params": [""]
Karl Zhangaff558a2020-05-15 14:28:23 +0100828 },
829 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800830 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800831 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800832 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800833 ]
Karl Zhangaff558a2020-05-15 14:28:23 +0100834 }
835
Karl Zhang14573bc2020-06-08 09:23:21 +0800836config_nightly = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800837 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
838 "arm/musca_b1/sse_200", "arm/musca_s1",
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800839 "arm/mps3/an524", "arm/musca_b1/secure_enclave"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800840 "toolchain_file": ["toolchain_GNUARM.cmake",
841 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800842 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800843 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800844 "test_regression": [True, False],
845 "test_psa_api": ["OFF"],
Xinyu Zhangc61c87a2020-11-03 11:14:49 +0800846 "cmake_build_type": ["Debug", "Release", "Minsizerel", "RelWithDebInfo"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800847 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800848 "with_bl2": [True],
849 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800850 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800851 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800852 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800853 "lazy": ["OFF"],
854 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800855 },
856 "common_params": _common_tfm_builder_cfg,
857 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800858 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800859 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800860 ("cypress/psoc64", "*", "*", "*", "*", "*", "Debug", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800861 "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800862 ("cypress/psoc64", "*", "*", "*", "*", "*", "*", "*", True,
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800863 True, "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800864 ("arm/mps2/an521", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800865 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800866 ("arm/mps2/an519", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800867 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800868 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800869 "RelWithDebInfo", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800870 ("arm/musca_s1", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800871 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800872 ("arm/mps3/an524", "*", "*", "*", "*", "*", "RelWithDebInfo",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800873 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800874 ]
875 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800876
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800877config_nsce = {"seed_params": {
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800878 "tfm_platform": ["arm/mps2/an521"],
879 "toolchain_file": ["toolchain_GNUARM.cmake",
880 "toolchain_ARMCLANG.cmake"],
881 "lib_model": [True, False],
882 "isolation_level": ["1", "2", "3"],
883 "test_regression": [True],
884 "test_psa_api": ["OFF"],
885 "cmake_build_type": ["Debug"],
886 "with_otp": ["off"],
887 "with_bl2": [True],
888 "with_ns": [True],
889 "profile": [""],
890 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800891 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800892 "lazy": ["OFF"],
Xinyu Zhang67612992021-12-20 14:11:27 +0800893 "extra_params": ["NSCE"]
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800894 },
895 "common_params": _common_tfm_builder_cfg,
896 "invalid": _common_tfm_invalid_configs + []
897 }
898
Xinyu Zhang050e39a2021-11-16 14:38:15 +0800899config_mmio = {"seed_params": {
Xinyu Zhanga1088e22021-11-11 18:02:45 +0800900 "tfm_platform": ["arm/mps2/an521"],
901 "toolchain_file": ["toolchain_GNUARM.cmake",
902 "toolchain_ARMCLANG.cmake"],
903 "lib_model": [False],
904 "isolation_level": ["1"],
905 "test_regression": [True],
906 "test_psa_api": ["OFF"],
907 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
908 "with_otp": ["off"],
909 "with_bl2": [True],
910 "with_ns": [True],
911 "profile": [""],
912 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800913 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800914 "lazy": ["OFF"],
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800915 "extra_params": ["MMIO"]
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +0800916 },
917 "common_params": _common_tfm_builder_cfg,
918 "invalid": _common_tfm_invalid_configs + []
919 }
920
Karl Zhang14573bc2020-06-08 09:23:21 +0800921config_nightly_profile = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800922 "tfm_platform": ["arm/mps2/an519", "arm/mps2/an521",
923 "arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800924 "toolchain_file": ["toolchain_ARMCLANG.cmake",
925 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800926 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800927 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800928 "test_regression": [True, False],
929 "test_psa_api": ["OFF"],
930 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800931 "with_otp": ["off"],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800932 "with_bl2": [True],
933 "with_ns": [True],
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800934 "profile": ["profile_small", "profile_medium", "profile_large"],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800935 "partition_ps": ["ON", "OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +0800936 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800937 "lazy": ["OFF"],
938 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +0800939 },
940 "common_params": _common_tfm_builder_cfg,
941 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800942 ("arm/mps2/an519", "toolchain_GNUARM.cmake", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800943 "*", "Minsizerel", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang9b1aef92021-03-12 15:36:44 +0800944 # Profile Large is only supported by AN521
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800945 ("arm/mps2/an519", "*", "*", "*", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800946 "*", "profile_large", "*", "*", "*", "*"),
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800947 ("arm/musca_b1/sse_200", "*", "*", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +0800948 "*", "*", "profile_large", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +0800949 ]
950 }
Karl Zhang14573bc2020-06-08 09:23:21 +0800951
Karl Zhang14573bc2020-06-08 09:23:21 +0800952config_nightly_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800953 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
954 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800955 "toolchain_file": ["toolchain_GNUARM.cmake",
956 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800957 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800958 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800959 "test_regression": [False],
960 "test_psa_api": ["CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +0800961 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +0800962 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800963 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800964 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800965 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800966 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800967 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800968 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800969 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800970 "lazy": ["OFF"],
971 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800972 },
973 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800974 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800975 }
976
Karl Zhang14573bc2020-06-08 09:23:21 +0800977config_nightly_PSA_FF = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +0800978 "tfm_platform": ["arm/mps2/an521", "arm/musca_b1/sse_200",
979 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800980 "toolchain_file": ["toolchain_GNUARM.cmake",
981 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +0800982 "lib_model": [False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +0800983 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800984 "test_regression": [False],
985 "test_psa_api": ["IPC"],
Karl Zhang14573bc2020-06-08 09:23:21 +0800986 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +0800987 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800988 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +0800989 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +0800990 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +0800991 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +0800992 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +0800993 "lazy": ["OFF"],
994 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +0800995 },
996 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +0800997 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +0800998 }
999
Karl Zhang14573bc2020-06-08 09:23:21 +08001000config_nightly_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001001 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001002 "toolchain_file": ["toolchain_GNUARM.cmake",
1003 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001004 "lib_model": [True, False],
Xinyu Zhangb1c550f2020-10-28 15:32:38 +08001005 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001006 "test_regression": [True],
1007 "test_psa_api": ["OFF"],
1008 "cmake_build_type": ["Debug", "Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001009 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001010 "with_bl2": [True],
Xinyu Zhang55363aa2020-11-16 16:38:30 +08001011 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001012 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001013 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001014 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001015 "lazy": ["OFF"],
1016 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001017 },
1018 "common_params": _common_tfm_builder_cfg,
1019 "invalid": _common_tfm_invalid_configs + []
1020 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001021
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001022config_nightly_psoc64 = {"seed_params": {
1023 "tfm_platform": ["cypress/psoc64"],
1024 "toolchain_file": ["toolchain_GNUARM.cmake",
1025 "toolchain_ARMCLANG.cmake"],
1026 "lib_model": [False],
1027 "isolation_level": ["1", "2"],
1028 "test_regression": [True],
1029 "test_psa_api": ["OFF"],
1030 "cmake_build_type": ["Release"],
1031 "with_otp": ["off"],
1032 "with_bl2": [False],
1033 "with_ns": [True],
1034 "profile": [""],
1035 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001036 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001037 "lazy": ["OFF"],
1038 "extra_params": [""]
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001039 },
1040 "common_params": _common_tfm_builder_cfg,
1041 "invalid": _common_tfm_invalid_configs + []
1042 }
1043
Arthur Shef3657742021-09-07 14:23:18 -07001044config_nightly_LPCXPRESSO55S69 = {"seed_params": {
1045 "tfm_platform": ["nxp/lpcxpresso55s69"],
1046 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001047 "lib_model": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001048 "isolation_level": ["2"],
1049 "test_regression": [True, False],
1050 "test_psa_api": ["OFF"],
1051 "cmake_build_type": ["Relwithdebinfo"],
1052 "with_otp": ["off"],
Arthur She0ce327e2021-11-16 23:11:34 -08001053 "with_bl2": [False],
Arthur Shef3657742021-09-07 14:23:18 -07001054 "with_ns": [True],
1055 "profile": ["profile_medium"],
1056 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001057 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001058 "lazy": ["OFF"],
1059 "extra_params": [""]
Feder Liang567e8c22021-10-26 14:16:21 +08001060 },
1061 "common_params": _common_tfm_builder_cfg,
1062 "invalid": _common_tfm_invalid_configs + []
1063 }
1064
1065config_nightly_FP = {"seed_params": {
1066 "tfm_platform": ["arm/musca_s1"],
1067 "toolchain_file": ["toolchain_GNUARM.cmake",
1068 "toolchain_ARMCLANG.cmake"],
1069 "lib_model": [False],
1070 "isolation_level": ["1", "2"],
1071 "test_regression": [True],
1072 "test_psa_api": ["OFF"],
1073 "cmake_build_type": ["Debug"],
1074 "with_otp": ["off"],
1075 "with_bl2": [True],
1076 "with_ns": [True],
1077 "profile": [""],
1078 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001079 "fp": ["0", "2"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001080 "lazy": ["ON", "OFF"],
1081 "extra_params": [""]
Arthur Shef3657742021-09-07 14:23:18 -07001082 },
1083 "common_params": _common_tfm_builder_cfg,
1084 "invalid": _common_tfm_invalid_configs + []
1085 }
1086
Karl Zhang14573bc2020-06-08 09:23:21 +08001087config_pp_test = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001088 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519",
Xinyu Zhangd1ef9982021-06-24 11:31:11 +08001089 "arm/musca_s1"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001090 "toolchain_file": ["toolchain_GNUARM.cmake",
1091 "toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001092 "lib_model": [True, False],
Karl Zhangde36b772021-01-08 10:17:03 +08001093 "isolation_level": ["1", "2", "3"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001094 "test_regression": [True],
1095 "test_psa_api": ["OFF"],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001096 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001097 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001098 "with_bl2": [True],
1099 "with_ns": [True, False],
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001100 "profile": ["", "profile_small", "profile_medium"],
1101 "partition_ps": ["ON", "OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001102 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001103 "lazy": ["OFF"],
1104 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001105 },
1106 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001107 "valid": [
Summer Qin3c2b5722021-05-26 10:43:45 +08001108 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001109 True, "1", False, "OFF", "Debug",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001110 "off", True, True, "", "ON", "0", "OFF", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001111 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001112 False, "2", False, "OFF", "Debug",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001113 "off", True, True, "", "ON", "0", "OFF", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001114 ("arm/mps2/an521", "toolchain_ARMCLANG.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001115 False, "3", False, "OFF", "Release",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001116 "off", True, True, "", "ON", "0", "OFF", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001117 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001118 False, "2", False, "OFF", "Debug",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001119 "off", True, True, "profile_medium", "ON", "0", "OFF", ""),
Summer Qin3c2b5722021-05-26 10:43:45 +08001120 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001121 False, "3", False, "OFF", "Debug",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001122 "off", True, True, "profile_large", "ON", "0", "OFF", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001123 # AN521_GNUARM_IPC_2_REG_Release_BL2_NS_MEDIUM_PSOFF
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001124 ("arm/mps2/an521", "toolchain_GNUARM.cmake",
1125 False, "2", True, "OFF", "Release",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001126 "off", True, True, "profile_medium", "OFF", "0", "OFF", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001127 # MUSCA_B1_GNUARM_LIB_1_REG_Minsizerel_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001128 ("arm/musca_b1/sse_200", "toolchain_GNUARM.cmake",
1129 True, "1", True, "OFF", "Minsizerel",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001130 "off", True, True, "", "ON", "0", "OFF", ""),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001131 # stm32l562e_dk_ARMCLANG_IPC_1_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001132 ("stm/stm32l562e_dk", "toolchain_ARMCLANG.cmake",
1133 False, "1", True, "OFF", "Release",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001134 "off", True, True, "", "ON", "0", "OFF", "CRYPTO_OFF"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001135 # stm32l562e_dk_GNUARM_IPC_2_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001136 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
Xinyu Zhang7c8d3372021-12-22 11:15:42 +08001137 False, "2", False, "OFF", "Release",
1138 "off", True, True, "", "ON", "0", "OFF", "CRYPTO_ON"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001139 # stm32l562e_dk_GNUARM_IPC_3_REG_Release_BL2_NS
Xinyu Zhang9bfe8a92021-10-28 16:27:12 +08001140 ("stm/stm32l562e_dk", "toolchain_GNUARM.cmake",
1141 False, "3", True, "OFF", "Release",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001142 "off", True, True, "", "ON", "0", "OFF", "CRYPTO_OFF"),
Feder Liang567e8c22021-10-26 14:16:21 +08001143 # MUSCA_S1_GNUARM_IPC_2_REG_Release_BL2_NS_SFP2_SLAZY
1144 ("arm/musca_s1", "toolchain_GNUARM.cmake",
1145 False, "2", True, "OFF", "Release",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001146 "off", True, True, "", "ON", "2", "ON", ""),
Xinyu Zhangf86d42b2021-05-17 10:51:35 +08001147 ],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001148 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001149 # invalid configs that are not supported by TF-M
Summer Qin3c2b5722021-05-26 10:43:45 +08001150 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001151 "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001152 # valid configs supported by TF-M but not needed in per-patch
1153 ("*", "*", "*", "1", "*", "*", "Release",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001154 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001155 ("*", "*", "*", "1", "*", "*", "Minsizerel",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001156 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001157 ("*", "*", "*", "2", "*", "*", "Debug",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001158 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001159 ("*", "*", "*", "2", "*", "*", "Minsizerel",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001160 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001161 ("*", "*", "*", "3", "*", "*", "Debug",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001162 "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001163 ("*", "*", "*", "3", "*", "*", "Release",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001164 "*", "*", "*", "*", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001165 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001166 "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001167 ("arm/musca_s1", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001168 "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001169 ("arm/mps2/an519", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001170 "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*"),
Summer Qin3c2b5722021-05-26 10:43:45 +08001171 ("arm/mps2/an521", "*", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001172 "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001173 ("*", "toolchain_GNUARM.cmake", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001174 "*", "*", "*", "*", "profile_small", "*", "*", "*", "*"),
Xinyu Zhangeb442a12021-02-01 15:16:19 +08001175 ("*", "toolchain_ARMCLANG.cmake", "*", "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001176 "*", "*", "*", "*", "profile_medium", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001177 ("*", "toolchain_ARMCLANG.cmake", True, "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001178 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001179 ]
1180 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001181
Karl Zhang14573bc2020-06-08 09:23:21 +08001182config_pp_OTP = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001183 "tfm_platform": ["arm/musca_b1/sse_200"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001184 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001185 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001186 "isolation_level": ["1", "2"],
1187 "test_regression": [True],
1188 "test_psa_api": ["OFF"],
1189 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001190 "with_otp": ["ENABLED"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001191 "with_bl2": [True],
1192 "with_ns": [True, False],
1193 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001194 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001195 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001196 "lazy": ["OFF"],
1197 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001198 },
1199 "common_params": _common_tfm_builder_cfg,
1200 "invalid": _common_tfm_invalid_configs + []
1201 }
Karl Zhang14573bc2020-06-08 09:23:21 +08001202
1203# Configure build manager to build several combinations
1204config_pp_PSA_API = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001205 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001206 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001207 "lib_model": [False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001208 "isolation_level": ["2"],
1209 "test_regression": [False],
1210 "test_psa_api": ["IPC",
1211 "CRYPTO",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001212 "INITIAL_ATTESTATION",
Xinyu Zhang39acb412021-07-09 20:35:19 +08001213 "STORAGE"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001214 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001215 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001216 "with_bl2": [True],
1217 "with_ns": [True, False],
1218 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001219 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001220 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001221 "lazy": ["OFF"],
1222 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001223 },
1224 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001225 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001226 }
1227
Karl Zhang14573bc2020-06-08 09:23:21 +08001228config_pp_PSoC64 = {"seed_params": {
Xinyu Zhangb708f572020-09-15 11:43:46 +08001229 "tfm_platform": ["cypress/psoc64"],
1230 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001231 "lib_model": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001232 "isolation_level": ["2"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001233 "test_regression": [True],
1234 "test_psa_api": ["OFF"],
Karl Zhang14573bc2020-06-08 09:23:21 +08001235 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001236 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001237 "with_bl2": [False],
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001238 "with_ns": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001239 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001240 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001241 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001242 "lazy": ["OFF"],
1243 "extra_params": [""]
Karl Zhang14573bc2020-06-08 09:23:21 +08001244 },
1245 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001246 "invalid": _common_tfm_invalid_configs + []
Karl Zhang14573bc2020-06-08 09:23:21 +08001247 }
1248
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001249config_cov_an519 = {"seed_params": {
1250 "tfm_platform": ["arm/mps2/an519"],
1251 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001252 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001253 "isolation_level": ["1", "2", "3"],
1254 "test_regression": [True, False],
1255 "test_psa_api": ["OFF"],
1256 "cmake_build_type": ["Debug", "Release"],
1257 "with_otp": ["off"],
1258 "with_bl2": [True],
1259 "with_ns": [True],
1260 "profile": ["", "profile_small", "profile_medium"],
1261 "partition_ps": ["ON", "OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001262 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001263 "lazy": ["OFF"],
1264 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001265 },
1266 "common_params": _common_tfm_builder_cfg,
1267 "invalid": _common_tfm_invalid_configs + []
1268 }
1269
1270config_cov_an521 = {"seed_params": {
1271 "tfm_platform": ["arm/mps2/an521"],
1272 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001273 "lib_model": [True, False],
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001274 "isolation_level": ["1", "2", "3"],
1275 "test_regression": [True, False],
1276 "test_psa_api": ["OFF"],
1277 "cmake_build_type": ["Debug", "Release", "Minsizerel"],
1278 "with_otp": ["off"],
1279 "with_bl2": [True],
1280 "with_ns": [True],
1281 "profile": ["", "profile_small", "profile_medium", "profile_large"],
1282 "partition_ps": ["ON", "OFF"],
Feder Liang567e8c22021-10-26 14:16:21 +08001283 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001284 "lazy": ["OFF"],
1285 "extra_params": [""]
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001286 },
1287 "common_params": _common_tfm_builder_cfg,
1288 "invalid": _common_tfm_invalid_configs + []
1289 }
1290
Minos Galanakisea421232019-06-20 17:11:28 +01001291# Configruation used for document building
1292config_doxygen = {"common_params": {
1293 "config_type": "tf-m_documents",
1294 "codebase_root_dir": "tf-m",
Summer Qin3c2b5722021-05-26 10:43:45 +08001295 "build_cmds": {"all": ["-DTFM_PLATFORM=arm/mps2/an521 "
Fathi Boudra324fee72020-11-20 10:31:12 +01001296 "-DTFM_TOOLCHAIN_FILE=%(_tfm_code_dir_)s/toolchain_GNUARM.cmake"
Minos Galanakisea421232019-06-20 17:11:28 +01001297 "-DCMAKE_BUILD_TYPE=Debug "
Minos Galanakisea421232019-06-20 17:11:28 +01001298 "%(_tbm_code_dir_)s/",
Xinyu Zhangb708f572020-09-15 11:43:46 +08001299 "cmake --build ./ -- docs"]},
1300 "artifact_capture_rex": r'%(_tbm_build_dir_)s/docs/'
1301 r'reference_manual/(?:latex|html)'
Minos Galanakisea421232019-06-20 17:11:28 +01001302 r'/(\w+\.(?:html|md|pdf))$',
1303 },
Xinyu Zhangb708f572020-09-15 11:43:46 +08001304 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001305 }
1306
Karl Zhangaff558a2020-05-15 14:28:23 +01001307# Configuration used in testing
Minos Galanakisea421232019-06-20 17:11:28 +01001308config_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001309 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001310 "toolchain_file": ["toolchain_ARMCLANG.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001311 "lib_model": [True],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001312 "isolation_level": ["1"],
1313 "test_regression": [False],
1314 "test_psa_api": ["OFF"],
Minos Galanakisea421232019-06-20 17:11:28 +01001315 "cmake_build_type": ["Debug"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001316 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001317 "with_bl2": [True],
1318 "with_ns": [True],
1319 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001320 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001321 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001322 "lazy": ["OFF"],
1323 "extra_params": [""]
Minos Galanakisea421232019-06-20 17:11:28 +01001324 },
1325 "common_params": _common_tfm_builder_cfg,
Xinyu Zhangb708f572020-09-15 11:43:46 +08001326 "invalid": _common_tfm_invalid_configs + []
Minos Galanakisea421232019-06-20 17:11:28 +01001327 }
1328
Dean Birch4c6ad622020-03-13 11:28:03 +00001329# Configuration used in CI
Xinyu Zhangb708f572020-09-15 11:43:46 +08001330config_ci = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001331 "tfm_platform": ["arm/mps2/an521"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001332 "toolchain_file": ["toolchain_ARMCLANG.cmake",
1333 "toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001334 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001335 "isolation_level": ["1", "2"],
1336 "test_regression": [True, False],
1337 "test_psa_api": ["OFF"],
1338 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001339 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001340 "with_bl2": [True, False],
1341 "with_ns": [True],
1342 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001343 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001344 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001345 "lazy": ["OFF"],
1346 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001347 },
1348 "common_params": _common_tfm_builder_cfg,
1349 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001350 ("*", "toolchain_ARMCLANG.cmake", False, "*", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001351 "*", "*", "*", "*", "*", "*", "*", "*", "*"),
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001352 ("*", "toolchain_ARMCLANG.cmake", True, "1", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001353 "*", "*", False, "*", "*", "*", "*", "*", "*"),
Xinyu Zhangb708f572020-09-15 11:43:46 +08001354 ]
1355 }
Matthew Hartfb6fd362020-03-04 21:03:59 +00001356
Xinyu Zhangb708f572020-09-15 11:43:46 +08001357config_lava_debug = {"seed_params": {
Summer Qin3c2b5722021-05-26 10:43:45 +08001358 "tfm_platform": ["arm/mps2/an521", "arm/mps2/an519"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001359 "toolchain_file": ["toolchain_GNUARM.cmake"],
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001360 "lib_model": [True, False],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001361 "isolation_level": ["1", "2"],
1362 "test_regression": [True],
1363 "test_psa_api": ["OFF"],
1364 "cmake_build_type": ["Release"],
Xinyu Zhanga50432e2020-10-23 18:00:18 +08001365 "with_otp": ["off"],
Xinyu Zhangb708f572020-09-15 11:43:46 +08001366 "with_bl2": [True, False],
1367 "with_ns": [True, False],
1368 "profile": [""],
Xinyu Zhang9fd74242020-10-22 11:30:50 +08001369 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001370 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001371 "lazy": ["OFF"],
1372 "extra_params": [""]
Xinyu Zhangb708f572020-09-15 11:43:46 +08001373 },
1374 "common_params": _common_tfm_builder_cfg,
1375 "invalid": _common_tfm_invalid_configs + [
Xinyu Zhang73ed2992021-09-15 11:38:23 +08001376 ("arm/mps2/an521", "toolchain_GNUARM.cmake", False, "2", "*", "*",
Xinyu Zhang3bb01af2021-12-20 14:45:49 +08001377 "*", "*", True, "*", "*", "*", "*", "*", "*")
Xinyu Zhangb708f572020-09-15 11:43:46 +08001378 ]
1379 }
Dean Birch4c6ad622020-03-13 11:28:03 +00001380
Xinyu Zhang38b76742021-11-11 13:57:56 +08001381config_an547 = {"seed_params": {
1382 "tfm_platform": ["arm/mps3/an547"],
1383 "toolchain_file": ["toolchain_GNUARM.cmake"],
1384 "lib_model": [False],
1385 "isolation_level": ["1"],
1386 "test_regression": [False],
1387 "test_psa_api": ["OFF"],
1388 "cmake_build_type": ["Debug"],
1389 "with_otp": ["off"],
1390 "with_bl2": [True],
1391 "with_ns": [False],
1392 "profile": [""],
1393 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001394 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001395 "lazy": ["OFF"],
1396 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001397 },
1398 "common_params": _common_tfm_builder_cfg,
1399 "invalid": _common_tfm_invalid_configs + []
1400 }
1401
1402config_corstone_polaris = {"seed_params": {
1403 "tfm_platform": ["arm/mps3/corstone_polaris"],
1404 "toolchain_file": ["toolchain_GNUARM.cmake"],
1405 "lib_model": [False],
1406 "isolation_level": ["1"],
1407 "test_regression": [False],
1408 "test_psa_api": ["OFF"],
1409 "cmake_build_type": ["Debug"],
1410 "with_otp": ["off"],
1411 "with_bl2": [True],
1412 "with_ns": [False],
1413 "profile": [""],
1414 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001415 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001416 "lazy": ["OFF"],
1417 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001418 },
1419 "common_params": _common_tfm_builder_cfg,
1420 "invalid": _common_tfm_invalid_configs + []
1421 }
1422
1423config_bl5340 = {"seed_params": {
1424 "tfm_platform": ["lairdconnectivity/bl5340_dvk_cpuapp"],
1425 "toolchain_file": ["toolchain_GNUARM.cmake"],
1426 "lib_model": [False],
1427 "isolation_level": ["1"],
1428 "test_regression": [False],
1429 "test_psa_api": ["OFF"],
1430 "cmake_build_type": ["Debug"],
1431 "with_otp": ["off"],
1432 "with_bl2": [True],
1433 "with_ns": [False],
1434 "profile": [""],
1435 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001436 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001437 "lazy": ["OFF"],
1438 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001439 },
1440 "common_params": _common_tfm_builder_cfg,
1441 "invalid": _common_tfm_invalid_configs + []
1442 }
1443
1444config_nrf5340dk = {"seed_params": {
1445 "tfm_platform": ["nordic_nrf/nrf5340dk_nrf5340_cpuapp"],
1446 "toolchain_file": ["toolchain_GNUARM.cmake"],
1447 "lib_model": [False],
1448 "isolation_level": ["1"],
1449 "test_regression": [False],
1450 "test_psa_api": ["OFF"],
1451 "cmake_build_type": ["Debug"],
1452 "with_otp": ["off"],
1453 "with_bl2": [True],
1454 "with_ns": [False],
1455 "profile": [""],
1456 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001457 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001458 "lazy": ["OFF"],
1459 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001460 },
1461 "common_params": _common_tfm_builder_cfg,
1462 "invalid": _common_tfm_invalid_configs + []
1463 }
1464
1465config_nrf9160dk = {"seed_params": {
1466 "tfm_platform": ["nordic_nrf/nrf9160dk_nrf9160"],
1467 "toolchain_file": ["toolchain_GNUARM.cmake"],
1468 "lib_model": [False],
1469 "isolation_level": ["1"],
1470 "test_regression": [False],
1471 "test_psa_api": ["OFF"],
1472 "cmake_build_type": ["Debug"],
1473 "with_otp": ["off"],
1474 "with_bl2": [True],
1475 "with_ns": [False],
1476 "profile": [""],
1477 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001478 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001479 "lazy": ["OFF"],
1480 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001481 },
1482 "common_params": _common_tfm_builder_cfg,
1483 "invalid": _common_tfm_invalid_configs + []
1484 }
1485
1486config_m2351 = {"seed_params": {
1487 "tfm_platform": ["nuvoton/m2351"],
1488 "toolchain_file": ["toolchain_GNUARM.cmake"],
1489 "lib_model": [False],
1490 "isolation_level": ["1"],
1491 "test_regression": [False],
1492 "test_psa_api": ["OFF"],
1493 "cmake_build_type": ["Release"],
1494 "with_otp": ["off"],
1495 "with_bl2": [True],
1496 "with_ns": [False],
1497 "profile": [""],
1498 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001499 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001500 "lazy": ["OFF"],
1501 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001502 },
1503 "common_params": _common_tfm_builder_cfg,
1504 "invalid": _common_tfm_invalid_configs + []
1505 }
1506
1507config_m2354 = {"seed_params": {
1508 "tfm_platform": ["nuvoton/m2354"],
1509 "toolchain_file": ["toolchain_GNUARM.cmake"],
1510 "lib_model": [False],
1511 "isolation_level": ["1"],
1512 "test_regression": [False],
1513 "test_psa_api": ["OFF"],
1514 "cmake_build_type": ["Debug"],
1515 "with_otp": ["off"],
1516 "with_bl2": [True],
1517 "with_ns": [False],
1518 "profile": [""],
1519 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001520 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001521 "lazy": ["OFF"],
1522 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001523 },
1524 "common_params": _common_tfm_builder_cfg,
1525 "invalid": _common_tfm_invalid_configs + []
1526 }
1527
1528config_b_u585i_iot02a = {"seed_params": {
1529 "tfm_platform": ["stm/b_u585i_iot02a"],
1530 "toolchain_file": ["toolchain_GNUARM.cmake"],
1531 "lib_model": [False],
1532 "isolation_level": ["1"],
1533 "test_regression": [False],
1534 "test_psa_api": ["OFF"],
1535 "cmake_build_type": ["Release"],
1536 "with_otp": ["off"],
1537 "with_bl2": [True],
1538 "with_ns": [False],
1539 "profile": [""],
1540 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001541 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001542 "lazy": ["OFF"],
1543 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001544 },
1545 "common_params": _common_tfm_builder_cfg,
1546 "invalid": _common_tfm_invalid_configs + []
1547 }
1548
1549config_nucleo_l552ze_q = {"seed_params": {
1550 "tfm_platform": ["stm/nucleo_l552ze_q"],
1551 "toolchain_file": ["toolchain_GNUARM.cmake"],
1552 "lib_model": [False],
1553 "isolation_level": ["1"],
1554 "test_regression": [False],
1555 "test_psa_api": ["OFF"],
1556 "cmake_build_type": ["Release"],
1557 "with_otp": ["off"],
1558 "with_bl2": [True],
1559 "with_ns": [False],
1560 "profile": [""],
1561 "partition_ps": ["ON"],
Feder Liang567e8c22021-10-26 14:16:21 +08001562 "fp": ["0"],
Xinyu Zhangfd2e1152021-12-17 18:09:01 +08001563 "lazy": ["OFF"],
1564 "extra_params": [""]
Xinyu Zhang38b76742021-11-11 13:57:56 +08001565 },
1566 "common_params": _common_tfm_builder_cfg,
1567 "invalid": _common_tfm_invalid_configs + []
1568 }
1569
Karl Zhangaff558a2020-05-15 14:28:23 +01001570_builtin_configs = {
Karl Zhang14573bc2020-06-08 09:23:21 +08001571 #release test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001572 "tfm_test": config_tfm_test,
1573 "tfm_test2": config_tfm_test2,
Karl Zhang14573bc2020-06-08 09:23:21 +08001574 "tfm_profile": config_tfm_profile,
Karl Zhangaff558a2020-05-15 14:28:23 +01001575 "tfm_test_otp": config_tfm_test_OTP,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001576 "tfm_nsce": config_nsce,
1577 "tfm_mmio": config_mmio,
Karl Zhangaff558a2020-05-15 14:28:23 +01001578 "psa_api": config_PSA_API,
1579 "psa_api_otp": config_PSA_API_OTP,
1580 "psa_ff": config_PSA_FF,
1581 "psa_ff_otp": config_PSA_FF_OTP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001582 "tfm_psoc64": config_PSOC64,
Arthur She19c0e1a2021-06-02 11:06:19 -07001583 "tfm_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001584 "tfm_lpcxpresso55s69": config_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001585 "tfm_fp": config_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001586
1587 #nightly test group
1588 "nightly_test": config_nightly,
Xinyu Zhang050e39a2021-11-16 14:38:15 +08001589 "nightly_nsce": config_nsce,
1590 "nightly_mmio": config_mmio,
Karl Zhang14573bc2020-06-08 09:23:21 +08001591 "nightly_profile": config_nightly_profile,
1592 "nightly_psa_api": config_nightly_PSA_API,
1593 "nightly_ff": config_nightly_PSA_FF,
1594 "nightly_otp": config_nightly_OTP,
Xinyu Zhangbbc04132021-11-02 16:02:18 +08001595 "nightly_psoc64": config_nightly_psoc64,
Xinyu Zhang331c47c2021-12-24 10:18:02 +08001596 "nightly_stm32l562e_dk": config_STM32L562E_DK,
Arthur Shef3657742021-09-07 14:23:18 -07001597 "nightly_lpcxpresso55s69": config_nightly_LPCXPRESSO55S69,
Feder Liang567e8c22021-10-26 14:16:21 +08001598 "nightly_fp":config_nightly_FP,
Karl Zhang14573bc2020-06-08 09:23:21 +08001599
1600 #per patch test group
1601 "pp_test": config_pp_test,
1602 "pp_OTP": config_pp_OTP,
1603 "pp_PSA_API": config_pp_PSA_API,
1604 "pp_psoc64": config_pp_PSoC64,
1605
Xinyu Zhangf25856a2021-06-17 14:06:46 +08001606 #code coverage test group
1607 "coverage_an519": config_cov_an519,
1608 "coverage_an521": config_cov_an521,
1609
Xinyu Zhang38b76742021-11-11 13:57:56 +08001610 #extra build group
1611 "arm_corstone1000": config_corstone1000,
1612 "arm_an547": config_an547,
1613 "arm_corstone_polaris": config_corstone_polaris,
1614 "cypress_psoc64": config_PSOC64,
1615 "laird_bl5340": config_bl5340,
1616 "nordic_nrf5340dk": config_nrf5340dk,
1617 "nordic_nrf9160dk": config_nrf9160dk,
1618 "nuvoton_m2351": config_m2351,
1619 "nuvoton_m2354": config_m2354,
1620 "nxp_lpcxpresso55s69": config_LPCXPRESSO55S69,
1621 "stm_b_u585i_iot02a": config_b_u585i_iot02a,
1622 "stm_nucleo_l552ze_q": config_nucleo_l552ze_q,
1623 "stm_stm32l562e_dk": config_STM32L562E_DK,
1624
Karl Zhang14573bc2020-06-08 09:23:21 +08001625 #full test group in the old CI
Karl Zhangaff558a2020-05-15 14:28:23 +01001626 "full": config_full,
Karl Zhang14573bc2020-06-08 09:23:21 +08001627
1628 #specific test group
Karl Zhangaff558a2020-05-15 14:28:23 +01001629 "an524": config_AN524,
Minos Galanakisea421232019-06-20 17:11:28 +01001630 "an521": config_AN521,
Karl Zhang14573bc2020-06-08 09:23:21 +08001631 "an521_psa_api": config_AN521_PSA_API,
1632 "an521_psa_ipc": config_AN521_PSA_IPC,
Minos Galanakisea421232019-06-20 17:11:28 +01001633 "an519": config_AN519,
Minos Galanakisea421232019-06-20 17:11:28 +01001634 "musca_b1": config_MUSCA_B1,
Mark Horvath8d281cd2020-12-07 15:20:26 +01001635 "musca_b1_se": config_MUSCA_B1_SE,
Karl Zhangeffed972020-06-30 15:48:01 +08001636 "musca_s1": config_MUSCA_S1,
Karl Zhang96dfe2d2020-05-11 11:31:40 +08001637 "psoc64": config_PSOC64,
Xinyu Zhang6afdd612021-10-12 17:07:32 +08001638 "corstone1000": config_corstone1000,
Minos Galanakisea421232019-06-20 17:11:28 +01001639 "ipc": config_IPC,
1640 "doxygen": config_doxygen,
Dean Birch4c6ad622020-03-13 11:28:03 +00001641 "debug": config_debug,
Karl Zhangaff558a2020-05-15 14:28:23 +01001642 "release": config_release,
Matthew Hartfb6fd362020-03-04 21:03:59 +00001643 "debug": config_debug,
Karl Zhang14573bc2020-06-08 09:23:21 +08001644
1645 #DevOps team test group
Matthew Hartfb6fd362020-03-04 21:03:59 +00001646 "lava_debug": config_lava_debug,
Xinyu Zhanga1000582020-12-04 15:25:24 +08001647 "ci": config_ci}
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001648
1649if __name__ == '__main__':
1650 import os
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +01001651
Minos Galanakisea421232019-06-20 17:11:28 +01001652 # Default behavior is to export refference config when called
1653 _dir = os.getcwd()
1654 from utils import save_json
1655 for _cname, _cfg in _builtin_configs.items():
1656 _fname = os.path.join(_dir, _cname + ".json")
1657 print("Exporting config %s" % _fname)
1658 save_json(_fname, _cfg)