SOES/cmake/toolchain/rt-kernel-imx53.cmake

17 lines
559 B
CMake
Raw Normal View History

2015-05-07 17:44:01 +02:00
# the name of the target operating system
set(CMAKE_SYSTEM_NAME rt-kernel)
# which compiler to use
set(CMAKE_C_COMPILER $ENV{COMPILERS}/arm-eabi/bin/arm-eabi-gcc)
set(CMAKE_CXX_COMPILER $ENV{COMPILERS}/arm-eabi/bin/arm-eabi-gcc)
if(CMAKE_HOST_WIN32)
set(CMAKE_C_COMPILER ${CMAKE_C_COMPILER}.exe)
set(CMAKE_CXX_COMPILER ${CMAKE_CXX_COMPILER}.exe)
endif(CMAKE_HOST_WIN32)
set(RTK_ROOT rt-kernel-imx53)
set(RTK_LIBS rt-kernel-imx53/lib/imx53/cortex-a8)
set(RTK_TARGET_LIBS "-limx53qsb -limx53")
add_definitions(-mfpu=neon -mcpu=cortex-a8)