Skip to content

Commit

Permalink
toolchains gcc - core m7/m7f support addition
Browse files Browse the repository at this point in the history
  • Loading branch information
0xc0170 committed Dec 10, 2015
1 parent d0b55a2 commit 6cb8531
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions workspace_tools/toolchains/gcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def __init__(self, target, options=None, notify=None, macros=None, silent=False,
cpu = "cortex-m0plus"
elif target.core == "Cortex-M4F":
cpu = "cortex-m4"
elif target.core == "Cortex-M7F":
cpu = "cortex-m7"
else:
cpu = target.core.lower()

Expand All @@ -47,6 +49,9 @@ def __init__(self, target, options=None, notify=None, macros=None, silent=False,
if target.core == "Cortex-M4F":
self.cpu.append("-mfpu=fpv4-sp-d16")
self.cpu.append("-mfloat-abi=softfp")
elif target.core == "Cortex-M7F":
self.cpu.append("-mfpu=fpv5-d16")
self.cpu.append("-mfloat-abi=softfp")

if target.core == "Cortex-A9":
self.cpu.append("-mthumb-interwork")
Expand Down

0 comments on commit 6cb8531

Please sign in to comment.