Clone of official tools

Committer:
The Other Jimmy
Date:
Wed Feb 15 13:53:18 2017 -0600
Revision:
35:da9c89f8be7d
Update tools to mbed-os 5.3.5

Who changed what in which revision?

UserRevisionLine numberNew contents of line
The Other Jimmy 35:da9c89f8be7d 1 """
The Other Jimmy 35:da9c89f8be7d 2 mbed SDK
The Other Jimmy 35:da9c89f8be7d 3 Copyright (c) 2011-2013 ARM Limited
The Other Jimmy 35:da9c89f8be7d 4
The Other Jimmy 35:da9c89f8be7d 5 Licensed under the Apache License, Version 2.0 (the "License");
The Other Jimmy 35:da9c89f8be7d 6 you may not use this file except in compliance with the License.
The Other Jimmy 35:da9c89f8be7d 7 You may obtain a copy of the License at
The Other Jimmy 35:da9c89f8be7d 8
The Other Jimmy 35:da9c89f8be7d 9 http://www.apache.org/licenses/LICENSE-2.0
The Other Jimmy 35:da9c89f8be7d 10
The Other Jimmy 35:da9c89f8be7d 11 Unless required by applicable law or agreed to in writing, software
The Other Jimmy 35:da9c89f8be7d 12 distributed under the License is distributed on an "AS IS" BASIS,
The Other Jimmy 35:da9c89f8be7d 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
The Other Jimmy 35:da9c89f8be7d 14 See the License for the specific language governing permissions and
The Other Jimmy 35:da9c89f8be7d 15 limitations under the License.
The Other Jimmy 35:da9c89f8be7d 16 """
The Other Jimmy 35:da9c89f8be7d 17 from os.path import basename
The Other Jimmy 35:da9c89f8be7d 18
The Other Jimmy 35:da9c89f8be7d 19 from tools.export.exporters import Exporter
The Other Jimmy 35:da9c89f8be7d 20
The Other Jimmy 35:da9c89f8be7d 21
The Other Jimmy 35:da9c89f8be7d 22 class ZIP(Exporter):
The Other Jimmy 35:da9c89f8be7d 23 NAME = 'ZIP'
The Other Jimmy 35:da9c89f8be7d 24
The Other Jimmy 35:da9c89f8be7d 25 TARGETS = [
The Other Jimmy 35:da9c89f8be7d 26 ]
The Other Jimmy 35:da9c89f8be7d 27
The Other Jimmy 35:da9c89f8be7d 28 USING_MICROLIB = [
The Other Jimmy 35:da9c89f8be7d 29 ]
The Other Jimmy 35:da9c89f8be7d 30
The Other Jimmy 35:da9c89f8be7d 31 FILE_TYPES = {
The Other Jimmy 35:da9c89f8be7d 32 'c_sources':'1',
The Other Jimmy 35:da9c89f8be7d 33 'cpp_sources':'8',
The Other Jimmy 35:da9c89f8be7d 34 's_sources':'2'
The Other Jimmy 35:da9c89f8be7d 35 }
The Other Jimmy 35:da9c89f8be7d 36
The Other Jimmy 35:da9c89f8be7d 37 TOOLCHAIN = 'ARM'
The Other Jimmy 35:da9c89f8be7d 38
The Other Jimmy 35:da9c89f8be7d 39 def get_toolchain(self):
The Other Jimmy 35:da9c89f8be7d 40 return 'uARM' if (self.target in self.USING_MICROLIB) else 'ARM'
The Other Jimmy 35:da9c89f8be7d 41
The Other Jimmy 35:da9c89f8be7d 42 def generate(self):
The Other Jimmy 35:da9c89f8be7d 43 return True
The Other Jimmy 35:da9c89f8be7d 44