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