1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
# This toolchain file is for cross-compiling targetting
# the SheevaPlug wall-wart.
# It assumes that you've installed the rootfs in
# /usr/local/sheeva/ or /opt/sheeva/
# Build with
# mkdir build; cd build
# cmake -DCMAKE_TOOLCHAIN_FILE=../cmakemodules/Toolchain-sheeva.cmake ..
# make
# For want of somewhere to document it:
# If you want to build this *on* the sheeva, from out-of-the-box
# you need to install the following packages plus dependencies:
# cmake make gcc g++
# At the very least, I additionally suggest the following packages:
# gpsd libgps-dev subversion
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_C_COMPILER arm-none-linux-gnueabi-gcc)
SET(CMAKE_CXX_COMPILER arm-none-linux-gnueabi-g++)
SET(CMAKE_FIND_ROOT_PATH /opt/sheeva/ /usr/local/sheeva/)
# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|