source: pacpussensors/trunk/build/build_linux.sh@ 10

Last change on this file since 10 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: 336 bytes
RevLine 
[5]1#!/bin/sh
2
3set -e
4
5BUILD_DIR=./build
6if [ -z $1 ]; then J="1"; else J="$1"; fi
7
8if [ "$TARGET_PREFIX" == "arm-poky-linux-gnueabi-" ]; then
9 echo The environment is configured for poky_arm
10 exit 1
11fi
12
13if [ -d "$BUILD_DIR" ]; then
14 rm -rf $BUILD_DIR
15fi
16
17mkdir $BUILD_DIR
18cd $BUILD_DIR
19
20cmake ../..
21
22make -j$J
23sudo make install
24
25
Note: See TracBrowser for help on using the repository browser.