source: pacpussensors/trunk/build/build_igep.sh@ 26

Last change on this file since 26 was 5, checked in by aschildk, 11 years ago

Fix CMakeLists for cross compiling. Add linux build scripts

  • Property svn:executable set to *
File size: 527 bytes
Line 
1#!/bin/sh
2
3set -e
4
5BUILD_DIR=./build_arm
6if [ -z $1 ]; then J="1"; else J="$1"; fi
7
8if [ "$TARGET_PREFIX" != "arm-poky-linux-gnueabi-" ]; then
9 echo You must setup your environment first.
10 echo source /opt/poky/environment-setup
11 exit 1
12fi
13
14if [ -d "$BUILD_DIR" ]; then
15 rm -rf $BUILD_DIR
16fi
17
18mkdir $BUILD_DIR
19cd $BUILD_DIR
20
21cmake -DCMAKE_TOOLCHAIN_FILE=../igep_toolchain.cmake \
22 -DPACPUS_INSTALL_DIR=/opt/poky/1.3/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/ \
23 ../..
24
25make -j$J
26sudo make install
27
28
Note: See TracBrowser for help on using the repository browser.