Last change
on this file since 107 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
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | export PACPUS_ROOT=$PACPUS_ROOT_IGEP
|
---|
3 |
|
---|
4 | BUILD_DIR=./build_arm
|
---|
5 | if [ -z $1 ]; then J="1"; else J="$1"; fi
|
---|
6 |
|
---|
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
|
---|
13 | fi
|
---|
14 |
|
---|
15 | if [ -d "$BUILD_DIR" ]; then
|
---|
16 | rm -rf $BUILD_DIR
|
---|
17 | fi
|
---|
18 |
|
---|
19 | mkdir $BUILD_DIR
|
---|
20 | cd $BUILD_DIR
|
---|
21 |
|
---|
22 | $CMAKE_NATIVE .. -DPACPUS_INSTALL_DIR=$PACPUS_ROOT \
|
---|
23 | -DCMAKE_TOOLCHAIN_FILE=${OECORE_CMAKE_CROSS_TOOLCHAIN} ../..
|
---|
24 |
|
---|
25 | make -j$J
|
---|
26 | sudo make install
|
---|
27 |
|
---|
28 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.