|
|
@ -1,6 +1,6 @@ |
|
|
|
# the name of the target operating system |
|
|
|
set (CMAKE_SYSTEM_NAME Generic) |
|
|
|
set(CMAKE_SYSTEM_PROCESSOR arm) |
|
|
|
set(CMAKE_SYSTEM_NAME STM32F4) |
|
|
|
set(CMAKE_SYSTEM_PROCESSOR cortex-m4) |
|
|
|
|
|
|
|
set(CROSS_COMPILE arm-none-eabi-) |
|
|
|
|
|
|
@ -43,9 +43,9 @@ set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) |
|
|
|
set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) |
|
|
|
set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) |
|
|
|
|
|
|
|
set(CMAKE_EXECUTABLE_SUFFIX_C .elf) |
|
|
|
set(CMAKE_EXECUTABLE_SUFFIX_CXX .elf) |
|
|
|
set(CMAKE_EXECUTABLE_SUFFIX_ASM .elf) |
|
|
|
#set(CMAKE_EXECUTABLE_SUFFIX_C .elf) |
|
|
|
#set(CMAKE_EXECUTABLE_SUFFIX_CXX .elf) |
|
|
|
#set(CMAKE_EXECUTABLE_SUFFIX_ASM .elf) |
|
|
|
|
|
|
|
function(tgt_add_linker_script TARGET VISIBILITY SCRIPT) |
|
|
|
get_filename_component(SCRIPT "${SCRIPT}" ABSOLUTE) |
|
|
|