mirror of https://github.com/ARMmbed/mbed-os.git
adds --custom-targets argument anywhere extract_mcus is called
parent
1a8844e8ed
commit
83d679ae38
|
@ -53,6 +53,9 @@ if __name__ == '__main__':
|
|||
parser.add_argument("--source", dest="source_dir", type=argparse_filestring_type,
|
||||
default=None, help="The source (input) directory", action="append")
|
||||
|
||||
parser.add_argument("--custom-targets", dest="custom_targets_directory", type=argparse_filestring_type,
|
||||
default=None, help="Specify directory containing custom_targets.json", action="append")
|
||||
|
||||
parser.add_argument("--build", dest="build_dir", type=argparse_dir_not_parent(ROOT),
|
||||
default=None, help="The build (output) directory")
|
||||
|
||||
|
|
|
@ -68,6 +68,7 @@ class MbedExtendedArgs(MainArgumentParser):
|
|||
parser.add_argument('-m', '--mcu')
|
||||
parser.add_argument('-t', '--toolchain')
|
||||
parser.add_argument('--source', nargs='+', dest='source_dir')
|
||||
parser.add_argument('--custom-targets', dest='custom_targets_directory')
|
||||
parser.add_argument('--build')
|
||||
exclusions.append('payload')
|
||||
super(MbedExtendedArgs, self)._addCreateArgs(parser, exclusions)
|
||||
|
|
|
@ -39,6 +39,11 @@ if __name__ == '__main__':
|
|||
"--source", dest="source_dir", type=argparse_filestring_type,
|
||||
required=True, default=[], help="The source (input) directory",
|
||||
action="append")
|
||||
parser.add_argument(
|
||||
"--custom-targets", dest="custom_targets_directory",
|
||||
type=argparse_filestring_type, default=[],
|
||||
help="Specify directory containing custom_targets.json",
|
||||
action="append")
|
||||
parser.add_argument(
|
||||
"--prefix", dest="prefix", action="append", default=[],
|
||||
help="Restrict listing to parameters that have this prefix")
|
||||
|
|
|
@ -202,6 +202,14 @@ if __name__ == '__main__':
|
|||
action="append",
|
||||
help="The source (input) directory"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--custom-targets",
|
||||
dest="custom_targets_directory",
|
||||
type=argparse_filestring_type,
|
||||
default=None,
|
||||
action="append",
|
||||
help="Specify directory containing custom_targets.json"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--duration",
|
||||
type=int,
|
||||
|
|
|
@ -270,6 +270,15 @@ def get_args(argv):
|
|||
help="The source (input) directory"
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"--custom-targets",
|
||||
action="append",
|
||||
type=argparse_filestring_type,
|
||||
dest="custom_targets_directory",
|
||||
default=[],
|
||||
help="Specify directory containing custom_targets.json"
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
"-D",
|
||||
action="append",
|
||||
|
|
|
@ -65,6 +65,10 @@ if __name__ == '__main__':
|
|||
type=argparse_filestring_type,
|
||||
default=None, help="The source (input) directory (for sources other than tests). Defaults to current directory.", action="append")
|
||||
|
||||
parser.add_argument("--custom-targets", dest="custom_targets_directory",
|
||||
type=argparse_filestring_type,
|
||||
default=None, help="Specify directory containing custom_targets.json", action="append")
|
||||
|
||||
parser.add_argument("--build", dest="build_dir", type=argparse_dir_not_parent(ROOT),
|
||||
default=None, help="The build (output) directory")
|
||||
|
||||
|
|
Loading…
Reference in New Issue