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