mirror of https://github.com/ARMmbed/mbed-os.git
Track supported information within toolchain clasess
parent
4198ae620c
commit
ec72ce7787
|
@ -1072,7 +1072,10 @@ def get_unique_supported_toolchains(release_targets=None):
|
|||
If release_targets is not specified, then it queries all
|
||||
known targets
|
||||
"""
|
||||
return ["ARM", "uARM", "GCC_ARM", "IAR"]
|
||||
return [
|
||||
name for name, cls in TOOLCHAIN_CLASSES.items()
|
||||
if cls.OFFICIALLY_SUPPORTED
|
||||
]
|
||||
|
||||
|
||||
def _lowercase_release_version(release_version):
|
||||
|
|
|
@ -48,6 +48,8 @@ CPU_COUNT_MIN = 1
|
|||
CPU_COEF = 1
|
||||
|
||||
class mbedToolchain:
|
||||
OFFICILLY_SUPPORTED = False
|
||||
|
||||
# Verbose logging
|
||||
VERBOSE = True
|
||||
|
||||
|
|
|
@ -337,6 +337,7 @@ class ARM(mbedToolchain):
|
|||
|
||||
|
||||
class ARM_STD(ARM):
|
||||
OFFICIALLY_SUPPORTED = True
|
||||
def __init__(self, target, notify=None, macros=None,
|
||||
build_profile=None, build_dir=None):
|
||||
ARM.__init__(self, target, notify, macros, build_dir=build_dir,
|
||||
|
@ -347,6 +348,7 @@ class ARM_STD(ARM):
|
|||
|
||||
class ARM_MICRO(ARM):
|
||||
PATCHED_LIBRARY = False
|
||||
OFFICIALLY_SUPPORTED = True
|
||||
def __init__(self, target, notify=None, macros=None,
|
||||
silent=False, extra_verbose=False, build_profile=None,
|
||||
build_dir=None):
|
||||
|
@ -357,6 +359,7 @@ class ARM_MICRO(ARM):
|
|||
raise NotSupportedException("ARM/uARM compiler support is required for ARM build")
|
||||
|
||||
class ARMC6(ARM_STD):
|
||||
OFFICIALLY_SUPPORTED = False
|
||||
SHEBANG = "#! armclang -E --target=arm-arm-none-eabi -x c"
|
||||
SUPPORTED_CORES = ["Cortex-M0", "Cortex-M0+", "Cortex-M3", "Cortex-M4",
|
||||
"Cortex-M4F", "Cortex-M7", "Cortex-M7F", "Cortex-M7FD",
|
||||
|
|
|
@ -25,6 +25,7 @@ from tools.hooks import hook_tool
|
|||
from tools.utils import run_cmd, NotSupportedException
|
||||
|
||||
class GCC(mbedToolchain):
|
||||
OFFICIALLY_SUPPORTED = True
|
||||
LINKER_EXT = '.ld'
|
||||
LIBRARY_EXT = '.a'
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ from tools.hooks import hook_tool
|
|||
from tools.utils import run_cmd, NotSupportedException
|
||||
|
||||
class IAR(mbedToolchain):
|
||||
OFFICIALLY_SUPPORTED = True
|
||||
LIBRARY_EXT = '.a'
|
||||
LINKER_EXT = '.icf'
|
||||
STD_LIB_NAME = "%s.a"
|
||||
|
|
Loading…
Reference in New Issue