|
58 | 58 | # Parse Options
|
59 | 59 | parser = get_default_options_parser(add_app_config=True)
|
60 | 60 | group = parser.add_mutually_exclusive_group(required=False)
|
61 |
| - group.add_argument("-p", |
62 |
| - type=argparse_many(test_known), |
63 |
| - dest="program", |
64 |
| - help="The index of the desired test program: [0-%d]" % (len(TESTS)-1)) |
65 |
| - |
66 |
| - group.add_argument("-n", |
67 |
| - type=argparse_many(test_name_known), |
68 |
| - dest="program", |
69 |
| - help="The name of the desired test program") |
70 |
| - |
71 |
| - parser.add_argument("-j", "--jobs", |
72 |
| - type=int, |
73 |
| - dest="jobs", |
74 |
| - default=0, |
75 |
| - help="Number of concurrent jobs. Default: 0/auto (based on host machine's number of CPUs)") |
76 |
| - |
77 |
| - parser.add_argument("-v", "--verbose", |
78 |
| - action="store_true", |
79 |
| - dest="verbose", |
80 |
| - default=False, |
81 |
| - help="Verbose diagnostic output") |
82 |
| - |
83 |
| - parser.add_argument("--silent", |
84 |
| - action="store_true", |
85 |
| - dest="silent", |
86 |
| - default=False, |
87 |
| - help="Silent diagnostic output (no copy, compile notification)") |
88 |
| - |
89 |
| - parser.add_argument("-D", |
90 |
| - action="append", |
91 |
| - dest="macros", |
92 |
| - help="Add a macro definition") |
93 |
| - |
94 |
| - group.add_argument("-S", "--supported-toolchains", |
95 |
| - dest="supported_toolchains", |
96 |
| - default=False, |
97 |
| - const="matrix", |
98 |
| - choices=["matrix", "toolchains", "targets"], |
99 |
| - nargs="?", |
100 |
| - help="Displays supported matrix of MCUs and toolchains") |
101 |
| - |
102 |
| - parser.add_argument('-f', '--filter', |
103 |
| - dest='general_filter_regex', |
104 |
| - default=None, |
105 |
| - help='For some commands you can use filter to filter out results') |
| 61 | + group.add_argument( |
| 62 | + "-p", |
| 63 | + type=argparse_many(test_known), |
| 64 | + dest="program", |
| 65 | + help="The index of the desired test program: [0-%d]" % (len(TESTS)-1)) |
| 66 | + |
| 67 | + group.add_argument( |
| 68 | + "-n", |
| 69 | + type=argparse_many(test_name_known), |
| 70 | + dest="program", |
| 71 | + help="The name of the desired test program") |
| 72 | + |
| 73 | + parser.add_argument( |
| 74 | + "-j", "--jobs", |
| 75 | + type=int, |
| 76 | + dest="jobs", |
| 77 | + default=0, |
| 78 | + help="Number of concurrent jobs. Default: 0/auto (based on host machine's number of CPUs)") |
| 79 | + |
| 80 | + parser.add_argument( |
| 81 | + "-v", "--verbose", |
| 82 | + action="store_true", |
| 83 | + dest="verbose", |
| 84 | + default=False, |
| 85 | + help="Verbose diagnostic output") |
| 86 | + |
| 87 | + parser.add_argument( |
| 88 | + "--silent", |
| 89 | + action="store_true", |
| 90 | + dest="silent", |
| 91 | + default=False, |
| 92 | + help="Silent diagnostic output (no copy, compile notification)") |
| 93 | + |
| 94 | + parser.add_argument( |
| 95 | + "-D", |
| 96 | + action="append", |
| 97 | + dest="macros", |
| 98 | + help="Add a macro definition") |
| 99 | + |
| 100 | + group.add_argument( |
| 101 | + "-S", "--supported-toolchains", |
| 102 | + dest="supported_toolchains", |
| 103 | + default=False, |
| 104 | + const="matrix", |
| 105 | + choices=["matrix", "toolchains", "targets"], |
| 106 | + nargs="?", |
| 107 | + help="Displays supported matrix of MCUs and toolchains") |
| 108 | + |
| 109 | + parser.add_argument( |
| 110 | + '-f', '--filter', |
| 111 | + dest='general_filter_regex', |
| 112 | + default=None, |
| 113 | + help='For some commands you can use filter to filter out results') |
| 114 | + |
| 115 | + parser.add_argument( |
| 116 | + "--stats-depth", |
| 117 | + type=int, |
| 118 | + dest="stats_depth", |
| 119 | + default=2, |
| 120 | + help="Depth level for static memory report") |
106 | 121 |
|
107 | 122 | # Local run
|
108 | 123 | parser.add_argument("--automated", action="store_true", dest="automated",
|
|
277 | 292 | inc_dirs=[dirname(MBED_LIBRARIES)],
|
278 | 293 | build_profile=extract_profile(parser,
|
279 | 294 | options,
|
280 |
| - toolchain)) |
| 295 | + toolchain), |
| 296 | + stats_depth=options.stats_depth) |
281 | 297 | print 'Image: %s'% bin_file
|
282 | 298 |
|
283 | 299 | if options.disk:
|
|
322 | 338 | traceback.print_exc(file=sys.stdout)
|
323 | 339 | else:
|
324 | 340 | print "[ERROR] %s" % str(e)
|
325 |
| - |
| 341 | + |
326 | 342 | sys.exit(1)
|
327 | 343 | if options.build_data:
|
328 | 344 | merge_build_data(options.build_data, build_data_blob, "application")
|
0 commit comments