Cross compilation toolchain for arm linux added.

pull/442/head
Alexander Smorkalov 12 years ago
parent 7882aba7af
commit 60f056061a
  1. 20
      platforms/linux/armlinux.toolchain.cmake
  2. 8
      platforms/linux/scripts/cmake_linux.sh
  3. 1
      platforms/readme.txt

@ -0,0 +1,20 @@
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_VERSION 1)
set(CMAKE_SYSTEM_PROCESSOR arm)
set(CMAKE_C_COMPILER arm-linux-gnueabi-gcc-4.6)
set(CMAKE_CXX_COMPILER arm-linux-gnueabi-g++-4.6)
#suppress compiller varning
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-psabi" )
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-psabi" )
# can be any other plases
set(__arm_linux_eabi_root /usr/arm-linux-gnueabi)
set(CMAKE_FIND_ROOT_PATH ${CMAKE_FIND_ROOT_PATH} ${__arm_linux_eabi_root})
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY)

@ -0,0 +1,8 @@
#!/bin/sh
cd `dirname $0`/..
mkdir -p build
cd build
cmake -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_TOOLCHAIN_FILE=../armlinux.toolchain.cmake $@ ../../..

@ -0,0 +1 @@
This folder contains toolchains and additional files that are needed for cross compitation.
Loading…
Cancel
Save