mirror of https://github.com/ARMmbed/mbed-os.git
Modify the python tools to support Cortex-A5
parent
ff2188150a
commit
2d2d1cf956
|
@ -428,6 +428,7 @@ class GNUARMEclipse(Exporter):
|
|||
'Cortex-M7': {'mcpu': 'cortex-m7', 'fpu_unit': None},
|
||||
'Cortex-M7F': {'mcpu': 'cortex-m7', 'fpu_unit': 'fpv4spd16'},
|
||||
'Cortex-M7FD': {'mcpu': 'cortex-m7', 'fpu_unit': 'fpv5d16'},
|
||||
'Cortex-A5': {'mcpu': 'cortex-a5', 'fpu_unit': 'vfpv3'},
|
||||
'Cortex-A9': {'mcpu': 'cortex-a9', 'fpu_unit': 'vfpv3'}
|
||||
}
|
||||
|
||||
|
|
|
@ -353,6 +353,7 @@ class MCUXpresso(GNUARMEclipse):
|
|||
'Cortex-M7': {'mcpu': 'cortex-m7', 'fpu_unit': None},
|
||||
'Cortex-M7F': {'mcpu': 'cortex-m7', 'fpu_unit': 'fpv4spd16'},
|
||||
'Cortex-M7FD': {'mcpu': 'cortex-m7', 'fpu_unit': 'fpv5d16'},
|
||||
'Cortex-A5': {'mcpu': 'cortex-a5', 'fpu_unit': 'vfpv3'},
|
||||
'Cortex-A9': {'mcpu': 'cortex-a9', 'fpu_unit': 'vfpv3'}
|
||||
}
|
||||
|
||||
|
|
|
@ -49,6 +49,7 @@ CORE_LABELS = {
|
|||
"Cortex-M7F": ["M7", "CORTEX_M", "RTOS_M4_M7", "LIKE_CORTEX_M7", "CORTEX"],
|
||||
"Cortex-M7FD": ["M7", "CORTEX_M", "RTOS_M4_M7", "LIKE_CORTEX_M7",
|
||||
"CORTEX"],
|
||||
"Cortex-A5": ["A5", "CORTEX_A", "LIKE_CORTEX_A5", "CORTEX"],
|
||||
"Cortex-A9": ["A9", "CORTEX_A", "LIKE_CORTEX_A9", "CORTEX"],
|
||||
"Cortex-M23": ["M23", "CORTEX_M", "LIKE_CORTEX_M23", "CORTEX"],
|
||||
"Cortex-M23-NS": ["M23", "M23_NS", "CORTEX_M", "LIKE_CORTEX_M23",
|
||||
|
@ -74,6 +75,7 @@ CORE_ARCH = {
|
|||
"Cortex-M7": 7,
|
||||
"Cortex-M7F": 7,
|
||||
"Cortex-M7FD": 7,
|
||||
"Cortex-A5": 7,
|
||||
"Cortex-A9": 7,
|
||||
"Cortex-M23": 8,
|
||||
"Cortex-M23-NS": 8,
|
||||
|
|
|
@ -57,7 +57,7 @@ class ARM(mbedToolchain):
|
|||
SHEBANG = "#! armcc -E"
|
||||
SUPPORTED_CORES = [
|
||||
"Cortex-M0", "Cortex-M0+", "Cortex-M3", "Cortex-M4", "Cortex-M4F",
|
||||
"Cortex-M7", "Cortex-M7F", "Cortex-M7FD", "Cortex-A9"
|
||||
"Cortex-M7", "Cortex-M7F", "Cortex-M7FD", "Cortex-A5", "Cortex-A9"
|
||||
]
|
||||
ARMCC_RANGE = (LooseVersion("5.06"), LooseVersion("5.07"))
|
||||
ARMCC_PRODUCT_RE = re.compile(b"Product: (.*)")
|
||||
|
@ -544,7 +544,7 @@ class ARMC6(ARM_STD):
|
|||
"Cortex-M4F", "Cortex-M7", "Cortex-M7F", "Cortex-M7FD",
|
||||
"Cortex-M23", "Cortex-M23-NS", "Cortex-M33", "Cortex-M33F",
|
||||
"Cortex-M33-NS", "Cortex-M33F-NS", "Cortex-M33FE-NS", "Cortex-M33FE",
|
||||
"Cortex-A9"
|
||||
"Cortex-A5", "Cortex-A9"
|
||||
]
|
||||
ARMCC_RANGE = (LooseVersion("6.10"), LooseVersion("7.0"))
|
||||
LD_DIAGNOSTIC_PATTERN = re.compile(
|
||||
|
|
|
@ -131,7 +131,7 @@ class GCC(mbedToolchain):
|
|||
self.cpu.append("-mfpu=fpv5-d16")
|
||||
self.cpu.append("-mfloat-abi=softfp")
|
||||
|
||||
if target.core == "Cortex-A9":
|
||||
if target.core == "Cortex-A9" or target.core == "Cortex-A5":
|
||||
self.cpu.append("-mthumb-interwork")
|
||||
self.cpu.append("-marm")
|
||||
self.cpu.append("-march=armv7-a")
|
||||
|
|
|
@ -86,6 +86,8 @@ CORTEX_SYMBOLS = {
|
|||
"__CMSIS_RTOS", "__MBED_CMSIS_RTOS_CM"],
|
||||
"Cortex-M7FD": ["__CORTEX_M7", "ARM_MATH_CM7", "__FPU_PRESENT=1",
|
||||
"__CMSIS_RTOS", "__MBED_CMSIS_RTOS_CM"],
|
||||
"Cortex-A5": ["__CORTEX_A5", "ARM_MATH_CA5", "__FPU_PRESENT",
|
||||
"__CMSIS_RTOS", "__EVAL"],
|
||||
"Cortex-A9": ["__CORTEX_A9", "ARM_MATH_CA9", "__FPU_PRESENT",
|
||||
"__CMSIS_RTOS", "__EVAL", "__MBED_CMSIS_RTOS_CA9"],
|
||||
"Cortex-M23-NS": ["__CORTEX_M23", "ARM_MATH_ARMV8MBL", "DOMAIN_NS=1",
|
||||
|
|
Loading…
Reference in New Issue