File: Toolchain-sheeva.cmake

package info (click to toggle)
obdgpslogger 0.16-1.3
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 5,160 kB
  • ctags: 7,498
  • sloc: ansic: 73,206; cpp: 2,055; php: 407; sh: 51; makefile: 4
file content (34 lines) | stat: -rw-r--r-- 1,055 bytes parent folder | download | duplicates (2)
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)