Suppress gcc 7.xx warnings (fall through in switch statement)
[lwext4.git] / toolchain / cortex-m3.cmake
index 94c31eebf71cdd5a14df6d52aaf10ce2d5357990..69c514dc5adbb92ca9dbd5390fc1d07848ab4955 100644 (file)
@@ -1,9 +1,9 @@
-# Name of the target\r
-set(CMAKE_SYSTEM_NAME arm-none-eabi)\r
-set(CMAKE_SYSTEM_PROCESSOR cortex-m3)\r
-\r
-set(MCPU_FLAGS "-mthumb -mcpu=cortex-m3")\r
-set(VFP_FLAGS "")\r
-\r
-\r
-include(${CMAKE_CURRENT_LIST_DIR}/common/arm-none-eabi.cmake)
\ No newline at end of file
+# Name of the target
+set(CMAKE_SYSTEM_NAME Generic)
+set(CMAKE_SYSTEM_PROCESSOR cortex-m3)
+
+set(MCPU_FLAGS "-mthumb -mcpu=cortex-m3")
+set(VFP_FLAGS "")
+set(LD_FLAGS "-nostartfiles")
+
+include(${CMAKE_CURRENT_LIST_DIR}/common/arm-none-eabi.cmake)