mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #2172 from theotherjimmy/enfoce-supported-toolchains
[tools-build.py]Enforce supported toolchainspull/2162/merge
commit
3d20b10b4d
|
@ -231,13 +231,17 @@ if __name__ == '__main__':
|
||||||
for toolchain in toolchains:
|
for toolchain in toolchains:
|
||||||
for target in targets:
|
for target in targets:
|
||||||
tt_id = "%s::%s" % (toolchain, target)
|
tt_id = "%s::%s" % (toolchain, target)
|
||||||
|
if toolchain not in TARGET_MAP[target].supported_toolchains:
|
||||||
|
# Log this later
|
||||||
|
print "%s skipped: toolchain not supported" % tt_id
|
||||||
|
skipped.append(tt_id)
|
||||||
|
else:
|
||||||
try:
|
try:
|
||||||
mcu = TARGET_MAP[target]
|
mcu = TARGET_MAP[target]
|
||||||
if options.source_dir:
|
if options.source_dir:
|
||||||
lib_build_res = build_library(options.source_dir, options.build_dir, mcu, toolchain,
|
lib_build_res = build_library(options.source_dir, options.build_dir, mcu, toolchain,
|
||||||
options=options.options,
|
options=options.options,
|
||||||
extra_verbose=options.extra_verbose_notify,
|
extra_verbose=options.extra_verbose_notify,
|
||||||
notify=notify,
|
|
||||||
verbose=options.verbose,
|
verbose=options.verbose,
|
||||||
silent=options.silent,
|
silent=options.silent,
|
||||||
jobs=options.jobs,
|
jobs=options.jobs,
|
||||||
|
@ -249,7 +253,6 @@ if __name__ == '__main__':
|
||||||
lib_build_res = build_mbed_libs(mcu, toolchain,
|
lib_build_res = build_mbed_libs(mcu, toolchain,
|
||||||
options=options.options,
|
options=options.options,
|
||||||
extra_verbose=options.extra_verbose_notify,
|
extra_verbose=options.extra_verbose_notify,
|
||||||
notify=notify,
|
|
||||||
verbose=options.verbose,
|
verbose=options.verbose,
|
||||||
silent=options.silent,
|
silent=options.silent,
|
||||||
jobs=options.jobs,
|
jobs=options.jobs,
|
||||||
|
@ -260,7 +263,6 @@ if __name__ == '__main__':
|
||||||
build_lib(lib_id, mcu, toolchain,
|
build_lib(lib_id, mcu, toolchain,
|
||||||
options=options.options,
|
options=options.options,
|
||||||
extra_verbose=options.extra_verbose_notify,
|
extra_verbose=options.extra_verbose_notify,
|
||||||
notify=notify,
|
|
||||||
verbose=options.verbose,
|
verbose=options.verbose,
|
||||||
silent=options.silent,
|
silent=options.silent,
|
||||||
clean=options.clean,
|
clean=options.clean,
|
||||||
|
|
Loading…
Reference in New Issue