Last change
on this file since 18 was 5, checked in by aschildk, 11 years ago |
Fix CMakeLists for cross compiling. Add linux build scripts
|
-
Property svn:executable
set to
*
|
File size:
527 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | set -e
|
---|
4 |
|
---|
5 | BUILD_DIR=./build_arm
|
---|
6 | if [ -z $1 ]; then J="1"; else J="$1"; fi
|
---|
7 |
|
---|
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
|
---|
12 | fi
|
---|
13 |
|
---|
14 | if [ -d "$BUILD_DIR" ]; then
|
---|
15 | rm -rf $BUILD_DIR
|
---|
16 | fi
|
---|
17 |
|
---|
18 | mkdir $BUILD_DIR
|
---|
19 | cd $BUILD_DIR
|
---|
20 |
|
---|
21 | cmake -DCMAKE_TOOLCHAIN_FILE=../igep_toolchain.cmake \
|
---|
22 | -DPACPUS_INSTALL_DIR=/opt/poky/1.3/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/ \
|
---|
23 | ../..
|
---|
24 |
|
---|
25 | make -j$J
|
---|
26 | sudo make install
|
---|
27 |
|
---|
28 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.