Last change
on this file since 56 was 45, checked in by DHERBOMEZ Gérald, 11 years ago |
Some modifications of build environment for Linux
|
-
Property svn:executable
set to
*
|
File size:
576 bytes
|
Rev | Line | |
---|
[45] | 1 | #!/bin/bash
|
---|
[5] | 2 |
|
---|
| 3 | set -e
|
---|
| 4 |
|
---|
[45] | 5 | if [ -z $PACPUS_ROOT ]; then
|
---|
| 6 | echo PACPUS_ROOT environment variable does not exist, please set it the folder in which you have installed pacpusframework.
|
---|
| 7 | else
|
---|
[5] | 8 |
|
---|
[45] | 9 | BUILD_DIR=./build${PACPUS_ROOT////_}
|
---|
| 10 | echo Your files will be built in: $BUILD_DIR
|
---|
[5] | 11 |
|
---|
[45] | 12 | if [ -z $1 ]; then J="1"; else J="$1";
|
---|
| 13 | fi
|
---|
[5] | 14 |
|
---|
[45] | 15 | if [ "$TARGET_PREFIX" == "arm-poky-linux-gnueabi-" ]; then
|
---|
| 16 | echo The environment is configured for poky_arm
|
---|
| 17 | exit 1
|
---|
| 18 | fi
|
---|
[5] | 19 |
|
---|
[45] | 20 | if [ -d "$BUILD_DIR" ]; then
|
---|
| 21 | rm -rf $BUILD_DIR
|
---|
| 22 | fi
|
---|
[5] | 23 |
|
---|
[45] | 24 | mkdir $BUILD_DIR
|
---|
| 25 | cd $BUILD_DIR
|
---|
[5] | 26 |
|
---|
[45] | 27 | cmake ../..
|
---|
[5] | 28 |
|
---|
[45] | 29 | make -j$J
|
---|
| 30 | sudo make install
|
---|
| 31 |
|
---|
| 32 | fi
|
---|
| 33 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.