Brian Daniels / mbed-tools

Fork of mbed-tools by Morpheus

Committer:
screamer
Date:
Thu Mar 31 10:02:01 2016 +0000
Revision:
6:737522bd471b
Parent:
defaault_settings.py@5:43056a64f319
Fix filenames

Who changed what in which revision?

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