Clone of official tools
default_settings.py@0:66f3b5499f7f, 2016-05-19 (annotated)
- Committer:
- screamer
- Date:
- Thu May 19 19:44:41 2016 +0100
- Revision:
- 0:66f3b5499f7f
- Child:
- 13:ab47a20b66f0
Initial revision
Who changed what in which revision?
User | Revision | Line number | New 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 | Licensed under the Apache License, Version 2.0 (the "License"); |
screamer | 0:66f3b5499f7f | 5 | you may not use this file except in compliance with the License. |
screamer | 0:66f3b5499f7f | 6 | You may obtain a copy of the License at |
screamer | 0:66f3b5499f7f | 7 | http://www.apache.org/licenses/LICENSE-2.0 |
screamer | 0:66f3b5499f7f | 8 | Unless required by applicable law or agreed to in writing, software |
screamer | 0:66f3b5499f7f | 9 | distributed under the License is distributed on an "AS IS" BASIS, |
screamer | 0:66f3b5499f7f | 10 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
screamer | 0:66f3b5499f7f | 11 | See the License for the specific language governing permissions and |
screamer | 0:66f3b5499f7f | 12 | limitations under the License. |
screamer | 0:66f3b5499f7f | 13 | """ |
screamer | 0:66f3b5499f7f | 14 | |
screamer | 0:66f3b5499f7f | 15 | from os.path import join, abspath, dirname |
screamer | 0:66f3b5499f7f | 16 | import logging |
screamer | 0:66f3b5499f7f | 17 | |
screamer | 0:66f3b5499f7f | 18 | ROOT = abspath(join(dirname(__file__), "..")) |
screamer | 0:66f3b5499f7f | 19 | |
screamer | 0:66f3b5499f7f | 20 | # These default settings have two purposes: |
screamer | 0:66f3b5499f7f | 21 | # 1) Give a template for writing local "private_settings.py" |
screamer | 0:66f3b5499f7f | 22 | # 2) Give default initialization fields for the "toolchains.py" constructors |
screamer | 0:66f3b5499f7f | 23 | |
screamer | 0:66f3b5499f7f | 24 | ############################################################################## |
screamer | 0:66f3b5499f7f | 25 | # Build System Settings |
screamer | 0:66f3b5499f7f | 26 | ############################################################################## |
screamer | 0:66f3b5499f7f | 27 | BUILD_DIR = abspath(join(ROOT, "build")) |
screamer | 0:66f3b5499f7f | 28 | |
screamer | 0:66f3b5499f7f | 29 | # ARM |
screamer | 0:66f3b5499f7f | 30 | ARM_PATH = "C:/Program Files/ARM" |
screamer | 0:66f3b5499f7f | 31 | ARM_BIN = join(ARM_PATH, "bin") |
screamer | 0:66f3b5499f7f | 32 | ARM_INC = join(ARM_PATH, "include") |
screamer | 0:66f3b5499f7f | 33 | ARM_LIB = join(ARM_PATH, "lib") |
screamer | 0:66f3b5499f7f | 34 | |
screamer | 0:66f3b5499f7f | 35 | ARM_CPPLIB = join(ARM_LIB, "cpplib") |
screamer | 0:66f3b5499f7f | 36 | MY_ARM_CLIB = join(ARM_PATH, "lib", "microlib") |
screamer | 0:66f3b5499f7f | 37 | |
screamer | 0:66f3b5499f7f | 38 | # GCC ARM |
screamer | 0:66f3b5499f7f | 39 | GCC_ARM_PATH = "" |
screamer | 0:66f3b5499f7f | 40 | |
screamer | 0:66f3b5499f7f | 41 | # GCC CodeRed |
screamer | 0:66f3b5499f7f | 42 | GCC_CR_PATH = "C:/code_red/RedSuite_4.2.0_349/redsuite/Tools/bin" |
screamer | 0:66f3b5499f7f | 43 | |
screamer | 0:66f3b5499f7f | 44 | # IAR |
screamer | 0:66f3b5499f7f | 45 | IAR_PATH = "C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.0/arm" |
screamer | 0:66f3b5499f7f | 46 | |
screamer | 0:66f3b5499f7f | 47 | # Goanna static analyser. Please overload it in private_settings.py |
screamer | 0:66f3b5499f7f | 48 | GOANNA_PATH = "c:/Program Files (x86)/RedLizards/Goanna Central 3.2.3/bin" |
screamer | 0:66f3b5499f7f | 49 | |
screamer | 0:66f3b5499f7f | 50 | # cppcheck path (command) and output message format |
screamer | 0:66f3b5499f7f | 51 | CPPCHECK_CMD = ["cppcheck", "--enable=all"] |
screamer | 0:66f3b5499f7f | 52 | CPPCHECK_MSG_FORMAT = ["--template=[{severity}] {file}@{line}: {id}:{message}"] |
screamer | 0:66f3b5499f7f | 53 | |
screamer | 0:66f3b5499f7f | 54 | BUILD_OPTIONS = [] |
screamer | 0:66f3b5499f7f | 55 | |
screamer | 0:66f3b5499f7f | 56 | # mbed.org username |
screamer | 0:66f3b5499f7f | 57 | MBED_ORG_USER = "" |
screamer | 0:66f3b5499f7f | 58 | |
screamer | 0:66f3b5499f7f | 59 | ############################################################################## |
screamer | 0:66f3b5499f7f | 60 | # Private Settings |
screamer | 0:66f3b5499f7f | 61 | ############################################################################## |
screamer | 0:66f3b5499f7f | 62 | try: |
screamer | 0:66f3b5499f7f | 63 | # Allow to overwrite the default settings without the need to edit the |
screamer | 0:66f3b5499f7f | 64 | # settings file stored in the repository |
screamer | 0:66f3b5499f7f | 65 | from mbed_settings import * |
screamer | 0:66f3b5499f7f | 66 | except ImportError: |
screamer | 0:66f3b5499f7f | 67 | print '[WARNING] Using default settings. Define your settings in the file "./mbed_settings.py"' |