Clone of official tools
Diff: build_api.py
- Revision:
- 27:5461402c33f8
- Parent:
- 24:25bff2709c20
- Child:
- 29:1210849dba19
diff -r ed5e0d4e691e -r 5461402c33f8 build_api.py --- a/build_api.py Thu Aug 04 10:32:55 2016 +0100 +++ b/build_api.py Mon Aug 29 10:55:24 2016 +0100 @@ -326,7 +326,10 @@ targets_json = None for path in src_paths: profile = find_build_profile(path) or profile - targets_json = find_targets_json(path) or targets_json + if profile: + targets_json = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'legacy_targets.json') + else: + targets_json = find_targets_json(path) or targets_json # Apply targets.json to active targets if targets_json: @@ -351,7 +354,6 @@ mbedToolchain.init = init_hook - # Pass all params to the unified prepare_toolchain() toolchain = prepare_toolchain(src_paths, target, toolchain_name, macros=macros, options=options, clean=clean, jobs=jobs,