Build system refactoring.
[lwext4.git] / toolchain / cortex-m3.cmake
index 873ed1fd89569d2dd56b2e75c3537d6f2835f01f..3ad9e07803af1e05ac24bf9ab87d1fef34fa810b 100644 (file)
@@ -1,5 +1,5 @@
 # Name of the target\r
-SET(CMAKE_SYSTEM_NAME Generic)\r
+set(CMAKE_SYSTEM_NAME arm-none-eabi)\r
 set(CMAKE_SYSTEM_PROCESSOR cortex-m3)\r
 \r
 # Toolchain settings\r
@@ -14,7 +14,7 @@ set(SIZE                arm-none-eabi-size)
 set(CMAKE_C_FLAGS   "-mthumb -mcpu=cortex-m3 -fno-builtin -Wall -std=gnu99 -fdata-sections -ffunction-sections" CACHE INTERNAL "c compiler flags")\r
 set(CMAKE_CXX_FLAGS "-mthumb -mcpu=cortex-m3 -fno-builtin -Wall -fdata-sections -ffunction-sections" CACHE INTERNAL "cxx compiler flags")\r
 set(CMAKE_ASM_FLAGS "-mthumb -mcpu=cortex-m3" CACHE INTERNAL "asm compiler flags")\r
-set(CMAKE_EXE_LINKER_FLAGS "-nostartfiles -Wl,--gc-sections -mthumb -mcpu=cortex-m3" CACHE INTERNAL "exe link flags")\r
+set(CMAKE_EXE_LINKER_FLAGS "-mthumb -mcpu=cortex-m3 -nostartfiles -Wl,--gc-sections" CACHE INTERNAL "exe link flags")\r
 \r
 SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -ggdb3" CACHE INTERNAL "c debug compiler flags")\r
 SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -ggdb3" CACHE INTERNAL "cxx debug compiler flags")\r