blob: 599e69319acf12db5ab3d23ebb890b17c9296140 [file] [log] [blame]
Minos Galanakisea421232019-06-20 17:11:28 +01001#!/usr/bin/env python3
2
3""" run_fvp_configs.py:
4
5 Using Python clas inheritance model to generate modular and easily to scale
6 configuration models for the run_fpv module. Configuration data is also
7 combined with helper methods. If the file is run as a standalone file,
8 it can save json configuration files to disk if requested by --export
9 directive """
10
11from __future__ import print_function
12
13__copyright__ = """
14/*
Karl Zhang08681e62020-10-30 13:56:03 +080015 * Copyright (c) 2018-2020, Arm Limited. All rights reserved.
Minos Galanakisea421232019-06-20 17:11:28 +010016 *
17 * SPDX-License-Identifier: BSD-3-Clause
18 *
19 */
20 """
Karl Zhang08681e62020-10-30 13:56:03 +080021
22__author__ = "tf-m@lists.trustedfirmware.org"
Minos Galanakisea421232019-06-20 17:11:28 +010023__project__ = "Trusted Firmware-M Open CI"
Xinyu Zhang06286a92021-07-22 14:00:51 +080024__version__ = "1.4.0"
Minos Galanakisea421232019-06-20 17:11:28 +010025
26import sys
27from AN521 import AN521
28from AN519 import AN519
29
30fvp_config_map = AN521 + AN519
31
32if __name__ == "__main__":
33 # Create Json configuration files on user request
34
35 if len(sys.argv) >= 2:
36 if sys.argv[1] == "--export":
37
38 for platform in fvp_config_map.get_object_map().values():
39 for config in platform.values():
40 config.json_to_file()