Changeset 35 in pacpussensors for trunk/build


Ignore:
Timestamp:
Jan 28, 2014, 6:17:11 PM (11 years ago)
Author:
DHERBOMEZ Gérald
Message:

update of IGEP ARM compilation script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build/build_igep.sh

    r5 r35  
    11#!/bin/sh
    2 
    3 set -e
     2export PACPUS_ROOT=$PACPUS_ROOT_IGEP
    43
    54BUILD_DIR=./build_arm
    65if [ -z $1 ]; then J="1"; else J="$1"; fi
    76
    8 if [ "$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
     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
    1213fi
    1314
     
    1920cd $BUILD_DIR
    2021
    21 cmake -DCMAKE_TOOLCHAIN_FILE=../igep_toolchain.cmake \
    22       -DPACPUS_INSTALL_DIR=/opt/poky/1.3/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/ \
    23       ../..
     22$CMAKE_NATIVE .. -DPACPUS_INSTALL_DIR=$PACPUS_ROOT  \
     23        -DCMAKE_TOOLCHAIN_FILE=${OECORE_CMAKE_CROSS_TOOLCHAIN} ../..
    2424
    2525make -j$J
Note: See TracChangeset for help on using the changeset viewer.