Changeset 35 in pacpussensors for trunk/build/build_igep.sh
- Timestamp:
- Jan 28, 2014, 6:17:11 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/build/build_igep.sh
r5 r35 1 1 #!/bin/sh 2 3 set -e 2 export PACPUS_ROOT=$PACPUS_ROOT_IGEP 4 3 5 4 BUILD_DIR=./build_arm 6 5 if [ -z $1 ]; then J="1"; else J="$1"; fi 7 6 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 8 if [ -f ${OECORE_NATIVE_SYSROOT}/usr/bin/cmake ]; then 9 CMAKE_NATIVE=${OECORE_NATIVE_SYSROOT}/usr/bin/cmake 10 else 11 echo "cross toolchain is not installed, please read https://devel.hds.utc.fr/projects/igep/wiki/toolchain/install" 12 exit 1 12 13 fi 13 14 … … 19 20 cd $BUILD_DIR 20 21 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} ../.. 24 24 25 25 make -j$J
Note:
See TracChangeset
for help on using the changeset viewer.