# Path: workspace_tools/targets.py
# TARGET_MAP = {}


import sys
from time import time
from os.path import join, abspath, dirname
from optparse import OptionParser
from workspace_tools.build_api import build_mbed_libs
from workspace_tools.build_api import write_build_report
from workspace_tools.targets import TARGET_MAP
    parser.add_option('-o', '--official', dest="official_only", default=False, action="store_true",
                      help="Build using only the official toolchain for each target")
    parser.add_option("-j", "--jobs", type="int", dest="jobs",
                      default=1, help="Number of concurrent jobs (default 1). Use 0 for auto based on host machine's number of CPUs")
    parser.add_option("-v", "--verbose", action="store_true", dest="verbose",
                      default=False, help="Verbose diagnostic output")
    parser.add_option("-t", "--toolchains", dest="toolchains", help="Use toolchains names separated by comma")

    parser.add_option("-p", "--platforms", dest="platforms", default="", help="Build only for the platform namesseparated by comma")

    parser.add_option("", "--report-build", dest="report_build_file_name", help="Output the build results to an html file")


    options, args = parser.parse_args()
    start = time()
    failures = []
    successes = []
    skips = []
    build_report = []

    platforms = None
    if options.platforms != "":
        platforms = set(options.platforms.split(","))

    for target_name, toolchain_list in OFFICIAL_MBED_LIBRARY_BUILD:
        if platforms is not None and not target_name in platforms:
            print("Excluding %s from release" % target_name)
            continue

        if options.official_only:

# Path: workspace_tools/targets.py
# TARGET_MAP = {}


# Path: workspace_tools/build_release.py
import sys
from time import time
from os.path import join, abspath, dirname
from optparse import OptionParser
from workspace_tools.build_api import build_mbed_libs
from workspace_tools.build_api import write_build_report
from workspace_tools.targets import TARGET_MAP

    parser.add_option('-o', '--official', dest="official_only", default=False, action="store_true",
                      help="Build using only the official toolchain for each target")
    parser.add_option("-j", "--jobs", type="int", dest="jobs",
                      default=1, help="Number of concurrent jobs (default 1). Use 0 for auto based on host machine's number of CPUs")
    parser.add_option("-v", "--verbose", action="store_true", dest="verbose",
                      default=False, help="Verbose diagnostic output")
    parser.add_option("-t", "--toolchains", dest="toolchains", help="Use toolchains names separated by comma")

    parser.add_option("-p", "--platforms", dest="platforms", default="", help="Build only for the platform namesseparated by comma")

    parser.add_option("", "--report-build", dest="report_build_file_name", help="Output the build results to an html file")


    options, args = parser.parse_args()
    start = time()
    failures = []
    successes = []
    skips = []
    build_report = []

    platforms = None
    if options.platforms != "":
        platforms = set(options.platforms.split(","))

    for target_name, toolchain_list in OFFICIAL_MBED_LIBRARY_BUILD:
        if platforms is not None and not target_name in platforms:
            print("Excluding %s from release" % target_name)
            continue

        if options.official_only:

            toolchains = (getattr(TARGET_MAP[target_name], 'default_toolchain', 'ARM'),)