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

Last change on this file since 56 was 35, checked in by DHERBOMEZ Gérald, 11 years ago

update of IGEP ARM compilation script

  • Property svn:executable set to *
File size: 651 bytes
RevLine 
[5]1#!/bin/sh
[35]2export PACPUS_ROOT=$PACPUS_ROOT_IGEP
[5]3
4BUILD_DIR=./build_arm
5if [ -z $1 ]; then J="1"; else J="$1"; fi
6
[35]7# get the correct version of cmake for ARM architecture
8if [ -f ${OECORE_NATIVE_SYSROOT}/usr/bin/cmake ]; then
9 CMAKE_NATIVE=${OECORE_NATIVE_SYSROOT}/usr/bin/cmake
10else
11 echo "cross toolchain is not installed, please read https://devel.hds.utc.fr/projects/igep/wiki/toolchain/install"
12exit 1
[5]13fi
14
15if [ -d "$BUILD_DIR" ]; then
16 rm -rf $BUILD_DIR
17fi
18
19mkdir $BUILD_DIR
20cd $BUILD_DIR
21
[35]22$CMAKE_NATIVE .. -DPACPUS_INSTALL_DIR=$PACPUS_ROOT \
23 -DCMAKE_TOOLCHAIN_FILE=${OECORE_CMAKE_CROSS_TOOLCHAIN} ../..
[5]24
25make -j$J
26sudo make install
27
28
Note: See TracBrowser for help on using the repository browser.