summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorgkostka <kostka.grzegorz@gmail.com>2017-04-19 17:55:46 +0200
committergkostka <kostka.grzegorz@gmail.com>2017-04-19 17:55:46 +0200
commit2a4f69fbabf98920717366cd574f0d4aba1aa3a1 (patch)
tree99f716ab3a038daf5483079cb03da29924688260 /toolchain
parentdd3f008d8931f870814d139c4b61852cc4d449cb (diff)
toolchain: add toolchain files for new MCUs & simplify makefile
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/cortex-m0+.cmake9
-rw-r--r--toolchain/cortex-m4.cmake2
-rw-r--r--toolchain/cortex-m4f.cmake9
-rw-r--r--toolchain/cortex-m7.cmake9
4 files changed, 28 insertions, 1 deletions
diff --git a/toolchain/cortex-m0+.cmake b/toolchain/cortex-m0+.cmake
new file mode 100644
index 0000000..56c4dde
--- /dev/null
+++ b/toolchain/cortex-m0+.cmake
@@ -0,0 +1,9 @@
+# Name of the target
+set(CMAKE_SYSTEM_NAME Generic)
+set(CMAKE_SYSTEM_PROCESSOR cortex-m0)
+
+set(MCPU_FLAGS "-mthumb -mcpu=cortex-m0plus")
+set(VFP_FLAGS "")
+set(LD_FLAGS "-nostartfiles")
+
+include(${CMAKE_CURRENT_LIST_DIR}/common/arm-none-eabi.cmake) \ No newline at end of file
diff --git a/toolchain/cortex-m4.cmake b/toolchain/cortex-m4.cmake
index fef16ed..3447233 100644
--- a/toolchain/cortex-m4.cmake
+++ b/toolchain/cortex-m4.cmake
@@ -3,7 +3,7 @@ set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_SYSTEM_PROCESSOR cortex-m4)
set(MCPU_FLAGS "-mthumb -mcpu=cortex-m4")
-set(VFP_FLAGS "-mfloat-abi=hard -mfpu=fpv4-sp-d16")
+set(VFP_FLAGS "")
set(LD_FLAGS "-nostartfiles")
include(${CMAKE_CURRENT_LIST_DIR}/common/arm-none-eabi.cmake) \ No newline at end of file
diff --git a/toolchain/cortex-m4f.cmake b/toolchain/cortex-m4f.cmake
new file mode 100644
index 0000000..fef16ed
--- /dev/null
+++ b/toolchain/cortex-m4f.cmake
@@ -0,0 +1,9 @@
+# Name of the target
+set(CMAKE_SYSTEM_NAME Generic)
+set(CMAKE_SYSTEM_PROCESSOR cortex-m4)
+
+set(MCPU_FLAGS "-mthumb -mcpu=cortex-m4")
+set(VFP_FLAGS "-mfloat-abi=hard -mfpu=fpv4-sp-d16")
+set(LD_FLAGS "-nostartfiles")
+
+include(${CMAKE_CURRENT_LIST_DIR}/common/arm-none-eabi.cmake) \ No newline at end of file
diff --git a/toolchain/cortex-m7.cmake b/toolchain/cortex-m7.cmake
new file mode 100644
index 0000000..1f1b093
--- /dev/null
+++ b/toolchain/cortex-m7.cmake
@@ -0,0 +1,9 @@
+# Name of the target
+set(CMAKE_SYSTEM_NAME Generic)
+set(CMAKE_SYSTEM_PROCESSOR cortex-m4)
+
+set(MCPU_FLAGS "-mthumb -mcpu=cortex-m7")
+set(VFP_FLAGS "-mfloat-abi=hard -mfpu=fpv4-sp-d16")
+set(LD_FLAGS "-nostartfiles")
+
+include(${CMAKE_CURRENT_LIST_DIR}/common/arm-none-eabi.cmake) \ No newline at end of file