Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
| 2 | |
| 3 | """ an521.py: |
| 4 | |
| 5 | Contains AN519 specific configuration variants. Each configuration is |
| 6 | created by a template(defines the expected output of the test) and a |
| 7 | decorated class setting the parameters. The whole scope of this module |
| 8 | is imported in the config map, to avoid keeping a manual list of the |
| 9 | configurations up to date. """ |
| 10 | |
| 11 | from __future__ import print_function |
| 12 | import os |
| 13 | import sys |
| 14 | |
| 15 | __copyright__ = """ |
| 16 | /* |
Karl Zhang | 08681e6 | 2020-10-30 13:56:03 +0800 | [diff] [blame] | 17 | * Copyright (c) 2019-2020, Arm Limited. All rights reserved. |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 18 | * |
| 19 | * SPDX-License-Identifier: BSD-3-Clause |
| 20 | * |
| 21 | */ |
| 22 | """ |
Karl Zhang | 08681e6 | 2020-10-30 13:56:03 +0800 | [diff] [blame] | 23 | |
| 24 | __author__ = "tf-m@lists.trustedfirmware.org" |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 25 | __project__ = "Trusted Firmware-M Open CI" |
Xinyu Zhang | 06286a9 | 2021-07-22 14:00:51 +0800 | [diff] [blame] | 26 | __version__ = "1.4.0" |
Minos Galanakis | ea42123 | 2019-06-20 17:11:28 +0100 | [diff] [blame] | 27 | |
| 28 | try: |
| 29 | from tfm_ci_pylib.fastmodel_wrapper import FastmodelConfigMap |
| 30 | from tfm_ci_pylib.fastmodel_wrapper import config_variant |
| 31 | |
| 32 | from tfm_ci_pylib.fastmodel_wrapper import \ |
| 33 | template_default_config, template_regression_config, \ |
| 34 | template_coreipc_config, template_coreipctfmlevel2_config |
| 35 | except ImportError: |
| 36 | dir_path = os.path.dirname(os.path.realpath(__file__)) |
| 37 | sys.path.append(os.path.join(dir_path, "../")) |
| 38 | from tfm_ci_pylib.fastmodel_wrapper import FastmodelConfigMap |
| 39 | from tfm_ci_pylib.fastmodel_wrapper import config_variant |
| 40 | from tfm_ci_pylib.fastmodel_wrapper import \ |
| 41 | template_default_config, template_regression_config, \ |
| 42 | template_coreipc_config, template_coreipctfmlevel2_config |
| 43 | # ===================== AN521 Configuration Classes ====================== |
| 44 | # Configurations will be dynamically defined |
| 45 | |
| 46 | # ===================== Default Config ====================== |
| 47 | |
| 48 | |
| 49 | @config_variant(platform="AN519", |
| 50 | compiler="ARMCLANG", |
| 51 | build_type="Debug", |
| 52 | bootloader="BL2") |
| 53 | class an519_armclang_configdefault_debug_bl2(template_default_config): |
| 54 | pass |
| 55 | |
| 56 | |
| 57 | @config_variant(platform="AN519", |
| 58 | compiler="GNUARM", |
| 59 | build_type="Debug", |
| 60 | bootloader="BL2") |
| 61 | class an519_gnuarm_configdefault_debug_bl2(template_default_config): |
| 62 | pass |
| 63 | |
| 64 | |
| 65 | @config_variant(platform="AN519", |
| 66 | compiler="ARMCLANG", |
| 67 | build_type="Debug", |
| 68 | bootloader="NOBL2") |
| 69 | class an519_armclang_configdefault_debug_nobl2(template_default_config): |
| 70 | pass |
| 71 | |
| 72 | |
| 73 | @config_variant(platform="AN519", |
| 74 | compiler="GNUARM", |
| 75 | build_type="Debug", |
| 76 | bootloader="NOBL2") |
| 77 | class an519_gnuarm_configdefault_debug_nobl2(template_default_config): |
| 78 | pass |
| 79 | |
| 80 | |
| 81 | @config_variant(platform="AN519", |
| 82 | compiler="ARMCLANG", |
| 83 | build_type="Release", |
| 84 | bootloader="BL2") |
| 85 | class an519_armclang_configdefault_release_bl2(template_default_config): |
| 86 | pass |
| 87 | |
| 88 | |
| 89 | @config_variant(platform="AN519", |
| 90 | compiler="GNUARM", |
| 91 | build_type="Release", |
| 92 | bootloader="BL2") |
| 93 | class an519_gnuarm_configdefault_release_bl2(template_default_config): |
| 94 | pass |
| 95 | |
| 96 | |
| 97 | @config_variant(platform="AN519", |
| 98 | compiler="ARMCLANG", |
| 99 | build_type="Release", |
| 100 | bootloader="NOBL2") |
| 101 | class an519_armclang_configdefault_release_nobl2(template_default_config): |
| 102 | pass |
| 103 | |
| 104 | |
| 105 | @config_variant(platform="AN519", |
| 106 | compiler="GNUARM", |
| 107 | build_type="Release", |
| 108 | bootloader="NOBL2") |
| 109 | class an519_gnuarm_configdefault_release_nobl2(template_default_config): |
| 110 | pass |
| 111 | |
| 112 | # ===================== Regressions Config ====================== |
| 113 | |
| 114 | |
| 115 | @config_variant(platform="AN519", |
| 116 | compiler="ARMCLANG", |
| 117 | build_type="Debug", |
| 118 | bootloader="BL2") |
| 119 | class an519_armclang_configregression_debug_bl2(template_regression_config): |
| 120 | pass |
| 121 | |
| 122 | |
| 123 | @config_variant(platform="AN519", |
| 124 | compiler="GNUARM", |
| 125 | build_type="Debug", |
| 126 | bootloader="BL2") |
| 127 | class an519_gnuarm_configregression_debug_bl2(template_regression_config): |
| 128 | pass |
| 129 | |
| 130 | |
| 131 | @config_variant(platform="AN519", |
| 132 | compiler="ARMCLANG", |
| 133 | build_type="Debug", |
| 134 | bootloader="NOBL2") |
| 135 | class an519_armclang_configregression_debug_nobl2(template_regression_config): |
| 136 | pass |
| 137 | |
| 138 | |
| 139 | @config_variant(platform="AN519", |
| 140 | compiler="GNUARM", |
| 141 | build_type="Debug", |
| 142 | bootloader="NOBL2") |
| 143 | class an519_gnuarm_configregression_debug_nobl2(template_regression_config): |
| 144 | pass |
| 145 | |
| 146 | |
| 147 | @config_variant(platform="AN519", |
| 148 | compiler="ARMCLANG", |
| 149 | build_type="Release", |
| 150 | bootloader="BL2") |
| 151 | class an519_armclang_configregression_release_bl2(template_regression_config): |
| 152 | pass |
| 153 | |
| 154 | |
| 155 | @config_variant(platform="AN519", |
| 156 | compiler="GNUARM", |
| 157 | build_type="Release", |
| 158 | bootloader="BL2") |
| 159 | class an519_gnuarm_configregression_release_bl2(template_regression_config): |
| 160 | pass |
| 161 | |
| 162 | |
| 163 | @config_variant(platform="AN519", |
| 164 | compiler="ARMCLANG", |
| 165 | build_type="Release", |
| 166 | bootloader="NOBL2") |
| 167 | class an519_armclang_configregression_release_nobl2( |
| 168 | template_regression_config): |
| 169 | pass |
| 170 | |
| 171 | |
| 172 | @config_variant(platform="AN519", |
| 173 | compiler="GNUARM", |
| 174 | build_type="Release", |
| 175 | bootloader="NOBL2") |
| 176 | class an519_gnuarm_configregression_release_nobl2(template_regression_config): |
| 177 | pass |
| 178 | |
| 179 | # ===================== CoreIPC Config ====================== |
| 180 | |
| 181 | |
| 182 | @config_variant(platform="AN519", |
| 183 | compiler="ARMCLANG", |
| 184 | build_type="Debug", |
| 185 | bootloader="BL2") |
| 186 | class an519_armclang_configcoreipc_debug_bl2(template_coreipc_config): |
| 187 | |
| 188 | pass |
| 189 | |
| 190 | |
| 191 | @config_variant(platform="AN519", |
| 192 | compiler="ARMCLANG", |
| 193 | build_type="Debug", |
| 194 | bootloader="NOBL2") |
| 195 | class an519_armclang_configcoreipc_debug_nobl2(template_coreipc_config): |
| 196 | pass |
| 197 | |
| 198 | |
| 199 | @config_variant(platform="AN519", |
| 200 | compiler="ARMCLANG", |
| 201 | build_type="Release", |
| 202 | bootloader="BL2") |
| 203 | class an519_armclang_configcoreipc_release_bl2(template_coreipc_config): |
| 204 | |
| 205 | pass |
| 206 | |
| 207 | |
| 208 | @config_variant(platform="AN519", |
| 209 | compiler="ARMCLANG", |
| 210 | build_type="Release", |
| 211 | bootloader="NOBL2") |
| 212 | class an519_armclang_configcoreipc_release_nobl2(template_coreipc_config): |
| 213 | pass |
| 214 | |
| 215 | |
| 216 | @config_variant(platform="AN519", |
| 217 | compiler="GNUARM", |
| 218 | build_type="Debug", |
| 219 | bootloader="BL2") |
| 220 | class an519_gnuarm_configcoreipc_debug_bl2(template_coreipc_config): |
| 221 | |
| 222 | pass |
| 223 | |
| 224 | |
| 225 | @config_variant(platform="AN519", |
| 226 | compiler="GNUARM", |
| 227 | build_type="Debug", |
| 228 | bootloader="NOBL2") |
| 229 | class an519_gnuarm_configcoreipc_debug_nobl2(template_coreipc_config): |
| 230 | pass |
| 231 | |
| 232 | |
| 233 | @config_variant(platform="AN519", |
| 234 | compiler="GNUARM", |
| 235 | build_type="Release", |
| 236 | bootloader="BL2") |
| 237 | class an519_gnuarm_configcoreipc_release_bl2(template_coreipc_config): |
| 238 | |
| 239 | pass |
| 240 | |
| 241 | |
| 242 | @config_variant(platform="AN519", |
| 243 | compiler="GNUARM", |
| 244 | build_type="Release", |
| 245 | bootloader="NOBL2") |
| 246 | class an519_gnuarm_configcoreipc_release_nobl2(template_coreipc_config): |
| 247 | pass |
| 248 | |
| 249 | # ===================== CoreIPCTfmLevel2 Config ====================== |
| 250 | |
| 251 | |
| 252 | @config_variant(platform="AN519", |
| 253 | compiler="ARMCLANG", |
| 254 | build_type="Debug", |
| 255 | bootloader="BL2") |
| 256 | class an519_armclang_configcoreipctfmlevel2_debug_bl2(template_coreipctfmlevel2_config): |
| 257 | pass |
| 258 | |
| 259 | |
| 260 | @config_variant(platform="AN519", |
| 261 | compiler="ARMCLANG", |
| 262 | build_type="Debug", |
| 263 | bootloader="NOBL2") |
| 264 | class an519_armclang_configcoreipctfmlevel2_debug_nobl2(template_coreipctfmlevel2_config): |
| 265 | pass |
| 266 | |
| 267 | |
| 268 | @config_variant(platform="AN519", |
| 269 | compiler="ARMCLANG", |
| 270 | build_type="Release", |
| 271 | bootloader="BL2") |
| 272 | class an519_armclang_configcoreipctfmlevel2_release_bl2(template_coreipctfmlevel2_config): |
| 273 | pass |
| 274 | |
| 275 | |
| 276 | @config_variant(platform="AN519", |
| 277 | compiler="ARMCLANG", |
| 278 | build_type="Release", |
| 279 | bootloader="NOBL2") |
| 280 | class an519_armclang_configcoreipctfmlevel2_release_nobl2(template_coreipctfmlevel2_config): |
| 281 | pass |
| 282 | |
| 283 | |
| 284 | @config_variant(platform="AN519", |
| 285 | compiler="GNUARM", |
| 286 | build_type="Debug", |
| 287 | bootloader="BL2") |
| 288 | class an519_gnuarm_configcoreipctfmlevel2_debug_bl2(template_coreipctfmlevel2_config): |
| 289 | pass |
| 290 | |
| 291 | |
| 292 | @config_variant(platform="AN519", |
| 293 | compiler="GNUARM", |
| 294 | build_type="Debug", |
| 295 | bootloader="NOBL2") |
| 296 | class an519_gnuarm_configcoreipctfmlevel2_debug_nobl2(template_coreipctfmlevel2_config): |
| 297 | pass |
| 298 | |
| 299 | |
| 300 | @config_variant(platform="AN519", |
| 301 | compiler="GNUARM", |
| 302 | build_type="Release", |
| 303 | bootloader="BL2") |
| 304 | class an519_gnuarm_configcoreipctfmlevel2_release_bl2(template_coreipctfmlevel2_config): |
| 305 | pass |
| 306 | |
| 307 | |
| 308 | @config_variant(platform="AN519", |
| 309 | compiler="GNUARM", |
| 310 | build_type="Release", |
| 311 | bootloader="NOBL2") |
| 312 | class an519_gnuarm_configcoreipctfmlevel2_release_nobl2(template_coreipctfmlevel2_config): |
| 313 | pass |
| 314 | |
| 315 | AN519 = FastmodelConfigMap(globals(), "AN519") |
| 316 | |
| 317 | if __name__ == "__main__": |
| 318 | pass |