summaryrefslogtreecommitdiff
path: root/toolchain/cortex-m3.cmake
diff options
context:
space:
mode:
authorgkostka <kostka.grzegorz@gmail.com>2014-05-20 23:41:24 +0000
committergkostka <kostka.grzegorz@gmail.com>2014-05-20 23:41:24 +0000
commit6f2630560d50340611b372d58c1f450106df5467 (patch)
treea19de50f04e51c8a86ca98d2f3cdf237e06f6ffa /toolchain/cortex-m3.cmake
parentb6a7544b8c5b52b1d13f3b9c7c94cdabb6bf5ed1 (diff)
Build system refactoring.
Diffstat (limited to 'toolchain/cortex-m3.cmake')
-rw-r--r--toolchain/cortex-m3.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolchain/cortex-m3.cmake b/toolchain/cortex-m3.cmake
index 873ed1f..3ad9e07 100644
--- a/toolchain/cortex-m3.cmake
+++ b/toolchain/cortex-m3.cmake
@@ -1,5 +1,5 @@
# Name of the target
-SET(CMAKE_SYSTEM_NAME Generic)
+set(CMAKE_SYSTEM_NAME arm-none-eabi)
set(CMAKE_SYSTEM_PROCESSOR cortex-m3)
# Toolchain settings
@@ -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")
set(CMAKE_CXX_FLAGS "-mthumb -mcpu=cortex-m3 -fno-builtin -Wall -fdata-sections -ffunction-sections" CACHE INTERNAL "cxx compiler flags")
set(CMAKE_ASM_FLAGS "-mthumb -mcpu=cortex-m3" CACHE INTERNAL "asm compiler flags")
-set(CMAKE_EXE_LINKER_FLAGS "-nostartfiles -Wl,--gc-sections -mthumb -mcpu=cortex-m3" CACHE INTERNAL "exe link flags")
+set(CMAKE_EXE_LINKER_FLAGS "-mthumb -mcpu=cortex-m3 -nostartfiles -Wl,--gc-sections" CACHE INTERNAL "exe link flags")
SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -ggdb3" CACHE INTERNAL "c debug compiler flags")
SET(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -ggdb3" CACHE INTERNAL "cxx debug compiler flags")