blob: 39436c8f954461460432e8d044d271f5033a2851 [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/*
11 * Copyright (c) 2018-2019, Arm Limited. All rights reserved.
12 *
13 * SPDX-License-Identifier: BSD-3-Clause
14 *
15 */
16 """
17__author__ = "Minos Galanakis"
18__email__ = "minos.galanakis@linaro.org"
19__project__ = "Trusted Firmware-M Open CI"
20__status__ = "stable"
21__version__ = "1.0"
22
23
24# Configure build manager to build several combinations
25config_AN521 = {"platform": ["AN521"],
26 "compiler": ["GNUARM"],
27 "config": ["ConfigRegression",
Edison Aiae966b72019-08-01 10:34:28 +080028 "ConfigDefault"],
Minos Galanakisf4ca6ac2017-12-11 02:39:21 +010029 "build": ["Debug"],
30 "with_mcuboot": [True],
31 # invalid configuations can be added as tuples of adjustable
32 # resolution "AN521" will reject all combinations for that
33 # platform while ("AN521", "GNUARM") will only reject GCC ones
34 "invalid": []
35 }
36
37_builtin_configs = {"AN521_gnuarm_Config_DRC": config_AN521}
38
39if __name__ == '__main__':
40 import os
41 import sys
42 try:
43 from tfm_ci_pylib.utils import export_config_map
44 except ImportError:
45 dir_path = os.path.dirname(os.path.realpath(__file__))
46 sys.path.append(os.path.join(dir_path, "../"))
47 from tfm_ci_pylib.utils import export_config_map
48
49 if len(sys.argv) == 2:
50 if sys.argv[1] == "--export":
51 export_config_map(_builtin_configs)
52 if len(sys.argv) == 3:
53 if sys.argv[1] == "--export":
54 export_config_map(_builtin_configs, sys.argv[2])