\r
set(MCPU_FLAGS "")\r
set(VFP_FLAGS "")\r
-set(SIM_FLAGS "--specs=rdimon.specs -Wl,--start-group -lgcc -lc -lm -lrdimon -Wl,--end-group")\r
+set(LD_FLAGS "--specs=rdimon.specs -Wl,--start-group -lgcc -lc -lm -lrdimon -Wl,--end-group")\r
\r
include(${CMAKE_CURRENT_LIST_DIR}/common/arm-none-eabi.cmake)
\ No newline at end of file
set(CMAKE_C_FLAGS "${MCPU_FLAGS} ${VFP_FLAGS} -Wall -fno-builtin -std=gnu99 -fdata-sections -ffunction-sections" CACHE INTERNAL "c compiler flags")\r
set(CMAKE_CXX_FLAGS "${MCPU_FLAGS} ${VFP_FLAGS} -Wall -fno-builtin -fdata-sections -ffunction-sections" CACHE INTERNAL "cxx compiler flags")\r
set(CMAKE_ASM_FLAGS "${MCPU_FLAGS} -x assembler-with-cpp" CACHE INTERNAL "asm compiler flags")\r
-set(CMAKE_EXE_LINKER_FLAGS "${MCPU_FLAGS} -nostartfiles -Wl,--gc-sections ${SIM_FLAGS}" CACHE INTERNAL "exe link flags")\r
+set(CMAKE_EXE_LINKER_FLAGS "${MCPU_FLAGS} ${LD_FLAGS} -Wl,--gc-sections" CACHE INTERNAL "exe link flags")\r
\r
\r
\r
\r
set(MCPU_FLAGS "-mthumb -mcpu=cortex-m0")\r
set(VFP_FLAGS "")\r
+set(LD_FLAGS "-nostartfiles")\r
\r
include(${CMAKE_CURRENT_LIST_DIR}/common/arm-none-eabi.cmake)
\ No newline at end of file
\r
set(MCPU_FLAGS "-mthumb -mcpu=cortex-m3")\r
set(VFP_FLAGS "")\r
-\r
+set(LD_FLAGS "-nostartfiles")\r
\r
include(${CMAKE_CURRENT_LIST_DIR}/common/arm-none-eabi.cmake)
\ No newline at end of file
\r
set(MCPU_FLAGS "-mthumb -mcpu=cortex-m4")\r
set(VFP_FLAGS "-mfloat-abi=hard -mfpu=fpv4-sp-d16")\r
-\r
+set(LD_FLAGS "-nostartfiles")\r
\r
include(${CMAKE_CURRENT_LIST_DIR}/common/arm-none-eabi.cmake)
\ No newline at end of file