Changeset 35 in pacpussensors for trunk


Ignore:
Timestamp:
01/28/14 18:17:11 (10 years ago)
Author:
DHERBOMEZ Gérald
Message:

update of IGEP ARM compilation script

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r31 r35  
    9494#add_subdirectory(Alasca)
    9595add_subdirectory(CanGateway)
    96 #add_subdirectory(LMOComponent)
    97 add_subdirectory(StdDbtPlayerComponents)
     96#add_subdirectory(StdDbtPlayerComponents)
    9897# add_subdirectory(Dualshock)
    9998#add_subdirectory(Wifibot)
  • 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.