Remove all references and use of code warrior GCC in docs, build and

exporters¦
pull/1535/head
sg- 2016-02-10 23:39:00 -06:00
parent 018cdb928a
commit c7f84c86f7
6 changed files with 33 additions and 87 deletions

View File

@ -329,17 +329,17 @@ Build successes:
* If youre unsure which platforms and toolchains are supported please use switch ```-S``` to print simple matrix of platform to compiler dependencies. * If youre unsure which platforms and toolchains are supported please use switch ```-S``` to print simple matrix of platform to compiler dependencies.
``` ```
$ python build.py -S $ python build.py -S
+-------------------------+-----------+-----------+-----------+-----------+-----------+------------+---------------+ +-------------------------+-----------+-----------+-----------+-----------+-----------+
| Platform | ARM | uARM | GCC_ARM | IAR | GCC_CR | GCC_CW_EWL | GCC_CW_NEWLIB | | Platform | ARM | uARM | GCC_ARM | IAR | GCC_CR |
+-------------------------+-----------+-----------+-----------+-----------+-----------+------------+---------------+ +-------------------------+-----------+-----------+-----------+-----------+-----------+
| APPNEARME_MICRONFCBOARD | Supported | Default | Supported | - | - | - | - | | APPNEARME_MICRONFCBOARD | Supported | Default | Supported | - | - |
| ARCH_BLE | Default | - | Supported | Supported | - | - | - | | ARCH_BLE | Default | - | Supported | Supported | - |
| ARCH_GPRS | Supported | Default | Supported | Supported | Supported | - | - | | ARCH_GPRS | Supported | Default | Supported | Supported | Supported |
... ...
| UBLOX_C029 | Supported | Default | Supported | Supported | - | - | - | | UBLOX_C029 | Supported | Default | Supported | Supported | - |
| WALLBOT_BLE | Default | - | Supported | Supported | - | - | - | | WALLBOT_BLE | Default | - | Supported | Supported | - |
| XADOW_M0 | Supported | Default | Supported | Supported | Supported | - | - | | XADOW_M0 | Supported | Default | Supported | Supported | Supported |
+-------------------------+-----------+-----------+-----------+-----------+-----------+------------+---------------+ +-------------------------+-----------+-----------+-----------+-----------+-----------+
*Default - default on-line compiler *Default - default on-line compiler
*Supported - supported off-line compiler *Supported - supported off-line compiler
@ -350,19 +350,19 @@ Total permutations: 297
Above list can be overwhelming so please do not hesitate to use switch ```-f``` to filter ```Platform``` column. Above list can be overwhelming so please do not hesitate to use switch ```-f``` to filter ```Platform``` column.
``` ```
$ python build.py -S -f ^K $ python build.py -S -f ^K
+--------------+-----------+---------+-----------+-----------+--------+------------+---------------+ +--------------+-----------+---------+-----------+-----------+--------+
| Platform | ARM | uARM | GCC_ARM | IAR | GCC_CR | GCC_CW_EWL | GCC_CW_NEWLIB | | Platform | ARM | uARM | GCC_ARM | IAR | GCC_CR |
+--------------+-----------+---------+-----------+-----------+--------+------------+---------------+ +--------------+-----------+---------+-----------+-----------+--------+
| K20D50M | Default | - | Supported | Supported | - | - | - | | K20D50M | Default | - | Supported | Supported | - |
| K22F | Default | - | Supported | Supported | - | - | - | | K22F | Default | - | Supported | Supported | - |
| K64F | Default | - | Supported | Supported | - | - | - | | K64F | Default | - | Supported | Supported | - |
| KL05Z | Supported | Default | Supported | Supported | - | - | - | | KL05Z | Supported | Default | Supported | Supported | - |
| KL25Z | Default | - | Supported | Supported | - | Supported | Supported | | KL25Z | Default | - | Supported | Supported | - |
| KL43Z | Default | - | Supported | - | - | - | - | | KL43Z | Default | - | Supported | - | - |
| KL46Z | Default | - | Supported | Supported | - | - | - | | KL46Z | Default | - | Supported | Supported | - |
| NRF51_DK | Default | - | Supported | Supported | - | - | - | | NRF51_DK | Default | - | Supported | Supported | - |
| NRF51_DK_OTA | Default | - | Supported | - | - | - | - | | NRF51_DK_OTA | Default | - | Supported | - | - |
+--------------+-----------+---------+-----------+-----------+--------+------------+---------------+ +--------------+-----------+---------+-----------+-----------+--------+
*Default - default on-line compiler *Default - default on-line compiler
*Supported - supported off-line compiler *Supported - supported off-line compiler
@ -372,11 +372,11 @@ Total permutations: 28
or just give platform name: or just give platform name:
``` ```
$ python build.py -S -f LPC1768 $ python build.py -S -f LPC1768
+----------+---------+-----------+-----------+-----------+-----------+------------+---------------+ +----------+---------+-----------+-----------+-----------+-----------+
| Platform | ARM | uARM | GCC_ARM | IAR | GCC_CR | GCC_CW_EWL | GCC_CW_NEWLIB | | Platform | ARM | uARM | GCC_ARM | IAR | GCC_CR |
+----------+---------+-----------+-----------+-----------+-----------+------------+---------------+ +----------+---------+-----------+-----------+-----------+-----------+
| LPC1768 | Default | Supported | Supported | Supported | Supported | - | - | | LPC1768 | Default | Supported | Supported | Supported | Supported |
+----------+---------+-----------+-----------+-----------+-----------+------------+---------------+ +----------+---------+-----------+-----------+-----------+-----------+
*Default - default on-line compiler *Default - default on-line compiler
*Supported - supported off-line compiler *Supported - supported off-line compiler

