diff options
| author | gkostka <kostka.grzegorz@gmail.com> | 2014-05-20 23:41:24 +0000 |
|---|---|---|
| committer | gkostka <kostka.grzegorz@gmail.com> | 2014-05-20 23:41:24 +0000 |
| commit | 6f2630560d50340611b372d58c1f450106df5467 (patch) | |
| tree | a19de50f04e51c8a86ca98d2f3cdf237e06f6ffa /toolchain/cortex-m4.cmake | |
| parent | b6a7544b8c5b52b1d13f3b9c7c94cdabb6bf5ed1 (diff) | |
Build system refactoring.
Diffstat (limited to 'toolchain/cortex-m4.cmake')
| -rw-r--r-- | toolchain/cortex-m4.cmake | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/toolchain/cortex-m4.cmake b/toolchain/cortex-m4.cmake index c4b097a..659018a 100644 --- a/toolchain/cortex-m4.cmake +++ b/toolchain/cortex-m4.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-m4)
# Toolchain settings
@@ -14,7 +14,7 @@ set(SIZE arm-none-eabi-size) set(CMAKE_C_FLAGS "-mthumb -mcpu=cortex-m4 -fno-builtin -Wall -std=gnu99 -fdata-sections -ffunction-sections" CACHE INTERNAL "c compiler flags")
set(CMAKE_CXX_FLAGS "-mthumb -mcpu=cortex-m4 -fno-builtin -Wall -fdata-sections -ffunction-sections" CACHE INTERNAL "cxx compiler flags")
set(CMAKE_ASM_FLAGS "-mthumb -mcpu=cortex-m4" CACHE INTERNAL "asm compiler flags")
-set(CMAKE_EXE_LINKER_FLAGS "-nostartfiles -Wl,--gc-sections -mthumb -mcpu=cortex-m4" CACHE INTERNAL "exe link flags")
+set(CMAKE_EXE_LINKER_FLAGS " -mthumb -mcpu=cortex-m4 -nostartfiles -Wl,--gc-sections" CACHE INTERNAL "exe link flags")
@@ -24,5 +24,4 @@ SET(CMAKE_ASM_FLAGS_DEBUG "-g -ggdb3" CACHE INTERNAL "asm debug compiler flags") SET(CMAKE_C_FLAGS_RELEASE "-Os" CACHE INTERNAL "c release compiler flags")
SET(CMAKE_CXX_FLAGS_RELEASE "-Os" CACHE INTERNAL "cxx release compiler flags")
-SET(CMAKE_ASM_FLAGS_RELEASE "" CACHE INTERNAL "asm release compiler flags")
-
+SET(CMAKE_ASM_FLAGS_RELEASE "" CACHE INTERNAL "asm release compiler flags")
\ No newline at end of file |
