parser.add_argument("-l", "--linker", dest="linker_script", type=argparse_filestring_type, default=None, help="use the specified linker script") options = parser.parse_args() # Only prints matrix of supported toolchains if options.supported_toolchains: if options.supported_toolchains == "matrix": print mcu_toolchain_matrix( platform_filter=options.general_filter_regex) elif options.supported_toolchains == "toolchains": toolchain_list = mcu_toolchain_list() # Only print the lines that matter for line in toolchain_list.split("\n"): if not "mbed" in line: print line elif options.supported_toolchains == "targets": print mcu_target_list() exit(0) # Print available tests in order and exit if options.list_tests is True: print '\n'.join(map(str, sorted(TEST_MAP.values()))) sys.exit() # force program to "0" if a source dir is specified if options.source_dir is not None:
default=None, help="Dump build_data to this file") # Specify a different linker script parser.add_argument("-l", "--linker", dest="linker_script", type=argparse_filestring_type, default=None, help="use the specified linker script") options = parser.parse_args() # Only prints matrix of supported toolchains if options.supported_toolchains: if options.supported_toolchains == "matrix": print(mcu_toolchain_matrix(platform_filter=options.general_filter_regex)) elif options.supported_toolchains == "toolchains": toolchain_list = mcu_toolchain_list() # Only print the lines that matter for line in toolchain_list.split("\n"): if not "mbed" in line: print(line) elif options.supported_toolchains == "targets": print(mcu_target_list()) exit(0) # Print available tests in order and exit if options.list_tests is True: print('\n'.join(map(str, sorted(TEST_MAP.values())))) sys.exit() # force program to "0" if a source dir is specified if options.source_dir is not None: