User Tools

Site Tools


getting_started:arm_toolchain

This is an old revision of the document!


Toolchain File for ARM Platform

The following is an example of a toolchain file for an ARM platform and the gcc version 4.9.

set(CMAKE_SYSTEM_NAME Linux)

set(TOOLCHAIN_PREFIX arm-linux-gnueabihf)
set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc-4.9)
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++-4.9)

set(CMAKE_FIND_ROOT_PATH /usr/${TOOLCHAIN_PREFIX})
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
getting_started/arm_toolchain.1511248074.txt.gz · Last modified: 2017/11/21 08:07 by graf