|
231 | 231 | for toolchain in toolchains:
|
232 | 232 | for target in targets:
|
233 | 233 | tt_id = "%s::%s" % (toolchain, target)
|
234 |
| - try: |
235 |
| - mcu = TARGET_MAP[target] |
236 |
| - if options.source_dir: |
237 |
| - lib_build_res = build_library(options.source_dir, options.build_dir, mcu, toolchain, |
238 |
| - options=options.options, |
239 |
| - extra_verbose=options.extra_verbose_notify, |
240 |
| - notify=notify, |
241 |
| - verbose=options.verbose, |
242 |
| - silent=options.silent, |
243 |
| - jobs=options.jobs, |
244 |
| - clean=options.clean, |
245 |
| - archive=(not options.no_archive), |
246 |
| - macros=options.macros, |
247 |
| - name=options.artifact_name) |
248 |
| - else: |
249 |
| - lib_build_res = build_mbed_libs(mcu, toolchain, |
250 |
| - options=options.options, |
251 |
| - extra_verbose=options.extra_verbose_notify, |
252 |
| - notify=notify, |
253 |
| - verbose=options.verbose, |
254 |
| - silent=options.silent, |
255 |
| - jobs=options.jobs, |
256 |
| - clean=options.clean, |
257 |
| - macros=options.macros) |
258 |
| - |
259 |
| - for lib_id in libraries: |
260 |
| - build_lib(lib_id, mcu, toolchain, |
261 |
| - options=options.options, |
262 |
| - extra_verbose=options.extra_verbose_notify, |
263 |
| - notify=notify, |
264 |
| - verbose=options.verbose, |
265 |
| - silent=options.silent, |
266 |
| - clean=options.clean, |
267 |
| - macros=options.macros, |
268 |
| - jobs=options.jobs) |
269 |
| - if lib_build_res: |
270 |
| - successes.append(tt_id) |
271 |
| - else: |
272 |
| - skipped.append(tt_id) |
273 |
| - except Exception, e: |
274 |
| - if options.verbose: |
275 |
| - import traceback |
276 |
| - traceback.print_exc(file=sys.stdout) |
277 |
| - sys.exit(1) |
278 |
| - failures.append(tt_id) |
279 |
| - print e |
| 234 | + if toolchain not in TARGET_MAP[target].supported_toolchains: |
| 235 | + # Log this later |
| 236 | + print "%s skipped: toolchain not supported" % tt_id |
| 237 | + skipped.append(tt_id) |
| 238 | + else: |
| 239 | + try: |
| 240 | + mcu = TARGET_MAP[target] |
| 241 | + if options.source_dir: |
| 242 | + lib_build_res = build_library(options.source_dir, options.build_dir, mcu, toolchain, |
| 243 | + options=options.options, |
| 244 | + extra_verbose=options.extra_verbose_notify, |
| 245 | + verbose=options.verbose, |
| 246 | + silent=options.silent, |
| 247 | + jobs=options.jobs, |
| 248 | + clean=options.clean, |
| 249 | + archive=(not options.no_archive), |
| 250 | + macros=options.macros, |
| 251 | + name=options.artifact_name) |
| 252 | + else: |
| 253 | + lib_build_res = build_mbed_libs(mcu, toolchain, |
| 254 | + options=options.options, |
| 255 | + extra_verbose=options.extra_verbose_notify, |
| 256 | + verbose=options.verbose, |
| 257 | + silent=options.silent, |
| 258 | + jobs=options.jobs, |
| 259 | + clean=options.clean, |
| 260 | + macros=options.macros) |
| 261 | + |
| 262 | + for lib_id in libraries: |
| 263 | + build_lib(lib_id, mcu, toolchain, |
| 264 | + options=options.options, |
| 265 | + extra_verbose=options.extra_verbose_notify, |
| 266 | + verbose=options.verbose, |
| 267 | + silent=options.silent, |
| 268 | + clean=options.clean, |
| 269 | + macros=options.macros, |
| 270 | + jobs=options.jobs) |
| 271 | + if lib_build_res: |
| 272 | + successes.append(tt_id) |
| 273 | + else: |
| 274 | + skipped.append(tt_id) |
| 275 | + except Exception, e: |
| 276 | + if options.verbose: |
| 277 | + import traceback |
| 278 | + traceback.print_exc(file=sys.stdout) |
| 279 | + sys.exit(1) |
| 280 | + failures.append(tt_id) |
| 281 | + print e |
280 | 282 |
|
281 | 283 | # Write summary of the builds
|
282 | 284 | print
|
|
0 commit comments