Update directory tree.
[lwext4.git] / toolchain / cortex-m3.cmake
1 # Name of the target\r
2 SET(CMAKE_SYSTEM_NAME Generic)\r
3 set(CMAKE_SYSTEM_PROCESSOR cortex-m3)\r
4 \r
5 # Toolchain settings\r
6 set(CMAKE_C_COMPILER    arm-none-eabi-gcc)\r
7 set(CMAKE_CXX_COMPILER  arm-none-eabi-g++)\r
8 set(AS                  arm-none-eabi-as)\r
9 set(AR                          arm-none-eabi-ar)\r
10 set(OBJCOPY             arm-none-eabi-objcopy)\r
11 set(OBJDUMP                     arm-none-eabi-objdump)\r
12 set(SIZE                arm-none-eabi-size)\r
13 \r
14 set(CMAKE_C_FLAGS   "-mthumb -mcpu=cortex-m3 -fno-builtin -Wall -std=gnu99 -fdata-sections -ffunction-sections" CACHE INTERNAL "c compiler flags")\r
15 set(CMAKE_CXX_FLAGS "-mthumb -mcpu=cortex-m3 -fno-builtin -Wall -fdata-sections -ffunction-sections" CACHE INTERNAL "cxx compiler flags")\r
16 set(CMAKE_ASM_FLAGS "-mthumb -mcpu=cortex-m3" CACHE INTERNAL "asm compiler flags")\r
17 set(CMAKE_EXE_LINKER_FLAGS "-nostartfiles -Wl,--gc-sections -mthumb -mcpu=cortex-m3" CACHE INTERNAL "exe link flags")\r
18 \r