Changeset 255 in pacpusframework for branches/0.0.x/scripts


Ignore:
Timestamp:
Dec 15, 2013, 7:51:51 AM (11 years ago)
Author:
gsanahuj
Message:

nouvelle toolchain igep

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.0.x/scripts/build-igep.sh

    r253 r255  
    1515
    1616#recupere cmake
    17 if [ -f  /opt/poky/latest/sysroots/x86_64-pokysdk-linux/usr/bin/cmake ]; then
    18         CMAKE_NATIVE=/opt/poky/latest/sysroots/x86_64-pokysdk-linux/usr/bin/cmake
    19 elif [ -f  /opt/poky/latest/sysroots/i686-pokysdk-linux/usr/bin/cmake ]; then
    20         CMAKE_NATIVE=/opt/poky/latest/sysroots/i686-pokysdk-linux/usr/bin/cmake
     17if [ -f  ${OECORE_NATIVE_SYSROOT}/usr/bin/cmake ]; then
     18        CMAKE_NATIVE=${OECORE_NATIVE_SYSROOT}/usr/bin/cmake
    2119else
    22         echo "la toolchain n'est pas installée, lire https://devel.hds.utc.fr/projects/igep/wiki/toolchain/install"
     20        echo "cross toolchain is not installed, please read https://devel.hds.utc.fr/projects/igep/wiki/toolchain/install"
    2321exit 1
    2422fi
     
    4442    $CMAKE_NATIVE .. -DPACPUS_INSTALL_DIR=$1 -DPACPUS_INSTALL_3RD=TRUE \
    4543        -DPACPUS_USE_LOG=TRUE -DCMAKE_BUILD_TYPE=Release \
    46         -DPACPUS_INSTALL_WITH_VERSION_NUMBER=TRUE -DCMAKE_TOOLCHAIN_FILE=/opt/poky/toolchain.cmake
     44        -DPACPUS_INSTALL_WITH_VERSION_NUMBER=TRUE -DCMAKE_TOOLCHAIN_FILE=${OECORE_CMAKE_CROSS_TOOLCHAIN}
    4745    make
    4846    sudo make install
    4947    $CMAKE_NATIVE .. -DPACPUS_INSTALL_DIR=$1 -DPACPUS_INSTALL_3RD=TRUE \
    5048        -DPACPUS_USE_LOG=TRUE -DCMAKE_BUILD_TYPE=Debug
    51         -DPACPUS_INSTALL_WITH_VERSION_NUMBER=TRUE -DCMAKE_TOOLCHAIN_FILE=/opt/poky/toolchain.cmake \
     49        -DPACPUS_INSTALL_WITH_VERSION_NUMBER=TRUE -DCMAKE_TOOLCHAIN_FILE=${OECORE_CMAKE_CROSS_TOOLCHAIN} \
    5250    make
    5351    sudo make install
Note: See TracChangeset for help on using the changeset viewer.