View File

@ -493,10 +493,7 @@ extern "C" caddr_t _sbrk(int incr) {
#endif #endif
#ifdef TOOLCHAIN_GCC_CW #if defined TOOLCHAIN_GCC_ARM
// TODO: Ideally, we would like to define directly "_ExitProcess"
extern "C" void mbed_exit(int return_code) {
#elif defined TOOLCHAIN_GCC_ARM
extern "C" void _exit(int return_code) { extern "C" void _exit(int return_code) {
#else #else
namespace std { namespace std {
@ -520,7 +517,7 @@ extern "C" void exit(int return_code) {
while (1); while (1);
} }
#if !defined(TOOLCHAIN_GCC_ARM) && !defined(TOOLCHAIN_GCC_CW) #if !defined(TOOLCHAIN_GCC_ARM)
} //namespace std } //namespace std
#endif #endif

View File

@ -59,10 +59,6 @@ GCC_CR_PATH = "C:/code_red/RedSuite_4.2.0_349/redsuite/Tools/bin"
# IAR # IAR
IAR_PATH = "C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.0/arm" IAR_PATH = "C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.0/arm"
# GCC Code Warrior
CW_GCC_PATH = "C:/Freescale/CW MCU v10.3/Cross_Tools/arm-none-eabi-gcc-4_6_2/bin"
CW_EWL_PATH = "C:/Freescale/CW MCU v10.3/MCU/ARM_GCC_Support/ewl/lib"
# Goanna static analyser. Please overload it in private_settings.py # Goanna static analyser. Please overload it in private_settings.py
GOANNA_PATH = "c:/Program Files (x86)/RedLizards/Goanna Central 3.2.3/bin" GOANNA_PATH = "c:/Program Files (x86)/RedLizards/Goanna Central 3.2.3/bin"

View File

@ -466,7 +466,7 @@ class KL25Z(Target):
Target.__init__(self) Target.__init__(self)
self.core = "Cortex-M0+" self.core = "Cortex-M0+"
self.extra_labels = ['Freescale', 'KLXX'] self.extra_labels = ['Freescale', 'KLXX']
self.supported_toolchains = ["ARM", "GCC_CW_EWL", "GCC_CW_NEWLIB", "GCC_ARM","IAR"] self.supported_toolchains = ["ARM", "GCC_ARM", "IAR"]
self.supported_form_factors = ["ARDUINO"] self.supported_form_factors = ["ARDUINO"]
self.is_disk_virtual = True self.is_disk_virtual = True
self.detect_code = ["0200"] self.detect_code = ["0200"]

View File

@ -740,7 +740,7 @@ class mbedToolchain:
self.notify({'type': 'var', 'key': key, 'val': value}) self.notify({'type': 'var', 'key': key, 'val': value})
from workspace_tools.settings import ARM_BIN from workspace_tools.settings import ARM_BIN
from workspace_tools.settings import GCC_ARM_PATH, GCC_CR_PATH, CW_EWL_PATH, CW_GCC_PATH from workspace_tools.settings import GCC_ARM_PATH, GCC_CR_PATH
from workspace_tools.settings import IAR_PATH from workspace_tools.settings import IAR_PATH
TOOLCHAIN_BIN_PATH = { TOOLCHAIN_BIN_PATH = {
@ -748,14 +748,11 @@ TOOLCHAIN_BIN_PATH = {
'uARM': ARM_BIN, 'uARM': ARM_BIN,
'GCC_ARM': GCC_ARM_PATH, 'GCC_ARM': GCC_ARM_PATH,
'GCC_CR': GCC_CR_PATH, 'GCC_CR': GCC_CR_PATH,
'GCC_CW_EWL': CW_EWL_PATH,
'GCC_CW_NEWLIB': CW_GCC_PATH,
'IAR': IAR_PATH 'IAR': IAR_PATH
} }
from workspace_tools.toolchains.arm import ARM_STD, ARM_MICRO from workspace_tools.toolchains.arm import ARM_STD, ARM_MICRO
from workspace_tools.toolchains.gcc import GCC_ARM, GCC_CR from workspace_tools.toolchains.gcc import GCC_ARM, GCC_CR
from workspace_tools.toolchains.gcc import GCC_CW_EWL, GCC_CW_NEWLIB
from workspace_tools.toolchains.iar import IAR from workspace_tools.toolchains.iar import IAR
TOOLCHAIN_CLASSES = { TOOLCHAIN_CLASSES = {
@ -763,8 +760,6 @@ TOOLCHAIN_CLASSES = {
'uARM': ARM_MICRO, 'uARM': ARM_MICRO,
'GCC_ARM': GCC_ARM, 'GCC_ARM': GCC_ARM,
'GCC_CR': GCC_CR, 'GCC_CR': GCC_CR,
'GCC_CW_EWL': GCC_CW_EWL,
'GCC_CW_NEWLIB': GCC_CW_NEWLIB,
'IAR': IAR 'IAR': IAR
} }

View File

@ -18,7 +18,7 @@ import re
from os.path import join, basename, splitext from os.path import join, basename, splitext
from workspace_tools.toolchains import mbedToolchain from workspace_tools.toolchains import mbedToolchain
from workspace_tools.settings import GCC_ARM_PATH, GCC_CR_PATH, CW_EWL_PATH, CW_GCC_PATH from workspace_tools.settings import GCC_ARM_PATH, GCC_CR_PATH
from workspace_tools.settings import GOANNA_PATH from workspace_tools.settings import GOANNA_PATH
from workspace_tools.hooks import hook_tool from workspace_tools.hooks import hook_tool
@ -213,45 +213,3 @@ class GCC_CR(GCC):
self.ld.extend(["-u _printf_float", "-u _scanf_float"]) self.ld.extend(["-u _printf_float", "-u _scanf_float"])
self.ld += ["-nostdlib"] self.ld += ["-nostdlib"]
class GCC_CW(GCC):
ARCH_LIB = {
"Cortex-M0+": "armv6-m",
}
def __init__(self, target, options=None, notify=None, macros=None, silent=False, extra_verbose=False):
GCC.__init__(self, target, options, notify, macros, silent, CW_GCC_PATH, extra_verbose=extra_verbose)
class GCC_CW_EWL(GCC_CW):
def __init__(self, target, options=None, notify=None, macros=None, silent=False, extra_verbose=False):
GCC_CW.__init__(self, target, options, notify, macros, silent, extra_verbose=extra_verbose)
# Compiler
common = [
'-mfloat-abi=soft',
'-nostdinc', '-I%s' % join(CW_EWL_PATH, "EWL_C", "include"),
]
self.cc += common + [
'-include', join(CW_EWL_PATH, "EWL_C", "include", 'lib_c99.prefix')
]
self.cppc += common + [
'-nostdinc++', '-I%s' % join(CW_EWL_PATH, "EWL_C++", "include"),
'-include', join(CW_EWL_PATH, "EWL_C++", "include", 'lib_ewl_c++.prefix')
]
# Linker
self.sys_libs = []
self.CIRCULAR_DEPENDENCIES = False
self.ld = [join(CW_GCC_PATH, "arm-none-eabi-g++"),
"-Xlinker --gc-sections",
"-L%s" % join(CW_EWL_PATH, "lib", GCC_CW.ARCH_LIB[target.core]),
"-n", "-specs=ewl_c++.specs", "-mfloat-abi=soft",
"-Xlinker --undefined=__pformatter_", "-Xlinker --defsym=__pformatter=__pformatter_",
"-Xlinker --undefined=__sformatter", "-Xlinker --defsym=__sformatter=__sformatter",
] + self.cpu
class GCC_CW_NEWLIB(GCC_CW):
def __init__(self, target, options=None, notify=None, macros=None, silent=False, extra_verbose=False):
GCC_CW.__init__(self, target, options, notify, macros, silent, extra_verbose=extra_verbose)