Clone of official tools

Committer:
screamer
Date:
Thu May 19 19:44:41 2016 +0100
Revision:
0:66f3b5499f7f
Initial revision

Who changed what in which revision?

UserRevisionLine numberNew contents of line
screamer 0:66f3b5499f7f 1 """
screamer 0:66f3b5499f7f 2 mbed SDK
screamer 0:66f3b5499f7f 3 Copyright (c) 2011-2013 ARM Limited
screamer 0:66f3b5499f7f 4
screamer 0:66f3b5499f7f 5 Licensed under the Apache License, Version 2.0 (the "License");
screamer 0:66f3b5499f7f 6 you may not use this file except in compliance with the License.
screamer 0:66f3b5499f7f 7 You may obtain a copy of the License at
screamer 0:66f3b5499f7f 8
screamer 0:66f3b5499f7f 9 http://www.apache.org/licenses/LICENSE-2.0
screamer 0:66f3b5499f7f 10
screamer 0:66f3b5499f7f 11 Unless required by applicable law or agreed to in writing, software
screamer 0:66f3b5499f7f 12 distributed under the License is distributed on an "AS IS" BASIS,
screamer 0:66f3b5499f7f 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
screamer 0:66f3b5499f7f 14 See the License for the specific language governing permissions and
screamer 0:66f3b5499f7f 15 limitations under the License.
screamer 0:66f3b5499f7f 16 """
screamer 0:66f3b5499f7f 17 from tools.targets import TARGETS
screamer 0:66f3b5499f7f 18
screamer 0:66f3b5499f7f 19 DEFAULT_SUPPORT = {}
screamer 0:66f3b5499f7f 20 CORTEX_ARM_SUPPORT = {}
screamer 0:66f3b5499f7f 21
screamer 0:66f3b5499f7f 22 for target in TARGETS:
screamer 0:66f3b5499f7f 23 DEFAULT_SUPPORT[target.name] = target.supported_toolchains
screamer 0:66f3b5499f7f 24
screamer 0:66f3b5499f7f 25 if target.core.startswith('Cortex'):
screamer 0:66f3b5499f7f 26 CORTEX_ARM_SUPPORT[target.name] = [t for t in target.supported_toolchains
screamer 0:66f3b5499f7f 27 if (t=='ARM' or t=='uARM')]