-# Name of the target\r
-set(CMAKE_SYSTEM_NAME arm-none-eabi)\r
-set(CMAKE_SYSTEM_PROCESSOR cortex-m4)\r
-\r
-set(MCPU_FLAGS "-mthumb -mcpu=cortex-m4")\r
-set(VFP_FLAGS "-mfloat-abi=hard -mfpu=fpv4-sp-d16")\r
-\r
-\r
+# 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 "")
+set(LD_FLAGS "-nostartfiles")
+
include(${CMAKE_CURRENT_LIST_DIR}/common/arm-none-eabi.cmake)
\ No newline at end of file