Skip to content

Commit a215fe4

Browse files
author
Bogdan Marinescu
committed
Fixed build tools
1 parent 35e8c14 commit a215fe4

File tree

4 files changed

+110
-22
lines changed

4 files changed

+110
-22
lines changed

tools/data/__init__.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"""
2+
mbed SDK
3+
Copyright (c) 2011-2013 ARM Limited
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
"""

tools/data/support.py

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

tools/default_settings.py

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
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"'

tools/export/.hgignore

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)