Update Docstring

pull/2576/head
Jimmy Brisson 2016-08-31 13:54:41 -05:00
parent 64e71e2f3a
commit 41ec0af7aa
1 changed files with 7 additions and 4 deletions

View File

@ -36,9 +36,12 @@ def target_cross_toolchain(allowed_toolchains,
"""Generate pairs of target and toolchains """Generate pairs of target and toolchains
Args: Args:
required_features - the features that must be in the features array of a
target
allowed_toolchains - a list of all possible toolchains allowed_toolchains - a list of all possible toolchains
Kwargs:
features - the features that must be in the features array of a
target
targets - a list of available targets
""" """
for target, toolchains in get_mbed_official_release("5"): for target, toolchains in get_mbed_official_release("5"):
for toolchain in toolchains: for toolchain in toolchains:
@ -66,8 +69,8 @@ def main():
os.chdir(basename(example)) os.chdir(basename(example))
for target, toolchain in target_cross_toolchain(args.toolchains, for target, toolchain in target_cross_toolchain(args.toolchains,
**requirements): **requirements):
proc = subprocess.Popen(["mbed-cli", "compile", "-t", proc = subprocess.Popen(["mbed-cli", "compile", "-t", toolchain,
toolchain, "-m", target]) "-m", target, "--silent"])
proc.wait() proc.wait()
example_name = "{} {} {}".format(basename(example), target, example_name = "{} {} {}".format(basename(example), target,
toolchain) toolchain)