Last change
on this file since 34 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:
336 bytes
|
Rev | Line | |
---|
[5] | 1 | #!/bin/sh
|
---|
| 2 |
|
---|
| 3 | set -e
|
---|
| 4 |
|
---|
| 5 | BUILD_DIR=./build
|
---|
| 6 | if [ -z $1 ]; then J="1"; else J="$1"; fi
|
---|
| 7 |
|
---|
| 8 | if [ "$TARGET_PREFIX" == "arm-poky-linux-gnueabi-" ]; then
|
---|
| 9 | echo The environment is configured for poky_arm
|
---|
| 10 | exit 1
|
---|
| 11 | fi
|
---|
| 12 |
|
---|
| 13 | if [ -d "$BUILD_DIR" ]; then
|
---|
| 14 | rm -rf $BUILD_DIR
|
---|
| 15 | fi
|
---|
| 16 |
|
---|
| 17 | mkdir $BUILD_DIR
|
---|
| 18 | cd $BUILD_DIR
|
---|
| 19 |
|
---|
| 20 | cmake ../..
|
---|
| 21 |
|
---|
| 22 | make -j$J
|
---|
| 23 | sudo make install
|
---|
| 24 |
|
---|
| 25 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.