summaryrefslogtreecommitdiff
path: root/toolchain/cortex-m4f.cmake
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/cortex-m4f.cmake
parentdd3f008d8931f870814d139c4b61852cc4d449cb (diff)
toolchain: add toolchain files for new MCUs & simplify makefile
Diffstat (limited to 'toolchain/cortex-m4f.cmake')
-rw-r--r--toolchain/cortex-m4f.cmake9
1 files changed, 9 insertions, 0 deletions
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